[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH RFC 5/5] plat/common/arm: Add uk_dump_backtrace after trapping into exception



This adds uk_dump_backtrace() to display more useful debugging
information.

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/common/arm/traps.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plat/common/arm/traps.c b/plat/common/arm/traps.c
index ad9a8c3..03197ec 100644
--- a/plat/common/arm/traps.c
+++ b/plat/common/arm/traps.c
@@ -24,6 +24,7 @@
 #include <uk/print.h>
 #include <uk/assert.h>
 #include <gic/gic-v2.h>
+#include "read_allsymbol.h"
 
 static const char *exception_modes[]= {
        "Synchronous Abort",
@@ -59,6 +60,7 @@ void invalid_trap_handler(struct __regs *regs, uint32_t el,
        uk_pr_crit("Unikraft: EL%d invalid %s trap caught\n",
                   el, exception_modes[reason]);
        dump_registers(regs, far);
+       uk_dump_backtrace();
        ukplat_crash();
 }
 
@@ -67,6 +69,7 @@ void trap_el1_sync(struct __regs *regs, uint64_t far)
        uk_pr_crit("Unikraft: EL1 sync trap caught\n");
 
        dump_registers(regs, far);
+       uk_dump_backtrace();
        ukplat_crash();
 }
 
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.