lkml.org 
[lkml]   [2009]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -tip v5 06/10] kprobes/x86: Cleanup save/restore registers
On Tue, Nov 24, 2009 at 10:40:24AM -0500, Frank Ch. Eigler wrote:
> Frederic Weisbecker <fweisbec@gmail.com> writes:
>
> > [...]
> >> +#define SAVE_REGS_STRING \
> >> +#define RESTORE_REGS_STRING \
> >
> > BTW, do you really need to push/pop every registers
> > before/after calling a probe handler?
>
> It's part of the definition of a kprobe, that a populated
> pt_regs* value is passed. Clients can rely on that in order
> to access registers etc.
>
> - FChE

Yeah I made a confusion. Sorry.



\
 
 \ /
  Last update: 2009-11-24 21:23    [from the cache]
©2003-2011 Jasper Spaans