]> git.itanic.dy.fi Git - linux-stable/commit
perf script: Refine printing of dso offset (dsoff)
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 24 Apr 2023 05:51:07 +0000 (08:51 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 May 2023 18:21:49 +0000 (15:21 -0300)
commitd3b52f71d18513c209465ba65e0c524b9733351b
tree9220aef7c2583089712c25ce20b2759c2d7c16b0
parent24f0af6d038af461c97433cd80b688eb0346a466
perf script: Refine printing of dso offset (dsoff)

Print dso offset only for object files, and in those cases force using the
dso->long_name if the dso->name starts with '[' or the dso is kcore, in
order to avoid special names such as [vdso], or mixing up kcore with
vmlinux.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Changbin Du <changbin.du@huawei.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20230424055107.12105-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.c
tools/perf/util/dso.h
tools/perf/util/map.c