Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai4
linux-evl
Commits
eee98654
Commit
eee98654
authored
Jun 28, 2019
by
Philippe Gerum
Browse files
evl/thread: decode kernel-mode fault with ksyms
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
856ea28a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/evl/thread.c
View file @
eee98654
...
...
@@ -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. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment