aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_stat.h
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.h
parentee000b7f9fe429d2470c674ccec8d344f6789e0d (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_stat.h b/kernel/trace/trace_stat.h
index 202274cf7f3d..f3546a2cd826 100644
--- a/kernel/trace/trace_stat.h
+++ b/kernel/trace/trace_stat.h
@@ -12,7 +12,7 @@ struct tracer_stat {
12 /* The name of your stat file */ 12 /* The name of your stat file */
13 const char *name; 13 const char *name;
14 /* Iteration over statistic entries */ 14 /* Iteration over statistic entries */
15 void *(*stat_start)(void); 15 void *(*stat_start)(struct tracer_stat *trace);
16 void *(*stat_next)(void *prev, int idx); 16 void *(*stat_next)(void *prev, int idx);
17 /* Compare two entries for stats sorting */ 17 /* Compare two entries for stats sorting */
18 int (*stat_cmp)(void *p1, void *p2); 18 int (*stat_cmp)(void *p1, void *p2);