Linux process memory search

How can I search for memory status in Linux? In particular, I want to identify certain areas of interest and look into them at regular intervals, perhaps sometimes to evoke new values.

I suspect the answer may include ptrace () calls and reading / proc / [pid] / mem , but more needs to be continued.

+3
source share
3 answers

I developed code for the requested functions.

The memutil module iterates the process memory area and reads python or C memory using the ptrace and readmem executable.

- , .

+1

, , , /proc/[pid]/maps -

+2

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

0
source

Source: https://habr.com/ru/post/1745560/


All Articles