From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC v2 1/7] RISC-V: Remove the current perf implementation
Date: Mon, 31 May 2021 03:16:22 +0800 [thread overview]
Message-ID: <202105310355.dnWCpZbN-lkp@intel.com> (raw)
In-Reply-To: <20210528184405.1793783-2-atish.patra@wdc.com>
[-- Attachment #1: Type: text/plain, Size: 4557 bytes --]
Hi Atish,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/perf/core]
[also build test ERROR on linux/master linus/master v5.13-rc3 next-20210528]
[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]
url: https://github.com/0day-ci/linux/commits/Atish-Patra/Improve-RISC-V-Perf-support-using-SBI-PMU-extension/20210529-024622
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 875dd7bf548104bc1d2c5784a6af6cf38215a216
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
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
# https://github.com/0day-ci/linux/commit/ec7fb82094e0c02cf7e6adce5a07b09744a02c22
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Atish-Patra/Improve-RISC-V-Perf-support-using-SBI-PMU-extension/20210529-024622
git checkout ec7fb82094e0c02cf7e6adce5a07b09744a02c22
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/events/core.c: In function 'bpf_overflow_handler':
>> kernel/events/core.c:9913:11: error: assignment to 'bpf_user_pt_regs_t *' {aka 'struct user_regs_struct *'} from incompatible pointer type 'struct pt_regs *' [-Werror=incompatible-pointer-types]
9913 | ctx.regs = perf_arch_bpf_user_pt_regs(regs);
| ^
cc1: some warnings being treated as errors
vim +9913 kernel/events/core.c
6fb2915df7f074 kernel/perf_event.c Li Zefan 2009-10-15 9901
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9902 #ifdef CONFIG_BPF_SYSCALL
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9903 static void bpf_overflow_handler(struct perf_event *event,
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9904 struct perf_sample_data *data,
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9905 struct pt_regs *regs)
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9906 {
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9907 struct bpf_perf_event_data_kern ctx = {
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9908 .data = data,
7d9285e82db5de kernel/events/core.c Yonghong Song 2017-10-05 9909 .event = event,
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9910 };
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9911 int ret = 0;
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9912
c895f6f703ad7d kernel/events/core.c Hendrik Brueckner 2017-12-04 @9913 ctx.regs = perf_arch_bpf_user_pt_regs(regs);
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9914 if (unlikely(__this_cpu_inc_return(bpf_prog_active) != 1))
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9915 goto out;
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9916 rcu_read_lock();
88575199cc65de kernel/events/core.c Daniel Borkmann 2016-11-26 9917 ret = BPF_PROG_RUN(event->prog, &ctx);
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9918 rcu_read_unlock();
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9919 out:
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9920 __this_cpu_dec(bpf_prog_active);
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9921 if (!ret)
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9922 return;
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9923
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9924 event->orig_overflow_handler(event, data, regs);
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9925 }
aa6a5f3cb2b2ed kernel/events/core.c Alexei Starovoitov 2016-09-01 9926
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69760 bytes --]
next prev parent reply other threads:[~2021-05-30 19:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 18:43 [RFC v2 0/7] Improve RISC-V Perf support using SBI PMU extension Atish Patra
2021-05-28 18:43 ` Atish Patra
2021-05-28 18:43 ` [RFC v2 1/7] RISC-V: Remove the current perf implementation Atish Patra
2021-05-28 18:43 ` Atish Patra
2021-05-30 19:16 ` kernel test robot [this message]
2021-09-01 10:36 ` Not compiling with CONFIG_BPF_SYSCALL enabled Nikita Shubin
2021-09-01 10:36 ` Nikita Shubin
2021-09-01 15:45 ` Atish Patra
2021-09-01 15:45 ` Atish Patra
2021-05-28 18:44 ` [RFC v2 2/7] RISC-V: Add CSR encodings for all HPMCOUNTERS Atish Patra
2021-05-28 18:44 ` Atish Patra
2021-05-28 18:44 ` [RFC v2 3/7] RISC-V: Add a perf core library for pmu drivers Atish Patra
2021-05-28 18:44 ` Atish Patra
2021-05-28 18:44 ` [RFC v2 4/7] RISC-V: Add a simple platform driver for RISC-V legacy perf Atish Patra
2021-05-28 18:44 ` Atish Patra
2021-05-28 18:44 ` [RFC v2 5/7] RISC-V: Add RISC-V SBI PMU extension definitions Atish Patra
2021-05-28 18:44 ` Atish Patra
2021-05-28 18:44 ` [RFC v2 6/7] RISC-V: Add perf platform driver based on SBI PMU extension Atish Patra
2021-05-28 18:44 ` Atish Patra
2021-06-01 13:10 ` Stanislaw Kardach
2021-06-01 13:10 ` Stanislaw Kardach
2021-06-01 15:48 ` Anup Patel
2021-06-01 15:48 ` Anup Patel
2021-06-01 15:57 ` Anup Patel
2021-06-01 15:57 ` Anup Patel
2021-06-01 17:08 ` Stanislaw Kardach
2021-06-01 17:08 ` Stanislaw Kardach
2021-05-28 18:44 ` [RFC v2 7/7] Documentation: riscv: Remove the old documentation Atish Patra
2021-05-28 18:44 ` Atish Patra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202105310355.dnWCpZbN-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.