diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-24 11:19:06 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-26 09:42:59 -0500 |
commit | 0a87e7bc6c55dd248270ee0ab4212cd0ef8ea04a (patch) | |
tree | 9c049a1417973f736eb37b09f0396ba6aa4dd54d /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | e28ff1a8382ee02b10cf11cf3b48541dc3d14a58 (diff) |
perf scripting perl: Do not die() when not founding event for a type
Do just like handling other cases i.e. print some debug message and
ignore the sample.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-t7kzlm3cxyvbd7d9n9554ai9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index e55a132f69b7..014ecd6f67c4 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -350,8 +350,10 @@ static void perl_process_tracepoint(struct perf_sample *sample, | |||
350 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) | 350 | if (evsel->attr.type != PERF_TYPE_TRACEPOINT) |
351 | return; | 351 | return; |
352 | 352 | ||
353 | if (!event) | 353 | if (!event) { |
354 | die("ug! no event found for type %" PRIu64, (u64)evsel->attr.config); | 354 | pr_debug("ug! no event found for type %" PRIu64, (u64)evsel->attr.config); |
355 | return; | ||
356 | } | ||
355 | 357 | ||
356 | pid = raw_field_value(event, "common_pid", data); | 358 | pid = raw_field_value(event, "common_pid", data); |
357 | 359 | ||