]> www.infradead.org Git - users/willy/linux.git/commit
riscv: Add tracepoints for SBI calls and returns
authorSamuel Holland <samuel.holland@sifive.com>
Thu, 21 Mar 2024 23:01:25 +0000 (16:01 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 10 Jul 2024 20:23:09 +0000 (13:23 -0700)
commit56c1c1a09ab93c7b7c957860f01f8600d6c03143
tree2de1ee4eedb2fcb0665371e3114b5371f245225d
parenta43fe27d650375cd9e5ea915c538f6f9eabd185e
riscv: Add tracepoints for SBI calls and returns

These are useful for measuring the latency of SBI calls. The SBI HSM
extension is excluded because those functions are called from contexts
such as cpuidle where instrumentation is not allowed.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240321230131.1838105-1-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/trace.h [new file with mode: 0644]
arch/riscv/kernel/sbi.c