tracing: kprobe: Fix kprobe event gen test module on exit
authorYipeng Zou <zouyipeng@huawei.com>
Mon, 19 Sep 2022 12:56:28 +0000 (20:56 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 26 Sep 2022 20:04:29 +0000 (16:04 -0400)
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@lists.infradead.org>
Cc: <mingo@redhat.com>
Cc: <paul.walmsley@sifive.com>
Cc: <palmer@dabbelt.com>
Cc: <aou@eecs.berkeley.edu>
Cc: <zanussi@kernel.org>
Cc: <liaochang1@huawei.com>
Cc: <chris.zjh@huawei.com>
Fixes: 64836248dda2 ("tracing: Add kprobe event command generation test module")
Signed-off-by: Yipeng Zou <zouyipeng@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/kprobe_event_gen_test.c

index 18b0f1c..e023154 100644 (file)
@@ -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));