summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_stat.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-24 13:38:36 -0400
committerSteven Rostedt <srostedt@redhat.com>2009-03-24 23:22:58 -0400
commit425480081e936d8725f0d44b8829d699bf088c6b (patch)
tree214bd7f813fde6b71f624b85756b27ec5078c3fd /kernel/trace/trace_stat.c
parentee000b7f9fe429d2470c674ccec8d344f6789e0d (diff)
downloadlinux-425480081e936d8725f0d44b8829d699bf088c6b.tar.gz
linux-425480081e936d8725f0d44b8829d699bf088c6b.tar.bz2
linux-425480081e936d8725f0d44b8829d699bf088c6b.zip
tracing: add handler to trace_stat
Currently, if a trace_stat user wants a handle to some private data, the trace_stat infrastructure does not supply a way to do that. This patch passes the trace_stat structure to the start function of the trace_stat code. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_stat.c')
-rw-r--r--kernel/trace/trace_stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_stat.c b/kernel/trace/trace_stat.c
index f71b85b22cfe..f8f48d84b2c3 100644
--- a/kernel/trace/trace_stat.c
+++ b/kernel/trace/trace_stat.c
@@ -85,7 +85,7 @@ static int stat_seq_init(struct tracer_stat_session *session)
if (!ts->stat_cmp)
ts->stat_cmp = dummy_cmp;
- stat = ts->stat_start();
+ stat = ts->stat_start(ts);
if (!stat)
goto exit;