> @@ -117,6 +117,7 @@ > (EVENT_UNIT_MASK << EVENT_UNIT_SHIFT) | \ > (EVENT_COMBINE_MASK << EVENT_COMBINE_SHIFT) | \ > (EVENT_MARKED_MASK << EVENT_MARKED_SHIFT) | \ > + (1ull << EVENT_CONFIG_EBB_SHIFT) | \
We should define this macro like EVENT_MARKED_MASK #define EVENT_EBB_MASK 0x1 Numeric value of "1ull" stands out odd in the scheme. > EVENT_PSEL_MASK) > > + * EBB -* | | > + * | | Count of events for > each PMC. > + * L1 I/D qualifier -* | p1, p2, p3, p4, p5, > p6. > * nc - number of counters -* > * > * The PMC fields P1..P6, and NC, are adder fields. As we accumulate > constraints > @@ -159,6 +160,9 @@ > #define CNST_THRESH_VAL(v) (((v) & EVENT_THRESH_MASK) << 32) > #define CNST_THRESH_MASK CNST_THRESH_VAL(EVENT_THRESH_MASK) > > +#define CNST_EBB_VAL(v) (((v) & 1) << 24) EVENT_EBB_MASK can be used here as well. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev