Skip to content

Commit 6612d4d

Browse files
Sbermnamhyung
authored andcommitted
perf test trace: Use shell's -f flag to check if vmlinux exists
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]>
1 parent 46e3464 commit 6612d4d

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)