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
aac25a3b
Commit
aac25a3b
authored
May 21, 2019
by
Philippe Gerum
Browse files
evl: SIGDEBUG_UNDEFINED -> SIGDEBUG_NONE
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
1f647756
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/trace/events/evl.h
View file @
aac25a3b
...
...
@@ -500,9 +500,9 @@ DEFINE_EVENT(curr_thread_event, evl_switched_oob,
TP_ARGS
(
curr
)
);
#define evl_print_switch_cause(cause) \
#define evl_print_switch_cause(cause)
\
__print_symbolic(cause, \
{ SIGDEBUG_
UNDEFI
NE
D
, "undefined" }, \
{ SIGDEBUG_
NO
NE, "undefined" }, \
{ SIGDEBUG_MIGRATE_SIGNAL, "signal" }, \
{ SIGDEBUG_MIGRATE_SYSCALL, "syscall" }, \
{ SIGDEBUG_MIGRATE_FAULT, "fault" })
...
...
include/uapi/evl/signal.h
View file @
aac25a3b
...
...
@@ -25,7 +25,7 @@
((sigdebug_code(si) & 0xffff0000) == sigdebug_marker)
/* Possible values of sigdebug_cause() */
#define SIGDEBUG_
UNDEFI
NE
D
0
#define SIGDEBUG_
NO
NE
0
#define SIGDEBUG_MIGRATE_SIGNAL 1
#define SIGDEBUG_MIGRATE_SYSCALL 2
#define SIGDEBUG_MIGRATE_FAULT 3
...
...
kernel/evl/syscall.c
View file @
aac25a3b
...
...
@@ -60,7 +60,7 @@ static void prepare_for_signal(struct task_struct *p,
struct
evl_thread
*
curr
,
struct
pt_regs
*
regs
)
{
int
cause
=
SIGDEBUG_
UNDEFI
NE
D
;
int
cause
=
SIGDEBUG_
NO
NE
;
unsigned
long
flags
;
/*
...
...
@@ -131,7 +131,7 @@ static int do_oob_syscall(struct irq_stage *stage, struct pt_regs *regs)
prepare_for_signal
(
p
,
curr
,
regs
);
else
if
((
curr
->
state
&
T_WEAK
)
&&
!
atomic_read
(
&
curr
->
inband_disable_count
))
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
}
/* Update the stats and user visible info. */
...
...
@@ -208,7 +208,7 @@ static int do_inband_syscall(struct irq_stage *stage, struct pt_regs *regs)
prepare_for_signal
(
p
,
curr
,
regs
);
else
if
((
curr
->
state
&
T_WEAK
)
&&
!
atomic_read
(
&
curr
->
inband_disable_count
))
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
}
done:
curr
->
local_info
&=
~
T_HICCUP
;
...
...
kernel/evl/thread.c
View file @
aac25a3b
...
...
@@ -709,7 +709,7 @@ void evl_switch_inband(int cause)
}
#endif
if
((
curr
->
state
&
T_USER
)
&&
cause
!=
SIGDEBUG_
UNDEFI
NE
D
)
{
if
((
curr
->
state
&
T_USER
)
&&
cause
!=
SIGDEBUG_
NO
NE
)
{
if
(
curr
->
state
&
T_WARN
)
{
/* Help debugging spurious mode switches. */
memset
(
&
si
,
0
,
sizeof
(
si
));
...
...
@@ -777,7 +777,7 @@ int evl_switch_oob(void)
if
(
signal_pending
(
p
))
{
evl_switch_inband
(
!
(
curr
->
state
&
T_SSTEP
)
?
SIGDEBUG_MIGRATE_SIGNAL:
SIGDEBUG_
UNDEFI
NE
D
);
SIGDEBUG_
NO
NE
);
return
-
ERESTARTSYS
;
}
...
...
@@ -1052,7 +1052,7 @@ int evl_join_thread(struct evl_thread *thread, bool uninterruptible)
if
(
curr
&&
!
(
curr
->
state
&
T_INBAND
))
{
xnlock_put_irqrestore
(
&
nklock
,
flags
);
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
switched
=
true
;
}
else
xnlock_put_irqrestore
(
&
nklock
,
flags
);
...
...
@@ -1188,7 +1188,7 @@ void __evl_test_cancel(struct evl_thread *curr)
return
;
if
(
!
(
curr
->
state
&
T_INBAND
))
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
do_exit
(
0
);
/* ... won't return ... */
...
...
@@ -1616,7 +1616,7 @@ void handle_oob_trap(unsigned int trapnr, struct pt_regs *regs)
*/
evl_switch_inband
(
xnarch_fault_notify
(
trapnr
)
?
SIGDEBUG_MIGRATE_FAULT
:
SIGDEBUG_
UNDEFI
NE
D
);
SIGDEBUG_
NO
NE
);
curr
->
local_info
&=
~
T_INFAULT
;
}
...
...
@@ -1634,7 +1634,7 @@ void handle_oob_mayday(struct pt_regs *regs)
* syscall. Filter this case out.
*/
if
(
!
(
curr
->
state
&
T_INBAND
))
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
}
#ifdef CONFIG_SMP
...
...
@@ -2072,7 +2072,7 @@ static long thread_oob_ioctl(struct file *filp, unsigned int cmd,
break
;
case
EVL_THRIOC_SWITCH_INBAND
:
if
(
thread
==
curr
)
{
evl_switch_inband
(
SIGDEBUG_
UNDEFI
NE
D
);
evl_switch_inband
(
SIGDEBUG_
NO
NE
);
ret
=
0
;
}
break
;
...
...
Write
Preview
Markdown
is supported
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