mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Adrian Hunter" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Adrian Hunter <adrian.hunter@intel.com>,
	"Peter Zijlstra (Intel)" <peterz@infradead.org>,
	Andi Kleen <ak@linux.intel.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: perf/core] perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling
Date: Mon, 29 Jul 2024 10:24:47 -0000	[thread overview]
Message-ID: <172224868735.2215.3187465377441491823.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20240715160712.127117-5-adrian.hunter@intel.com>

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     6763ebdb4983f55ac1ded291d170046d029a7539
Gitweb:        https://git.kernel.org/tip/6763ebdb4983f55ac1ded291d170046d029a7539
Author:        Adrian Hunter <adrian.hunter@intel.com>
AuthorDate:    Mon, 15 Jul 2024 19:07:03 +03:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Mon, 29 Jul 2024 12:16:24 +02:00

perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling

Events with aux actions or aux sampling expect the PMI to coincide with the
event, which does not happen for large PEBS, so do not enable large PEBS in
that case.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/20240715160712.127117-5-adrian.hunter@intel.com
---
 arch/x86/events/intel/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
index 0c9c270..3d3b841 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -3962,8 +3962,8 @@ static int intel_pmu_hw_config(struct perf_event *event)
 
 		if (!(event->attr.freq || (event->attr.wakeup_events && !event->attr.watermark))) {
 			event->hw.flags |= PERF_X86_EVENT_AUTO_RELOAD;
-			if (!(event->attr.sample_type &
-			      ~intel_pmu_large_pebs_flags(event))) {
+			if (!(event->attr.sample_type & ~intel_pmu_large_pebs_flags(event)) &&
+			    !has_aux_action(event)) {
 				event->hw.flags |= PERF_X86_EVENT_LARGE_PEBS;
 				event->attach_state |= PERF_ATTACH_SCHED_CB;
 			}

  reply	other threads:[~2024-07-29 10:24 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-15 16:06 [PATCH V9 00/13] perf/core: Add ability for an event to "pause" or "resume" AUX area tracing Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 01/13] perf/x86/intel/pt: Fix sampling synchronization Adrian Hunter
2024-07-29 10:24   ` [tip: perf/core] " tip-bot2 for Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 02/13] perf/core: Add aux_pause, aux_resume, aux_start_paused Adrian Hunter
2024-07-18  9:38   ` Peter Zijlstra
2024-07-18 11:19     ` Adrian Hunter
2024-07-18 11:51       ` Peter Zijlstra
2024-07-18 12:58         ` Peter Zijlstra
2024-07-18 15:06           ` Adrian Hunter
2024-07-26 14:41             ` Arnaldo Carvalho de Melo
2024-07-26 16:00               ` Adrian Hunter
2024-07-26 18:24                 ` Arnaldo Carvalho de Melo
2024-07-29 10:24   ` [tip: perf/core] " tip-bot2 for Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 03/13] perf/x86/intel/pt: Add support for pause / resume Adrian Hunter
2024-07-29 10:24   ` [tip: perf/core] " tip-bot2 for Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 04/13] perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling Adrian Hunter
2024-07-29 10:24   ` tip-bot2 for Adrian Hunter [this message]
2024-07-15 16:07 ` [PATCH V9 05/13] perf tools: Enable evsel__is_aux_event() to work for ARM/ARM64 Adrian Hunter
2024-07-22 15:13   ` Leo Yan
2024-07-15 16:07 ` [PATCH V9 06/13] perf tools: Enable evsel__is_aux_event() to work for S390_CPUMSF Adrian Hunter
2024-07-23  8:26   ` Leo Yan
2024-07-23  9:09     ` Adrian Hunter
2024-07-26 14:46       ` Arnaldo Carvalho de Melo
2024-07-15 16:07 ` [PATCH V9 07/13] perf tools: Add aux_start_paused, aux_pause and aux_resume Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 08/13] perf tools: Add aux-action config term Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 09/13] perf tools: Parse aux-action Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 10/13] perf tools: Add missing_features for aux_start_paused, aux_pause, aux_resume Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 11/13] perf intel-pt: Improve man page format Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 12/13] perf intel-pt: Add documentation for pause / resume Adrian Hunter
2024-07-15 16:07 ` [PATCH V9 13/13] perf intel-pt: Add a test " Adrian Hunter
2024-10-22 15:59 [PATCH V14 04/11] perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling Adrian Hunter
2024-11-06 10:48 ` [tip: perf/core] " tip-bot2 for Adrian Hunter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=172224868735.2215.3187465377441491823.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=adrian.hunter@intel.com \
    --cc=ak@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®