[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208310808.k4LrRyk5-lkp@intel.com>
Date: Wed, 31 Aug 2022 08:01:52 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [peterz-queue:perf/wip.rewrite 8/8] drivers/perf/arm_pmu.c:560:21:
error: no member named 'filter_match' in 'struct arm_pmu'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.rewrite
head: 1a76bb2b00e68728753191bdc81ce890db4dd783
commit: 1a76bb2b00e68728753191bdc81ce890db4dd783 [8/8] Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
config: arm64-randconfig-r025-20220830 (https://download.01.org/0day-ci/archive/20220831/202208310808.k4LrRyk5-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c7df82e4693c19e3fd2e25c83eb04d9deb7b7b59)
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/peterz/queue.git/commit/?id=1a76bb2b00e68728753191bdc81ce890db4dd783
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/wip.rewrite
git checkout 1a76bb2b00e68728753191bdc81ce890db4dd783
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/perf/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/perf/arm_pmu.c:560:21: error: no member named 'filter_match' in 'struct arm_pmu'
if (ret && armpmu->filter_match)
~~~~~~ ^
drivers/perf/arm_pmu.c:561:18: error: no member named 'filter_match' in 'struct arm_pmu'
return armpmu->filter_match(event);
~~~~~~ ^
>> drivers/perf/arm_pmu.c:888:4: error: field designator 'filter_match' does not refer to any field in type 'struct pmu'
.filter_match = armpmu_filter_match,
^
3 errors generated.
vim +560 drivers/perf/arm_pmu.c
1b8873a0c6ec51 arch/arm/kernel/perf_event.c Jamie Iles 2010-02-02 547
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 548 /*
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 549 * In heterogeneous systems, events are specific to a particular
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 550 * microarchitecture, and aren't suitable for another. Thus, only match CPUs of
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 551 * the same microarchitecture.
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 552 */
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 553 static int armpmu_filter_match(struct perf_event *event)
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 554 {
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 555 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 556 unsigned int cpu = smp_processor_id();
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 557 int ret;
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 558
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 559 ret = cpumask_test_cpu(cpu, &armpmu->supported_cpus);
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 @560 if (ret && armpmu->filter_match)
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 561 return armpmu->filter_match(event);
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 562
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 563 return ret;
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 564 }
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 565
:::::: The code at line 560 was first introduced by commit
:::::: ca2b497253ad01c80061a1f3ee9eb91b5d54a849 arm64: perf: Reject stand-alone CHAIN events for PMUv3
:::::: TO: Will Deacon <will.deacon@....com>
:::::: CC: Will Deacon <will.deacon@....com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists