diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-02 17:30:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-03 08:03:52 -0500 |
commit | 2c9b238eb325895d3312dad64e2685783575e474 (patch) | |
tree | 1c64910c6084c53b9d9a458a34568ccb083419e8 /kernel/trace/trace_output.h | |
parent | c4a8e8be2d43cc22b371e8e9c05c253409759d94 (diff) |
trace: Change struct trace_event callbacks parameter list
Impact: API change
The trace_seq and trace_entry are in trace_iterator, where there are
more fields that may be needed by tracers, so just pass the
tracer_iterator as is already the case for struct tracer->print_line.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r-- | kernel/trace/trace_output.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index ec2ed90f10f0..3aeb31f6506b 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -3,8 +3,7 @@ | |||
3 | 3 | ||
4 | #include "trace.h" | 4 | #include "trace.h" |
5 | 5 | ||
6 | typedef int (*trace_print_func)(struct trace_seq *s, struct trace_entry *entry, | 6 | typedef int (*trace_print_func)(struct trace_iterator *iter, int flags); |
7 | int flags); | ||
8 | 7 | ||
9 | struct trace_event { | 8 | struct trace_event { |
10 | struct hlist_node node; | 9 | struct hlist_node node; |
@@ -40,8 +39,7 @@ struct trace_event *ftrace_find_event(int type); | |||
40 | int register_ftrace_event(struct trace_event *event); | 39 | int register_ftrace_event(struct trace_event *event); |
41 | int unregister_ftrace_event(struct trace_event *event); | 40 | int unregister_ftrace_event(struct trace_event *event); |
42 | 41 | ||
43 | int | 42 | int trace_nop_print(struct trace_iterator *iter, int flags); |
44 | trace_nop_print(struct trace_seq *s, struct trace_entry *entry, int flags); | ||
45 | 43 | ||
46 | #define MAX_MEMHEX_BYTES 8 | 44 | #define MAX_MEMHEX_BYTES 8 |
47 | #define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) | 45 | #define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) |