]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ftrace: Add clear_dynamic_events() to test cases
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Aug 2021 15:26:07 +0000 (11:26 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 20 Aug 2021 18:19:27 +0000 (14:19 -0400)
commit8ecf562d5ad4bb8c8c0286a4a852faff30aa13c7
treee17c7a4241246633207aed1fa8702801c6b5eb56
parent1a327be3f20f80fd0005ee3fc6a60af392f01c52
selftests/ftrace: Add clear_dynamic_events() to test cases

Add a function to remove all dynamic events from the tracing directory. It
requires a loop as some of the dynamic events may depend on others being
removed first. Also add a safety that prevents it from looping infinitely
due to a bug where an event never gets removed.

Link: https://lkml.kernel.org/r/20210819152825.348941368@goodmis.org
Cc: "Tzvetomir Stoyanov" <tz.stoyanov@gmail.com>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/functions