Skip to content

perf, pt, coresight: AUX flags and VMX update

Alexander Shishkin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf: Export AUX buffer helpers to moduleskernel/events/ring_buffer.c+4 -00 replies
2/4perf: Keep AUX flags in the output handlearch/x86/events/intel/bts.c arch/x86/events/intel/pt.c arch/x86/events/intel/pt.h +7 more+55 -484 replies
3/4perf: Add a flag for partial AUX recordsinclude/uapi/linux/perf_event.h kernel/events/ring_buffer.c+2 -11 reply
4/4perf/x86/intel/pt: Handle VMX betterarch/x86/events/intel/pt.c+21 -170 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAdrian HunterMathieu Poirier
SeriesA-b
1/4
2/4A-b
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] perf, pt, coresight: AUX flags and VMX update

Hi Peter,

With the vmm_exclusive=0, PT seems to be much more usable on BDW now. This patchset does three things:
* adds a flag to PERF_RECORD_AUX, signalling that a transaction has gaps in it (due to VMX root mode kicking in),
* changes the AUX API slightly to allow for flags to be set at arbitrary points between perf_aux_output_begin() and perf_aux_output_end(),
* restarts PT after VMXOFF.

I also stole Will's patch from another patchset that adds EXPORT_SYMBOL_GPL to the AUX calls, which is not strictly relevant, but happens to touch the same area and is long overdue. The AUX flags patch is also based on Will's patch from that same context.

Alexander Shishkin (2):
perf: Add a flag for partial AUX records
perf/x86/intel/pt: Handle VMX better

Will Deacon (2):
perf: Export AUX buffer helpers to modules
perf: Keep AUX flags in the output handle

 arch/x86/events/intel/bts.c                      | 16 +++----
 arch/x86/events/intel/pt.c                       | 55 +++++++++++++-----------
 arch/x86/events/intel/pt.h                       |  1 -
 drivers/hwtracing/coresight/coresight-etb10.c    |  7 ++-
 drivers/hwtracing/coresight/coresight-etm-perf.c |  9 ++--
 drivers/hwtracing/coresight/coresight-priv.h     |  2 -
 drivers/hwtracing/coresight/coresight-tmc-etf.c  |  7 ++-
 include/linux/coresight.h                        |  2 +-
 include/linux/perf_event.h                       |  8 ++--
 include/uapi/linux/perf_event.h                  |  1 +
 kernel/events/ring_buffer.c                      | 38 +++++++++++-----
 11 files changed, 81 insertions(+), 65 deletions(-)
Signature · 1 line
2.11.0