linux - How to print every byte of the memory a process is using in C? -
what want accomplish start process starting c command line application under linux , first find out lowest , hightest virtual memory address used process , afterwards print every byte between hex value printf(). possible?
can figure out lowest , hightest virtual memory addresses of own process?
if had those, guess utilize pointer arithmetic combined printf("%p, &address) print thats between.
any suggestions?
use ps
command following
system("ps aux --sort -rss|grep <your_process_name_or_id>");
c linux pointers memory memory-address
No comments:
Post a Comment