lkml.org 
[lkml]   [2011]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2011-07-04 12:17    [W:0.056 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site