diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-05-23 15:09:01 +0900 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-06-07 11:00:08 -0600 |
commit | 565d557603231468ab71c74df383da42dc72b334 (patch) | |
tree | 95b31a33870bc502fa12e737a5a7d4904c1a10b7 /tools | |
parent | 1917d2c82bc4ba121b16c4afcaf0c3723c36bf4e (diff) | |
download | blackbird-op-linux-565d557603231468ab71c74df383da42dc72b334.tar.gz blackbird-op-linux-565d557603231468ab71c74df383da42dc72b334.zip |
selftests/ftrace: Use top-level available_filter_function
Use top-level available_filter_function if the test case
is running under an instance.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc index c8e02ec01eaf..1b0817bfa286 100644 --- a/tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc @@ -63,6 +63,10 @@ fi # powerpc uses .schedule func="schedule" +available_file=available_filter_functions +if [ -d ../../instances -a -f ../../available_filter_functions ]; then + available_file=../../available_filter_functions +fi x=`grep '^\.schedule$' available_filter_functions | wc -l` if [ "$x" -eq 1 ]; then func=".schedule" |