]> git.ipfire.org Git - thirdparty/linux.git/commit
perf test java symbol: Additional libperf-jvmti.so path check
authorIan Rogers <irogers@google.com>
Fri, 5 Dec 2025 19:01:35 +0000 (11:01 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 6 Jan 2026 22:06:00 +0000 (19:06 -0300)
commit1ec205e3669c12dfb0adbd2d7099922c195b46ff
treed9fced03ef95a7e263719b102fdf5792c131147b
parentb04d2b9199129f4f0c992a518c0fb78c2efc1064
perf test java symbol: Additional libperf-jvmti.so path check

If perf is built into an output directory then so is
libperf-jvmti.so.

If `perf test` is run from that directory then PWD needn't also be that
directory meaning libperf-jvmti.so won't be found and the test skipped.

Add an additional check for libperf-jvmti.so in the same directory as
the perf binary for this case, this avoids the test skipping.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: 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: Leo Yan <leo.yan@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/test_java_symbol.sh