tracing: define TRACE_DEFINE_SIZEOF() macro to map sizeof's to their values
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 31 May 2017 21:56:50 +0000 (16:56 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 13 Jun 2017 21:10:57 +0000 (17:10 -0400)
commit4f0dfd76e9cc9296d74d6d5f579a5c7ca3bed869
treee94e913df249cfc2694942fae470da20f4a196da
parent67ec0d85955630924b971e04c0954370a74b8706
tracing: define TRACE_DEFINE_SIZEOF() macro to map sizeof's to their values

Perf has a problem that if sizeof() macros are used within TRACE_EVENT()
macro's they end up in userspace as "sizeof(kernel structure)" which
cannot properly be parsed. Add a macro which can forward this data
through the eval_map for userspace utilization.

Link: http://lkml.kernel.org/r/20170531215653.3240-10-jeremy.linton@arm.com
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/tracepoint.h
include/trace/trace_events.h