[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201812200427.yJdvcD6e%fengguang.wu@intel.com>
Date: Thu, 20 Dec 2018 04:11:35 +0800
From: kbuild test robot <lkp@...el.com>
To: Song Liu <songliubraving@...com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, Song Liu <songliubraving@...com>,
peterz@...radead.org, acme@...nel.org, ast@...nel.org,
daniel@...earbox.net, kernel-team@...com
Subject: Re: [PATCH v4 perf, bpf-next 3/7] perf, bpf: introduce
PERF_RECORD_BPF_EVENT
Hi Song,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Song-Liu/perf-bpf-Introduce-PERF_RECORD_KSYMBOL/20181220-023635
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=m68k
All errors (new ones prefixed by >>):
kernel//bpf/syscall.c: In function '__bpf_prog_put':
>> kernel//bpf/syscall.c:1214:3: error: implicit declaration of function 'perf_event_bpf_event'; did you mean 'perf_event_exec'? [-Werror=implicit-function-declaration]
perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_UNLOAD, 0);
^~~~~~~~~~~~~~~~~~~~
perf_event_exec
cc1: some warnings being treated as errors
vim +1214 kernel//bpf/syscall.c
1210
1211 static void __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock)
1212 {
1213 if (atomic_dec_and_test(&prog->aux->refcnt)) {
> 1214 perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_UNLOAD, 0);
1215 /* bpf_prog_free_id() must be called first */
1216 bpf_prog_free_id(prog, do_idr_lock);
1217 bpf_prog_kallsyms_del_all(prog);
1218 btf_put(prog->aux->btf);
1219 kvfree(prog->aux->func_info);
1220 bpf_prog_free_linfo(prog);
1221
1222 call_rcu(&prog->aux->rcu, __bpf_prog_put_rcu);
1223 }
1224 }
1225
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (12149 bytes)
Powered by blists - more mailing lists