linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] tools perf: Add branch speculation info
@ 2023-02-02 12:26 Sandipan Das
  2023-02-02 12:26 ` [PATCH v4 1/4] perf script: Show " Sandipan Das
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Sandipan Das @ 2023-02-02 12:26 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, x86
  Cc: peterz, bp, acme, namhyung, jolsa, tglx, mingo, mark.rutland,
	alexander.shishkin, dave.hansen, james.clark, irogers, eranian,
	maddy, kjain, tmricht, ananth.narayan, ravi.bangoria,
	santosh.shukla, sandipan.das

AMD Last Branch Record Extension Version 2 (LbrExtV2) provides branch
speculation information and the perf UAPI is extended to provide this in
a generic way. Make perf tool show this additional information.

The UAPI changes can be found in commit 93315e46b000 ("perf/core: Add
speculation info to branch entries").

Requesting help from folks having access to big-endian systems to test
changes in the sample parsing test as I was only able to test these in
a ppc64 simulator.

Previous versions can be found at:
v3: https://lore.kernel.org/all/cover.1675057032.git.sandipan.das@amd.com/
v2: https://lore.kernel.org/all/cover.1664356751.git.sandipan.das@amd.com/
v1: https://lore.kernel.org/all/cover.1660217326.git.sandipan.das@amd.com/

Changes in v4:
- Update tests that were failing due to changes in perf output and
  sample parsing (thanks to Arnaldo for reporting).

Changes in v3:
- Drop tools-side UAPI changes as they have already been added by other
  commits.
- Rebase on top of latest perf/core.

Changes in v2:
- Drop msr-index.h related changes for now.
- Rebase on top of latest perf/core.
- Fix UAPI breakage introduced by the ARM64 BRBE changes to perf branch
  entry.

Sandipan Das (4):
  perf script: Show branch speculation info
  perf session: Show branch speculation info in raw dump
  perf test sample-parsing: Update expected branch flags
  perf test brstack: Update regex to include spec field

 tools/perf/builtin-script.c            |  5 +++--
 tools/perf/tests/sample-parsing.c      |  2 +-
 tools/perf/tests/shell/test_brstack.sh | 18 +++++++++---------
 tools/perf/util/branch.c               | 15 +++++++++++++++
 tools/perf/util/branch.h               |  2 ++
 tools/perf/util/evsel.c                | 15 ++++++++++++---
 tools/perf/util/session.c              |  5 +++--
 7 files changed, 45 insertions(+), 17 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-02-02 13:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02 12:26 [PATCH v4 0/4] tools perf: Add branch speculation info Sandipan Das
2023-02-02 12:26 ` [PATCH v4 1/4] perf script: Show " Sandipan Das
2023-02-02 12:26 ` [PATCH v4 2/4] perf session: Show branch speculation info in raw dump Sandipan Das
2023-02-02 12:26 ` [PATCH v4 3/4] perf test sample-parsing: Update expected branch flags Sandipan Das
2023-02-02 12:26 ` [PATCH v4 4/4] perf test brstack: Update regex to include spec field Sandipan Das
2023-02-02 13:04 ` [PATCH v4 0/4] tools perf: Add branch speculation info Arnaldo Carvalho de Melo
2023-02-02 13:10   ` Arnaldo Carvalho de Melo
2023-02-02 13:14     ` Sandipan Das

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).