aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2013-05-24 02:03:55 +0530
committerJohn Stultz <john.stultz@linaro.org>2013-05-24 09:19:38 -0700
commitdf7068048bd0e0224ef9bbd408633c9238d103f2 (patch)
treeb4ce9b0c4b7de2b516ca959175799ed0c6c591cb
parent149891b20608f4cbd062d90fa1aca3b2b19e1066 (diff)
I have noticed kernel crash while reading trace file. 'cat /sys/kernel/debug/tracing/trace' The reason of the kernel crash is few bits in trace.c is missing from Merge tag 'trace-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace in to linux-linaro. Those are like "struct trace_array *tr " replaced with "struct trace_buffer *buf" and respective changes. I have applied this patch and tested on linux-linaro branch no more kernel crash reported and trace data is back again. Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--kernel/trace/trace.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index e4cc806586a4..a68084ecdea5 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2361,9 +2361,9 @@ static void print_func_help_header(struct trace_buffer *buf, struct seq_file *m)
seq_puts(m, "# | | | | |\n");
}
-static void print_func_help_header_tgid(struct trace_array *tr, struct seq_file *m)
+static void print_func_help_header_tgid(struct trace_buffer *buf, struct seq_file *m)
{
- print_event_info(tr, m);
+ print_event_info(buf, m);
seq_puts(m, "# TASK-PID TGID CPU# TIMESTAMP FUNCTION\n");
seq_puts(m, "# | | | | | |\n");
}
@@ -2380,9 +2380,9 @@ static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file
seq_puts(m, "# | | | |||| | |\n");
}
-static void print_func_help_header_irq_tgid(struct trace_array *tr, struct seq_file *m)
+static void print_func_help_header_irq_tgid(struct trace_buffer *buf, struct seq_file *m)
{
- print_event_info(tr, m);
+ print_event_info(buf, m);
seq_puts(m, "# _-----=> irqs-off\n");
seq_puts(m, "# / _----=> need-resched\n");
seq_puts(m, "# | / _---=> hardirq/softirq\n");
@@ -2693,14 +2693,14 @@ void trace_default_header(struct seq_file *m)
if (!(trace_flags & TRACE_ITER_VERBOSE)) {
if (trace_flags & TRACE_ITER_IRQ_INFO)
if (trace_flags & TRACE_ITER_TGID)
- print_func_help_header_irq_tgid(iter->tr, m);
+ print_func_help_header_irq_tgid(iter->trace_buffer, m);
else
- print_func_help_header_irq(iter->tr, m);
+ print_func_help_header_irq(iter->trace_buffer, m);
else
if (trace_flags & TRACE_ITER_TGID)
- print_func_help_header_tgid(iter->tr, m);
+ print_func_help_header_tgid(iter->trace_buffer, m);
else
- print_func_help_header(iter->tr, m);
+ print_func_help_header(iter->trace_buffer, m);
}
}
}