mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
libtraceevent: Fix parsing of event %o and %X argument types
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>
This commit is contained in:
parent
aceb98261e
commit
10f64581b1
@ -4395,8 +4395,10 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s
|
|||||||
/* fall through */
|
/* fall through */
|
||||||
case 'd':
|
case 'd':
|
||||||
case 'u':
|
case 'u':
|
||||||
case 'x':
|
|
||||||
case 'i':
|
case 'i':
|
||||||
|
case 'x':
|
||||||
|
case 'X':
|
||||||
|
case 'o':
|
||||||
switch (ls) {
|
switch (ls) {
|
||||||
case 0:
|
case 0:
|
||||||
vsize = 4;
|
vsize = 4;
|
||||||
@ -5078,10 +5080,11 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_e
|
|||||||
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case 'd':
|
case 'd':
|
||||||
|
case 'u':
|
||||||
case 'i':
|
case 'i':
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
case 'u':
|
case 'o':
|
||||||
if (!arg) {
|
if (!arg) {
|
||||||
do_warning_event(event, "no argument match");
|
do_warning_event(event, "no argument match");
|
||||||
event->flags |= TEP_EVENT_FL_FAILED;
|
event->flags |= TEP_EVENT_FL_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user