File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3572,6 +3572,11 @@ static u64 bdw_limit_period(struct perf_event *event, u64 left)
3572
3572
return left ;
3573
3573
}
3574
3574
3575
+ static u64 nhm_limit_period (struct perf_event * event , u64 left )
3576
+ {
3577
+ return max (left , 32ULL );
3578
+ }
3579
+
3575
3580
PMU_FORMAT_ATTR (event , "config:0-7" );
3576
3581
PMU_FORMAT_ATTR (umask , "config:8-15" );
3577
3582
PMU_FORMAT_ATTR (edge , "config:18" );
@@ -4606,6 +4611,7 @@ __init int intel_pmu_init(void)
4606
4611
x86_pmu .pebs_constraints = intel_nehalem_pebs_event_constraints ;
4607
4612
x86_pmu .enable_all = intel_pmu_nhm_enable_all ;
4608
4613
x86_pmu .extra_regs = intel_nehalem_extra_regs ;
4614
+ x86_pmu .limit_period = nhm_limit_period ;
4609
4615
4610
4616
mem_attr = nhm_mem_events_attrs ;
4611
4617
You can’t perform that action at this time.
0 commit comments