Content-Type: multipart/mixed; boundary="===============8674904404975075265==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH RFC 2/4] bpf, perf: add ability to attach complete array of bpf prog to perf event Date: Sat, 27 Nov 2021 20:56:25 +0800 Message-ID: <202111272031.gglKL3hJ-lkp@intel.com> In-Reply-To: <20211118202840.1001787-3-Kenny.Ho@amd.com> List-Id: --===============8674904404975075265== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kenny, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on v5.15] [also build test ERROR on next-20211126] [cannot apply to bpf-next/master bpf/master tip/perf/core v5.16-rc1] [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/Kenny-Ho/Add-ability-to-at= tach-bpf-programs-to-a-tracepoint-inside-a-cgroup/20211119-043050 base: 8bb7eca972ad531c9b149c0a51ab43a417385813 config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20211127/= 202111272031.gglKL3hJ-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/9de19275a9d70c47811096791= fae34fedbdeeb94 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kenny-Ho/Add-ability-to-attach-bpf= -programs-to-a-tracepoint-inside-a-cgroup/20211119-043050 git checkout 9de19275a9d70c47811096791fae34fedbdeeb94 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from fs/quota/quota.c:16: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from drivers/char/random.c:335: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ drivers/char/random.c:2272:6: warning: no previous prototype for 'add_hw= generator_randomness' [-Wmissing-prototypes] 2272 | void add_hwgenerator_randomness(const char *buffer, size_t count, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from init/main.c:21: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ init/main.c:789:20: warning: no previous prototype for 'mem_encrypt_init= ' [-Wmissing-prototypes] 789 | void __init __weak mem_encrypt_init(void) { } | ^~~~~~~~~~~~~~~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from include/linux/entry-common.h:7, from arch/x86/entry/common.c:13: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ arch/x86/entry/common.c:238:24: warning: no previous prototype for 'do_S= YSENTER_32' [-Wmissing-prototypes] 238 | __visible noinstr long do_SYSENTER_32(struct pt_regs *regs) | ^~~~~~~~~~~~~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from include/linux/entry-common.h:7, from arch/x86/include/asm/idtentry.h:9, from arch/x86/include/asm/traps.h:9, from arch/x86/mm/extable.c:9: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ arch/x86/mm/extable.c:27:16: warning: no previous prototype for 'ex_hand= ler_default' [-Wmissing-prototypes] 27 | __visible bool ex_handler_default(const struct exception_table_e= ntry *fixup, | ^~~~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:37:16: warning: no previous prototype for 'ex_hand= ler_fault' [-Wmissing-prototypes] 37 | __visible bool ex_handler_fault(const struct exception_table_ent= ry *fixup, | ^~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:58:16: warning: no previous prototype for 'ex_hand= ler_fprestore' [-Wmissing-prototypes] 58 | __visible bool ex_handler_fprestore(const struct exception_table= _entry *fixup, | ^~~~~~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:73:16: warning: no previous prototype for 'ex_hand= ler_uaccess' [-Wmissing-prototypes] 73 | __visible bool ex_handler_uaccess(const struct exception_table_e= ntry *fixup, | ^~~~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:84:16: warning: no previous prototype for 'ex_hand= ler_copy' [-Wmissing-prototypes] 84 | __visible bool ex_handler_copy(const struct exception_table_entr= y *fixup, | ^~~~~~~~~~~~~~~ arch/x86/mm/extable.c:96:16: warning: no previous prototype for 'ex_hand= ler_rdmsr_unsafe' [-Wmissing-prototypes] 96 | __visible bool ex_handler_rdmsr_unsafe(const struct exception_ta= ble_entry *fixup, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:113:16: warning: no previous prototype for 'ex_han= dler_wrmsr_unsafe' [-Wmissing-prototypes] 113 | __visible bool ex_handler_wrmsr_unsafe(const struct exception_ta= ble_entry *fixup, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/mm/extable.c:129:16: warning: no previous prototype for 'ex_han= dler_clear_fs' [-Wmissing-prototypes] 129 | __visible bool ex_handler_clear_fs(const struct exception_table_= entry *fixup, | ^~~~~~~~~~~~~~~~~~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from kernel/audit.c:44: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ kernel/audit.c: In function 'audit_log_vformat': kernel/audit.c:1926:2: warning: function 'audit_log_vformat' might be a = candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=3Dformat] 1926 | len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, args); | ^~~ kernel/audit.c:1935:3: warning: function 'audit_log_vformat' might be a = candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=3Dformat] 1935 | len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, args2); | ^~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from kernel/exit.c:42: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ kernel/exit.c:1810:13: warning: no previous prototype for 'abort' [-Wmis= sing-prototypes] 1810 | __weak void abort(void) | ^~~~~ -- In file included from include/trace/trace_events.h:21, from include/trace/define_trace.h:102, from include/trace/events/vmscan.h:460, from mm/vmscan.c:63: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ mm/vmscan.c: In function 'demote_page_list': mm/vmscan.c:1340:6: warning: variable 'err' set but not used [-Wunused-b= ut-set-variable] 1340 | int err; | ^~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from fs/io_uring.c:45: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ fs/io_uring.c: In function 'io_queue_async_work': fs/io_uring.c:1443:61: warning: parameter 'locked' set but not used [-Wu= nused-but-set-parameter] 1443 | static void io_queue_async_work(struct io_kiocb *req, bool *lock= ed) | ~~~~~~^~~~= ~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from fs/pipe.c:24: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ fs/pipe.c:755:15: warning: no previous prototype for 'account_pipe_buffe= rs' [-Wmissing-prototypes] 755 | unsigned long account_pipe_buffers(struct user_struct *user, | ^~~~~~~~~~~~~~~~~~~~ fs/pipe.c:761:6: warning: no previous prototype for 'too_many_pipe_buffe= rs_soft' [-Wmissing-prototypes] 761 | bool too_many_pipe_buffers_soft(unsigned long user_bufs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/pipe.c:768:6: warning: no previous prototype for 'too_many_pipe_buffe= rs_hard' [-Wmissing-prototypes] 768 | bool too_many_pipe_buffers_hard(unsigned long user_bufs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/pipe.c:775:6: warning: no previous prototype for 'pipe_is_unprivilege= d_user' [-Wmissing-prototypes] 775 | bool pipe_is_unprivileged_user(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~ fs/pipe.c:1245:5: warning: no previous prototype for 'pipe_resize_ring' = [-Wmissing-prototypes] 1245 | int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int = nr_slots) | ^~~~~~~~~~~~~~~~ -- In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from fs/d_path.c:2: >> include/linux/trace_events.h:747:1: error: two or more data types in dec= laration specifiers 747 | int perf_event_attach_bpf_prog_array(struct perf_event *event, | ^~~ fs/d_path.c:320:7: warning: no previous prototype for 'simple_dname' [-W= missing-prototypes] 320 | char *simple_dname(struct dentry *dentry, char *buffer, int bufl= en) | ^~~~~~~~~~~~ .. vim +747 include/linux/trace_events.h 745 = 746 static inline int > 747 int perf_event_attach_bpf_prog_array(struct perf_event *event, 748 struct bpf_prog_array *new_array) 749 { 750 return -EOPNOTSUPP; 751 } 752 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8674904404975075265==--