File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ arm_cspmu_event_attr_is_visible(struct kobject *kobj,
183
183
static struct attribute * arm_cspmu_format_attrs [] = {
184
184
ARM_CSPMU_FORMAT_EVENT_ATTR ,
185
185
ARM_CSPMU_FORMAT_FILTER_ATTR ,
186
+ ARM_CSPMU_FORMAT_FILTER2_ATTR ,
186
187
NULL ,
187
188
};
188
189
@@ -767,9 +768,11 @@ static void arm_cspmu_set_ev_filter(struct arm_cspmu *cspmu,
767
768
const struct perf_event * event )
768
769
{
769
770
u32 filter = event -> attr .config1 & ARM_CSPMU_FILTER_MASK ;
770
- u32 offset = PMEVFILTR + (4 * hwc -> idx );
771
+ u32 filter2 = event -> attr .config2 & ARM_CSPMU_FILTER_MASK ;
772
+ u32 offset = 4 * event -> hw .idx ;
771
773
772
- writel (filter , cspmu -> base0 + offset );
774
+ writel (filter , cspmu -> base0 + PMEVFILTR + offset );
775
+ writel (filter2 , cspmu -> base0 + PMEVFILT2R + offset );
773
776
}
774
777
775
778
static void arm_cspmu_set_cc_filter (struct arm_cspmu * cspmu ,
Original file line number Diff line number Diff line change 47
47
/* Default filter format */
48
48
#define ARM_CSPMU_FORMAT_FILTER_ATTR \
49
49
ARM_CSPMU_FORMAT_ATTR(filter, "config1:0-31")
50
+ #define ARM_CSPMU_FORMAT_FILTER2_ATTR \
51
+ ARM_CSPMU_FORMAT_ATTR(filter2, "config2:0-31")
50
52
51
53
/*
52
54
* This is the default event number for cycle count, if supported, since the
72
74
#define PMEVCNTR_HI 0x4
73
75
#define PMEVTYPER 0x400
74
76
#define PMCCFILTR 0x47C
77
+ #define PMEVFILT2R 0x800
75
78
#define PMEVFILTR 0xA00
76
79
#define PMCNTENSET 0xC00
77
80
#define PMCNTENCLR 0xC20
You can’t perform that action at this time.
0 commit comments