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>
This commit is contained in:
Masami Hiramatsu 2017-05-23 15:09:01 +09:00 committed by Shuah Khan
parent 1917d2c82b
commit 565d557603
1 changed files with 4 additions and 0 deletions

View File

@ -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"