summaryrefslogtreecommitdiff
path: root/other/Kermit/test/test_systemmap.cpp
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/Kermit/test/test_systemmap.cpp
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/Kermit/test/test_systemmap.cpp')
-rw-r--r--other/Kermit/test/test_systemmap.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/other/Kermit/test/test_systemmap.cpp b/other/Kermit/test/test_systemmap.cpp
new file mode 100644
index 0000000..41179c1
--- /dev/null
+++ b/other/Kermit/test/test_systemmap.cpp
@@ -0,0 +1,15 @@
1#include <SystemMap.hpp>
2#include <string>
3#include <iostream>
4
5
6int main ()
7{
8 SystemMap a = SystemMap ("System.map");
9 cout.setf (ios::hex, ios::basefield);
10
11 cout << "sys_fork " << a[string ("sys_fork")] << endl;
12 cout << "sys_write " << a[string ("sys_write")] << endl;
13 cout << "init " << a[string ("init")] << endl;
14 return 0;
15}