struct llist_head list;
/* Pointer to the counter group class */
const struct rate_ctr_group_desc *desc;
+ /* The index of this ctr_group within its class */
unsigned int idx;
- /* The name prefix generated from desc->group_prefix_fmt and index */
- char *name_prefix;
/* Actual counter structures below */
struct rate_ctr ctr[0];
};
group->desc = desc;
group->idx = idx;
- /* Generate the Group prefix from the user-specified index */
- group->name_prefix = talloc_size(group, strlen(desc->group_prefix_fmt) + 20);
- sprintf(group->name_prefix, desc->group_prefix_fmt, idx);
llist_add(&group->list, &rate_ctr_groups);