a4d45720d0
chmod.c: make use of RVAL_DECODED
...
* chmod.c (decode_chmod): Change to return void.
(sys_chmod, sys_fchmodat): Update callers. Update for RVAL_DECODED.
(sys_fchmod): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
10e407dfb3
clone.c: make use of RVAL_DECODED
...
* clone.c (sys_setns, sys_unshare, sys_fork): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
cbabaf9141
Alias sys_epoll_create to printargs_ld
...
* desc.c (sys_epoll_create): Remove.
* linux/dummy.h (sys_epoll_create): Alias to printargs_ld.
2015-07-20 22:03:07 +00:00
df0c18c4a3
desc.c: make use of RVAL_DECODED
...
* desc.c (sys_flock, sys_close, sys_dup, do_dup2, sys_epoll_create1,
sys_epoll_ctl, do_eventfd, sys_perf_event_open): Update
for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
e6019fd424
desc.c: do not use xmalloc, use umove_or_printaddr and printaddr
...
* desc.c (printflock64, printflock): Use umove_or_printaddr.
(decode_select): Do not use xmalloc. Use umoven_or_printaddr
and printaddr.
(sys_oldselect): Use printaddr.
(sys_epoll_ctl): Use umoven_or_printaddr and printaddr.
(print_epoll_event_array): New function.
(sys_epoll_wait_common): Use it.
(sys_pselect6): Use umove_or_printaddr.
(sys_eventfd2): Use printaddr.
2015-07-20 22:03:07 +00:00
d4b3f6a8e2
xlat/epollctls.in: add default values
...
* xlat/epollctls.in (EPOLL_CTL_ADD, EPOLL_CTL_DEL, EPOLL_CTL_MOD): Add
default values.
2015-07-20 22:03:07 +00:00
3ef50217c1
dirent.c: do not use xmalloc
...
* dirent.c (print_old_dirent): Use umove_or_printaddr.
(sys_readdir): Use printaddr.
(sys_getdents, sys_getdents64): Do not use xmalloc for dirents,
treat malloc failure the same way as umoven failure. Use printaddr.
2015-07-20 22:03:07 +00:00
7e56b4e5ae
execve.c: make use of RVAL_DECODED
...
* execve.c (sys_execve, sys_execv): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
ad18132608
execve.c: use printaddr and umove_or_printaddr
...
* execve.c (printargv): Use umoven_or_printaddr.
(sys_execve, sys_execv): Use printaddr.
2015-07-20 22:03:07 +00:00
429c6775d4
fadvise.c: make use of RVAL_DECODED
...
* fadvise.c (sys_fadvise64, sys_fadvise64_64): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
5dcf3b1642
fallocate.c: make use of RVAL_DECODED
...
* fallocate.c (sys_fallocate): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a3a7ffee58
fanotify.c: make use of RVAL_DECODED
...
* fanotify.c (sys_fanotify_init, sys_fanotify_mark): Update
for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
f891bb4373
fchownat.c: make use of RVAL_DECODED
...
* fchownat.c (sys_fchownat): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
b6d80ffe02
file.c: use umove_or_printaddr
...
* file.c (printstat32, printstatsol): Remove.
(printstat, printstat64, printoldstat): Use umove_or_printaddr.
2015-07-20 22:03:07 +00:00
b5821091ee
futex.c: enhance futex syscall decoding
...
* futex.c (sys_futex): Use switch statement. Use printaddr.
Print uint32_t syscall arguments using %u format.
Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a9183c3958
get_robust_list.c: use printnum_long
...
* get_robust_list.c (sys_get_robust_list): Use printnum_long.
2015-07-20 22:03:07 +00:00
bc863e9cae
getcpu.c: use printnum_int and printaddr
...
* getcpu.c (sys_getcpu): Use printnum_int and printaddr.
2015-07-20 22:03:07 +00:00
071193f620
getcwd.c: use printaddr
...
* getcwd.c (sys_getcwd): Use printaddr.
2015-07-20 22:03:07 +00:00
aa9f687ff3
getrandom.c: use printaddr
...
* getrandom.c (sys_getrandom): Use printaddr.
2015-07-20 22:03:07 +00:00
3aced79818
hostname.c: make use of RVAL_DECODED
...
* hostname.c (sys_sethostname): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
3f08e2d4d5
hostname.c: use printaddr
...
* hostname.c (sys_gethostname): Use printaddr.
2015-07-20 22:03:07 +00:00
fe3cdfc68d
inotify.c: make use of RVAL_DECODED
...
* inotify.c (sys_inotify_add_watch, sys_inotify_rm_watch,
sys_inotify_init1): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
1f255fd968
io.c: make use of RVAL_DECODED
...
* io.c (sys_write, sys_writev, sys_pwrite, sys_pwritev, sys_sendfile,
sys_sendfile64, sys_tee, sys_splice, sys_vmsplice): Update
for RVAL_DECODED.
2015-07-20 22:03:06 +00:00
dd5f0cef93
Use printnum_int64 instead of print_loff_t
...
* defs.h (print_loff_t): Remove.
* io.c (print_loff_t): Remove.
(sys_sendfile64, sys_splice): Use printnum_int64 instead of print_loff_t.
* mtd.c (mtd_ioctl): Likewise.
2015-07-20 22:03:06 +00:00
43b5a1f985
io.c: use printaddr and umove_or_printaddr
...
* io.c (sys_read, sys_pread): Use printaddr.
(tprint_iov_upto): Do not fetch data in case of syserror.
Use printaddr.
(sys_readv, sys_preadv): Remove redundant check for syserror.
(print_off_t): Use printnum_int and printnum_long.
(print_loff_t): Use umove_or_printaddr.
2015-07-20 22:03:06 +00:00
a58ad74f79
ioprio.c: make use of RVAL_DECODED
...
* ioprio.c (sys_ioprio_set): Update for RVAL_DECODED.
2015-07-20 22:03:06 +00:00
2370d53281
ipc.c: use printaddr and umove_or_printaddr
...
* ipc.c (sys_msgctl): Use printaddr.
(tprint_msgbuf): New function.
(tprint_msgsnd, tprint_msgrcv): Use it.
(sys_msgrcv): Use umove_or_printaddr.
(tprint_sembuf): Rename to tprint_sembuf_array.
(tprint_sembuf): New function.
(tprint_sembuf_array): Use it.
(sys_semop, sys_semtimedop): Update callers.
(sys_shmctl, sys_shmat, sys_shmdt): Use printaddr.
(sys_mq_open, printmqattr): Use printaddr and umove_or_printaddr.
* tests/ipc_msg.c (main): Update msgctl IPC_RMID regexp.
* tests/ipc_shm.c (main): Update shmctl IPC_RMID regexp.
2015-07-20 22:03:06 +00:00
2f444dc871
kexec.c: use printaddr and umove_or_printaddr
...
* kexec.c (print_seg): New function.
(print_kexec_segments): Use it. Use printaddr and umove_or_printaddr.
(kexec_load): Use printaddr. Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
4eef291671
keyctl.c: make use of RVAL_DECODED
...
* keyctl.c (sys_add_key, sys_request_key): Update for RVAL_DECODED.
(keyctl_join_session_keyring, keyctl_handle_key,
keyctl_set_reqkey_keyring): Remove.
(keyctl_get_keyring_id, keyctl_update_key, keyctl_handle_key_key,
keyctl_read_key, keyctl_keyring_search, keyctl_chown_key,
keyctl_instantiate_key, keyctl_instantiate_key_iov, keyctl_negate_key,
keyctl_reject_key, keyctl_set_timeout, keyctl_get_persistent,
keyctl_setperm_key): Change to return void.
Update for RVAL_DECODED.
(sys_keyctl): Update callers. Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
5f6ca3d475
keyctl.c: use printaddr
...
* keyctl.c (keyctl_read_key): Use printaddr.
2015-07-20 01:42:01 +00:00
583526e44a
ldt.c: make use of RVAL_DECODED
...
* ldt.c (sys_modify_ldt, sys_set_thread_area, sys_get_thread_area):
Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
79a45942b6
ldt.c: use printaddr and umove_or_printaddr
...
* ldt.c [I386 || X86_64 || X32] (print_user_desc):
Use umove_or_printaddr.
[I386 || X86_64 || X32] (sys_modify_ldt): Use printaddr.
[(M68K || MIPS] (set_thread_area): Likewise.
[I386 || X86_64 || X32] (set_thread_area): Do not fetch data
if !verbose.
[I386 || X86_64 || X32] (get_thread_area): Remove redundant check
for syserror.
2015-07-20 01:42:01 +00:00
4e33965809
link.c: make use of RVAL_DECODED
...
* link.c (sys_link, sys_linkat, sys_unlinkat, sys_symlinkat): Update
for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
ed88a50630
lseek.c: make use of RVAL_DECODED
...
* lseek.c (sys_lseek): Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
7db808d749
lseek.c: use printnum_int64
...
* lseek.c (sys_llseek): Use printnum_int64.
2015-07-20 01:42:01 +00:00
85813ceb2d
mem.c: make use of RVAL_DECODED
...
* mem.c (print_mmap): Change to return void.
Update for RVAL_DECODED.
(sys_old_mmap, sys_old_mmap_pgoff, sys_mmap, sys_mmap_pgoff,
sys_mmap_4koff): Update callers. Update for RVAL_DECODED.
(sys_brk, sys_munmap, sys_mprotect, sys_mremap, sys_madvise,
sys_mlockall, sys_msync, sys_remap_file_pages, sys_mbind,
sys_set_mempolicy, sys_migrate_pages, [POWERPC] subpage_prot):
Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
2c389f6751
mem.c: use printaddr and umove_or_printaddr
...
* mem.c (sys_brk, print_mmap, sys_munmap, sys_mprotect, sys_mremap,
sys_madvise, sys_msync, sys_mincore, sys_remap_file_pages, get_nodes,
sys_mbind, [POWERPC] sys_subpage_prot): Use printaddr.
(sys_get_mempolicy): Use printaddr and umove_or_printaddr.
2015-07-20 01:42:01 +00:00
c15dd41453
mknod.c: make use of RVAL_DECODED
...
* mknod.c (decode_mknod): Change to return void.
Update for RVAL_DECODED.
(sys_mknod, sys_mknodat): Update callers. Update for RVAL_DECODED.
[SPARC || SPARC64] (xmknod): Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
ef08ed1a03
mount.c: make use of RVAL_DECODED
...
* mount.c (sys_mount): Update for RVAL_DECODED.
2015-07-20 01:42:01 +00:00
5935850c4d
mount.c: use printaddr
...
* mount.c (sys_mount): Use printaddr.
2015-07-20 01:42:00 +00:00
771c2a4651
Alias sys_connect to sys_bind
...
* linux/dummy.h (sys_connect): Alias to sys_bind.
* net.c (sys_connect): Remove.
2015-07-20 01:42:00 +00:00
219b3a79b4
net.c: make use of RVAL_DECODED
...
* net.c (sys_socket, sys_bind, sys_listen, sys_send, sys_sendto,
sys_sendmsg, sys_shutdown, sys_setsockopt): Update for RVAL_DECODED.
2015-07-20 01:42:00 +00:00
6c277da205
net.c: use printaddr and umove_or_printaddr
...
* net.c (printsock): Use printaddr and umove_or_printaddr.
(printcmsghdr, printmsghdr, printmmsghdr, decode_mmsg, do_sockname,
sys_recv, sys_recvfrom, sys_recvmsg, do_pipe, print_linger, print_ucred,
print_tpacket_stats, print_icmp_filter, print_getsockopt,
print_group_req, print_tpacket_req, print_packet_mreq,
print_setsockopt): Use printaddr.
(print_mreq, print_mreq6): Use umove_or_printaddr.
2015-07-20 01:42:00 +00:00
Elvira Khabirova
10020ae191
tests: add sigaltstack.test
...
* tests/sigaltstack.c: New file.
* tests/sigaltstack.expected: Likewise.
* tests/sigaltstack.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add sigaltstack.
(TESTS): Add sigaltstack.test.
(EXTRA_DIST): sigaltstack.expected.
* tests/.gitignore: Add sigaltstack.
2015-07-18 00:01:40 +00:00
Elvira Khabirova
b1c448cd47
bootstrap: delete personality test directories beforehand
...
* bootstrap: Delete tests-m32 and tests-mx32 directories
before creating them.
2015-07-18 00:01:40 +00:00
0e946ab2c2
defs.h: do not include <signal.h>
...
* printsiginfo.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* defs.h: Do not include <signal.h>.
(printsiginfo): Remove.
* printsiginfo.c: Include <signal.h> and "printsiginfo.h".
* strace.c: Likewise.
* sigaltstack.c: Include <signal.h>.
* signal.c: Likewise.
* sigreturn.c: Likewise.
* time.c: Likewise.
2015-07-18 00:01:40 +00:00
1e08a160f7
resource.c: move printrusage and printrusage32 to a separate file
...
* printrusage.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* resource.c (printrusage, [ALPHA] printrusage32): Move
to printrusage.c.
2015-07-18 00:01:40 +00:00
d62d8fd671
open.c: make use of RVAL_DECODED
...
* open.c (decode_open, sys_creat): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
ada84324ae
personality.c: make use of RVAL_DECODED
...
* personality.c (sys_personality): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
a528eb5b49
printsiginfo.c: use umove_or_printaddr
...
* printsiginfo.c (printsiginfo_at): Use umove_or_printaddr.
2015-07-18 00:01:40 +00:00