]> Pileus Git - ~andy/linux/blobdiff - samples/kprobes/kprobe_example.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
[~andy/linux] / samples / kprobes / kprobe_example.c
index ebf5e0c368ea0eb4bf48fbda2f76b5b347c3e247..366db1a9fb65b5662ffdb14564750c60b6f012c7 100644 (file)
@@ -37,6 +37,11 @@ static int handler_pre(struct kprobe *p, struct pt_regs *regs)
                        " status = 0x%lx\n",
                p->addr, regs->cp0_epc, regs->cp0_status);
 #endif
+#ifdef CONFIG_TILEGX
+       printk(KERN_INFO "pre_handler: p->addr = 0x%p, pc = 0x%lx,"
+                       " ex1 = 0x%lx\n",
+               p->addr, regs->pc, regs->ex1);
+#endif
 
        /* A dump_stack() here will give a stack backtrace */
        return 0;
@@ -58,6 +63,10 @@ static void handler_post(struct kprobe *p, struct pt_regs *regs,
        printk(KERN_INFO "post_handler: p->addr = 0x%p, status = 0x%lx\n",
                p->addr, regs->cp0_status);
 #endif
+#ifdef CONFIG_TILEGX
+       printk(KERN_INFO "post_handler: p->addr = 0x%p, ex1 = 0x%lx\n",
+               p->addr, regs->ex1);
+#endif
 }
 
 /*