tree:
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git user-perf-event-v8
head: 6c21e13845aa482461c6c2bb5dfb5fa6210cf3ae
commit: 587bbcc77cad781c93747a5dda66584df9326a07 [6/8] arm64: perf: Enable PMU counter
userspace access for perf event
config: arm64-randconfig-r011-20210514 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
425781bce01f2f1d5f553d3b2bf9ebbd6e15068c)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?id...
git remote add robh
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
git fetch --no-tags robh user-perf-event-v8
git checkout 587bbcc77cad781c93747a5dda66584df9326a07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:147:44: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(DTLB)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_L1D_TLB_RD,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:122:44: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_L1D_TLB_RD'
#define ARMV8_IMPDEF_PERFCTR_L1D_TLB_RD 0x4E
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:148:45: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(DTLB)][C(OP_WRITE)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_L1D_TLB_WR,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:123:44: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_L1D_TLB_WR'
#define ARMV8_IMPDEF_PERFCTR_L1D_TLB_WR 0x4F
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:149:42: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(DTLB)][C(OP_READ)][C(RESULT_MISS)] =
ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_RD,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:120:50: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_RD'
#define ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_RD 0x4C
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:150:43: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(DTLB)][C(OP_WRITE)][C(RESULT_MISS)] =
ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_WR,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:121:50: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_WR'
#define ARMV8_IMPDEF_PERFCTR_L1D_TLB_REFILL_WR 0x4D
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:152:44: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(NODE)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_RD,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:137:46: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_RD'
#define ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_RD 0x60
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:153:45: warning: initializer overrides prior
initialization of this subobject [-Winitializer-overrides]
[C(NODE)][C(OP_WRITE)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_WR,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/perf_event.h:138:46: note: expanded from macro
'ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_WR'
#define ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_WR 0x61
^~~~
arch/arm64/kernel/perf_event.c:140:2: note: previous initialization is here
PERF_CACHE_MAP_ALL_UNSUPPORTED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:40:31: note: expanded from macro
'PERF_CACHE_MAP_ALL_UNSUPPORTED'
[0 ... C(RESULT_MAX) - 1] = CACHE_OP_UNSUPPORTED, \
^~~~~~~~~~~~~~~~~~~~
include/linux/perf/arm_pmu.h:32:31: note: expanded from macro
'CACHE_OP_UNSUPPORTED'
#define CACHE_OP_UNSUPPORTED 0xFFFF
^~~~~~
arch/arm64/kernel/perf_event.c:920:40: error: no member named 'attr_rdpmc' in
'struct arm_pmu'
if (sched_in && to_arm_pmu(ctx->pmu)->attr_rdpmc &&
atomic_read(&ctx->nr_user))
~~~~~~~~~~~~~~~~~~~~ ^
> arch/arm64/kernel/perf_event.c:918:6: warning: no previous
prototype for function 'armv8pmu_sched_task' [-Wmissing-prototypes]
void
armv8pmu_sched_task(struct perf_event_context *ctx, bool sched_in)
^
arch/arm64/kernel/perf_event.c:918:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void armv8pmu_sched_task(struct perf_event_context *ctx, bool sched_in)
^
static
57 warnings and 1 error generated.
vim +/armv8pmu_sched_task +918 arch/arm64/kernel/perf_event.c
917
918 void armv8pmu_sched_task(struct perf_event_context *ctx, bool
sched_in)
919 {
920 if (sched_in && to_arm_pmu(ctx->pmu)->attr_rdpmc
&& atomic_read(&ctx->nr_user))
921 armv8pmu_enable_user_access();
922 else
923 armv8pmu_disable_user_access();
924 }
925
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org