Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: fe896f1a8bdd4b8e7deeab8a140361bf85c37d4b ("perf record: Enable off-cpu analysis with BPF")
https://git.kernel.org/cgit/linux/kernel/git/namhyung/linux-perf.git perf/offcpu-v1
in testcase: perf-sanity-tests
version: perf-x86_64-57ae8a492116-1_20220430
with following parameters:
perf_compiler: clang
ucode: 0xec
on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz with 32G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>
==> /tmp/stderr <==
In file included from builtin-record.c:52:
util/off_cpu.h:12:1: error: expected identifier or ‘(’ before ‘{’ token
{
^
==> /tmp/stdout <==
CC /usr/src/perf_selftests-x86_64-rhel-8.3-func-fe896f1a8bdd4b8e7deeab8a140361bf85c37d4b/tools/perf/libbpf/staticobjs/strset.o
==> /tmp/stderr <==
util/off_cpu.h:11:19: error: ‘off_cpu_prepare’ used but never defined [-Werror]
static inline int off_cpu_prepare(struct evlist *evlist __maybe_unused);
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/usr/src/perf_selftests-x86_64-rhel-8.3-func-fe896f1a8bdd4b8e7deeab8a140361bf85c37d4b/tools/build/Makefile.build:97: builtin-record.o] Error 1
make[3]: *** Waiting for unfinished jobs....
--
0-DAY CI Kernel Test Service
https://01.org/lkp