• Arnaldo Carvalho de Melo's avatar
    perf annotate: Allow showing offsets in more than just jump targets · 592c10e2
    Arnaldo Carvalho de Melo authored
    Jesper wanted to see offsets at callq sites when doing some performance
    investigation related to retpolines, so save him some time by providing
    an 'struct annotation_options' to control where offsets should appear:
    just on jump targets? That + call instructions? All?
    
    This puts in place the logic to show the offsets, now we need to wire
    this up in the TUI browser (next patch) and on the 'perf annotate --stdio2"
    interface, where we need a more general mechanism to setup the
    'annotation_options' struct from the command line.
    Suggested-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Martin Liška <mliska@suse.cz>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
    Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-m3jc9c3swobye9tj08gnh5i7@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    592c10e2
annotate.h 9.5 KB