aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r--tools/perf/util/session.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index c3e399bcf18d..6b305fbcc986 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -289,7 +289,6 @@ struct branch_info *machine__resolve_bstack(struct machine *self,
289} 289}
290 290
291int machine__resolve_callchain(struct machine *self, 291int machine__resolve_callchain(struct machine *self,
292 struct perf_evsel *evsel __used,
293 struct thread *thread, 292 struct thread *thread,
294 struct ip_callchain *chain, 293 struct ip_callchain *chain,
295 struct symbol **parent) 294 struct symbol **parent)
@@ -1449,7 +1448,7 @@ size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp)
1449 ret += hists__fprintf_nr_events(&session->hists, fp); 1448 ret += hists__fprintf_nr_events(&session->hists, fp);
1450 1449
1451 list_for_each_entry(pos, &session->evlist->entries, node) { 1450 list_for_each_entry(pos, &session->evlist->entries, node) {
1452 ret += fprintf(fp, "%s stats:\n", event_name(pos)); 1451 ret += fprintf(fp, "%s stats:\n", perf_evsel__name(pos));
1453 ret += hists__fprintf_nr_events(&pos->hists, fp); 1452 ret += hists__fprintf_nr_events(&pos->hists, fp);
1454 } 1453 }
1455 1454
@@ -1490,8 +1489,8 @@ struct perf_evsel *perf_session__find_first_evtype(struct perf_session *session,
1490} 1489}
1491 1490
1492void perf_event__print_ip(union perf_event *event, struct perf_sample *sample, 1491void perf_event__print_ip(union perf_event *event, struct perf_sample *sample,
1493 struct machine *machine, struct perf_evsel *evsel, 1492 struct machine *machine, int print_sym,
1494 int print_sym, int print_dso, int print_symoffset) 1493 int print_dso, int print_symoffset)
1495{ 1494{
1496 struct addr_location al; 1495 struct addr_location al;
1497 struct callchain_cursor_node *node; 1496 struct callchain_cursor_node *node;
@@ -1505,7 +1504,7 @@ void perf_event__print_ip(union perf_event *event, struct perf_sample *sample,
1505 1504
1506 if (symbol_conf.use_callchain && sample->callchain) { 1505 if (symbol_conf.use_callchain && sample->callchain) {
1507 1506
1508 if (machine__resolve_callchain(machine, evsel, al.thread, 1507 if (machine__resolve_callchain(machine, al.thread,
1509 sample->callchain, NULL) != 0) { 1508 sample->callchain, NULL) != 0) {
1510 if (verbose) 1509 if (verbose)
1511 error("Failed to resolve callchain. Skipping\n"); 1510 error("Failed to resolve callchain. Skipping\n");