Skip to contentSkip to conversation

ptrace question

DISCUSSION Harald Krapfenbauer 2 participants 2 messages Jul 14, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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