Re: [PATCH 4/4] perf symbol: Add missing libgen.h include to get basename() prototype
From: Namhyung Kim
Date: Wed Apr 01 2026 - 19:21:23 EST
On Wed, Apr 01, 2026 at 06:41:28PM -0300, Arnaldo Melo wrote:
>
>
> On April 1, 2026 6:08:16 PM GMT-03:00, Ian Rogers <irogers@xxxxxxxxxx> wrote:
> >On Wed, Apr 1, 2026 at 2:02 PM Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:
> >>
> >> From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> >>
> >> This works in some places because there are tricks to prefer a GNU
> >> version instead of the XPG version, but started breaking in some musl
> >> libc systems due to some unrelated change that made libgen.h stop being
> >> included by chance.
> >>
> >> Since symbol.h is using basename(), make it include libgen.h.
> >>
> >> Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> >> ---
> >> tools/perf/tests/make | 2 +-
> >> tools/perf/util/symbol.h | 1 +
> >> 2 files changed, 2 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/tools/perf/tests/make b/tools/perf/tests/make
> >> index 6587dc326d1b272e..e12ff6397077806e 100644
> >> --- a/tools/perf/tests/make
> >> +++ b/tools/perf/tests/make
> >> @@ -148,7 +148,7 @@ run += make_extra_tests
> >> run += make_no_jevents
> >> run += make_jevents_all
> >> run += make_no_bpf_skel
> >> -run += make_gen_vmlinux_h
> >> +#run += make_gen_vmlinux_h
> >
> >This looks like something removed during testing that you meant to put back.
>
>
> Yeah, unrelated, I'll send a v2 removing the header dir move that was already merged, as you noted.
>
> This gen vmlinux test is failing and I still need to figure out, seems like a newer clang is complaining about some struct forward declarations I'm vmlinux.h.
Right, I've seen this too.
Thanks,
Namhyung