File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,8 @@ static inline void perf_ibs_disable_event(struct perf_ibs *perf_ibs,
377
377
struct hw_perf_event * hwc , u64 config )
378
378
{
379
379
config &= ~perf_ibs -> cnt_mask ;
380
- wrmsrl (hwc -> config_base , config );
380
+ if (boot_cpu_data .x86 == 0x10 )
381
+ wrmsrl (hwc -> config_base , config );
381
382
config &= ~perf_ibs -> enable_mask ;
382
383
wrmsrl (hwc -> config_base , config );
383
384
}
@@ -553,7 +554,8 @@ static struct perf_ibs perf_ibs_op = {
553
554
},
554
555
.msr = MSR_AMD64_IBSOPCTL ,
555
556
.config_mask = IBS_OP_CONFIG_MASK ,
556
- .cnt_mask = IBS_OP_MAX_CNT ,
557
+ .cnt_mask = IBS_OP_MAX_CNT | IBS_OP_CUR_CNT |
558
+ IBS_OP_CUR_CNT_RAND ,
557
559
.enable_mask = IBS_OP_ENABLE ,
558
560
.valid_mask = IBS_OP_VAL ,
559
561
.max_period = IBS_OP_MAX_CNT << 4 ,
You can’t perform that action at this time.
0 commit comments