diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-02-14 11:16:41 -0800 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-02-14 12:33:41 -0800 |
commit | 20600b8aab734877740d5292c0cdd5ccb6c7beb7 (patch) | |
tree | 94d871f1bdcc3a63de11ab7152f8f44bf5be1ada /tools/perf/arch/arm/tests | |
parent | d18c882f85745f3c622e74b93151514b745de2ca (diff) |
perf tools: Fix compile error on sample->user_regs
It's recently changed to allocate dynamically but misses to update some
arch-dependent codes to use perf_sample__user_regs().
Fixes: dc6d2bc2d893a878 ("perf sample: Make user_regs and intr_regs optional")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250214191641.756664-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/arch/arm/tests')
-rw-r--r-- | tools/perf/arch/arm/tests/dwarf-unwind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/arm/tests/dwarf-unwind.c b/tools/perf/arch/arm/tests/dwarf-unwind.c index 9bc304cb7762..f421910e0709 100644 --- a/tools/perf/arch/arm/tests/dwarf-unwind.c +++ b/tools/perf/arch/arm/tests/dwarf-unwind.c @@ -45,7 +45,7 @@ static int sample_ustack(struct perf_sample *sample, int test__arch_unwind_sample(struct perf_sample *sample, struct thread *thread) { - struct regs_dump *regs = &sample->user_regs; + struct regs_dump *regs = perf_sample__user_regs(sample); u64 *buf; buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); |