/* Find a statistics structure by name, this is not thread-safe. (assumption: all statistics are registered prior ot OS start.) */
struct stats_hdr* stats_group_find(const char *name)
/* Find a statistics structure by name, this is not thread-safe. (assumption: all statistics are registered prior ot OS start.) */
struct stats_hdr* stats_group_find(const char *name)
{
	struct stats_hdr *hdr;
	for (hdr = stats_list; hdr != NULL; hdr = hdr->s_next) {
		if (strcmp(hdr->s_name, name) == 0) {
			return hdr;
		}
	}
	return NULL;
}