Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204603
b: refs/heads/master
c: 8a14923
h: refs/heads/master
i:
  204601: 5e9d9b2
  204599: 3ac8873
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Aug 5, 2010
1 parent 55626ee commit 9ff2bb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1bf207d6ee1eb72e9c10365edbdc7c9ff7fb9b0
refs/heads/master: 8a1492370b493cf680b86885286f07cb9b967716
9 changes: 9 additions & 0 deletions trunk/samples/kprobes/kprobe_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ static int handler_pre(struct kprobe *p, struct pt_regs *regs)
" msr = 0x%lx\n",
p->addr, regs->nip, regs->msr);
#endif
#ifdef CONFIG_MIPS
printk(KERN_INFO "pre_handler: p->addr = 0x%p, epc = 0x%lx,"
" status = 0x%lx\n",
p->addr, regs->cp0_epc, regs->cp0_status);
#endif

/* A dump_stack() here will give a stack backtrace */
return 0;
Expand All @@ -49,6 +54,10 @@ static void handler_post(struct kprobe *p, struct pt_regs *regs,
printk(KERN_INFO "post_handler: p->addr = 0x%p, msr = 0x%lx\n",
p->addr, regs->msr);
#endif
#ifdef CONFIG_MIPS
printk(KERN_INFO "post_handler: p->addr = 0x%p, status = 0x%lx\n",
p->addr, regs->cp0_status);
#endif
}

/*
Expand Down

0 comments on commit 9ff2bb2

Please sign in to comment.