Re: [PATCH] tracing: Only benchmark the time tracepoints take if tracing is on

2015-10-27 Thread Steven Rostedt
On Tue, 27 Oct 2015 20:12:13 +0800 Chunyan Zhang wrote: > 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

[PATCH] tracing: Only benchmark the time tracepoints take if tracing is on

2015-10-27 Thread Chunyan Zhang
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

[PATCH] tracing: Only benchmark the time tracepoints take if tracing is on

2015-10-27 Thread Chunyan Zhang
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

Re: [PATCH] tracing: Only benchmark the time tracepoints take if tracing is on

2015-10-27 Thread Steven Rostedt
On Tue, 27 Oct 2015 20:12:13 +0800 Chunyan Zhang wrote: > 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