Re: 'perf probe' and symbols from .text.

2021-02-24 Thread Masami Hiramatsu
On Tue, 23 Feb 2021 13:45:46 -0600 Josh Poimboeuf wrote: > On Tue, Feb 23, 2021 at 04:36:19PM +0900, Masami Hiramatsu wrote: > > On Tue, 23 Feb 2021 10:23:31 +0900 > > Masami Hiramatsu wrote: > > > > > On Mon, 22 Feb 2021 11:51:50 -0600 > > > Josh Poimboeuf wrote: > > > > > > > On Tue, Feb

Re: 'perf probe' and symbols from .text.

2021-02-23 Thread Josh Poimboeuf
On Tue, Feb 23, 2021 at 04:36:19PM +0900, Masami Hiramatsu wrote: > On Tue, 23 Feb 2021 10:23:31 +0900 > Masami Hiramatsu wrote: > > > On Mon, 22 Feb 2021 11:51:50 -0600 > > Josh Poimboeuf wrote: > > > > > On Tue, Feb 23, 2021 at 12:05:08AM +0900, Masami Hiramatsu wrote: > > > > > Of course,

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Masami Hiramatsu
On Tue, 23 Feb 2021 10:23:31 +0900 Masami Hiramatsu wrote: > On Mon, 22 Feb 2021 11:51:50 -0600 > Josh Poimboeuf wrote: > > > On Tue, Feb 23, 2021 at 12:05:08AM +0900, Masami Hiramatsu wrote: > > > > Of course, one could place probes using absolute addresses of the > > > > functions but that

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Masami Hiramatsu
Hi, On Tue, 23 Feb 2021 00:05:08 +0900 Masami Hiramatsu wrote: > > /* Adjust symbol name and address */ > static int post_process_probe_trace_point(struct probe_trace_point *tp, >struct map *map, unsigned long > offs) > { > struct

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Masami Hiramatsu
On Mon, 22 Feb 2021 11:51:50 -0600 Josh Poimboeuf wrote: > On Tue, Feb 23, 2021 at 12:05:08AM +0900, Masami Hiramatsu wrote: > > > Of course, one could place probes using absolute addresses of the > > > functions but that would be less convenient. > > > > > > This also affects many livepatch

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Josh Poimboeuf
On Tue, Feb 23, 2021 at 12:05:08AM +0900, Masami Hiramatsu wrote: > > Of course, one could place probes using absolute addresses of the > > functions but that would be less convenient. > > > > This also affects many livepatch modules where the kernel code can be > > compiled with

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Masami Hiramatsu
On Tue, 23 Feb 2021 00:05:08 +0900 Masami Hiramatsu wrote: > Hi Evgenii, > > On Thu, 18 Feb 2021 20:09:17 +0300 > Evgenii Shatokhin wrote: > > > Hi, > > > > It seems, 'perf probe' can only see functions from .text section in the > > kernel modules, but not from .text.unlikely or other

Re: 'perf probe' and symbols from .text.

2021-02-22 Thread Masami Hiramatsu
Hi Evgenii, On Thu, 18 Feb 2021 20:09:17 +0300 Evgenii Shatokhin wrote: > Hi, > > It seems, 'perf probe' can only see functions from .text section in the > kernel modules, but not from .text.unlikely or other .text.* sections. > > For example, with kernel 5.11 and nf_conntrack.ko with debug

Re: 'perf probe' and symbols from .text.

2021-02-18 Thread Josh Poimboeuf
On Thu, Feb 18, 2021 at 08:09:17PM +0300, Evgenii Shatokhin wrote: > Is there a way to allow probing of functions in .text. ? > > Of course, one could place probes using absolute addresses of the functions > but that would be less convenient. > > This also affects many livepatch modules where

'perf probe' and symbols from .text.

2021-02-18 Thread Evgenii Shatokhin
Hi, It seems, 'perf probe' can only see functions from .text section in the kernel modules, but not from .text.unlikely or other .text.* sections. For example, with kernel 5.11 and nf_conntrack.ko with debug info, 'perf probe' succeeds for nf_conntrack_attach() from .text and fails for