Skip to content

perf: Fix missing branch counter information in script and annotate

Thomas Falcon linux-perf-users lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v2 posting 2/22 patches 1 replySuperseded
  3. v2 posting 1/22 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf script: Fix missing '+' indicator when branch counter reaches upper limittools/perf/builtin-script.c+6 -20 replies
2/2perf/annotate: Fix missing branch counter column in TUI modetools/perf/builtin-annotate.c+5 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIan RogersDapeng Mi
1/2A-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] perf: Fix missing branch counter information in script and annotate

This series fixes two issues related to branch counter display in perf.

The first patch fixes a missing '+' indicator in 'perf script' output. The '+' suffix is used to signal that event occurrences may have been lost due to branch counter overflow.

The second patch fixes a regression in 'perf annotate' TUI mode where the Branch Count column was never displayed. The check for whether to enable branch counter display was performed before events were processed and the counter data were populated, so the condition was never satisfied. Determine whether to display the branch counter column after processing events and populating counter data.

v3: For patch 1/2, guarded against printing a spurious '+' if the branch
counter width is zero, reported by sashiko
v2: Added a cover letter and expanded commit message for patch 1/2.
Patch 2/2 was missing some conditional checks to enable branch counter display, which have been added back.

Dapeng Mi (1):
perf script: Fix missing '+' indicator when branch counter reaches
upper limit

Thomas Falcon (1):
perf/annotate: Fix missing branch counter column in TUI mode

 tools/perf/builtin-annotate.c | 9 +++++----
 tools/perf/builtin-script.c   | 8 ++++++--
 2 files changed, 11 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0