trace.c (f633cef0200bbaec539e2dbb0bc4bed7f022f98b) | trace.c (dbd0b4b33074aa6b7832a9d9a5bd985eca5c1aa2) |
---|---|
1/* 2 * ring buffer based function tracer 3 * 4 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> 5 * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> 6 * 7 * Originally taken from the RT patch by: 8 * Arnaldo Carvalho de Melo <acme@redhat.com> --- 2340 unchanged lines hidden (view full) --- 2349 current_trace->reset(tr); 2350 2351 current_trace = t; 2352 if (t->init) { 2353 ret = t->init(tr); 2354 if (ret) 2355 goto out; 2356 } | 1/* 2 * ring buffer based function tracer 3 * 4 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> 5 * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> 6 * 7 * Originally taken from the RT patch by: 8 * Arnaldo Carvalho de Melo <acme@redhat.com> --- 2340 unchanged lines hidden (view full) --- 2349 current_trace->reset(tr); 2350 2351 current_trace = t; 2352 if (t->init) { 2353 ret = t->init(tr); 2354 if (ret) 2355 goto out; 2356 } |
2357 init_tracer_stat(t); |
|
2357 2358 trace_branch_enable(tr); 2359 out: 2360 mutex_unlock(&trace_types_lock); 2361 2362 return ret; 2363} 2364 --- 836 unchanged lines hidden (view full) --- 3201 register_tracer(&nop_trace); 3202#ifdef CONFIG_BOOT_TRACER 3203 register_tracer(&boot_tracer); 3204 current_trace = &boot_tracer; 3205 current_trace->init(&global_trace); 3206#else 3207 current_trace = &nop_trace; 3208#endif | 2358 2359 trace_branch_enable(tr); 2360 out: 2361 mutex_unlock(&trace_types_lock); 2362 2363 return ret; 2364} 2365 --- 836 unchanged lines hidden (view full) --- 3202 register_tracer(&nop_trace); 3203#ifdef CONFIG_BOOT_TRACER 3204 register_tracer(&boot_tracer); 3205 current_trace = &boot_tracer; 3206 current_trace->init(&global_trace); 3207#else 3208 current_trace = &nop_trace; 3209#endif |
3209 | 3210 init_tracer_stat(current_trace); |
3210 /* All seems OK, enable tracing */ 3211 tracing_disabled = 0; 3212 3213 atomic_notifier_chain_register(&panic_notifier_list, 3214 &trace_panic_notifier); 3215 3216 register_die_notifier(&trace_die_notifier); 3217 3218 return 0; 3219} 3220early_initcall(tracer_alloc_buffers); 3221fs_initcall(tracer_init_debugfs); | 3211 /* All seems OK, enable tracing */ 3212 tracing_disabled = 0; 3213 3214 atomic_notifier_chain_register(&panic_notifier_list, 3215 &trace_panic_notifier); 3216 3217 register_die_notifier(&trace_die_notifier); 3218 3219 return 0; 3220} 3221early_initcall(tracer_alloc_buffers); 3222fs_initcall(tracer_init_debugfs); |