Skip to content

Commit 9fe41ef

Browse files
Tom Zanussirostedt
Tom Zanussi
authored andcommitted
tracing: Add synth event generation test module
Add a test module that checks the basic functionality of the in-kernel synthetic event generation API by generating and tracing synthetic events from a module. Link: http://lkml.kernel.org/r/fcb4dd9eb9eefb70ab20538d3529d51642389664.1580323897.git.zanussi@kernel.org Acked-by: Masami Hiramatsu <[email protected]> Signed-off-by: Tom Zanussi <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 8dcc53a commit 9fe41ef

File tree

3 files changed

+537
-0
lines changed

3 files changed

+537
-0
lines changed

kernel/trace/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,19 @@ config PREEMPTIRQ_DELAY_TEST
774774

775775
If unsure, say N
776776

777+
config SYNTH_EVENT_GEN_TEST
778+
tristate "Test module for in-kernel synthetic event generation"
779+
depends on HIST_TRIGGERS
780+
help
781+
This option creates a test module to check the base
782+
functionality of in-kernel synthetic event definition and
783+
generation.
784+
785+
To test, insert the module, and then check the trace buffer
786+
for the generated sample events.
787+
788+
If unsure, say N.
789+
777790
config TRACE_EVAL_MAP_FILE
778791
bool "Show eval mappings for trace events"
779792
depends on TRACING

kernel/trace/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ obj-$(CONFIG_TRACING) += trace_stat.o
4444
obj-$(CONFIG_TRACING) += trace_printk.o
4545
obj-$(CONFIG_TRACING_MAP) += tracing_map.o
4646
obj-$(CONFIG_PREEMPTIRQ_DELAY_TEST) += preemptirq_delay_test.o
47+
obj-$(CONFIG_SYNTH_EVENT_GEN_TEST) += synth_event_gen_test.o
4748
obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
4849
obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
4950
obj-$(CONFIG_PREEMPTIRQ_TRACEPOINTS) += trace_preemptirq.o

0 commit comments

Comments
 (0)