/* This function is to be called when a tracer is about to be used.  */
int tracing_update_buffers(void)
/* This function is to be called when a tracer is about to be used.  */
int tracing_update_buffers(void)
{
	int ret = 0;
	mutex_lock(&trace_types_lock);
	if (!ring_buffer_expanded)
		ret = tracing_resize_ring_buffer(trace_buf_size);
	mutex_unlock(&trace_types_lock);
	return ret;
}