Re: [PATCH] btf_encoder: Match ftrace addresses within elf functions

2021-02-13 Thread Jiri Olsa
On Fri, Feb 12, 2021 at 02:21:04PM -0800, Andrii Nakryiko wrote: > On Fri, Feb 12, 2021 at 2:05 PM Jiri Olsa wrote: > > > > Currently when processing DWARF function, we check its entrypoint > > against ftrace addresses, assuming that the ftrace address matches > > with function's entrypoint. > > >

Re: [PATCH] btf_encoder: Match ftrace addresses within elf functions

2021-02-12 Thread Andrii Nakryiko
On Fri, Feb 12, 2021 at 2:05 PM Jiri Olsa wrote: > > Currently when processing DWARF function, we check its entrypoint > against ftrace addresses, assuming that the ftrace address matches > with function's entrypoint. > > This is not the case on some architectures as reported by Nathan > when buil

[PATCH] btf_encoder: Match ftrace addresses within elf functions

2021-02-12 Thread Jiri Olsa
Currently when processing DWARF function, we check its entrypoint against ftrace addresses, assuming that the ftrace address matches with function's entrypoint. This is not the case on some architectures as reported by Nathan when building kernel on arm [1]. Fixing the check to take into account