aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r--tools/perf/util/machine.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index 08e63fdbd14f..fd192e4885cc 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -1464,13 +1464,12 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
1464 entry->map, entry->sym); 1464 entry->map, entry->sym);
1465} 1465}
1466 1466
1467int machine__resolve_callchain(struct machine *machine, 1467int thread__resolve_callchain(struct thread *thread,
1468 struct perf_evsel *evsel, 1468 struct perf_evsel *evsel,
1469 struct thread *thread, 1469 struct perf_sample *sample,
1470 struct perf_sample *sample, 1470 struct symbol **parent,
1471 struct symbol **parent, 1471 struct addr_location *root_al,
1472 struct addr_location *root_al, 1472 int max_stack)
1473 int max_stack)
1474{ 1473{
1475 int ret = thread__resolve_callchain_sample(thread, sample->callchain, 1474 int ret = thread__resolve_callchain_sample(thread, sample->callchain,
1476 parent, root_al, max_stack); 1475 parent, root_al, max_stack);
@@ -1487,7 +1486,7 @@ int machine__resolve_callchain(struct machine *machine,
1487 (!sample->user_stack.size)) 1486 (!sample->user_stack.size))
1488 return 0; 1487 return 0;
1489 1488
1490 return unwind__get_entries(unwind_entry, &callchain_cursor, machine, 1489 return unwind__get_entries(unwind_entry, &callchain_cursor, thread->mg->machine,
1491 thread, sample, max_stack); 1490 thread, sample, max_stack);
1492 1491
1493} 1492}