]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
selftests/ftrace: Use top-level available_filter_function
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 23 May 2017 06:09:01 +0000 (15:09 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 7 Jun 2017 17:00:08 +0000 (11:00 -0600)
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>
tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc

index c8e02ec01eaf25640a4471dc522b4bb8916c2130..1b0817bfa2865a22865df11319111561fe81ab80 100644 (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"