]> git.karo-electronics.de Git - linux-beck.git/commit
tracing: Have the reg function allow to fail
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 28 Nov 2016 18:03:21 +0000 (13:03 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 9 Dec 2016 14:13:30 +0000 (09:13 -0500)
commit8cf868affdc459beee1a941df0cfaba1673740e3
tree64dd73ba504f458831177e091f90f0324962d226
parent38e11df134297ea3860c7aad8263ece27db01308
tracing: Have the reg function allow to fail

Some tracepoints have a registration function that gets enabled when the
tracepoint is enabled. There may be cases that the registraction function
must fail (for example, can't allocate enough memory). In this case, the
tracepoint should also fail to register, otherwise the user would not know
why the tracepoint is not working.

Cc: David Howells <dhowells@redhat.com>
Cc: Seiji Aguchi <seiji.aguchi@hds.com>
Cc: Anton Blanchard <anton@samba.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
15 files changed:
arch/powerpc/include/asm/trace.h
arch/powerpc/platforms/powernv/opal-tracepoints.c
arch/powerpc/platforms/pseries/lpar.c
arch/x86/include/asm/trace/exceptions.h
arch/x86/include/asm/trace/irq_vectors.h
arch/x86/kernel/tracepoint.c
drivers/i2c/i2c-core.c
include/linux/tracepoint-defs.h
include/linux/tracepoint.h
include/trace/events/i2c.h
kernel/trace/trace_benchmark.c
kernel/trace/trace_benchmark.h
kernel/tracepoint.c
samples/trace_events/trace-events-sample.c
samples/trace_events/trace-events-sample.h