diff options
author | Vincent Whitchurch <vincent.whitchurch@axis.com> | 2020-11-13 14:29:53 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-11-19 21:59:36 -0500 |
commit | 39ae879e51fb7122981e3ec2e71f6fa34de289c2 (patch) | |
tree | 3f401f16ae9eaddc6d9bb133b4f6c609a8d47de9 | |
parent | 274c43dcae4de3291f3a2ca8cad53262ea4604fa (diff) | |
download | libtraceevent-39ae879e51fb7122981e3ec2e71f6fa34de289c2.tar.gz |
trace-cmd libtraceevent: Fix bprint '#' parsing
Fix handling of '#' in bprint format specifiers.
For example, with this:
trace_printk("jiffies %lu pending %#x\n", jiffies, pending);
Before:
bprint: __do_softirq: jiffies 4294919108 pending x
...
bprint: [FAILED TO PARSE] ip=... fmt=... buf=ARRAY[]
After:
bprint: __do_softirq: jiffies 4294919108 pending 0x4
...
bprint: __do_softirq: jiffies 4294919109 pending 0x4
Link: https://lore.kernel.org/linux-trace-devel/20201113132953.2371-1-vincent.whitchurch@axis.com
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | event-parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/event-parse.c b/event-parse.c index 3ba566d..d81a42a 100644 --- a/event-parse.c +++ b/event-parse.c @@ -4410,6 +4410,8 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s goto process_again; case '.': goto process_again; + case '#': + goto process_again; case 'z': case 'Z': ls = 1; |