Searching a process' memory on Linux

前端 未结 3 896
甜味超标
甜味超标 2020-12-21 04:50

How can I search the memory state of an process in Linux? Specifically I wish to identify certain regions of interest, and peek at them at regular intervals, possibly occasi

相关标签:
3条回答
  • 2020-12-21 05:26

    I believe you can achieve what you want by parsing /proc/[pid]/maps -- I've used that to diagnose invalid pointers

    0 讨论(0)
  • 2020-12-21 05:34

    Perhaps using GDB would be an option? You should be able to do things like periodically reading memory using breakpoints.

    0 讨论(0)
  • 2020-12-21 05:43

    I've developed some code for the requested functionality.

    The module memutil provides process memory region iteration, and python or C memory reading with assistance from the ptrace module, and readmem executable.

    If there is any questions, or requests for standalone tools, just ask.

    0 讨论(0)
提交回复
热议问题