aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-perl.c10
1 files changed, 6 insertions, 4 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..c1555fd0035a 100644
--- a/tools/perf/util/scripting-engines/trace-event-perl.c
+++ b/tools/perf/util/scripting-engines/trace-event-perl.c
@@ -309,10 +309,10 @@ static SV *perl_process_callchain(struct perf_sample *sample,
309 if (node->map) { 309 if (node->map) {
310 struct map *map = node->map; 310 struct map *map = node->map;
311 const char *dsoname = "[unknown]"; 311 const char *dsoname = "[unknown]";
312 if (map && map->dso && (map->dso->name || map->dso->long_name)) { 312 if (map && map->dso) {
313 if (symbol_conf.show_kernel_path && map->dso->long_name) 313 if (symbol_conf.show_kernel_path && map->dso->long_name)
314 dsoname = map->dso->long_name; 314 dsoname = map->dso->long_name;
315 else if (map->dso->name) 315 else
316 dsoname = map->dso->name; 316 dsoname = map->dso->name;
317 } 317 }
318 if (!hv_stores(elem, "dso", newSVpv(dsoname,0))) { 318 if (!hv_stores(elem, "dso", newSVpv(dsoname,0))) {
@@ -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