Re: [PATCH v1 03/22] perf vendor events: Add Arrowlake events/metrics

kernel test robot
2024-12-14T22:57:37Z

Hi Ian,

kernel test robot noticed the following build errors:

[auto build test ERROR on perf-tools-next/perf-tools-next]
[also build test ERROR on tip/perf/core perf-tools/perf-tools linus/master v6.13-rc2 next-20241213]
[cannot apply to acme/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Ian-Rogers/perf-vendor-events-Update-Alderlake-events-metrics/20241210-064605
base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link: https://lore.kernel.org/r/20241209222800.296000-4-irogers%40google.com
patch subject: [PATCH v1 03/22] perf vendor events: Add Arrowlake events/metrics
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241215/202412150635.sGYwFvX2-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412150635.sGYwFvX2-lkp@intel.com/

All errors (new ones prefixed by >>):

PERF_VERSION = 6.12.rc6.g947fa0393dbc
>> tools/perf/pmu-events/pmu-events.c:27919:156: error: expected expression
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
>> tools/perf/pmu-events/pmu-events.c:27919:152: error: use of undeclared identifier 'SUB'
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
>> tools/perf/pmu-events/pmu-events.c:27919:157: error: use of undeclared identifier 'MUL'
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
>> tools/perf/pmu-events/pmu-events.c:27919:161: error: use of undeclared identifier 'FMA'
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
tools/perf/pmu-events/pmu-events.c:27919:165: error: expected expression
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
>> tools/perf/pmu-events/pmu-events.c:27919:166: error: use of undeclared identifier 'DPP'
27919 | { 388816 }, /* fp_arith_dispatched.v0\000floating point\000Number of FP-arith-uops dispatched on 1st VEC port (port 0). FP-arith-uops are of type ADD*/SUB*/MUL/FMA*/DPP\000event=0xb3,period=2000003,umask=1\000\00000\000\000 */
| ^
>> tools/perf/pmu-events/pmu-events.c:28343:21: error: invalid application of 'sizeof' to an incomplete type 'const struct compact_pmu_event[]'
28343 | .num_entries = ARRAY_SIZE(pmu_events__arrowlake_cpu_core),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:103:32: note: expanded from macro 'ARRAY_SIZE'
103 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~
>> tools/perf/pmu-events/pmu-events.c:75461:15: error: invalid application of 'sizeof' to an incomplete type 'const struct pmu_table_entry[]'
75461 | .num_pmus = ARRAY_SIZE(pmu_events__arrowlake)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:103:32: note: expanded from macro 'ARRAY_SIZE'
103 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~
8 errors generated.
make[6]: *** [pmu-events/Build:53: tools/perf/pmu-events/pmu-events.o] Error 1
make[5]: *** [Makefile.perf:765: tools/perf/pmu-events/pmu-events-in.o] Error 2
make[4]: *** [Makefile.perf:292: sub-make] Error 2
make[3]: *** [Makefile:76: all] Error 2

--
0-DAY CI Kernel Test Service