summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2017-01-25 02:28:17 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-25 19:17:47 +0100
commit0fe05591790e953f3ef9cf4f1bce08b6dd7b771f (patch)
tree5aca9cf31220fecef67b7bd68939291d0d13e2e1 /tools/perf/util/scripting-engines/trace-event-perl.c
parenttrace: add variant without spacing in trace_print_hex_seq (diff)
downloadlinux-0fe05591790e953f3ef9cf4f1bce08b6dd7b771f.tar.xz
linux-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 <daniel@iogearbox.net> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c
index e55a132f69b7..e74adfbd6a2e 100644
--- a/tools/perf/util/scripting-engines/trace-event-perl.c
+++ b/tools/perf/util/scripting-engines/trace-event-perl.c
@@ -217,6 +217,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;