|
@@ -420,7 +420,20 @@ static struct attribute_group power7_pmu_events_group = {
|
|
|
.attrs = power7_events_attr,
|
|
|
};
|
|
|
|
|
|
+PMU_FORMAT_ATTR(event, "config:0-19");
|
|
|
+
|
|
|
+static struct attribute *power7_pmu_format_attr[] = {
|
|
|
+ &format_attr_event.attr,
|
|
|
+ NULL,
|
|
|
+};
|
|
|
+
|
|
|
+struct attribute_group power7_pmu_format_group = {
|
|
|
+ .name = "format",
|
|
|
+ .attrs = power7_pmu_format_attr,
|
|
|
+};
|
|
|
+
|
|
|
static const struct attribute_group *power7_pmu_attr_groups[] = {
|
|
|
+ &power7_pmu_format_group,
|
|
|
&power7_pmu_events_group,
|
|
|
NULL,
|
|
|
};
|