[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110704101422.GA9308@in.ibm.com>
Date: Mon, 4 Jul 2011 15:44:22 +0530
From: Ananth N Mavinakayanahalli <ananth@...ibm.com>
To: Yong Zhang <yong.zhang0@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists