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
xenomai
Commits
2378a739
Commit
2378a739
authored
Sep 10, 2014
by
Philippe Gerum
Browse files
cobalt/syscall: fix in/out value types
parent
6e0a625e
Changes
2
Hide whitespace changes
Inline
Side-by-side
kernel/cobalt/posix/syscall.c
View file @
2378a739
...
...
@@ -107,10 +107,11 @@ static void prepare_for_signal(struct task_struct *p,
static
int
handle_head_syscall
(
struct
ipipe_domain
*
ipd
,
struct
pt_regs
*
regs
)
{
struct
cobalt_process
*
process
;
int
nr
,
switched
,
ret
,
sigs
;
int
switched
,
ret
,
sigs
;
struct
xnthread
*
thread
;
cobalt_syshand
handler
;
struct
task_struct
*
p
;
unsigned
int
nr
;
int
sysflags
;
if
(
!
__xn_syscall_p
(
regs
))
...
...
@@ -121,7 +122,7 @@ static int handle_head_syscall(struct ipipe_domain *ipd, struct pt_regs *regs)
trace_cobalt_head_sysentry
(
thread
,
nr
);
if
(
nr
<
0
||
nr
>=
__NR_COBALT_SYSCALLS
)
if
(
nr
>=
__NR_COBALT_SYSCALLS
)
goto
bad_syscall
;
process
=
cobalt_current_process
();
...
...
@@ -285,10 +286,11 @@ bad_syscall:
static
int
handle_root_syscall
(
struct
ipipe_domain
*
ipd
,
struct
pt_regs
*
regs
)
{
int
nr
,
sysflags
,
switched
,
ret
,
sigs
;
int
sysflags
,
switched
,
ret
,
sigs
;
struct
xnthread
*
thread
;
cobalt_syshand
handler
;
struct
task_struct
*
p
;
unsigned
int
nr
;
/*
* Catch cancellation requests pending for user shadows
...
...
kernel/cobalt/trace/cobalt-posix.h
View file @
2378a739
...
...
@@ -23,13 +23,13 @@
__entry->tv_sec_##__name, __entry->tv_nsec_##__name
DECLARE_EVENT_CLASS
(
syscall_entry
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
nr
),
TP_PROTO
(
struct
xnthread
*
thread
,
unsigned
int
nr
),
TP_ARGS
(
thread
,
nr
),
TP_STRUCT__entry
(
__field
(
struct
xnthread
*
,
thread
)
__string
(
name
,
thread
?
thread
->
name
:
"(anon)"
)
__field
(
int
,
nr
)
__field
(
unsigned
int
,
nr
)
),
TP_fast_assign
(
...
...
@@ -38,17 +38,17 @@ DECLARE_EVENT_CLASS(syscall_entry,
__entry
->
nr
=
nr
;
),
TP_printk
(
"thread=%p(%s) syscall=%
d
"
,
TP_printk
(
"thread=%p(%s) syscall=%
u
"
,
__entry
->
thread
,
__get_str
(
name
),
__entry
->
nr
)
);
DECLARE_EVENT_CLASS
(
syscall_exit
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
result
),
TP_PROTO
(
struct
xnthread
*
thread
,
long
result
),
TP_ARGS
(
thread
,
result
),
TP_STRUCT__entry
(
__field
(
struct
xnthread
*
,
thread
)
__field
(
int
,
result
)
__field
(
long
,
result
)
),
TP_fast_assign
(
...
...
@@ -56,7 +56,7 @@ DECLARE_EVENT_CLASS(syscall_exit,
__entry
->
result
=
result
;
),
TP_printk
(
"thread=%p result=%d"
,
TP_printk
(
"thread=%p result=%
l
d"
,
__entry
->
thread
,
__entry
->
result
)
);
...
...
@@ -150,22 +150,22 @@ DECLARE_EVENT_CLASS(cobalt_void,
);
DEFINE_EVENT
(
syscall_entry
,
cobalt_head_sysentry
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
nr
),
TP_PROTO
(
struct
xnthread
*
thread
,
unsigned
int
nr
),
TP_ARGS
(
thread
,
nr
)
);
DEFINE_EVENT
(
syscall_exit
,
cobalt_head_sysexit
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
result
),
TP_PROTO
(
struct
xnthread
*
thread
,
long
result
),
TP_ARGS
(
thread
,
result
)
);
DEFINE_EVENT
(
syscall_entry
,
cobalt_root_sysentry
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
nr
),
TP_PROTO
(
struct
xnthread
*
thread
,
unsigned
int
nr
),
TP_ARGS
(
thread
,
nr
)
);
DEFINE_EVENT
(
syscall_exit
,
cobalt_root_sysexit
,
TP_PROTO
(
struct
xnthread
*
thread
,
int
result
),
TP_PROTO
(
struct
xnthread
*
thread
,
long
result
),
TP_ARGS
(
thread
,
result
)
);
...
...
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