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_branch.c | |
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_branch.c')
-rw-r--r-- | kernel/trace/trace_branch.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c index 1284145c8898..ea62f101e615 100644 --- a/kernel/trace/trace_branch.c +++ b/kernel/trace/trace_branch.c | |||
@@ -160,14 +160,13 @@ trace_print_print(struct trace_seq *s, struct trace_entry *entry, int flags) | |||
160 | return TRACE_TYPE_PARTIAL_LINE; | 160 | return TRACE_TYPE_PARTIAL_LINE; |
161 | } | 161 | } |
162 | 162 | ||
163 | static int | 163 | static int trace_branch_print(struct trace_iterator *iter, int flags) |
164 | trace_branch_print(struct trace_seq *s, struct trace_entry *entry, int flags) | ||
165 | { | 164 | { |
166 | struct trace_branch *field; | 165 | struct trace_branch *field; |
167 | 166 | ||
168 | trace_assign_type(field, entry); | 167 | trace_assign_type(field, iter->ent); |
169 | 168 | ||
170 | if (trace_seq_printf(s, "[%s] %s:%s:%d\n", | 169 | if (trace_seq_printf(&iter->seq, "[%s] %s:%s:%d\n", |
171 | field->correct ? " ok " : " MISS ", | 170 | field->correct ? " ok " : " MISS ", |
172 | field->func, | 171 | field->func, |
173 | field->file, | 172 | field->file, |