/* Find child node with given basename. Needs to be called with node_lock held.  */
static struct gcov_node* get_child_by_name(struct gcov_node *parent, const char *name)
/* Find child node with given basename. Needs to be called with node_lock held.  */
static struct gcov_node* get_child_by_name(struct gcov_node *parent, const char *name)
{
	struct gcov_node *node;
	list_for_each_entry(node, &parent->children, list) {
		if (strcmp(node->name, name) == 0)
			return node;
	}
	return NULL;
}