[virt-tools-list] Virt-top --script problem

Paolo Bonzini bonzini at gnu.org
Thu Nov 18 11:13:22 UTC 2010


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?

Paolo




More information about the virt-tools-list mailing list