[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210132336.63qLmO5r-lkp@intel.com>
Date: Thu, 13 Oct 2022 23:40:24 +0800
From: kernel test robot <lkp@...el.com>
To: Jiri Olsa <jolsa@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jolsa-perf:bpf/tracing_multi_ng_4 11/23]
kernel/trace/ftrace.c:5232: warning: expecting prototype for
ftrace_find_direct_func(). Prototype was for ftrace_find_direct_func_list()
instead
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_ng_4
head: e3fa3b908cc734f85477c07a0ba93480bd80702c
commit: cc9f575e0ba512afd99a1f04813be0737fe02500 [11/23] ftrace: Factor list functions for ftrace_direct_func find and alloc
config: powerpc-allyesconfig
compiler: powerpc-linux-gcc (GCC) 12.1.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=cc9f575e0ba512afd99a1f04813be0737fe02500
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/tracing_multi_ng_4
git checkout cc9f575e0ba512afd99a1f04813be0737fe02500
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash kernel/trace/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
kernel/trace/ftrace.c:5232: warning: Function parameter or member 'list' not described in 'ftrace_find_direct_func_list'
>> kernel/trace/ftrace.c:5232: warning: expecting prototype for ftrace_find_direct_func(). Prototype was for ftrace_find_direct_func_list() instead
kernel/trace/ftrace.c:5842: warning: Function parameter or member 'addr' not described in 'unregister_ftrace_direct_multi'
kernel/trace/ftrace.c:5983: warning: Function parameter or member 'ops' not described in 'ftrace_set_filter_ip'
kernel/trace/ftrace.c:5983: warning: Function parameter or member 'ip' not described in 'ftrace_set_filter_ip'
kernel/trace/ftrace.c:5983: warning: Function parameter or member 'remove' not described in 'ftrace_set_filter_ip'
kernel/trace/ftrace.c:5983: warning: Function parameter or member 'reset' not described in 'ftrace_set_filter_ip'
kernel/trace/ftrace.c:6002: warning: Function parameter or member 'ops' not described in 'ftrace_set_filter_ips'
kernel/trace/ftrace.c:6002: warning: Function parameter or member 'ips' not described in 'ftrace_set_filter_ips'
kernel/trace/ftrace.c:6002: warning: Function parameter or member 'cnt' not described in 'ftrace_set_filter_ips'
kernel/trace/ftrace.c:6002: warning: Function parameter or member 'remove' not described in 'ftrace_set_filter_ips'
kernel/trace/ftrace.c:6002: warning: Function parameter or member 'reset' not described in 'ftrace_set_filter_ips'
kernel/trace/ftrace.c:6016: warning: Function parameter or member 'ops' not described in 'ftrace_ops_set_global_filter'
kernel/trace/ftrace.c:6044: warning: Function parameter or member 'ops' not described in 'ftrace_set_filter'
kernel/trace/ftrace.c:6044: warning: Function parameter or member 'buf' not described in 'ftrace_set_filter'
kernel/trace/ftrace.c:6044: warning: Function parameter or member 'len' not described in 'ftrace_set_filter'
kernel/trace/ftrace.c:6044: warning: Function parameter or member 'reset' not described in 'ftrace_set_filter'
kernel/trace/ftrace.c:6063: warning: Function parameter or member 'ops' not described in 'ftrace_set_notrace'
kernel/trace/ftrace.c:6063: warning: Function parameter or member 'buf' not described in 'ftrace_set_notrace'
kernel/trace/ftrace.c:6063: warning: Function parameter or member 'len' not described in 'ftrace_set_notrace'
kernel/trace/ftrace.c:6063: warning: Function parameter or member 'reset' not described in 'ftrace_set_notrace'
kernel/trace/ftrace.c:6078: warning: Function parameter or member 'buf' not described in 'ftrace_set_global_filter'
kernel/trace/ftrace.c:6078: warning: Function parameter or member 'len' not described in 'ftrace_set_global_filter'
kernel/trace/ftrace.c:6078: warning: Function parameter or member 'reset' not described in 'ftrace_set_global_filter'
kernel/trace/ftrace.c:6094: warning: Function parameter or member 'buf' not described in 'ftrace_set_global_notrace'
kernel/trace/ftrace.c:6094: warning: Function parameter or member 'len' not described in 'ftrace_set_global_notrace'
kernel/trace/ftrace.c:6094: warning: Function parameter or member 'reset' not described in 'ftrace_set_global_notrace'
vim +5232 kernel/trace/ftrace.c
7f12fbf52b94fc Jiri Olsa 2022-07-27 5216
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5217) /**
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5218) * ftrace_find_direct_func - test an address if it is a registered direct caller
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5219) * @addr: The address of a registered direct caller
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5220) *
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5221) * This searches to see if a ftrace direct caller has been registered
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5222) * at a specific address, and if so, it returns a descriptor for it.
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5223) *
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5224) * This can be used by architecture code to see if an address is
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5225) * a direct caller (trampoline) attached to a fentry/mcount location.
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5226) * This is useful for the function_graph tracer, as it may need to
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5227) * do adjustments if it traced a location that also has a direct
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5228) * trampoline attached to it.
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5229) */
cc9f575e0ba512 Jiri Olsa 2022-07-27 5230 struct ftrace_direct_func *
cc9f575e0ba512 Jiri Olsa 2022-07-27 5231 ftrace_find_direct_func_list(struct ftrace_direct_list *list, unsigned long addr)
013bf0da047481 Steven Rostedt (VMware 2019-11-08 @5232) {
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5233) struct ftrace_direct_func *entry;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5234) bool found = false;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5235)
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5236) /* May be called by fgraph trampoline (protected by rcu tasks) */
cc9f575e0ba512 Jiri Olsa 2022-07-27 5237 list_for_each_entry_rcu(entry, &list->funcs, next) {
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5238) if (entry->addr == addr) {
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5239) found = true;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5240) break;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5241) }
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5242) }
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5243) if (found)
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5244) return entry;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5245)
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5246) return NULL;
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5247) }
013bf0da047481 Steven Rostedt (VMware 2019-11-08 5248)
:::::: The code at line 5232 was first introduced by commit
:::::: 013bf0da0474816f57739daa006c8564ad7396a3 ftrace: Add ftrace_find_direct_func()
:::::: TO: Steven Rostedt (VMware) <rostedt@...dmis.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@...dmis.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (325999 bytes)
Powered by blists - more mailing lists