Skip to content

Commit

Permalink
[SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses.
Browse files Browse the repository at this point in the history
This makes things easier to track down, especially in modules.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 29, 2006
1 parent f57caae commit 675f740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/sparc64/kernel/unaligned.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/bitops.h>
#include <linux/kallsyms.h>
#include <asm/fpumacro.h>

/* #define DEBUG_MNA */
Expand Down Expand Up @@ -291,7 +292,8 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
if (count < 5) {
last_time = jiffies;
count++;
printk("Kernel unaligned access at TPC[%lx]\n", regs->tpc);
printk("Kernel unaligned access at TPC[%lx] ", regs->tpc);
print_symbol("%s\n", regs->tpc);
}

if (!ok_for_kernel(insn) || dir == both) {
Expand Down

0 comments on commit 675f740

Please sign in to comment.