[PATCH 0/2] perf: tests: Fix object code reading test for riscv
Charlie Jenkins
charlie at rivosinc.com
Mon Dec 16 23:12:50 UTC 2024
There was a breaking change to binutils objdump that causes partial
instructions to no longer be dumped. This behavior is different from
what the "Object code reading" test expects. Add a Kconfig variable that
checks the version of objdump and conditionally enables the perf test
fix for riscv objdump versions effected by this issue.
A binutils patch has been sent as well to fix this in objdump [1].
Link:
https://sourceware.org/pipermail/binutils/2024-December/138139.html [1]
To:
Signed-off-by: Charlie Jenkins <charlie at rivosinc.com>
---
Charlie Jenkins (2):
kbuild: Check version of objdump
tools: perf: tests: Fix code reading for riscv
arch/riscv/Kconfig | 5 +++
init/Kconfig | 10 ++++++
scripts/Kconfig.include | 6 ++++
scripts/objdump-version.sh | 69 +++++++++++++++++++++++++++++++++++++++++
tools/perf/tests/code-reading.c | 17 +++++++++-
5 files changed, 106 insertions(+), 1 deletion(-)
---
base-commit: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
change-id: 20241213-perf_fix_riscv_obj_reading-cabf02be3c85
--
- Charlie
More information about the Linux-security-module-archive
mailing list