diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 7c88a243b5db..d61825371adc 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -69,8 +69,8 @@ static int perf_report__add_branch_hist_entry(struct perf_tool *tool, | |||
69 | 69 | ||
70 | if ((sort__has_parent || symbol_conf.use_callchain) | 70 | if ((sort__has_parent || symbol_conf.use_callchain) |
71 | && sample->callchain) { | 71 | && sample->callchain) { |
72 | err = machine__resolve_callchain(machine, al->thread, | 72 | err = machine__resolve_callchain(machine, evsel, al->thread, |
73 | sample->callchain, &parent); | 73 | sample, &parent); |
74 | if (err) | 74 | if (err) |
75 | return err; | 75 | return err; |
76 | } | 76 | } |
@@ -140,8 +140,8 @@ static int perf_evsel__add_hist_entry(struct perf_evsel *evsel, | |||
140 | struct hist_entry *he; | 140 | struct hist_entry *he; |
141 | 141 | ||
142 | if ((sort__has_parent || symbol_conf.use_callchain) && sample->callchain) { | 142 | if ((sort__has_parent || symbol_conf.use_callchain) && sample->callchain) { |
143 | err = machine__resolve_callchain(machine, al->thread, | 143 | err = machine__resolve_callchain(machine, evsel, al->thread, |
144 | sample->callchain, &parent); | 144 | sample, &parent); |
145 | if (err) | 145 | if (err) |
146 | return err; | 146 | return err; |
147 | } | 147 | } |
@@ -397,17 +397,17 @@ static int __cmd_report(struct perf_report *rep) | |||
397 | desc); | 397 | desc); |
398 | } | 398 | } |
399 | 399 | ||
400 | if (dump_trace) { | ||
401 | perf_session__fprintf_nr_events(session, stdout); | ||
402 | goto out_delete; | ||
403 | } | ||
404 | |||
405 | if (verbose > 3) | 400 | if (verbose > 3) |
406 | perf_session__fprintf(session, stdout); | 401 | perf_session__fprintf(session, stdout); |
407 | 402 | ||
408 | if (verbose > 2) | 403 | if (verbose > 2) |
409 | perf_session__fprintf_dsos(session, stdout); | 404 | perf_session__fprintf_dsos(session, stdout); |
410 | 405 | ||
406 | if (dump_trace) { | ||
407 | perf_session__fprintf_nr_events(session, stdout); | ||
408 | goto out_delete; | ||
409 | } | ||
410 | |||
411 | nr_samples = 0; | 411 | nr_samples = 0; |
412 | list_for_each_entry(pos, &session->evlist->entries, node) { | 412 | list_for_each_entry(pos, &session->evlist->entries, node) { |
413 | struct hists *hists = &pos->hists; | 413 | struct hists *hists = &pos->hists; |