Skip to content

Improvement and fixes for BHRB

Anshuman Khandual linuxppc-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/22 patches 5 repliesIn review
  2. v3 posting 1/22 patches 0 repliesSuperseded
  3. v22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

Changes in v3 from the cover letter

-------------
(1) Fixed the compilation warning problem after removing the unused variable

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc, perf: Ignore separate BHRB privilege state filter requestarch/powerpc/perf/power8-pmu.c+4 -91 reply
2/2powerpc, perf: BHRB filter configuration should follow the taskarch/powerpc/perf/core-book3s.c+4 -14 replies

Reviews trailers per patch

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

PatchMichael Neuling
1/2A-b
2/2A-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] Improvement and fixes for BHRB

(1) The first patch fixes a situation like this

Before patch:-
------------

./perf record -j any -e branch-misses:k ls
Error:
The sys_perf_event_open() syscall returned with 95 (Operation not supported) for event (branch-misses:k). /bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

Here 'perf record' actually copies over ':k' filter request into BHRB privilege state filter config and our previous check in kernel would fail that.

After patch:-
-------------

/perf record -j any -e branch-misses:k ls
perf perf.data perf.data.old test-mmap-ring
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.002 MB perf.data (~102 samples) ]

(2) The second patch fixes context migration for BHRB filter configuration

Changes in V2
-------------
(1) Updated the comment section of the code
(2) Removed the informational print
(3) Updated the commit section of the first patch

Changes in V3
-------------
(1) Fixed the compilation warning problem after removing the unused variable

Anshuman Khandual (2):
powerpc, perf: Ignore separate BHRB privilege state filter request powerpc, perf: BHRB filter configuration should follow the task

 arch/powerpc/perf/core-book3s.c |  5 ++++-
 arch/powerpc/perf/power8-pmu.c  | 13 ++++---------
 2 files changed, 8 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.11.7