kselftests: Add tests for the preemptoff and irqsoff tracers
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 11 Jul 2018 06:35:40 +0000 (23:35 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 26 Jul 2018 14:50:17 +0000 (10:50 -0400)
commit8bd1369b4c2b532865b706c97f1a8ae4c6a36a71
tree8d7611205aeed604ada06050bf8933c338513ac3
parentf96e8577da1026c344e49c75111303888d225389
kselftests: Add tests for the preemptoff and irqsoff tracers

Here we add unit tests for the preemptoff and irqsoff tracer by using a
kernel module introduced previously to trigger long preempt or irq
disabled sections in the kernel.

Link: http://lkml.kernel.org/r/20180711063540.91101-3-joel@joelfernandes.org
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/config
tools/testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc [new file with mode: 0644]