diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-03-09 10:41:56 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-03-10 10:31:48 -0500 |
commit | e6e1e2593592a8f6f6380496655d8c6f67431266 (patch) | |
tree | 00ef843b23fac5ab6be92725ce5b01487f555997 /kernel/trace/trace_output.c | |
parent | de29be5e712dc8b7eef2bef9417af3bb6a88e47a (diff) | |
download | kernel_goldelico_gta04-e6e1e2593592a8f6f6380496655d8c6f67431266.zip kernel_goldelico_gta04-e6e1e2593592a8f6f6380496655d8c6f67431266.tar.gz kernel_goldelico_gta04-e6e1e2593592a8f6f6380496655d8c6f67431266.tar.bz2 |
tracing: Remove lock_depth from event entry
The lock_depth field in the event headers was added as a temporary
data point for help in removing the BKL. Now that the BKL is pretty
much been removed, we can remove this field.
This in turn changes the header from 12 bytes to 8 bytes,
removing the 4 byte buffer that gcc would insert if the first field
in the data load was 8 bytes in size.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_output.c')
-rw-r--r-- | kernel/trace/trace_output.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index 02272ba..151f32e 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c @@ -529,7 +529,7 @@ seq_print_ip_sym(struct trace_seq *s, unsigned long ip, unsigned long sym_flags) * @entry: The trace entry field from the ring buffer * * Prints the generic fields of irqs off, in hard or softirq, preempt - * count and lock depth. + * count. */ int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry) { @@ -554,13 +554,7 @@ int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry) else ret = trace_seq_putc(s, '.'); - if (!ret) - return 0; - - if (entry->lock_depth < 0) - return trace_seq_putc(s, '.'); - - return trace_seq_printf(s, "%d", entry->lock_depth); + return ret; } static int |