From: Masami Hiramatsu Date: Tue, 23 May 2017 06:09:01 +0000 (+0900) Subject: selftests/ftrace: Use top-level available_filter_function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=565d557603231468ab71c74df383da42dc72b334;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Shuah Khan --- 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"