Commit 22ae5cf1c9b4e27a3efe96d8fa6d038560a2cf23
1 parent
7704805920
Exists in
master
and in
16 other branches
perf trace: Don't print zeroed args
This way we make the output more compact. If somebody complain (and provide a sane reason why we would like to see zeroes) we can make it an optional, ~/.perfconfig configurable knob. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-myqozw43hk8z2r5hsupzdk82@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
tools/perf/builtin-trace.c
... | ... | @@ -818,6 +818,9 @@ |
818 | 818 | if (arg.mask & bit) |
819 | 819 | continue; |
820 | 820 | |
821 | + if (args[arg.idx] == 0) | |
822 | + continue; | |
823 | + | |
821 | 824 | printed += scnprintf(bf + printed, size - printed, |
822 | 825 | "%s%s: ", printed ? ", " : "", field->name); |
823 | 826 | if (sc->arg_scnprintf && sc->arg_scnprintf[arg.idx]) { |