Skip to content

Commit 1a6c459

Browse files
captain5050acmel
authored andcommitted
perf libunwind: Fix calls to thread__e_machine()
Add the missing 'e_flags' option to fix the build. Fixes: 4e66527 ("perf thread: Add optional e_flags output argument to thread__e_machine") Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 5d1ab65 commit 1a6c459

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tools/perf/util/unwind-libunwind-local.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ static int access_mem(unw_addr_space_t __maybe_unused as,
584584
}
585585

586586
ret = perf_reg_value(&start, perf_sample__user_regs(ui->sample),
587-
perf_arch_reg_sp(thread__e_machine(ui->thread, ui->machine)));
587+
perf_arch_reg_sp(thread__e_machine(ui->thread,
588+
ui->machine,
589+
/*e_flags=*/NULL)));
588590
if (ret)
589591
return ret;
590592

@@ -733,7 +735,7 @@ static void _unwind__finish_access(struct maps *maps)
733735
static int get_entries(struct unwind_info *ui, unwind_entry_cb_t cb,
734736
void *arg, int max_stack)
735737
{
736-
uint16_t e_machine = thread__e_machine(ui->thread, ui->machine);
738+
uint16_t e_machine = thread__e_machine(ui->thread, ui->machine, /*e_flags=*/NULL);
737739
u64 val;
738740
unw_word_t ips[max_stack];
739741
unw_addr_space_t addr_space;

0 commit comments

Comments
 (0)