linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf script: Have consistent output for symbol address
@ 2023-04-07  5:52 Changbin Du
  2023-04-07  5:52 ` [PATCH v2 1/2] perf script: print raw ip instead of binary offset for callchain Changbin Du
  2023-04-07  5:52 ` [PATCH v2 2/2] perf: script: add new output field 'dsoff' to print dso offset Changbin Du
  0 siblings, 2 replies; 5+ messages in thread
From: Changbin Du @ 2023-04-07  5:52 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Peter Zijlstra, Ingo Molnar
  Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	Ian Rogers, Adrian Hunter, linux-perf-users, linux-kernel,
	Hui Wang, Changbin Du

The goal of this change is to achieve consistent output for symbol address.
Before this, the raw ip is printed for non-callchain and dso offset for
callchain. Mostly what we expect is the raw ip.

This patch does two changes:
  - Always print raw ip for resolved symbols.
  - Add a new 'dsoff' field if we really need the dso offset, and the
    offset is appended to dso name.

v2:
  o split into two patches.
  o do not print offset for unresolved symbols.

Changbin Du (2):
  perf script: print raw ip instead of binary offset for callchain
  perf: script: add new output field 'dsoff' to print dso offset

 tools/perf/Documentation/perf-script.txt |  2 +-
 tools/perf/builtin-script.c              |  5 +++++
 tools/perf/util/evsel_fprintf.c          | 15 ++++++++-------
 tools/perf/util/evsel_fprintf.h          |  1 +
 4 files changed, 15 insertions(+), 8 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-10  6:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07  5:52 [PATCH v2 0/2] perf script: Have consistent output for symbol address Changbin Du
2023-04-07  5:52 ` [PATCH v2 1/2] perf script: print raw ip instead of binary offset for callchain Changbin Du
2023-04-07  5:52 ` [PATCH v2 2/2] perf: script: add new output field 'dsoff' to print dso offset Changbin Du
2023-04-07 21:24   ` Namhyung Kim
2023-04-10  6:34     ` Changbin Du

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).