diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-06-09 01:43:22 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-06-09 01:43:22 +0200 |
commit | f07367954c9b41bf87deba08e79e5bb4c3b72c55 (patch) | |
tree | 5ddcc428234f7f320cf9cbd818f6a5b753954e7f /linux/s390 | |
parent | 56a52984ae5d629160074c4c02445bc069024d0c (diff) | |
download | strace-f07367954c9b41bf87deba08e79e5bb4c3b72c55.tar.gz strace-f07367954c9b41bf87deba08e79e5bb4c3b72c55.tar.bz2 strace-f07367954c9b41bf87deba08e79e5bb4c3b72c55.tar.xz |
Don't display bogus parameter for sigreturn syscall
* linux/*/syscallent.h: For those arches which use sys_sigreturn,
not printargs, to show [rt_]sigreturn syscall, change number of arguments
from 1 to 0: sys_sigreturn function doesn't use syscall parameters.
(I guess kernel doesn't actually _have_ any parameters for this syscall,
at least on these architectures). Do the same change for I386 and x86-64
even though they use printargs: I looked at kernel code and syscall
definitely doesn't have any parameters on these arches.
(I hesitate to change 1 to 0 params for arches I don't know -
it is remotely possible some of them do have a parameter for this syscall).
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'linux/s390')
-rw-r--r-- | linux/s390/syscallent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h index a4ff152..38d0e03 100644 --- a/linux/s390/syscallent.h +++ b/linux/s390/syscallent.h @@ -147,7 +147,7 @@ { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */ { 5, 0, sys_ipc, "ipc" }, /* 117 */ { 1, TD, sys_fsync, "fsync" }, /* 118 */ - { 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */ + { 0, TS, sys_sigreturn, "sigreturn" }, /* 119 */ { 5, TP, sys_clone, "clone" }, /* 120 */ { 2, 0, sys_setdomainname, "setdomainname" }, /* 121 */ { 1, 0, sys_uname, "uname" }, /* 122 */ @@ -201,7 +201,7 @@ { 3, 0, sys_setresgid, "setresgid" }, /* 170 */ { 3, 0, sys_getresgid, "getresgid" }, /* 171 */ { 5, 0, sys_prctl, "prctl" }, /* 172 */ - { 1, TS, sys_sigreturn, "rt_sigreturn" }, /* 173 */ + { 0, TS, sys_sigreturn, "rt_sigreturn" }, /* 173 */ { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 174 */ { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 175 */ { 2, TS, sys_rt_sigpending, "rt_sigpending" }, /* 176 */ |