]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/ftrace: Have pid filter test use instance flag
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 31 Jan 2020 02:45:27 +0000 (21:45 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 11 Feb 2020 00:59:44 +0000 (17:59 -0700)
commit465be9d784174178903a341378d789582a9ed935
tree8cf256e6f22652da739c9e2be2ff94115c603b21
parentf2a8957e09c48dd4def40140ae119488b087f98c
selftests/ftrace: Have pid filter test use instance flag

While running the ftracetests, the pid filter test failed because the
instance "foo" existed, and it was using it to rerun the test under a
instance named foo. The collision caused the test to fail as the mkdir
failed as the name already existed.

As of commit 0cead69832c7e ("selftests: ftrace: Allow some tests to be run
in a tracing instance") all a selftest needs to do to be tested in an
instance is to set the "instance" flag. There's no reason a selftest needs
to create an instance to run its test in an instance directly.

Remove the open coded testing in an instance for the pid filter test and
have it set the "instance" flag instead.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc