summaryrefslogtreecommitdiff
path: root/Kernel/system.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-26 22:32:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-26 22:33:15 +0200
commitc928b062180b10a9908325727e18483e029edada (patch)
tree38d9c7cafc21ed9d438cc137bbb613f38cb1415d /Kernel/system.h
parent81627cf7d539b3aa15773967f6c3d7c6e7ca86be (diff)
downloadserenity-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.h9
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
{