Re: [PATCH] SAMPLES: kprobe_example: make it more easy to use

From: Ananth N Mavinakayanahalli
Date: Mon Jul 04 2011 - 06:14:33 EST


On Mon, Jul 04, 2011 at 03:27:39PM +0800, Yong Zhang wrote:
> From: Yong Zhang <yong.zhang0@xxxxxxxxx>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/