[PATCH] MIPS fixups for LTTng

Manish Lachwani <[email protected]>
Newsgroups gmane.linux.kernel.tracing
Message-ID <[email protected]>
Hi!

Attached patch fixes compile issues on MIPS when using LTTng. Please review.

Thanks,
Manish Lachwani
mips_lttng_fixups.patch (text/plain, 2 KB)
Source: MontaVista Software, Inc. | Manish Lachwani <[email protected]>
Type: Defect Fix 
Signed-off-by: Manish Lachwani <[email protected]>
Description:

Miscellaneous fixups for LTT on MIPS

 arch/mips/kernel/process.c |    4 ----
 arch/mips/kernel/traps.c   |    7 -------
 2 files changed, 11 deletions(-)

Index: arch/mips/kernel/process.c
===================================================================
--- arch/mips/kernel/process.c.orig
+++ arch/mips/kernel/process.c
@@ -276,10 +276,6 @@ long kernel_thread(int (*fn)(void *), vo
 	pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED,
 			0, &regs, 0, NULL, NULL);
 	MARK(kernel_thread_create, "%ld %p", pid, fn);
-#ifdef CONFIG_LTT
-	if(pid >= 0)
-		trace_process_kernel_thread(pid, fn);
-#endif //CONFIG_LTT
 	return pid;
 }
 
Index: arch/mips/kernel/traps.c
===================================================================
--- arch/mips/kernel/traps.c.orig
+++ arch/mips/kernel/traps.c
@@ -591,7 +591,6 @@ asmlinkage void do_fpe(struct pt_regs *r
 {
 	die_if_kernel("FP exception in kernel code", regs);
 
-	trace_kernel_trap_entry(CAUSE_EXCCODE(regs->cp0_cause), (void*)regs->cp0_epc);
 	if (fcr31 & FPU_CSR_UNI_X) {
 		int sig;
 
@@ -748,20 +747,16 @@ asmlinkage void do_cpu(struct pt_regs *r
 
 	die_if_kernel("do_cpu invoked from kernel context!", regs);
 
-	trace_kernel_trap_entry(CAUSE_EXCCODE(regs->cp0_cause), (void*)regs->cp0_epc);
-
 	cpid = (regs->cp0_cause >> CAUSEB_CE) & 3;
 
 	switch (cpid) {
 	case 0:
 		if (!cpu_has_llsc)
 			if (!simulate_llsc(regs)) {
-				trace_kernel_trap_exit();
 				return;
 			}
 
 		if (!simulate_rdhwr(regs)) {
-			trace_kernel_trap_exit();
 			return;
 		}
 
@@ -818,7 +813,6 @@ asmlinkage void do_cpu(struct pt_regs *r
 			}
 #endif /* CONFIG_MIPS_MT_FPAFF */
 		}
-		trace_kernel_trap_exit();
 		return;
 
 	case 2:
@@ -828,7 +822,6 @@ asmlinkage void do_cpu(struct pt_regs *r
 	}
 
 	force_sig(SIGILL, current);
-	trace_kernel_trap_exit();
 }
 
 asmlinkage void do_mdmx(struct pt_regs *regs)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.