static int mt65xx_mon_trace_init(struct trace_array *tr)
{

	mt65xx_mon_trace = tr;
	tracing_reset_online_cpus(tr);
	tracing_start_mt65xx_mon_record();

	return 0;
}
Exemplo n.º 2
0
static int mt65xx_mon_trace_init(struct trace_array *tr)
{

    mt65xx_mon_trace = tr;
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
    tracing_reset_online_cpus(tr);
#else
    tracing_reset_online_cpus(&tr->trace_buffer);
#endif
    tracing_start_mt65xx_mon_record();

    return 0;
}