/* Find a node by the associated data file name. Needs to be called with node_lock held.  */
static struct gcov_node* get_node_by_name(const char *name)
/* Find a node by the associated data file name. Needs to be called with node_lock held.  */
static struct gcov_node* get_node_by_name(const char *name)
{
	struct gcov_node *node;
	struct gcov_info *info;
	list_for_each_entry(node, &all_head, all) {
		info = get_node_info(node);
		if (info && (strcmp(info->filename, name) == 0))
			return node;
	}
	return NULL;
}