diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/kprobes/kprobe_example.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index ebf5e0c368ea..366db1a9fb65 100644 --- a/samples/kprobes/kprobe_example.c +++ b/samples/kprobes/kprobe_example.c | |||
@@ -37,6 +37,11 @@ static int handler_pre(struct kprobe *p, struct pt_regs *regs) | |||
37 | " status = 0x%lx\n", | 37 | " status = 0x%lx\n", |
38 | p->addr, regs->cp0_epc, regs->cp0_status); | 38 | p->addr, regs->cp0_epc, regs->cp0_status); |
39 | #endif | 39 | #endif |
40 | #ifdef CONFIG_TILEGX | ||
41 | printk(KERN_INFO "pre_handler: p->addr = 0x%p, pc = 0x%lx," | ||
42 | " ex1 = 0x%lx\n", | ||
43 | p->addr, regs->pc, regs->ex1); | ||
44 | #endif | ||
40 | 45 | ||
41 | /* A dump_stack() here will give a stack backtrace */ | 46 | /* A dump_stack() here will give a stack backtrace */ |
42 | return 0; | 47 | return 0; |
@@ -58,6 +63,10 @@ static void handler_post(struct kprobe *p, struct pt_regs *regs, | |||
58 | printk(KERN_INFO "post_handler: p->addr = 0x%p, status = 0x%lx\n", | 63 | printk(KERN_INFO "post_handler: p->addr = 0x%p, status = 0x%lx\n", |
59 | p->addr, regs->cp0_status); | 64 | p->addr, regs->cp0_status); |
60 | #endif | 65 | #endif |
66 | #ifdef CONFIG_TILEGX | ||
67 | printk(KERN_INFO "post_handler: p->addr = 0x%p, ex1 = 0x%lx\n", | ||
68 | p->addr, regs->ex1); | ||
69 | #endif | ||
61 | } | 70 | } |
62 | 71 | ||
63 | /* | 72 | /* |