lkml.org 
[lkml]   [2021]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 'perf probe' and symbols from .text.<something>
    Hi,

    On Tue, 23 Feb 2021 00:05:08 +0900
    Masami Hiramatsu <mhiramat@kernel.org> 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 symbol *sym;
    > u64 addr = tp->address - offs;
    >
    > sym = map__find_symbol(map, addr);
    > if (!sym)
    > return -ENOENT;
    > ----
    >
    > So it seems "map" may not load the symbol out of ".text".
    > This need to be fixed, since the map is widely used in the perf.

    OK, I found a root cause of this issue.
    dso__process_kernel_symbol() (which invoked from map__load() path) only adds the
    symbols in ".text" section to the symbol list. It must be fixed.

    Thank you,

    --
    Masami Hiramatsu <mhiramat@kernel.org>

    \
     
     \ /
      Last update: 2021-02-23 08:12    [W:2.993 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site