]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
libtraceevent: Fix parsing of event %o and %X argument types
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Sun, 10 Nov 2019 10:11:01 +0000 (13:11 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Nov 2019 16:01:59 +0000 (13:01 -0300)
Add missing "%o" and "%X". Ext4 events use "%o" for printing i_mode.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Link: http://lore.kernel.org/lkml/157338066113.6548.11461421296091086041.stgit@buzz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c

index d948475585ced2c5664e568a9412d64032bc851b..beaa8b8c08ff357fee57dffff985008add1670e7 100644 (file)
@@ -4395,8 +4395,10 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s
                                /* fall through */
                        case 'd':
                        case 'u':
-                       case 'x':
                        case 'i':
+                       case 'x':
+                       case 'X':
+                       case 'o':
                                switch (ls) {
                                case 0:
                                        vsize = 4;
@@ -5078,10 +5080,11 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_e
 
                                /* fall through */
                        case 'd':
+                       case 'u':
                        case 'i':
                        case 'x':
                        case 'X':
-                       case 'u':
+                       case 'o':
                                if (!arg) {
                                        do_warning_event(event, "no argument match");
                                        event->flags |= TEP_EVENT_FL_FAILED;