Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: Fix ftrace syscall handling which are now prefixed with __riscv_
ftrace creates entries for each syscall in the tracefs but has failed since commit 08d0ce3 ("riscv: Implement syscall wrappers") which prefixes all riscv syscalls with __riscv_. So fix this by implementing arch_syscall_match_sym_name() which allows us to ignore this prefix. And also ignore compat syscalls like x86/arm64 by implementing arch_trace_is_compat_syscall(). Fixes: 08d0ce3 ("riscv: Implement syscall wrappers") Signed-off-by: Alexandre Ghiti <[email protected]> Reviewed-by: Sami Tolvanen <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Tested-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
- Loading branch information