[virt-tools-list] Virt-top --script problem
Richard W.M. Jones
rjones at redhat.com
Thu Nov 18 12:03:34 UTC 2010
On Thu, Nov 18, 2010 at 12:13:22PM +0100, Paolo Bonzini wrote:
> On 11/18/2010 10:56 AM, Richard W.M. Jones wrote:
> >>> snprintf (path, sizeof path,
> >>> - "/sys/devices/xen-backend/tap-%d-%d/statistics/%s",
> >>> + "/sys/devices/tap-%d-%d/statistics/%s",
> >>> domid, device, str);
> >>> r = read_stat (path);
> >>> return r;
> >>> ----------------------------------------------------------------------
> >Paolo, is there a correct location for these statistics directories?
> >(It would have to work on RHEL 5 as well as upstream Xen).
>
> You could try /sys/bus/xen-backend/devices/*. Hui, do you have that
> directory?
Is one of these paths the correct one that we should be using,
or should we be searching for all three?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
More information about the virt-tools-list
mailing list