diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2010-06-03 12:26:24 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-07-21 04:05:34 +0200 |
commit | bc289ae98b75d93228d24f521ef02a076e506e94 (patch) | |
tree | 50d151d0fbde1b106932c0f80a2639839d261ca3 /kernel/trace/trace_sched_wakeup.c | |
parent | trace: Reorder struct ring_buffer_per_cpu to remove padding on 64bit (diff) | |
download | linux-bc289ae98b75d93228d24f521ef02a076e506e94.tar.xz linux-bc289ae98b75d93228d24f521ef02a076e506e94.zip |
tracing: Reduce latency and remove percpu trace_seq
__print_flags() and __print_symbolic() use percpu trace_seq:
1) Its memory is allocated at compile time, it wastes memory if we don't use tracing.
2) It is percpu data and it wastes more memory for multi-cpus system.
3) It disables preemption when it executes its core routine
"trace_seq_printf(s, "%s: ", #call);" and introduces latency.
So we move this trace_seq to struct trace_iterator.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
LKML-Reference: <4C078350.7090106@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
0 files changed, 0 insertions, 0 deletions