tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/ftrace
head: 5906e0659463d7c0fbe13a7e097e26f448f54527
commit: d9e5279c64019b04e05525faa74f5407b9f0b943 [3/7] bpf: Add support to attach program
to ftrace probe
config: nds32-randconfig-r005-20210414 (attached as .config)
compiler: nds32le-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://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/ftrace
git checkout d9e5279c64019b04e05525faa74f5407b9f0b943
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/bpf/syscall.c: In function 'bpf_ftrace_function_call':
> kernel/bpf/syscall.c:2937:3: error: implicit declaration of
function 'bpf_trace_run2' [-Werror=implicit-function-declaration]
2937 |
bpf_trace_run2(tr_link->link.prog, ip, parent_ip);
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/bpf_trace_run2 +2937 kernel/bpf/syscall.c
2919
2920 static void
2921 bpf_ftrace_function_call(unsigned long ip, unsigned long parent_ip,
2922 struct ftrace_ops *ops, struct ftrace_regs *fregs)
2923 {
2924 struct bpf_tracing_ftrace_link *tr_link;
2925 struct bpf_prog *prog;
2926 u64 start;
2927
2928 tr_link = container_of(ops, struct bpf_tracing_ftrace_link, ops);
2929 prog = tr_link->link.prog;
2930
2931 if (prog->aux->sleepable)
2932 start = __bpf_prog_enter_sleepable(prog);
2933 else
2934 start = __bpf_prog_enter(prog);
2935
2936 if (start)
2937 bpf_trace_run2(tr_link->link.prog, ip, parent_ip);
2938
2939 if (prog->aux->sleepable)
2940 __bpf_prog_exit_sleepable(prog, start);
2941 else
2942 __bpf_prog_exit(prog, start);
2943 }
2944
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org