5 struct llist_head list;
7 const char *description;
11 static inline void counter_inc(struct counter *ctr)
16 static inline unsigned long counter_get(struct counter *ctr)
21 static inline void counter_reset(struct counter *ctr)
26 struct counter *counter_alloc(const char *name);
27 void counter_free(struct counter *ctr);
29 int counters_for_each(int (*handle_counter)(struct counter *, void *), void *data);
31 struct counter *counter_get_by_name(const char *name);
33 #endif /* _STATISTICS_H */