Commit eee98654 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/thread: decode kernel-mode fault with ksyms


Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 856ea28a
......@@ -1567,13 +1567,20 @@ static inline void note_trap(struct evl_thread *curr,
unsigned int trapnr, struct pt_regs *regs,
const char *msg)
{
printk(EVL_WARNING
"%s %s [pid=%d, excpt=%#x, %spc=%#lx]\n",
curr->name, msg,
evl_get_inband_pid(curr),
trapnr,
user_mode(regs) ? "" : "kernel_",
instruction_pointer(regs));
if (user_mode(regs))
printk(EVL_WARNING
"%s %s [pid=%d, excpt=%d, user_pc=%#lx]\n",
curr->name, msg,
evl_get_inband_pid(curr),
trapnr,
instruction_pointer(regs));
else
printk(EVL_WARNING
"%s %s [pid=%d, excpt=%d, %pS]\n",
curr->name, msg,
evl_get_inband_pid(curr),
trapnr,
(void *)instruction_pointer(regs));
}
/* hard irqs off. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment