diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-24 13:38:36 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-24 23:22:58 -0400 |
commit | 425480081e936d8725f0d44b8829d699bf088c6b (patch) | |
tree | 214bd7f813fde6b71f624b85756b27ec5078c3fd /kernel/trace/trace_stat.h | |
parent | ee000b7f9fe429d2470c674ccec8d344f6789e0d (diff) |
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.h')
-rw-r--r-- | kernel/trace/trace_stat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_stat.h b/kernel/trace/trace_stat.h index 202274cf7f3..f3546a2cd82 100644 --- a/kernel/trace/trace_stat.h +++ b/kernel/trace/trace_stat.h @@ -12,7 +12,7 @@ struct tracer_stat { /* The name of your stat file */ const char *name; /* Iteration over statistic entries */ - void *(*stat_start)(void); + void *(*stat_start)(struct tracer_stat *trace); void *(*stat_next)(void *prev, int idx); /* Compare two entries for stats sorting */ int (*stat_cmp)(void *p1, void *p2); |