[lkml]   [2009]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH -tip v5 00/10] kprobes: Kprobes jump optimization support
    On Tue, Nov 24, 2009 at 03:03:19AM +0100, Frederic Weisbecker wrote:
    > On Mon, Nov 23, 2009 at 06:21:16PM -0500, Masami Hiramatsu wrote:
    > > When the optimized-kprobe is hit before optimization, its handler
    > > changes IP(instruction pointer) to copied code and exits. So, the
    > > instructions which were copied to detour buffer are executed on the detour
    > > buffer.
    > Hm, why is it playing such hybrid game there?
    > If I understand well, we have executed int 3, executed the
    > handler and we jump back to the detour buffer?

    I got it, I think. We have instructions to patch. And the above
    turn this area into dead code, safe to patch.

    But still, stop_machine() seem to make it not necessary anymore.

     \ /
      Last update: 2009-11-24 04:23    [W:0.020 / U:1.452 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site