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 @@ -389,7 +389,8 @@ static inline void perf_ibs_disable_event(struct perf_ibs *perf_ibs,
389
389
struct hw_perf_event * hwc , u64 config )
390
390
{
391
391
config &= ~perf_ibs -> cnt_mask ;
392
- wrmsrl (hwc -> config_base , config );
392
+ if (boot_cpu_data .x86 == 0x10 )
393
+ wrmsrl (hwc -> config_base , config );
393
394
config &= ~perf_ibs -> enable_mask ;
394
395
wrmsrl (hwc -> config_base , config );
395
396
}
@@ -564,7 +565,8 @@ static struct perf_ibs perf_ibs_op = {
564
565
},
565
566
.msr = MSR_AMD64_IBSOPCTL ,
566
567
.config_mask = IBS_OP_CONFIG_MASK ,
567
- .cnt_mask = IBS_OP_MAX_CNT ,
568
+ .cnt_mask = IBS_OP_MAX_CNT | IBS_OP_CUR_CNT |
569
+ IBS_OP_CUR_CNT_RAND ,
568
570
.enable_mask = IBS_OP_ENABLE ,
569
571
.valid_mask = IBS_OP_VAL ,
570
572
.max_period = IBS_OP_MAX_CNT << 4 ,
You can’t perform that action at this time.
0 commit comments