/* Disable a tracepoint and its probe callback. Note: only waiting an RCU period after setting elem->call to the empty function insures that the original callback is not used anymore. This insured by preempt_disable around the call site.  */
static void disable_tracepoint(struct tracepoint *elem)
/* Disable a tracepoint and its probe callback. Note: only waiting an RCU period after setting elem->call to the empty function insures that the original callback is not used anymore. This insured by preempt_disable around the call site.  */
static void disable_tracepoint(struct tracepoint *elem)
{
	if (elem->unregfunc && elem->state)
		elem->unregfunc();
	elem->state = 0;
	rcu_assign_pointer(elem->funcs, NULL);
}