Low-overhead way to access the memory space of a traced process?

后端 未结 6 1611
梦谈多话
梦谈多话 2021-01-12 13:57

I\'m looking for an efficient way to access(for both read and write operations) the memory space of my ptraced child process. The size of blocks being accessed may vary from

6条回答
  •  心在旅途
    2021-01-12 14:25

    clone or mmap are what you are looking for. mmap a temp file between the two processes and use that memory space for passing data back and forth.

提交回复
热议问题