summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2018-08-30 23:15:16 +0900
committerShuah Khan (Samsung OSG) <shuah@kernel.org>2018-10-24 14:49:35 -0600
commit9768cc46d39a029f7da47beea449d023b377103d (patch)
treedf02aa1dbdbfe722780b4d8d78d334dbd8af196e /tools
parent3a96a9d0a4e985e80280357393d86ff4401eeff7 (diff)
downloadlinux-stable-9768cc46d39a029f7da47beea449d023b377103d.tar.gz
linux-stable-9768cc46d39a029f7da47beea449d023b377103d.tar.bz2
linux-stable-9768cc46d39a029f7da47beea449d023b377103d.zip
selftests/ftrace: Cleanup ftrace after running test
Cleanup ftrace by initialize_ftrace() after running all test cases. This means we also don't need cleanup ftrace on each test case, except for some special options. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/ftrace/ftracetest1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
index 3ca596255eff..5c71d58febb2 100755
--- a/tools/testing/selftests/ftrace/ftracetest
+++ b/tools/testing/selftests/ftrace/ftracetest
@@ -341,6 +341,7 @@ for t in $TEST_CASES; do
exit 1
fi
done
+(cd $TRACING_DIR; initialize_ftrace) # for cleanup
prlog ""
prlog "# of passed: " `echo $PASSED_CASES | wc -w`