[lkml]   [2009]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH] x86: make text_poke() atomic
    * Arjan van de Ven ( wrote:
    > >
    > > Use map_vm_area() instead of vmap() in text_poke() for avoiding page
    > > allocation and delayed unmapping, and call vunmap_page_range() and
    > > local_flush_tlb() directly because this mapping is temporary and
    > > local.
    > >
    > > At the result of above change, text_poke() becomes atomic and can be
    > > called from stop_machine() etc.
    > .... but text_poke() realistically needs to call stop_machine() since
    > you can't poke live code.... so that makes me wonder how useful this
    > is...

    Hi Arjan,

    Stop machine is not required when inserting a breakpoint. And cleverly
    using this breakpoint technique can permit modifying other instructions
    as well.


    Mathieu Desnoyers
    OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68

     \ /
      Last update: 2009-03-02 19:39    [W:0.021 / U:6.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site