Messages in this thread | | | Date | Mon, 4 Jul 2011 15:44:22 +0530 | From | Ananth N Mavinakayanahalli <> | Subject | Re: [PATCH] SAMPLES: kprobe_example: make it more easy to use |
| |
On Mon, Jul 04, 2011 at 03:27:39PM +0800, Yong Zhang wrote: > From: Yong Zhang <yong.zhang0@gmail.com> > Subject: [PATCH] SAMPLES: kprobe_example: make it more easy to use
...
> - printk(KERN_INFO "post_handler: p->addr = 0x%p, flags = 0x%lx\n", > - p->addr, regs->flags); > + printk(KERN_INFO "post_handler: p->addr = 0x%p, ip = %lx," > + " flags = 0x%lx\n", > + p->addr, regs->ip, regs->flags);
You are probably better off using the instruction_pointer(regs) helper here and elsewhere..
Ananth
| |