File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1735,6 +1735,7 @@ static int intel_pt_synth_pebs_sample(struct intel_pt_queue *ptq)
1735
1735
u64 sample_type = evsel -> core .attr .sample_type ;
1736
1736
u64 id = evsel -> core .id [0 ];
1737
1737
u8 cpumode ;
1738
+ u64 regs [8 * sizeof (sample .intr_regs .mask )];
1738
1739
1739
1740
if (intel_pt_skip_event (pt ))
1740
1741
return 0 ;
@@ -1784,8 +1785,8 @@ static int intel_pt_synth_pebs_sample(struct intel_pt_queue *ptq)
1784
1785
}
1785
1786
1786
1787
if (sample_type & PERF_SAMPLE_REGS_INTR &&
1787
- items -> mask [INTEL_PT_GP_REGS_POS ]) {
1788
- u64 regs [ sizeof ( sample . intr_regs . mask )];
1788
+ ( items -> mask [INTEL_PT_GP_REGS_POS ] ||
1789
+ items -> mask [ INTEL_PT_XMM_POS ])) {
1789
1790
u64 regs_mask = evsel -> core .attr .sample_regs_intr ;
1790
1791
u64 * pos ;
1791
1792
You can’t perform that action at this time.
0 commit comments