diff options
author | Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com> | 2012-12-26 03:52:52 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-01-30 17:02:05 +0100 |
commit | 2fd196ec1eab2623096e7fc7e6f3976160392bce (patch) | |
tree | 1994d70de20c1a1bc296e02d352142414484355b /kernel/trace/Kconfig | |
parent | tracing: Use sched_clock_cpu for trace_clock_global (diff) | |
download | linux-2fd196ec1eab2623096e7fc7e6f3976160392bce.tar.xz linux-2fd196ec1eab2623096e7fc7e6f3976160392bce.zip |
tracing: Replace static old_tracer check of tracer name
Currently the trace buffer read functions use a static variable
"old_tracer" for detecting if the current tracer changes. This
was suitable for a single trace file ("trace"), but to add a
snapshot feature that will use the same function for its file,
a check against a static variable is not sufficient.
To use the output functions for two different files, instead of
storing the current tracer in a static variable, as the trace
iterator descriptor contains a pointer to the original current
tracer's name, that pointer can now be used to check if the
current tracer has changed between different reads of the trace
file.
Link: http://lkml.kernel.org/r/20121226025252.3252.9276.stgit@liselsia
Signed-off-by: Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/Kconfig')
0 files changed, 0 insertions, 0 deletions