[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208230327.esJHVyDu-lkp@intel.com>
Date: Tue, 23 Aug 2022 03:51:02 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:perf/wip.rewrite 1/5]
arch/x86/events/perf_event.h:1251:37: error: 'struct perf_event_context' has
no member named 'pmu'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.rewrite
head: 596b8cc92a97fa8defbff896dc9baedef441b983
commit: 6a606214738273b4c6bd00c500bab6cb53a5b9d7 [1/5] perf: Rewrite core context handling
config: x86_64-allyesconfig
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=6a606214738273b4c6bd00c500bab6cb53a5b9d7
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 6a606214738273b4c6bd00c500bab6cb53a5b9d7
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/ kernel/
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 >>):
In file included from arch/x86/events/core.c:45:
arch/x86/events/perf_event.h: In function 'amd_pmu_brs_add':
>> arch/x86/events/perf_event.h:1251:37: error: 'struct perf_event_context' has no member named 'pmu'
1251 | perf_sched_cb_inc(event->ctx->pmu);
| ^~
arch/x86/events/perf_event.h: In function 'amd_pmu_brs_del':
arch/x86/events/perf_event.h:1266:37: error: 'struct perf_event_context' has no member named 'pmu'
1266 | perf_sched_cb_dec(event->ctx->pmu);
| ^~
--
In file included from arch/x86/events/amd/core.c:14:
arch/x86/events/amd/../perf_event.h: In function 'amd_pmu_brs_add':
>> arch/x86/events/amd/../perf_event.h:1251:37: error: 'struct perf_event_context' has no member named 'pmu'
1251 | perf_sched_cb_inc(event->ctx->pmu);
| ^~
arch/x86/events/amd/../perf_event.h: In function 'amd_pmu_brs_del':
arch/x86/events/amd/../perf_event.h:1266:37: error: 'struct perf_event_context' has no member named 'pmu'
1266 | perf_sched_cb_dec(event->ctx->pmu);
| ^~
--
In file included from arch/x86/events/intel/core.c:26:
arch/x86/events/intel/../perf_event.h: In function 'amd_pmu_brs_add':
>> arch/x86/events/intel/../perf_event.h:1251:37: error: 'struct perf_event_context' has no member named 'pmu'
1251 | perf_sched_cb_inc(event->ctx->pmu);
| ^~
arch/x86/events/intel/../perf_event.h: In function 'amd_pmu_brs_del':
arch/x86/events/intel/../perf_event.h:1266:37: error: 'struct perf_event_context' has no member named 'pmu'
1266 | perf_sched_cb_dec(event->ctx->pmu);
| ^~
--
In file included from arch/x86/events/intel/p4.c:16:
arch/x86/events/intel/../perf_event.h: In function 'amd_pmu_brs_add':
>> arch/x86/events/intel/../perf_event.h:1251:37: error: 'struct perf_event_context' has no member named 'pmu'
1251 | perf_sched_cb_inc(event->ctx->pmu);
| ^~
arch/x86/events/intel/../perf_event.h: In function 'amd_pmu_brs_del':
arch/x86/events/intel/../perf_event.h:1266:37: error: 'struct perf_event_context' has no member named 'pmu'
1266 | perf_sched_cb_dec(event->ctx->pmu);
| ^~
arch/x86/events/intel/p4.c: In function 'p4_pmu_init':
arch/x86/events/intel/p4.c:1352:27: warning: variable 'high' set but not used [-Wunused-but-set-variable]
1352 | unsigned int low, high;
| ^~~~
vim +1251 arch/x86/events/perf_event.h
ada543459cab7f Stephane Eranian 2022-03-22 1246
ada543459cab7f Stephane Eranian 2022-03-22 1247 static inline void amd_pmu_brs_add(struct perf_event *event)
ada543459cab7f Stephane Eranian 2022-03-22 1248 {
ada543459cab7f Stephane Eranian 2022-03-22 1249 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
ada543459cab7f Stephane Eranian 2022-03-22 1250
ada543459cab7f Stephane Eranian 2022-03-22 @1251 perf_sched_cb_inc(event->ctx->pmu);
ada543459cab7f Stephane Eranian 2022-03-22 1252 cpuc->lbr_users++;
ada543459cab7f Stephane Eranian 2022-03-22 1253 /*
ada543459cab7f Stephane Eranian 2022-03-22 1254 * No need to reset BRS because it is reset
ada543459cab7f Stephane Eranian 2022-03-22 1255 * on brs_enable() and it is saturating
ada543459cab7f Stephane Eranian 2022-03-22 1256 */
ada543459cab7f Stephane Eranian 2022-03-22 1257 }
ada543459cab7f Stephane Eranian 2022-03-22 1258
:::::: The code at line 1251 was first introduced by commit
:::::: ada543459cab7f653dcacdaba4011a8bb19c627c perf/x86/amd: Add AMD Fam19h Branch Sampling support
:::::: TO: Stephane Eranian <eranian@...gle.com>
:::::: CC: Peter Zijlstra <peterz@...radead.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (289525 bytes)
Powered by blists - more mailing lists