Skip to content

Commit d115084

Browse files
committed
perf test trace: Use shell's -f flag to check if vmlinux exists
JIRA: https://issues.redhat.com/browse/RHEL-78200 upstream ======== commit 6612d4d Author: Howard Chu <[email protected]> Date: Wed May 28 12:11:43 2025 -0700 description =========== To match the style of the existing codebase, no functional changes were applied. Signed-off-by: Howard Chu <[email protected]> Tested-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Anubhav Shelat <[email protected]>
1 parent 47010c0 commit d115084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/tests/shell/trace_btf_enum.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ skip_if_no_perf_trace || exit 2
1717

1818
check_vmlinux() {
1919
echo "Checking if vmlinux exists"
20-
if ! ls /sys/kernel/btf/vmlinux 1>/dev/null 2>&1
20+
if [ ! -f /sys/kernel/btf/vmlinux ]
2121
then
2222
echo "trace+enum test [Skipped missing vmlinux BTF support]"
2323
err=2

0 commit comments

Comments
 (0)