ptrace question
Hello,
If I write memory (maybe with instructions) of a traced application with the ptrace() call, are the caches invalidated automatically, i.e. can I assume that the processor uses the newly written values after continuing?
Thanks + best regards,
Harald
Quoted 5 lines · Harald Krapfenbauer
Hello,
If I write memory (maybe with instructions) of a traced application with the
ptrace()call, are the caches invalidated automatically, i.e. can I assume that the processor uses the newly written values after continuing?
ptrace semantics requires PTRACE_POKETEXT to ensure I-cache coherency and consistency.
Ralf