Skip to content

perf/x86/intel/pt: Fix stop/start with no update

Adrian Hunter linux-perf-users 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. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3perf/x86/intel/pt: Factor out pt_config_enable()arch/x86/events/intel/pt.c+24 -170 replies
2/3perf/x86/intel/pt: Use bitwise access for PERF_HES_STOPPEDarch/x86/events/intel/pt.c+8 -80 replies
3/3perf/x86/intel/pt: Fix stop/start with no updatearch/x86/events/intel/pt.c+36 -90 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchYi Lai
SeriesT-b
1/3
2/3
3/3

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/3] perf/x86/intel/pt: Fix stop/start with no update

Hi

Here is a fix for Intel PT.

There are 2 preparatory patches with no functional change intended.

The fix is to prevent nesting of perf_aux_output_begin() which triggers the WARNING in perf_aux_output_begin():

	nest = READ_ONCE(rb->aux_nest);
	/*
	 * Nesting is not supported for AUX area, make sure nested
	 * writers are caught early
	 */
	if (WARN_ON_ONCE(nest))
		goto err_put;

The nesting happens when Intel PT gets throttled. See the patch for more details.

Adrian Hunter (3):
perf/x86/intel/pt: Factor out pt_config_enable() perf/x86/intel/pt: Use bitwise access for PERF_HES_STOPPED perf/x86/intel/pt: Fix stop/start with no update

 arch/x86/events/intel/pt.c | 96 +++++++++++++++++++++++++++++++---------------
 1 file changed, 65 insertions(+), 31 deletions(-)

Regards
Adrian