L3_NUM_COUNTERS
struct perf_event *events[L3_NUM_COUNTERS];
unsigned long used_mask[BITS_TO_LONGS(L3_NUM_COUNTERS)];
for (i = 0; i < L3_NUM_COUNTERS; ++i) {
for_each_set_bit(idx, &status, L3_NUM_COUNTERS) {
return counters <= L3_NUM_COUNTERS;
idx = bitmap_find_free_region(l3pmu->used_mask, L3_NUM_COUNTERS, order);