MAX_COUNTER_SLOTS
uint64_t vals[MAX_COUNTER_SLOTS]; /* Last 64 entries */
int max_to_collect = MAX_COUNTER_SLOTS;
if (max_to_collect > MAX_COUNTER_SLOTS) {
max_to_collect = MAX_COUNTER_SLOTS;