]> asedeno.scripts.mit.edu Git - linux.git/commit
timer stats: Add a 'Collection: active/inactive' line to timer usage statistics
authorDong Zhu <bluezhudong@gmail.com>
Thu, 10 Oct 2013 07:56:18 +0000 (15:56 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Oct 2013 07:59:25 +0000 (09:59 +0200)
commit2cb763614c1c5baef58045af9304265075f22d0a
treee294e2b1ed1e872a46d651e133996182219f7d16
parent8a749de5e32d2b72def93f7bd7a2745580d75872
timer stats: Add a 'Collection: active/inactive' line to timer usage statistics

We can enable/disable timer statistics collection via:

  echo [1|0] > /proc/timers_stats

and it would be nice if apps had the ability to check
what the current collection status is.

This patch adds a 'Collection: active/inactive' line to display the
current timer collection status.

Also bump up the timer stats version to v0.3.

Signed-off-by: Dong Zhu <bluezhudong@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20131010075618.GH2139@zhudong.nay.redhat.com
[ Improved the changelog and the code. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/time/timer_stats.c