/* Turns on context switch tracing for a tracer.  */
void tracing_start_sched_switch_record(void)
/* Turns on context switch tracing for a tracer.  */
void tracing_start_sched_switch_record(void)
{
	if (unlikely(!ctx_trace)) {
		WARN_ON(1);
		return;
	}
	tracing_start_sched_switch();
	mutex_lock(&sched_register_mutex);
	tracer_enabled++;
	mutex_unlock(&sched_register_mutex);
}