Lines Matching +full:module +full:- +full:instance
1 // SPDX-License-Identifier: GPL-2.0
3 * Test module for in-kernel synthetic event creation and generation.
8 #include <linux/module.h>
12 * This module is a simple test of basic functionality for in-kernel
21 * To test, select CONFIG_SYNTH_EVENT_GEN_TEST and build the module.
27 * You should see several events in the trace buffer -
31 * To remove the events, remove the module:
55 return -ENOMEM; in test_gen_synth_cmd()
92 * the instance and event from disappearing from underneath in test_gen_synth_cmd()
94 * we're using the top-level instance which never goes away). in test_gen_synth_cmd()
104 ret = trace_array_set_clr_event(gen_synth_test->tr, in test_gen_synth_cmd()
146 return -ENOMEM; in test_empty_synth_event()
196 * prevent the instance and event from disappearing from in test_empty_synth_event()
198 * this case we're using the top-level instance which never in test_empty_synth_event()
209 ret = trace_array_set_clr_event(empty_synth_test->tr, in test_empty_synth_event()
268 * prevent the instance and event from disappearing from in test_create_synth_event()
270 * this case we're using the top-level instance which never in test_create_synth_event()
281 ret = trace_array_set_clr_event(create_synth_test->tr, in test_create_synth_event()
448 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
458 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
464 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
482 trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
485 trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
488 trace_array_set_clr_event(create_synth_test->tr, in synth_event_gen_test_init()
498 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_exit()
502 /* Now give the file and instance back */ in synth_event_gen_test_exit()
509 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_exit()
513 /* Now give the file and instance back */ in synth_event_gen_test_exit()
520 WARN_ON(trace_array_set_clr_event(create_synth_test->tr, in synth_event_gen_test_exit()
524 /* Now give the file and instance back */ in synth_event_gen_test_exit()