Skip to content

perf/x86/intel/pt: Misc updates

Alexander Shishkin lkml 1 version Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 Latest6 patches 0 repliesApplied

Patches in v0 Applied

#Subject and filesSizeRepliesApplied
1/6perf/x86/intel/pt: Clean up ToPA allocation patharch/x86/events/intel/pt.c arch/x86/events/intel/pt.h+7 -100 replies
2/6perf/x86/intel/pt: Use helpers to obtain ToPA entry sizearch/x86/events/intel/pt.c+6 -60 replies
3/6perf/x86/intel/pt: Use pointer arithmetics instead in ToPA entry calculationarch/x86/events/intel/pt.c+1 -20 replies
4/6perf/x86/intel/pt: Split ToPA metadata and page layoutarch/x86/events/intel/pt.c+60 -330 replies
5/6perf/x86/intel/pt: Free up space in a ToPA descriptorarch/x86/events/intel/pt.c+10 -80 replies
6/6perf/x86/intel/pt: Get rid of reverse lookup table for ToPAarch/x86/events/intel/pt.c arch/x86/events/intel/pt.h+131 -730 replies

Reviews trailers per patch

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

Read the v0 thread

Cover letter [PATCH v0 0/6] perf/x86/intel/pt: Misc updates

Hi Peter,

Here are updates that I have for the PT driver. The biggest change is 6/6, it gets rid of the reverse lookup table that the driver uses to find ToPA (SG) entries by the page offset. With the high order page allocations in the AUX buffer, the cost of runtime lookup should be minimal, and we get to free up some memory that the table occupies. Plus, we get to allocate 2G (and up) PT buffers should we be so inclined.

Others are small reworks and cleanups striving to make the code easier on the eyes.

Alexander Shishkin (6):
perf/x86/intel/pt: Clean up ToPA allocation path perf/x86/intel/pt: Use helpers to obtain ToPA entry size perf/x86/intel/pt: Use pointer arithmetics instead in ToPA entry
calculation
perf/x86/intel/pt: Split ToPA metadata and page layout perf/x86/intel/pt: Free up space in a ToPA descriptor perf/x86/intel/pt: Get rid of reverse lookup table for ToPA

 arch/x86/events/intel/pt.c | 325 +++++++++++++++++++++++--------------
 arch/x86/events/intel/pt.h |  12 +-
 2 files changed, 210 insertions(+), 127 deletions(-)
Signature · 1 line
2.23.0.rc1