path: root/tools/perf/builtin-trace.c
diff options
authorArnaldo Carvalho de Melo <>2015-08-03 17:12:29 -0300
committerArnaldo Carvalho de Melo <>2015-08-05 10:52:19 -0300
commit2e5e5f876143b147b98d0c0854b5fc577412b05b (patch)
treea0e82f0d398d266ceb629acedc185c1a44423ae1 /tools/perf/builtin-trace.c
parent9ee67421fe3b67a0796d6ea620fd5fcb037d3f89 (diff)
perf trace: Do not show syscall tracepoint filter in the --no-syscalls case
We were accessing trace-> members even when that struct wasn't initialized, i.e. --no-syscalls was specified on the command line, fix it to show that, still in debug mode, when we have an event qualifier list, i.e. when we actually are doing subset syscall tracing. Cc: Adrian Hunter <> Cc: Borislav Petkov <> Cc: David Ahern <> Cc: Frederic Weisbecker <> Cc: Jiri Olsa <> Cc: Milian Wolff <> Cc: Namhyung Kim <> Cc: Stephane Eranian <> Fixes: 19867b6186f3 ("perf trace: Use event filters for the event qualifier list") Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/builtin-trace.c')
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 06cfa93c0305..3cfca93309ee 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -2394,9 +2394,10 @@ static int trace__run(struct trace *trace, int argc, const char **argv)
err = trace__set_ev_qualifier_filter(trace);
if (err < 0)
goto out_errno;
- }
- pr_debug("%s\n", trace->>filter);
+ pr_debug("event qualifier tracepoint filter: %s\n",
+ trace->>filter);
+ }
err = perf_evlist__apply_filters(evlist, &evsel);
if (err < 0)