diff options
| author | Steven Rostedt (VMware) <[email protected]> | 2020-02-14 11:56:34 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-02-17 10:39:11 +0100 |
| commit | 16105850f7fcf91be28bc9958b9a502406a40926 (patch) | |
| tree | e241a2fd2ab5999d86587c1ab96593090060bf34 /tools/perf/scripts/python | |
| parent | fcec45910e7bcfbf2ef7d31515c38a82f23f6b22 (diff) | |
xhci: Do not open code __print_symbolic() in xhci trace events
libtraceevent (used by perf and trace-cmd) failed to parse the
xhci_urb_dequeue trace event. This is because the user space trace
event format parsing is not a full C compiler. It can handle some basic
logic, but is not meant to be able to handle everything C can do.
In cases where a trace event field needs to be converted from a number
to a string, there's the __print_symbolic() macro that should be used:
See samples/trace_events/trace-events-sample.h
Some xhci trace events open coded the __print_symbolic() causing the
user spaces tools to fail to parse it. This has to be replaced with
__print_symbolic() instead.
CC: [email protected]
Reported-by: Tzvetomir Stoyanov <[email protected]>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206531
Fixes: 5abdc2e6e12ff ("usb: host: xhci: add urb_enqueue/dequeue/giveback tracers")
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions