• Arnaldo Carvalho de Melo's avatar
    perf annotate: Mark jumps to outher functions with the call arrow · 751b1783
    Arnaldo Carvalho de Melo authored
    Things like this in _cpp_lex_token (gcc's cc1 program):
    
         cpp_named_operator2name@@Base+0xa72
    
    Point to a place that is after the cpp_named_operator2name boundaries,
    i.e.  in the ELF symbol table for cc1 cpp_named_operator2name is marked
    as being 32-bytes long, but it in fact is much larger than that, so we
    seem to need a symbols__find() routine that looks for >= current->start
    and  < next_symbol->start, possibly just for C++ objects?
    
    For now lets just make some progress by marking jumps to outside the
    current function as call like.
    
    Actual navigation will come next, with further understanding of how the
    symbol searching and disassembly should be done.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-aiys0a0bsgm3e00hbi6fg7yy@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    751b1783
annotate.h 8.63 KB