From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 2/2] perf test make: Add BPF skeleton build tests for clang and bpf-gcc
Date: Tue, 13 Oct 2026 23:24:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-170636@kernel.org> (raw)
In-Reply-To: <20261013231430.2163505-3-irogers@google.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] perf: bpf_skel test skipped due to missing pkg-config for OpenSSL
- [Low] perf/tests: bash negation operator ! masks test framework crashes
--
commit b1fbd7e0bcb15ba961fd484277db525d4021ba13
Author: Ian Rogers <irogers@google.com>
perf test make: Add BPF skeleton build tests for clang and bpf-gcc
Add make_bpf_skel_clang (CLANG=clang BPF_GCC=) and make_bpf_skel_bpf_gcc
(BPF_GCC=bpf-gcc CLANG=) targets to tools/perf/tests/make when the
corresponding compiler and BPF skeleton dependencies are available on
the host.
> diff --git a/tools/perf/tests/make b/tools/perf/tests/make
> index 7524de5228029..4e66b93cf12c9 100644
> --- a/tools/perf/tests/make
> +++ b/tools/perf/tests/make
[ ... ]
> @@ -142,6 +144,20 @@ have_libllvm := $(shell printf '#include <llvm/Support/ManagedStatic.h>\n#includ
> $(shell $(LLVM_CONFIG) --system-libs 2>/dev/null) >/dev/null 2>&1 && echo y)
> endif
>
> +have_bpf_skel_deps := $(shell printf '#include <libelf.h>\n#include <zlib.h>\n#include <linux/bpf.h>\n#include <openssl/opensslv.h>\nint main(){return 0;}\n' | \
> + $(CC) -x c -I$(srctree)/tools/include/uapi - -o /dev/null -lelf -lz -lcrypto >/dev/null 2>&1 && echo y)
[Severity: Low]
Does this hardcoded check fail to find OpenSSL on systems that require explicit
paths via pkg-config?
Unlike tools/build/feature/Makefile which correctly utilizes pkg-config, it
looks like missing pkg-config usage here could lead to silent test evasion on
environments where OpenSSL is not in the default compiler search path.
> +
> +ifneq ($(have_bpf_skel_deps),)
[ ... ]
> @@ -313,6 +335,13 @@ test_make_clang_nondistro := $(test_make_clang)
> test_make_clang_nondistro_O := $(test_make_clang_O)
> endif
>
> +test_make_no_bpf_skel := test -x $(PERF_O)/perf && ! $(PERF_O)/perf check -q feature bpf_skeletons
> +test_make_no_bpf_skel_O := test -x $$TMP_O/perf && ! $$TMP_O/perf check -q feature bpf_skeletons
[Severity: Low]
By using the shell negation operator !, does this prevent the framework from
distinguishing between a graceful exit 1 (feature correctly absent) and a
catastrophic crash (exit code >128)?
Would using an explicit exit code validation (e.g., ; test $? -eq 1) avoid
masking crashes in the built perf check utility?
> +test_make_bpf_skel_clang := test -x $(PERF_O)/perf && $(PERF_O)/perf check -q feature bpf_skeletons
> +test_make_bpf_skel_clang_O := test -x $$TMP_O/perf && $$TMP_O/perf check -q feature bpf_skeletons
> +test_make_bpf_skel_bpf_gcc := test -x $(PERF_O)/perf && $(PERF_O)/perf check -q feature bpf_skeletons
> +test_make_bpf_skel_bpf_gcc_O := test -x $$TMP_O/perf && $$TMP_O/perf check -q feature bpf_skeletons
> +
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013231430.2163505-1-irogers@google.com?part=2
prev parent reply other threads:[~2026-10-13 23:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 22:16 [PATCH v1 0/2] perf build: Support building BPF skeletons with bpf-gcc Ian Rogers
2026-10-13 22:16 ` [PATCH v1 1/2] " Ian Rogers
2026-10-13 22:27 ` sashiko-bot
2026-10-13 22:16 ` [PATCH v1 2/2] perf test make: Add BPF skeleton build tests for clang and bpf-gcc Ian Rogers
2026-10-13 22:23 ` sashiko-bot
2026-10-13 23:14 ` [PATCH v2 0/2] perf build: Support building BPF skeletons with bpf-gcc Ian Rogers
2026-10-13 23:14 ` [PATCH v2 1/2] " Ian Rogers
2026-10-13 23:22 ` sashiko-bot
2026-10-13 23:14 ` [PATCH v2 2/2] perf test make: Add BPF skeleton build tests for clang and bpf-gcc Ian Rogers
2026-10-13 23:24 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-170636@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=irogers@google.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox