]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests/ftrace: Add test to remove instance with active event triggers
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 16 May 2017 17:51:28 +0000 (23:21 +0530)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 18 May 2017 01:55:04 +0000 (21:55 -0400)
Add a test to ensure we clean up properly when removing an instance
with active event triggers.

Link: http://lkml.kernel.org/r/c479465b2009397708d6c52c8561e1523c22cd31.1494956770.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc

index 4c5a061a5b4e6d522396714de21f64b871e23ab4..c73db7863adbf41b51bd6b88ca79881801d59943 100644 (file)
@@ -75,9 +75,13 @@ rmdir foo
 if [ -d foo ]; then
         fail "foo still exists"
 fi
-exit 0
-
 
+mkdir foo
+echo "schedule:enable_event:sched:sched_switch" > foo/set_ftrace_filter
+rmdir foo
+if [ -d foo ]; then
+        fail "foo still exists"
+fi
 
 
 instance_slam() {