Re: [PATCH 2/2] show nohz_full cpus in sysfs

From: Frederic Weisbecker
Date: Sat Mar 28 2015 - 14:06:30 EST


On Sat, Mar 28, 2015 at 12:15:56PM -0400, Rik van Riel wrote:
> On 03/28/2015 12:02 PM, Frederic Weisbecker wrote:
> > 2015-03-27 22:50 GMT+01:00 <riel@xxxxxxxxxx>:
> >> From: Rik van Riel <riel@xxxxxxxxxx>
> >>
> >> Currently there is no way to query which CPUs are in nohz_full
> >> mode from userspace.
> >
> > Well you can watch dmesg | grep NO_HZ
> > But surely sysfs is more convenient from an app.
> >
> > I guess it's ok, as long as it's strictly Read Only. Here it seems to
> > be the case. And it's not chmod'able, right?
>
> I followed the other code for files in that directory.
>
> Quick testing shows that the cpu info files in
> /sys/devices/system/cpu are chmoddable, but writing
> to them fails with -EIO because there is no function
> set up to handle writes. So yeah, read only :)

Perfect :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/