tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/ftrace
head: 75bc48cb4414f68f3a427d021860af113920adfd
commit: a1f1f141147a15afbfcc897661c59e23285f941a [3/7] bpf: Add support to attach program
to ftrace probe
config: powerpc64-randconfig-r016-20210413 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
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 a1f1f141147a15afbfcc897661c59e23285f941a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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:2937:3: error: implicit declaration of
function 'bpf_trace_run2' [-Werror,-Wimplicit-function-declaration]
bpf_trace_run2(tr_link->link.prog, ip, parent_ip);
^
1 error generated.
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