linux/arch/riscv/kernel/tests
Nam Cao 0d4a777c4c riscv: kprobes: add test case for c.jal instruction simulation
Add a test case validating that kprobes correctly simulates the
c.jal instruction on RV32.

The test uses two probe points: a forward c.jal and a backward
c.jal, and verifies that the containing function returns the
expected magic value KPROBE_TEST_MAGIC after kprobe interception.

Co-developed-by: Xiaofeng Yuan <xiaofengmian@163.com>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Xiaofeng Yuan <xiaofengmian@163.com>
Reviewed-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
Tested-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
Link: https://patch.msgid.link/20260701081033.49871-3-xiaofengmian@163.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2026-08-07 19:24:29 -06:00
..
kprobes riscv: kprobes: add test case for c.jal instruction simulation 2026-08-07 19:24:29 -06:00
module_test Support rv32 ULEB128 test 2023-12-06 04:08:39 -08:00
Kconfig.debug riscv: tests: Make RISCV_KPROBES_KUNIT tristate 2025-10-27 18:49:34 -06:00
Makefile riscv: Add kprobes KUnit test 2025-09-16 16:25:51 -06:00