aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dump_stack.c
diff options
context:
space:
mode:
authorAxel Rasmussen <[email protected]>2020-10-09 22:05:23 +0000
committerSteven Rostedt (VMware) <[email protected]>2020-10-15 16:01:14 +0000
commit6107742d15832011cd0396d821f3225b52551f1f (patch)
tree3a4e9b08918430a366a89ccf92bcc44492ceea44 /lib/dump_stack.c
parentselftests/ftrace: Add test case for synthetic event syntax errors (diff)
downloadkernel-6107742d15832011cd0396d821f3225b52551f1f.tar.gz
kernel-6107742d15832011cd0396d821f3225b52551f1f.zip
tracing: support "bool" type in synthetic trace events
It's common [1] to define tracepoint fields as "bool" when they contain a true / false value. Currently, defining a synthetic event with a "bool" field yields EINVAL. It's possible to work around this by using e.g. u8 (assuming sizeof(bool) is 1, and bool is unsigned; if either of these properties don't match, you get EINVAL [2]). Supporting "bool" explicitly makes hooking this up easier and more portable for userspace. [1]: grep -r "bool" include/trace/events/ [2]: check_synth_field() in kernel/trace/trace_events_hist.c Link: https://lkml.kernel.org/r/[email protected] Acked-by: Michel Lespinasse <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Axel Rasmussen <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions