Lines Matching +full:module +full:- +full:instance
1 // SPDX-License-Identifier: GPL-2.0
3 * Test module for in-kernel kprobe event creation and generation.
8 #include <linux/module.h>
12 * This module is a simple test of basic functionality for in-kernel
20 * To test, select CONFIG_KPROBE_EVENT_GEN_TEST and build the module.
29 * To remove the events, remove the module:
94 return -ENOMEM; in test_gen_kprobe_cmd()
124 * the instance and event from disappearing from underneath in test_gen_kprobe_cmd()
126 * we're using the top-level instance which never goes away). in test_gen_kprobe_cmd()
136 ret = trace_array_set_clr_event(gen_kprobe_test->tr, in test_gen_kprobe_cmd()
165 return -ENOMEM; in test_gen_kretprobe_cmd()
188 * prevent the instance and event from disappearing from in test_gen_kretprobe_cmd()
190 * this case we're using the top-level instance which never in test_gen_kretprobe_cmd()
201 ret = trace_array_set_clr_event(gen_kretprobe_test->tr, in test_gen_kretprobe_cmd()
229 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_init()
244 WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, in kprobe_event_gen_test_exit()
248 /* Now give the file and instance back */ in kprobe_event_gen_test_exit()
258 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_exit()
262 /* Now give the file and instance back */ in kprobe_event_gen_test_exit()