Skip to content

Commit 3308172

Browse files
Jinjie Ruanpalmer-dabbelt
authored andcommitted
trace: riscv: Remove deprecated kprobe on ftrace support
Since commit 7caa976 ("ftrace: riscv: move from REGS to ARGS"), kprobe on ftrace is not supported by riscv, because riscv's support for FTRACE_WITH_REGS has been replaced with support for FTRACE_WITH_ARGS, and KPROBES_ON_FTRACE will be supplanted by FPROBES. So remove the deprecated kprobe on ftrace support, which is misunderstood. Signed-off-by: Jinjie Ruan <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent b9a603d commit 3308172

File tree

3 files changed

+0
-67
lines changed

3 files changed

+0
-67
lines changed

arch/riscv/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ config RISCV
154154
select HAVE_KERNEL_UNCOMPRESSED if !XIP_KERNEL && !EFI_ZBOOT
155155
select HAVE_KERNEL_ZSTD if !XIP_KERNEL && !EFI_ZBOOT
156156
select HAVE_KPROBES if !XIP_KERNEL
157-
select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL
158157
select HAVE_KRETPROBES if !XIP_KERNEL
159158
# https://github.com/ClangBuiltLinux/linux/issues/1881
160159
select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD

arch/riscv/kernel/probes/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-$(CONFIG_KPROBES) += kprobes.o decode-insn.o simulate-insn.o
33
obj-$(CONFIG_RETHOOK) += rethook.o rethook_trampoline.o
4-
obj-$(CONFIG_KPROBES_ON_FTRACE) += ftrace.o
54
obj-$(CONFIG_UPROBES) += uprobes.o decode-insn.o simulate-insn.o
65
CFLAGS_REMOVE_simulate-insn.o = $(CC_FLAGS_FTRACE)
76
CFLAGS_REMOVE_rethook.o = $(CC_FLAGS_FTRACE)

arch/riscv/kernel/probes/ftrace.c

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)