* Make the ksym table built-in with kernel image, thus remove the need
[lunaix-os.git] / lunaix-os / includes / lunaix / trace.h
index 44a2da74f8b3b35cd6193b5c9dad5e71c4b4b5f8..9409c36378de29e20ee09f182f181c77f1753258 100644 (file)
@@ -2,13 +2,13 @@
 #define __LUNAIX_TRACE_H
 
 #include <lunaix/boot_generic.h>
-#include <sys/interrupts.h>
+#include <lunaix/pcontext.h>
 
 struct ksym_entry
 {
     ptr_t pc;
-    u32_t label_off;
-};
+    char* label;
+} align(8);
 
 struct trace_record
 {
@@ -19,8 +19,7 @@ struct trace_record
 
 struct ksyms
 {
-    u32_t ksym_count;
-    u32_t ksym_label_off;
+    unsigned long ksym_count;
     struct ksym_entry syms[0];
 };