Skip to contentSkip to conversation

linux-next: build failure after merge of the perf tree

DISCUSSION Stephen Rothwell 2 participants 2 messages May 29, 2023 – May 30, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the perf tree, today's linux-next build (powerpc perf) failed like this:

arch/powerpc/util/kvm-stat.c: In function 'kvm_add_default_arch_event':
arch/powerpc/util/kvm-stat.c:207:21: error: implicit declaration of function 'pmu_have_event'; did you mean 'perf_pmu__have_event'? [-Werror=implicit-function-declaration]

  207 |                 if (pmu_have_event("trace_imc", "trace_cycles")) {
      |                     ^~~~~~~~~~~~~~
      |                     perf_pmu__have_event

Caused by commit

1eaf496ed386 ("perf pmu: Separate pmu and pmus")

I have used the perf tree from next-20230525 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 12 lines · Stephen Rothwell

Hi all,

After merging the perf tree, today's linux-next build (powerpc perf) failed like this:

arch/powerpc/util/kvm-stat.c: In function 'kvm_add_default_arch_event':
arch/powerpc/util/kvm-stat.c:207:21: error: implicit declaration of function 'pmu_have_event'; did you mean 'perf_pmu__have_event'? [-Werror=implicit-function-declaration]

  207 |                 if (pmu_have_event("trace_imc", "trace_cycles")) {
      |                     ^~~~~~~~~~~~~~
      |                     perf_pmu__have_event
Quoted 5 lines

Caused by commit

1eaf496ed386 ("perf pmu: Separate pmu and pmus")

I have used the perf tree from next-20230525 for today.

Apologies, the function was renamed to perf_pmus__have_event. I've sent out a patch and confirmed this was the only issue on a cross compile build with "NO_LIBELF=1 NO_LIBTRACEEVENT=1".

The 1-liner fix is here:
https://lore.kernel.org/lkml/[email protected]/

Thanks,
Ian

Quoted 3 lines

--
Cheers,
Stephen Rothwell