* [jolsa-perf:bpf/tracing_multi 6/22] samples/ftrace/ftrace-direct.c:210:65: error: too few arguments to function call, expected 3, have 2
@ 2025-07-15 21:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-15 21:05 UTC (permalink / raw)
To: Jiri Olsa; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi
head: d0503d4013c49a3fde856947dfffe6c80c178eb1
commit: 2db96f9d6613f7591f4b57cedee812b64b5a9f39 [6/22] ftrace: Use direct hash interface in direct functions
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250716/202507160434.AbVo4o0Z-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 16534d19bf50bde879a83f0ae62875e2c5120e64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250716/202507160434.AbVo4o0Z-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507160434.AbVo4o0Z-lkp@intel.com/
All errors (new ones prefixed by >>):
>> samples/ftrace/ftrace-direct.c:210:65: error: too few arguments to function call, expected 3, have 2
210 | return register_ftrace_direct(&direct, (unsigned long) my_tramp);
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:539:5: note: 'register_ftrace_direct' declared here
539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct.c:215:65: error: too few arguments to function call, expected 4, have 3
215 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:540:5: note: 'unregister_ftrace_direct' declared here
540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 | bool free_filters);
| ~~~~~~~~~~~~~~~~~
2 errors generated.
--
>> samples/ftrace/ftrace-direct-too.c:243:65: error: too few arguments to function call, expected 3, have 2
243 | return register_ftrace_direct(&direct, (unsigned long) my_tramp);
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:539:5: note: 'register_ftrace_direct' declared here
539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-too.c:248:65: error: too few arguments to function call, expected 4, have 3
248 | unregister_ftrace_direct(&direct, (unsigned long)my_tramp, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:540:5: note: 'unregister_ftrace_direct' declared here
540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 | bool free_filters);
| ~~~~~~~~~~~~~~~~~
2 errors generated.
--
>> samples/ftrace/ftrace-direct-modify.c:305:48: error: too few arguments to function call, expected 4, have 2
305 | ret = modify_ftrace_direct(&direct, tramps[t]);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:542:5: note: 'modify_ftrace_direct' declared here
542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-modify.c:321:48: error: too few arguments to function call, expected 3, have 2
321 | ret = register_ftrace_direct(&direct, my_tramp);
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:539:5: note: 'register_ftrace_direct' declared here
539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-modify.c:331:50: error: too few arguments to function call, expected 4, have 3
331 | unregister_ftrace_direct(&direct, my_tramp, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:540:5: note: 'unregister_ftrace_direct' declared here
540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 | bool free_filters);
| ~~~~~~~~~~~~~~~~~
3 errors generated.
--
>> samples/ftrace/ftrace-direct-multi.c:228:65: error: too few arguments to function call, expected 3, have 2
228 | return register_ftrace_direct(&direct, (unsigned long) my_tramp);
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:539:5: note: 'register_ftrace_direct' declared here
539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-multi.c:233:66: error: too few arguments to function call, expected 4, have 3
233 | unregister_ftrace_direct(&direct, (unsigned long) my_tramp, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:540:5: note: 'unregister_ftrace_direct' declared here
540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 | bool free_filters);
| ~~~~~~~~~~~~~~~~~
2 errors generated.
--
>> samples/ftrace/ftrace-direct-multi-modify.c:347:48: error: too few arguments to function call, expected 4, have 2
347 | ret = modify_ftrace_direct(&direct, tramps[t]);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:542:5: note: 'modify_ftrace_direct' declared here
542 | int modify_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr, bool lock_direct_mutex);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-multi-modify.c:365:48: error: too few arguments to function call, expected 3, have 2
365 | ret = register_ftrace_direct(&direct, my_tramp);
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:539:5: note: 'register_ftrace_direct' declared here
539 | int register_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samples/ftrace/ftrace-direct-multi-modify.c:375:50: error: too few arguments to function call, expected 4, have 3
375 | unregister_ftrace_direct(&direct, my_tramp, true);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/ftrace.h:540:5: note: 'unregister_ftrace_direct' declared here
540 | int unregister_ftrace_direct(struct ftrace_ops *ops, unsigned long ip, unsigned long addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 | bool free_filters);
| ~~~~~~~~~~~~~~~~~
3 errors generated.
vim +210 samples/ftrace/ftrace-direct.c
23edf48309b14a Florent Revest 2023-03-21 205
b06457c83af669 Steven Rostedt (VMware 2019-11-08 206) static int __init ftrace_direct_init(void)
b06457c83af669 Steven Rostedt (VMware 2019-11-08 207) {
23edf48309b14a Florent Revest 2023-03-21 208 ftrace_set_filter_ip(&direct, (unsigned long) wake_up_process, 0, 0);
23edf48309b14a Florent Revest 2023-03-21 209
da8bdfbd422333 Florent Revest 2023-03-21 @210 return register_ftrace_direct(&direct, (unsigned long) my_tramp);
b06457c83af669 Steven Rostedt (VMware 2019-11-08 211) }
b06457c83af669 Steven Rostedt (VMware 2019-11-08 212)
:::::: The code at line 210 was first introduced by commit
:::::: da8bdfbd422333fbb7c85ac1d7f18592d17d6665 ftrace: Rename _ftrace_direct_multi APIs to _ftrace_direct APIs
:::::: TO: Florent Revest <revest@chromium.org>
:::::: CC: Steven Rostedt (Google) <rostedt@goodmis.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-15 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 21:05 [jolsa-perf:bpf/tracing_multi 6/22] samples/ftrace/ftrace-direct.c:210:65: error: too few arguments to function call, expected 3, have 2 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).