diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-26 22:32:35 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-26 22:33:15 +0200 |
commit | c928b062180b10a9908325727e18483e029edada (patch) | |
tree | 38d9c7cafc21ed9d438cc137bbb613f38cb1415d /Kernel/system.h | |
parent | 81627cf7d539b3aa15773967f6c3d7c6e7ca86be (diff) | |
download | serenity-c928b062180b10a9908325727e18483e029edada.zip |
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.
Diffstat (limited to 'Kernel/system.h')
-rw-r--r-- | Kernel/system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Kernel/system.h b/Kernel/system.h index a40569a02b..03de208bbb 100644 --- a/Kernel/system.h +++ b/Kernel/system.h @@ -1,6 +1,15 @@ #pragma once #include "types.h" +#include <AK/Vector.h> +#include <AK/String.h> + +struct KSym { + dword address; + String name; +}; + +Vector<KSym>& ksyms() PURE; struct system_t { |