diff options
author | Chunyan Zhang <zhang.chunyan@linaro.org> | 2015-10-27 12:12:13 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-02 18:34:58 (GMT) |
commit | bdb5d0f9045ed88811b6253682dff6b576dd0064 (patch) | |
tree | 3309a6e0cb5e6a8326c3e96632a5282a0b1bad90 /kernel/kmod.c | |
parent | 46a2b61ecb286dddb4efa73b119fec54e1576efe (diff) | |
download | linux-bdb5d0f9045ed88811b6253682dff6b576dd0064.tar.xz |
tracing: Only benchmark the time tracepoints take if tracing is on
There's no need to record the time tracepoints take when tracing is off.
This is because:
1) We cannot see these records since ring_buffer record is off at that
moment.
2) If tracing is off and benchmark tracepoint is enabled, the time
tracepoint takes is fewer than the same situation when tracing is on,
since the tracepoints need to be wrote into ring_buffer, it would
take more time. If turn on tracing at this moment, the average and
standard deviation cannot exactly present the time that tracepoints
take to write data into ring_buffer.
Link: http://lkml.kernel.org/r/1445947933-27955-1-git-send-email-zhang.chunyan@linaro.org
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/kmod.c')
0 files changed, 0 insertions, 0 deletions