tracing/ftrace: change the type of the init() callback
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 16 Nov 2008 04:57:26 +0000 (05:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 06:55:23 +0000 (07:55 +0100)
commit1c80025a49855b12fa09bb6db71820e3367b1369
tree063fe72ed9bb3410c3293c83a7882cecc46e7410
parente6e7a65aabdb696cf05a56cfd495c49a11fd4cde
tracing/ftrace: change the type of the init() callback

Impact: extend the ->init() method with the ability to fail

This bring a way to know if the initialization of a tracer successed.
A tracer must return 0 on success and a traditional error (ie:
-ENOMEM) if it fails.

If a tracer fails to init, it is free to print a detailed warn. The
tracing api will not and switch to a new tracer will just return the
error from the init callback.

Note: this will be used for the return tracer.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
13 files changed:
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_boot.c
kernel/trace/trace_branch.c
kernel/trace/trace_functions.c
kernel/trace/trace_functions_return.c
kernel/trace/trace_irqsoff.c
kernel/trace/trace_mmiotrace.c
kernel/trace/trace_nop.c
kernel/trace/trace_sched_switch.c
kernel/trace/trace_sched_wakeup.c
kernel/trace/trace_selftest.c
kernel/trace/trace_sysprof.c