lkml.org 
[lkml]   [1997]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHow can I read from /proc/xx/mem?
Hi,

I want to compare the VM seen by two processes, and I assumed
I can do this by :
1) creating two child processes
2) opening their /proc/xx/mem 'file'
3) seeking to ELF_START_MMAP + 0x48000
4) read & compare
But I always get ESRCH (=No such process).

I even tried to patch /fs/proc/mem.c, I removed
Line 69 to 74 (2.0.31) but still, it is not working

Thank you for any hints
----------------------------------------------------------------------
Philipp Reisner E-Mail mailto:e9525415@student.tuwien.ac.at

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.032 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site