mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Add a very hackish /proc/PID/stack.
It walks the stack and identifies anything that looks like a kernel symbol. This could be a lot more sophisticated.
This commit is contained in:
parent
81627cf7d5
commit
c928b06218
14 changed files with 130 additions and 13 deletions
|
@ -15,7 +15,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
for (;;) {
|
||||
char buf[128];
|
||||
char buf[4096];
|
||||
ssize_t nread = read(fd, buf, sizeof(buf));
|
||||
if (nread == 0)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue