/* Get tracepoint if the tracepoint is present in the tracepoint hash table. Must be called with tracepoints_mutex held. Returns NULL if not present.  */
static struct tracepoint_entry* get_tracepoint(const char *name)
/* Get tracepoint if the tracepoint is present in the tracepoint hash table. Must be called with tracepoints_mutex held. Returns NULL if not present.  */
static struct tracepoint_entry* get_tracepoint(const char *name)
{
	struct hlist_head *head;
	struct hlist_node *node;
	struct tracepoint_entry *e;
	u32 hash = jhash(name, strlen(name), 0);
	head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
	hlist_for_each_entry(e, node, head, hlist) {
		if (!strcmp(name, e->name))
			return e;
	}
	return NULL;
}