Hello,
I've been successfully reading some process memory from another process using procfs
and /proc/{pid}/mem file with standard fopen, fseek and fread functions. It works just fine.
When reading procfs(5), it's telling:
Although I've tried a few time, I could not find how to read the process memory with kvm and kvm_read.
I've also searched inside the kernel code for kvm examples, but with no real success.
I know ptrace can be used, but I specificaly do not need the process to be stopped. The process has to continue running normaly without any pause.
Any pointers please?
I'd really like to use libprocstat and kvm as advised in the manual. I also understand that the reading has to be made from a process with root permissions.
I've been successfully reading some process memory from another process using procfs
and /proc/{pid}/mem file with standard fopen, fseek and fread functions. It works just fine.
When reading procfs(5), it's telling:
Code:
DESCRIPTION
This functionality is deprecated. Users are advised to use
libprocstat(3) and kvm(3) instead.
I've also searched inside the kernel code for kvm examples, but with no real success.
I know ptrace can be used, but I specificaly do not need the process to be stopped. The process has to continue running normaly without any pause.
Any pointers please?
I'd really like to use libprocstat and kvm as advised in the manual. I also understand that the reading has to be made from a process with root permissions.