]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf test: Skip dlfilter test for build failures
authorNamhyung Kim <namhyung@kernel.org>
Fri, 19 Dec 2025 01:18:17 +0000 (17:18 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Jan 2026 20:21:30 +0000 (17:21 -0300)
For some reason, it may fail to build the dlfilter.  Let's skip the test
as it's not an error in the perf.  This can happen when you run the perf
test without source code or in a different directory.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/script_dlfilter.sh

index 45c97d4a7d5f90e84bd7517f39c6c8fa97d89b7e..7895ab0309b29dd5f082296c43ee580394cff2a4 100755 (executable)
@@ -70,15 +70,15 @@ test_dlfilter() {
        # Build the dlfilter
        if ! cc -c -I tools/perf/include -fpic -x c "${dlfilter_c}" -o "${dlfilter_so}.o"
        then
-               echo "Basic --dlfilter test [Failed to build dlfilter object]"
-               err=1
+               echo "Basic --dlfilter test [Skip - failed to build dlfilter object]"
+               err=2
                return
        fi
 
        if ! cc -shared -o "${dlfilter_so}" "${dlfilter_so}.o"
        then
-               echo "Basic --dlfilter test [Failed to link dlfilter shared object]"
-               err=1
+               echo "Basic --dlfilter test [Skip - failed to link dlfilter shared object]"
+               err=2
                return
        fi