[PATCH 5.10 283/390] tracing: kprobe: Fix kprobe event gen test module on exit
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Mon Oct 24 04:31:20 PDT 2022
From: Yipeng Zou <zouyipeng at huawei.com>
[ Upstream commit ac48e189527fae87253ef2bf58892e782fb36874 ]
Correct gen_kretprobe_test clr event para on module exit.
This will make it can't to delete.
Link: https://lkml.kernel.org/r/20220919125629.238242-2-zouyipeng@huawei.com
Cc: <linux-riscv at lists.infradead.org>
Cc: <mingo at redhat.com>
Cc: <paul.walmsley at sifive.com>
Cc: <palmer at dabbelt.com>
Cc: <aou at eecs.berkeley.edu>
Cc: <zanussi at kernel.org>
Cc: <liaochang1 at huawei.com>
Cc: <chris.zjh at huawei.com>
Fixes: 64836248dda2 ("tracing: Add kprobe event command generation test module")
Signed-off-by: Yipeng Zou <zouyipeng at huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat at kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt at goodmis.org>
Signed-off-by: Sasha Levin <sashal at kernel.org>
---
kernel/trace/kprobe_event_gen_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/kprobe_event_gen_test.c b/kernel/trace/kprobe_event_gen_test.c
index 18b0f1cbb947..e023154be0f8 100644
--- a/kernel/trace/kprobe_event_gen_test.c
+++ b/kernel/trace/kprobe_event_gen_test.c
@@ -206,7 +206,7 @@ static void __exit kprobe_event_gen_test_exit(void)
WARN_ON(kprobe_event_delete("gen_kprobe_test"));
/* Disable the event or you can't remove it */
- WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr,
+ WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr,
"kprobes",
"gen_kretprobe_test", false));
--
2.35.1
More information about the linux-riscv
mailing list