Skip to content

tools perf: Add branch speculation info

Sandipan Das linux-perf-users lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 3 repliesIn review
  2. v32 patches 6 repliesApplied
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches5 repliesSuperseded

Changes in v4 from the cover letter

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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf script: Show branch speculation infotools/perf/builtin-script.c tools/perf/util/branch.c tools/perf/util/branch.h +1 more+32 -50 replies
2/4perf session: Show branch speculation info in raw dumptools/perf/util/session.c+3 -20 replies
3/4perf test sample-parsing: Update expected branch flagstools/perf/tests/sample-parsing.c+1 -10 replies
4/4perf test brstack: Update regex to include spec fieldtools/perf/tests/shell/test_brstack.sh+9 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/4] tools perf: Add branch speculation info

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/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.34.1