diff options
| author | Ravi Bangoria <[email protected]> | 2025-11-13 16:01:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2025-11-13 20:17:41 +0000 |
| commit | d0206db94b36c998c11458cfdae2f45ba20bc4fb (patch) | |
| tree | 41adf6f7977186af6e06f467578178bac8d3cb94 /lib/mpi/mpi-mod.c | |
| parent | tools headers UAPI: Sync KVM's vmx.h with the kernel to pick SEAMCALL exit re... (diff) | |
| download | kernel-d0206db94b36c998c11458cfdae2f45ba20bc4fb.tar.gz kernel-d0206db94b36c998c11458cfdae2f45ba20bc4fb.zip | |
perf lock: Fix segfault due to missing kernel map
Kernel maps are encoded in PERF_RECORD_MMAP2 samples but "perf lock
report" and "perf lock contention" do not process MMAP2 samples.
Because of that, machine->vmlinux_map stays NULL and any later access
triggers a segmentation fault.
Fix it by adding ->mmap2() callbacks.
Fixes: 53b00ff358dc75b1 ("perf record: Make --buildid-mmap the default")
Reported-by: Tycho Andersen (AMD) <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: Ravi Bangoria <[email protected]>
Tested-by: Tycho Andersen (AMD) <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ananth Narayan <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: James Clark <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sandipan Das <[email protected]>
Cc: Santosh Shukla <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
