|
@@ -59,6 +59,7 @@ struct event_constraint {
|
|
|
u64 cmask;
|
|
|
int weight;
|
|
|
int overlap;
|
|
|
+ int flags;
|
|
|
};
|
|
|
|
|
|
struct amd_nb {
|
|
@@ -170,16 +171,17 @@ struct cpu_hw_events {
|
|
|
void *kfree_on_online;
|
|
|
};
|
|
|
|
|
|
-#define __EVENT_CONSTRAINT(c, n, m, w, o) {\
|
|
|
+#define __EVENT_CONSTRAINT(c, n, m, w, o, f) {\
|
|
|
{ .idxmsk64 = (n) }, \
|
|
|
.code = (c), \
|
|
|
.cmask = (m), \
|
|
|
.weight = (w), \
|
|
|
.overlap = (o), \
|
|
|
+ .flags = f, \
|
|
|
}
|
|
|
|
|
|
#define EVENT_CONSTRAINT(c, n, m) \
|
|
|
- __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 0)
|
|
|
+ __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 0, 0)
|
|
|
|
|
|
/*
|
|
|
* The overlap flag marks event constraints with overlapping counter
|
|
@@ -203,7 +205,7 @@ struct cpu_hw_events {
|
|
|
* and its counter masks must be kept at a minimum.
|
|
|
*/
|
|
|
#define EVENT_CONSTRAINT_OVERLAP(c, n, m) \
|
|
|
- __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 1)
|
|
|
+ __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 1, 0)
|
|
|
|
|
|
/*
|
|
|
* Constraint on the Event code.
|