summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2010-04-30 12:59:59 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-05-14 09:34:26 -0400
commit53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d (patch)
tree53b68f57d815025ee6f97900544b4cfecca0d78d /samples
parent8f0820183056ad26dabc0202115848a92f1143fc (diff)
downloadlinux-rpi3-53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d.tar.gz
linux-rpi3-53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d.tar.bz2
linux-rpi3-53da59aa6dd881fd0bbdd058a8a299d90ce9dd1d.zip
tracepoints: Add check trace callback type
This check is meant to be used by tracepoint users which do a direct cast of callbacks to (void *) for direct registration, thus bypassing the register_trace_##name and unregister_trace_##name checks. This permits to ensure that the callback type matches the function type at the call site, but without generating any code. Acked-by: Masami Hiramatsu <mhiramat@redhat.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> LKML-Reference: <20100430165959.GA25605@Krystal> CC: Ingo Molnar <mingo@elte.hu> CC: Andrew Morton <akpm@linux-foundation.org> CC: Thomas Gleixner <tglx@linutronix.de> CC: Peter Zijlstra <peterz@infradead.org> CC: Arnaldo Carvalho de Melo <acme@redhat.com> CC: Lai Jiangshan <laijs@cn.fujitsu.com> CC: Li Zefan <lizf@cn.fujitsu.com> CC: Christoph Hellwig <hch@lst.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions