lkml.org 
[lkml]   [2011]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 3.2-rc2 8/30] x86: analyze instruction and determine fixups.
On 11/18, Srikar Dronamraju wrote:
>
> +static void handle_riprel_insn(struct mm_struct *mm, struct uprobe *uprobe,
> + struct insn *insn)
> +{
> [...snip...]
> + if (insn->immediate.nbytes) {
> + cursor++;
> + memmove(cursor, cursor + insn->displacement.nbytes,
> + insn->immediate.nbytes);
> + }
> + return;
> +}

Of course I don not understand this code. But it seems that it can
rewrite uprobe->insn ?

If yes, don't we need to save the original insn for unregister_uprobe?

Oleg.



\
 
 \ /
  Last update: 2011-11-30 20:05    [W:0.272 / U:8.452 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site