Re: [PATCH] fs/proc: introduce /proc/stat2 file

From: Davidlohr Bueso
Date: Mon Oct 29 2018 - 16:38:27 EST


On Mon, 29 Oct 2018, Waiman Long wrote:

BTW, since you are making stat2 compatible with stat, will that be
easier from the user API perspective if we use a sysctl parameter to
turn on and off IRQs reporting for /proc/stat, for example?

For one /proc/stat is also common for debugging envs (ie: performance)
and I fear that if a tunnable modifies the behavior of the output, we
it might never be usable again (at least not without having users also
now consider the systctl parameter). Making it dynamic I think is not
worth it.

Thanks,
Davidlohr