perf test shell diff: Skip test if test_loop symbol is missing in the perf binary
authorIan Rogers <irogers@google.com>
Tue, 5 Dec 2023 16:49:24 +0000 (08:49 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Dec 2023 16:01:36 +0000 (13:01 -0300)
commit407a3898d72ee0020b8cc9dd28b88c8eb8d68214
tree7526c6b78563bd2f1ae3d22a877302eaae5008d1
parentd0acce68285e8645038a72c6792483160ca36e5a
perf test shell diff: Skip test if test_loop symbol is missing in the perf binary

The diff test depends on finding the symbol test_loop in perf and will
fail if perf has been stripped and no debug object is available. In that
case, skip the test instead.

Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231205164924.835682-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/diff.sh