We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225d757 commit 71e0cb3Copy full SHA for 71e0cb3
drivers/perf/arm_cspmu/arm_cspmu.c
@@ -189,10 +189,10 @@ static inline bool use_64b_counter_reg(const struct arm_cspmu *cspmu)
189
ssize_t arm_cspmu_sysfs_event_show(struct device *dev,
190
struct device_attribute *attr, char *buf)
191
{
192
- struct dev_ext_attribute *eattr =
193
- container_of(attr, struct dev_ext_attribute, attr);
194
- return sysfs_emit(buf, "event=0x%llx\n",
195
- (unsigned long long)eattr->var);
+ struct perf_pmu_events_attr *pmu_attr;
+
+ pmu_attr = container_of(attr, typeof(*pmu_attr), attr);
+ return sysfs_emit(buf, "event=0x%llx\n", pmu_attr->id);
196
}
197
EXPORT_SYMBOL_GPL(arm_cspmu_sysfs_event_show);
198
0 commit comments