Tagged Questions
-1
votes
0answers
35 views
create a /proc symlink
I'm trying to build a module using the method shown in this answer.
Basically I need to create a symlink I got it to build, when I try to load it using insmod I get:
-1 invalid module format
and ...
4
votes
1answer
702 views
What is the difference between /proc/self/stack and output from pstack?
I have been looking through the documentation for /proc and the "stack" object being a new'ish object in proc, I have also looked through the kernel commit to create it -- however the documentation ...
12
votes
4answers
2k views
Read the stack of another process?
I'm trying to read a child process's stack but with no luck.
I know it is possible using ptrace, but ptrace's interface allows you to read only one word at a time, and I'm trying to scan a larger ...
13
votes
4answers
369 views
How do I learn what I can do with /proc and /sys
I'd like to know more about the advanced uses of the /proc and /sys virtual filesystems, but I don't know where to begin. Can anyone suggest any good sources to learn from? Also, since I think sys has ...
38
votes
3answers
16k views
How do I read from /proc/$pid/mem under Linux?
The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me
$ cat /proc/$$/mem ...
10
votes
2answers
431 views
Contents of /proc
Is there a site someplace that lists the contents of /proc and what each entry means?