* [PATCH] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
@ 2020-10-19 15:01 kan.liang
2020-10-19 16:09 ` Andi Kleen
0 siblings, 1 reply; 3+ messages in thread
From: kan.liang @ 2020-10-19 15:01 UTC (permalink / raw)
To: peterz, mingo, linux-kernel; +Cc: ak, Kan Liang
From: Kan Liang <kan.liang@linux.intel.com>
The event CYCLE_ACTIVITY.STALLS_MEM_ANY (0x14a3) should be available on
all 8 GP counters on ICL, but it's only scheduled on the first four
counters due to the current ICL constraint table.
Add a line for the CYCLE_ACTIVITY.STALLS_MEM_ANY event in the ICL
constraint table.
Correct the comments for the CYCLE_ACTIVITY.CYCLES_MEM_ANY event.
Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---
arch/x86/events/intel/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
index c72e4904e056..b31ebb5f7fc4 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -257,7 +257,8 @@ static struct event_constraint intel_icl_event_constraints[] = {
INTEL_EVENT_CONSTRAINT_RANGE(0x48, 0x54, 0xf),
INTEL_EVENT_CONSTRAINT_RANGE(0x60, 0x8b, 0xf),
INTEL_UEVENT_CONSTRAINT(0x04a3, 0xff), /* CYCLE_ACTIVITY.STALLS_TOTAL */
- INTEL_UEVENT_CONSTRAINT(0x10a3, 0xff), /* CYCLE_ACTIVITY.STALLS_MEM_ANY */
+ INTEL_UEVENT_CONSTRAINT(0x10a3, 0xff), /* CYCLE_ACTIVITY.CYCLES_MEM_ANY */
+ INTEL_UEVENT_CONSTRAINT(0x14a3, 0xff), /* CYCLE_ACTIVITY.STALLS_MEM_ANY */
INTEL_EVENT_CONSTRAINT(0xa3, 0xf), /* CYCLE_ACTIVITY.* */
INTEL_EVENT_CONSTRAINT_RANGE(0xa8, 0xb0, 0xf),
INTEL_EVENT_CONSTRAINT_RANGE(0xb7, 0xbd, 0xf),
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
2020-10-19 15:01 [PATCH] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY kan.liang
@ 2020-10-19 16:09 ` Andi Kleen
2020-10-19 16:45 ` Liang, Kan
0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2020-10-19 16:09 UTC (permalink / raw)
To: kan.liang; +Cc: peterz, mingo, linux-kernel
On Mon, Oct 19, 2020 at 08:01:58AM -0700, kan.liang@linux.intel.com wrote:
> Add a line for the CYCLE_ACTIVITY.STALLS_MEM_ANY event in the ICL
> constraint table.
> Correct the comments for the CYCLE_ACTIVITY.CYCLES_MEM_ANY event.
Thanks Kan.
>
> Reported-by: Andi Kleen <ak@linux.intel.com>
> Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
I guess this should have a Fixes: tag and also be proposed for
stable.
-Andi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
2020-10-19 16:09 ` Andi Kleen
@ 2020-10-19 16:45 ` Liang, Kan
0 siblings, 0 replies; 3+ messages in thread
From: Liang, Kan @ 2020-10-19 16:45 UTC (permalink / raw)
To: Andi Kleen; +Cc: peterz, mingo, linux-kernel
On 10/19/2020 12:09 PM, Andi Kleen wrote:
>> Reported-by: Andi Kleen<ak@linux.intel.com>
>> Signed-off-by: Kan Liang<kan.liang@linux.intel.com>
> I guess this should have a Fixes: tag and also be proposed for
> stable.
I will send V2 shortly to update the tag and Cc.
Thanks,
Kan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-19 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19 15:01 [PATCH] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY kan.liang
2020-10-19 16:09 ` Andi Kleen
2020-10-19 16:45 ` Liang, Kan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox