diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-27 14:18:02 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-27 14:18:02 +0100 |
commit | 72879c6a35cd5afa7f58ee7bc32e4dcd8e65bd9a (patch) | |
tree | dac4cb5f2ed67842aca65af1fef03b8094c98bd6 /desc.c | |
parent | b237b1b20da4ff40efb919f9d4a6458a05f375ca (diff) | |
download | strace-72879c6a35cd5afa7f58ee7bc32e4dcd8e65bd9a.tar.gz |
Alias a few more syscall printing functions
text data bss dec hex filename
237384 672 19044 257100 3ec4c strace.before
236448 672 19044 256164 3e8a4 strace
* defs.h: Declare new functions printargs_lu(), printargs_ld()
which simply print syscall all args as unsigned or signed longs.
* desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it.
* linux/syscall.h: Remove declarations of the following functions:
sys_alarm, sys_getresgid, sys_getsid, sys_nice, sys_setgid, sys_setpgid,
sys_setpgrp, sys_setregid, sys_setresgid.
* process.c (sys_setgid): Delete this function: now aliased to sys_setuid().
(sys_getresgid): Delete this function: now aliased to sys_getresuid().
(sys_setregid): Delete this function: now aliased to sys_setreuid().
(sys_setresgid): Delete this function: now aliased to sys_setresuid().
(sys_setpgrp): Delete this function: now aliased to printargs_lu().
(sys_getsid): Likewise.
(sys_setpgid): Likewise.
(sys_alarm): Likewise.
(sys_getpgrp): Delete this function: was unused - was already shadowed
by a define in linux/dummy.h.
(sys_setsid): Likewise.
(sys_getpgid): Likewise.
* resource.c (sys_nice): Delete this function: now aliased to printargs_ld().
* linux/dummy.h: Define new aliases (see above for the list).
* syscall.c (printargs_lu): New function.
(printargs_ld): New function.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'desc.c')
-rw-r--r-- | desc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -668,12 +668,11 @@ static const struct xlat epollevents[] = { { 0, NULL } }; +/* Not aliased to printargs_ld: we want it to have a distinct address */ int sys_epoll_create(struct tcb *tcp) { - if (entering(tcp)) - tprintf("%ld", tcp->u_arg[0]); - return 0; + return printargs_ld(tcp); } static const struct xlat epollflags[] = { |