All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] timer_stats, doc: Readout of /proc/timer_stats doesn't disable sampling
@ 2014-05-02  9:29 Michael Kerrisk (man-pages)
  2014-05-02  9:37 ` Michael Kerrisk
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-05-02  9:29 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: mtk.manpages, Randy Dunlap, lkml

From: Michael Kerrisk <mtk.manpages@gmail.com>

Some simple testing shows that reading from /proc/timer_stats
does not disable sampling. Looking back over past source code,
it appears that it never did.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [patch] timer_stats, doc: Readout of /proc/timer_stats doesn't disable sampling
@ 2014-05-02 10:13 Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-05-02 10:13 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: mtk.manpages, Randy Dunlap, lkml

From: Michael Kerrisk <mtk.manpages@gmail.com>

Some simple testing shows that reading from /proc/timer_stats
does not disable sampling. Looking back over past source code,
it appears that it never did.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
---
 Documentation/timers/timer_stats.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/timers/timer_stats.txt b/Documentation/timers/timer_stats.txt
index 8abd40b..de835ee 100644
--- a/Documentation/timers/timer_stats.txt
+++ b/Documentation/timers/timer_stats.txt
@@ -39,9 +39,9 @@ To stop a sample period issue:
 The statistics can be retrieved by:
 # cat /proc/timer_stats
 
-The readout of /proc/timer_stats automatically disables sampling. The sampled
-information is kept until a new sample period is started. This allows multiple
-readouts.
+While sampling is enabled, each readout from /proc/timer_stats will see
+newly updated statistics. Once sampling is disabled, the sampled information
+is kept until a new sample period is started. This allows multiple readouts.
 
 Sample output of /proc/timer_stats:
 
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-02 10:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-02  9:29 [patch] timer_stats, doc: Readout of /proc/timer_stats doesn't disable sampling Michael Kerrisk (man-pages)
2014-05-02  9:37 ` Michael Kerrisk
2014-05-02 10:13 Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.