aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2017-01-25 01:28:17 +0000
committerDavid S. Miller <[email protected]>2017-01-25 18:17:47 +0000
commit0fe05591790e953f3ef9cf4f1bce08b6dd7b771f (patch)
tree5aca9cf31220fecef67b7bd68939291d0d13e2e1 /tools/perf/util/scripting-engines/trace-event-python.c
parenttrace: add variant without spacing in trace_print_hex_seq (diff)
downloadkernel-0fe05591790e953f3ef9cf4f1bce08b6dd7b771f.tar.gz
kernel-0fe05591790e953f3ef9cf4f1bce08b6dd7b771f.zip
lib, traceevent: add PRINT_HEX_STR variant
Add support for the __print_hex_str() macro that was added for tracing, so that user space tools such as perf can understand it as well. Signed-off-by: Daniel Borkmann <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-python.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c
index 089438da1f7f..581e0efd6356 100644
--- a/tools/perf/util/scripting-engines/trace-event-python.c
+++ b/tools/perf/util/scripting-engines/trace-event-python.c
@@ -236,6 +236,7 @@ static void define_event_symbols(struct event_format *event,
cur_field_name);
break;
case PRINT_HEX:
+ case PRINT_HEX_STR:
define_event_symbols(event, ev_name, args->hex.field);
define_event_symbols(event, ev_name, args->hex.size);
break;