reduce the size of ppage by 8 bytes using signly linked list
[lunaix-os.git] / lunaix-os / includes / lunaix / trace.h
index 9409c36378de29e20ee09f182f181c77f1753258..8111a4e193d1da765c69d7d830d7ac83d928e43f 100644 (file)
@@ -2,7 +2,9 @@
 #define __LUNAIX_TRACE_H
 
 #include <lunaix/boot_generic.h>
-#include <lunaix/pcontext.h>
+#include <lunaix/hart_state.h>
+
+#include <sys-generic/trace_arch.h>
 
 struct ksym_entry
 {
@@ -77,7 +79,7 @@ trace_printstack_of(ptr_t fp);
  * @param isrm
  */
 void
-trace_printstack_isr(const isr_param* isrm);
+trace_printstack_isr(const struct hart_state* hstate);
 
 /**
  * @brief Print the stack trace starting from caller's frame pointer.
@@ -86,4 +88,7 @@ trace_printstack_isr(const isr_param* isrm);
 void
 trace_printstack();
 
+void
+trace_log(const char* fmt, ...);
+
 #endif /* __LUNAIX_TRACE_H */