Hi, thank you all, I'll look into it and hava a try. What I want to do
On 5月10日, 上午1时59分, Derek Bruening <
bruen...@google.com> wrote:
> Agreed. It's hard to tell why you're trying to do this, but a persisted
> code cache from a prior run that is loaded in a subsequent run may be what
> you want. See dr_register_persist_ro(), etc. (
>
> - Derek
>
>
>
>
>
>
>
> On Wed, May 9, 2012 at 1:55 PM, Qin Zhao <
qin.z...@gmail.com> wrote:
> > The ToT DynamoRIO can do the persist code cache, i.e. dump the code and
> > load it in the future run.
> > Which might be what you want.
>
> > Qin
>
> > On Wed, May 9, 2012 at 1:51 PM, Reid Kleckner <
r...@google.com> wrote:
>
> >> No, this would be much more like something done as a post-link step. The
> >> typical post-link drawback is that you have to be very careful about
> >> identifying all of the control flow edges that jump into the middle of the
> >> instruction stream, so they can be updated.
>
> >> Because DR does everything at runtime, it can just wait until it
> >> encounters these mid-stream jumps and just start a new basic block fragment
> >> from the new PC.
>
> >> Any post-link transformation would also not have support for dynamically
> >> generated or self-modifying code, which DR can handle.
>
> >> Reid
>