selftests: ftrace: Add check for function-fork before running pid filter test
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 18 Apr 2017 16:32:21 +0000 (12:32 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 18 Apr 2017 16:46:11 +0000 (12:46 -0400)
commit9ed19c7695670d00455c1de4682d5c7f14618689
treea4e464cae11cfdae058461768145de08321cdac7
parent093be89a12c8724883ac803420cba8b08a947d3b
selftests: ftrace: Add check for function-fork before running pid filter test

Have the func-filter-pid test check for the function-fork option before
testing it. It can still test the pid filtering, but will stop before
testing the function-fork option for children inheriting the pids.
This allows the test to be added before the function-fork feature, but after
a bug fix that triggers one of the bugs the test can cause.

Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc