Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf libunwind: Fix calls to thread__e_machine()

Add the missing 'e_flags' option to fix the build.

Fixes: 4e66527f8859a661 ("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>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
1a6c4596 5d1ab659

+4 -2
+4 -2
tools/perf/util/unwind-libunwind-local.c
··· 584 584 } 585 585 586 586 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))); 588 590 if (ret) 589 591 return ret; 590 592 ··· 735 733 static int get_entries(struct unwind_info *ui, unwind_entry_cb_t cb, 736 734 void *arg, int max_stack) 737 735 { 738 - uint16_t e_machine = thread__e_machine(ui->thread, ui->machine); 736 + uint16_t e_machine = thread__e_machine(ui->thread, ui->machine, /*e_flags=*/NULL); 739 737 u64 val; 740 738 unw_word_t ips[max_stack]; 741 739 unw_addr_space_t addr_space;