diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 68cd61ef6ac5..e45a1ba61722 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -783,8 +783,10 @@ static void perf_event__process_sample(struct perf_tool *tool, | |||
783 | 783 | ||
784 | if ((sort__has_parent || symbol_conf.use_callchain) && | 784 | if ((sort__has_parent || symbol_conf.use_callchain) && |
785 | sample->callchain) { | 785 | sample->callchain) { |
786 | err = machine__resolve_callchain(machine, al.thread, | 786 | err = machine__resolve_callchain(machine, evsel, |
787 | sample->callchain, &parent); | 787 | al.thread, sample, |
788 | &parent); | ||
789 | |||
788 | if (err) | 790 | if (err) |
789 | return; | 791 | return; |
790 | } | 792 | } |