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>
This commit is contained in:
Arnaldo Carvalho de Melo
2009-02-02 20:30:12 -02:00
committed by Ingo Molnar
parent c4a8e8be2d
commit 2c9b238eb3
5 changed files with 76 additions and 94 deletions

View File

@@ -160,14 +160,13 @@ trace_print_print(struct trace_seq *s, struct trace_entry *entry, int flags)
return TRACE_TYPE_PARTIAL_LINE;
}
static int
trace_branch_print(struct trace_seq *s, struct trace_entry *entry, int flags)
static int trace_branch_print(struct trace_iterator *iter, int flags)
{
struct trace_branch *field;
trace_assign_type(field, entry);
trace_assign_type(field, iter->ent);
if (trace_seq_printf(s, "[%s] %s:%s:%d\n",
if (trace_seq_printf(&iter->seq, "[%s] %s:%s:%d\n",
field->correct ? " ok " : " MISS ",
field->func,
field->file,