Re: [RFC 1/2] perf build: Allow passing extra Clang flags via EXTRA_BPF_FLAGS
From: hupu
Date: Tue Feb 10 2026 - 00:55:15 EST
On Wed, Dec 24, 2025 at 2:20 AM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> Hello,
>
> On Tue, Dec 23, 2025 at 04:43:34PM +0800, hupu wrote:
> > Add support for EXTRA_BPF_FLAGS in the eBPF skeleton build, allowing
> > users to pass additional Clang options such as --sysroot or custom
> > include paths when cross-compiling perf.
> >
> > This is primarily intended for cross-build scenarios where the default
> > host include paths do not match the target kernel version.
> >
> > Example usage:
> > make perf ARCH="arm64" EXTRA_BPF_FLAGS="--sysroot=..."
> >
> > Change history:
> > v5:
> > - Update commit message
> > v4:
> > - Apply EXTRA_BPF_FLAGS directly to BPF skeleton build command
> > instead of modifying CLANG_OPTIONS
> > v3:
> > - Move the variable description comment to the top of Makefile.perf
> > - Update commit message
> > v2:
> > - Rename EXTRA_CLANG_FLAGS to EXTRA_BPF_FLAGS
> > - Update commit message
> > v1:
> > - Introduce EXTRA_CLANG_FLAGS to allow passing extra Clang options
> >
> > Signed-off-by: hupu <hupu.gm@xxxxxxxxx>
>
> Reviewed-by: Namhyung Kim <namhyung@xxxxxxxxxx>
>
> Thanks,
> Namhyung
>
Hi Namhyung,
Sorry to bother you.
I noticed that the patch adding support for EXTRA_BPF_FLAGS, which was
previously reviewed by you, does not seem to be included in the latest
released version. I just wanted to follow up and check on the current
status of this patch, in case it was missed or delayed for some
reason.
Thanks a lot for your time and review.
Thanks
hupu