perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
Subsystems (2)
PATCH 1/1 perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY
From: Kan Liang <[email protected]>
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.
--- arch/x86/events/intel/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/events/intel/core.c +2 -1
@@ -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),
Signature · 1 line
2.17.1
Quoted 3 lines · On Mon, Oct 19, 2020 at 08:01:58AM -0700, [email protected] 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.
Quoted 3 lines
Reported-by Andi Kleen <[email protected]>Signed-off-by Kan Liang <[email protected]>
I guess this should have a Fixes: tag and also be proposed for stable.
-Andi
Quoted 4 lines · Andi Kleen
Quoted 2 lines
Reported-by Andi Kleen<[email protected]>Signed-off-by Kan Liang<[email protected]>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