diff options
| author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-05-16 13:51:28 -0400 |
|---|---|---|
| committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-17 21:55:04 -0400 |
| commit | b172296b90b799c8b634521c248e9316581c8154 (patch) | |
| tree | b875daed78333d5df395907b5d1afafe416fa1d4 | |
| parent | d2ffb8d3cc3458e2102b2f067a2e82c84947deea (diff) | |
selftests/ftrace: Add test to remove instance with active event triggers
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>
| -rw-r--r-- | tools/testing/selftests/ftrace/test.d/instances/instance-event.tc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc index 4c5a061a5b4e..c73db7863adb 100644 --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc | |||
| @@ -75,9 +75,13 @@ rmdir foo | |||
| 75 | if [ -d foo ]; then | 75 | if [ -d foo ]; then |
| 76 | fail "foo still exists" | 76 | fail "foo still exists" |
| 77 | fi | 77 | fi |
| 78 | exit 0 | ||
| 79 | |||
| 80 | 78 | ||
| 79 | mkdir foo | ||
| 80 | echo "schedule:enable_event:sched:sched_switch" > foo/set_ftrace_filter | ||
| 81 | rmdir foo | ||
| 82 | if [ -d foo ]; then | ||
| 83 | fail "foo still exists" | ||
| 84 | fi | ||
| 81 | 85 | ||
| 82 | 86 | ||
| 83 | instance_slam() { | 87 | instance_slam() { |
