All of lore.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:kprobe/multi 6/13] kernel/trace/bpf_trace.c:1032:22: error: implicit declaration of function 'kprobe_ftrace_multi_addr'; did you mean 'kprobe_ftrace_multi'?
@ 2021-12-27 21:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-27 21:23 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git kprobe/multi
head:   bc59262730d5cfc95d6cae84f247d2e8690a309b
commit: a1974e6769e507428f52729967e6670a1548c239 [6/13] kprobe: Allow to get traced function address for multi ftrace kprobes
config: i386-randconfig-a016-20211227 (https://download.01.org/0day-ci/archive/20211228/202112280519.3qcLUyCw-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=a1974e6769e507428f52729967e6670a1548c239
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf kprobe/multi
        git checkout a1974e6769e507428f52729967e6670a1548c239
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/trace/bpf_trace.c: In function '____bpf_get_func_ip_kprobe':
>> kernel/trace/bpf_trace.c:1032:22: error: implicit declaration of function 'kprobe_ftrace_multi_addr'; did you mean 'kprobe_ftrace_multi'? [-Werror=implicit-function-declaration]
    1032 |   return (uintptr_t) kprobe_ftrace_multi_addr();
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
         |                      kprobe_ftrace_multi
   cc1: some warnings being treated as errors


vim +1032 kernel/trace/bpf_trace.c

  1024	
  1025	BPF_CALL_1(bpf_get_func_ip_kprobe, struct pt_regs *, regs)
  1026	{
  1027		struct kprobe *kp = kprobe_running();
  1028	
  1029		if (!kp)
  1030			return 0;
  1031		if (kprobe_ftrace_multi(kp))
> 1032			return (uintptr_t) kprobe_ftrace_multi_addr();
  1033		else
  1034			return (uintptr_t) kp->func_addr;
  1035	}
  1036	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [jolsa-perf:kprobe/multi 6/13] kernel/trace/bpf_trace.c:1032:22: error: implicit declaration of function 'kprobe_ftrace_multi_addr'; did you mean 'kprobe_ftrace_multi'?
@ 2021-12-27 21:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-27 21:23 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2086 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git kprobe/multi
head:   bc59262730d5cfc95d6cae84f247d2e8690a309b
commit: a1974e6769e507428f52729967e6670a1548c239 [6/13] kprobe: Allow to get traced function address for multi ftrace kprobes
config: i386-randconfig-a016-20211227 (https://download.01.org/0day-ci/archive/20211228/202112280519.3qcLUyCw-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=a1974e6769e507428f52729967e6670a1548c239
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf kprobe/multi
        git checkout a1974e6769e507428f52729967e6670a1548c239
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/trace/bpf_trace.c: In function '____bpf_get_func_ip_kprobe':
>> kernel/trace/bpf_trace.c:1032:22: error: implicit declaration of function 'kprobe_ftrace_multi_addr'; did you mean 'kprobe_ftrace_multi'? [-Werror=implicit-function-declaration]
    1032 |   return (uintptr_t) kprobe_ftrace_multi_addr();
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
         |                      kprobe_ftrace_multi
   cc1: some warnings being treated as errors


vim +1032 kernel/trace/bpf_trace.c

  1024	
  1025	BPF_CALL_1(bpf_get_func_ip_kprobe, struct pt_regs *, regs)
  1026	{
  1027		struct kprobe *kp = kprobe_running();
  1028	
  1029		if (!kp)
  1030			return 0;
  1031		if (kprobe_ftrace_multi(kp))
> 1032			return (uintptr_t) kprobe_ftrace_multi_addr();
  1033		else
  1034			return (uintptr_t) kp->func_addr;
  1035	}
  1036	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-27 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27 21:23 [jolsa-perf:kprobe/multi 6/13] kernel/trace/bpf_trace.c:1032:22: error: implicit declaration of function 'kprobe_ftrace_multi_addr'; did you mean 'kprobe_ftrace_multi'? kernel test robot
2021-12-27 21:23 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.