x86: Swap save_stack_trace_regs parameters
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 8 Jun 2011 07:09:21 +0000 (16:09 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 15 Jun 2011 02:48:51 +0000 (22:48 -0400)
Swap the 1st and 2nd parameters of save_stack_trace_regs()
as same as the parameters of save_stack_trace_tsk().

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: yrl.pp-manager.tt@hitachi.com
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Namhyung Kim <namhyung@gmail.com>
Link: http://lkml.kernel.org/r/20110608070921.17777.31103.stgit@fedora15
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/stacktrace.c
arch/x86/mm/kmemcheck/error.c
include/linux/stacktrace.h

index 55d9bc03f696c1d37638575bd504fbf8bc2e1444..fdd0c6430e5abc97c878d192439447298b2fd06c 100644 (file)
@@ -66,7 +66,7 @@ void save_stack_trace(struct stack_trace *trace)
 }
 EXPORT_SYMBOL_GPL(save_stack_trace);
 
-void save_stack_trace_regs(struct stack_trace *trace, struct pt_regs *regs)
+void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace)
 {
        dump_trace(current, regs, NULL, 0, &save_stack_ops, trace);
        if (trace->nr_entries < trace->max_entries)
index 704a37cedddb59404a3c1fc773e44853b2089939..dab41876cdd561294dafc02cd08d71a7a508500b 100644 (file)
@@ -185,7 +185,7 @@ void kmemcheck_error_save(enum kmemcheck_shadow state,
        e->trace.entries = e->trace_entries;
        e->trace.max_entries = ARRAY_SIZE(e->trace_entries);
        e->trace.skip = 0;
-       save_stack_trace_regs(&e->trace, regs);
+       save_stack_trace_regs(regs, &e->trace);
 
        /* Round address down to nearest 16 bytes */
        shadow_copy = kmemcheck_shadow_lookup(address
index 25310f1d7f3773c540e51e7103a4edfa98db7a33..115b570e3bff3d47df43794b5781cfeaa3aa6245 100644 (file)
@@ -14,8 +14,8 @@ struct stack_trace {
 };
 
 extern void save_stack_trace(struct stack_trace *trace);
-extern void save_stack_trace_regs(struct stack_trace *trace,
-                                 struct pt_regs *regs);
+extern void save_stack_trace_regs(struct pt_regs *regs,
+                                 struct stack_trace *trace);
 extern void save_stack_trace_tsk(struct task_struct *tsk,
                                struct stack_trace *trace);