3019 Commits

Author SHA1 Message Date
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
210a6b6884 prctl.c: make use of RVAL_DECODED
* prctl.c (prctl_enter, prctl_exit): Merge into sys_prctl.
(sys_prctl, sys_arch_prctl): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
7c53e984ac prctl.c: use printaddr and umove_or_printaddr
* prctl.c (prctl_exit): Use printaddr and umove_or_printaddr.
2015-07-18 00:01:40 +00:00
14446ebcf6 process.c: use printaddr
* process.c (sys_ptrace): Use printaddr.
2015-07-18 00:01:40 +00:00
684c9e9d3d process_vm.c: make use of RVAL_DECODED
* process_vm.c (sys_process_vm_writev): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
66a344c006 process_vm.c: use printaddr
* process_vm.c (sys_process_vm_readv): Use printaddr.
2015-07-18 00:01:40 +00:00
307945d4d9 reboot.c: make use of RVAL_DECODED
* reboot.c (sys_reboot): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
0564623abf Enhance quotactl decoding
* quota.c (decode_cmd_data): Use umove_or_printaddr.
(sys_quotactl): Do not disable the parser in verbose mode.
Decode all "set" commands on entering syscall.
2015-07-18 00:01:40 +00:00
8ef8a4c095 readahead.c: make use of RVAL_DECODED
* readahead.c (sys_readahead.c): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
8e0a18fa7f readlink.c: use printaddr
* readlink.c (decode_readlink): Use printaddr.
2015-07-18 00:01:40 +00:00
fe62e3312b renameat.c: make use of RVAL_DECODED
* renameat.c (sys_renameat, sys_renameat2): Update for RVAL_DECODED.
2015-07-18 00:01:40 +00:00
2b15a5848e resource.c: make use of RVAL_DECODED
* resource.c (sys_setrlimit, sys_getpriority, sys_setpriority):
Update for RVAL_DECODED.
2015-07-18 00:01:39 +00:00
7cc79b4137 resource.c: use umove_or_printaddr
* resource.c (print_rlimit64, print_rlimit32, printrusage32,
printrusage, sys_times): Use umove_or_printaddr.
(decode_rlimit64): Remove.
(decode_rlimit): Remove redundant checks.
[defined(current_wordsize) && current_wordsize != 4] (decode_rlimit):
Define to print_rlimit64.
(sys_prlimit64): Replace decode_rlimit64 with print_rlimit64.
2015-07-18 00:01:39 +00:00
10c408acea sched.c: make use of RVAL_DECODED
* sched.c (sys_sched_setscheduler, sys_sched_setparam,
sys_sched_get_priority_min): Update for RVAL_DECODED.
2015-07-18 00:01:39 +00:00
f8bf1d5633 sched.c: use printnum_int and printaddr
* sched.c (sys_sched_setscheduler, sys_sched_getparam,
sys_sched_setparam): Use printnum_int for sched_param decoding.
(sched_rr_get_interval): Use printaddr.
2015-07-18 00:01:39 +00:00
8277ec9c60 scsi.c: use printaddr
* scsi.c (print_sg_io_buffer): Use printaddr.
2015-07-18 00:01:39 +00:00
1252d26db8 seccomp.c: make use of RVAL_DECODED
* seccomp.c (sys_seccomp): Update for RVAL_DECODED.
2015-07-17 01:16:16 +00:00
931ebbfd92 seccomp.c: use printaddr and umove_or_printaddr
* seccomp.c (decode_fprog, decode_seccomp_set_mode_strict):
Use printaddr.
(print_seccomp_filter): Use umove_or_printaddr.
2015-07-17 01:16:16 +00:00
401295ea32 sigaltstack.c: use printaddr and umove_or_printaddr
* sigaltstack.c (print_stack_t): Use umove_or_printaddr and printaddr.
2015-07-17 01:16:16 +00:00
0e45b50ce6 signal.c: make use of RVAL_DECODED
* signal.c (sys_sigsuspend, sys_kill, sys_tgkill, sys_rt_sigsuspend,
sys_rt_sigqueueinfo, sys_rt_tgsigqueueinfo, sys_restart_syscall,
do_signalfd): Update for RVAL_DECODED.
2015-07-17 00:54:55 +00:00
735843e23a signal.c: use printaddr and umove_or_printaddr
* signal.c (print_sigset_addr_len, decode_old_sigaction):
Use printaddr and umove_or_printaddr.
(sys_signal): Use printaddr.
(sys_sigprocmask, sys_sigpending, sys_rt_sigprocmask,
sys_rt_sigpending): Remove redundant checks for syserror.
(decode_new_sigaction): Use umove_or_printaddr.
2015-07-17 00:54:55 +00:00
490d58c394 sram_alloc.c: make use of RVAL_DECODED
* sram_alloc.c [BFIN] (sys_sram_alloc): Update for RVAL_DECODED.
2015-07-16 23:44:57 +00:00
fd55b54112 statfs.c: use umove_or_printaddr
* statfs.c (printstatfs, printstatfs64, printcompat_statfs64):
Use umove_or_printaddr.
2015-07-16 23:44:57 +00:00
9afb4d06c0 swapon.c: make use of RVAL_DECODED
* swapon.c (sys_swapon): Update for RVAL_DECODED.
2015-07-16 23:44:57 +00:00
63bae232d2 swapon.c: move fallback definitions of swap options to xlat/
* swapon.c: Move definitions of SWAP_FLAG_* flags ...
* xlat/swap_flags.in: ... here.
2015-07-16 23:44:57 +00:00
69c1c4e46a sync_file_range2: fix typo in flags decoding
* sync_file_range.c (sys_sync_file_range2): Fix typo in flags decoding.
2015-07-16 23:44:57 +00:00
d6ed7948f7 sync_file_range.c: make use of RVAL_DECODED
* sync_file_range.c (sys_sync_file_range, sys_sync_file_range2): Update
for RVAL_DECODED.
2015-07-16 23:44:57 +00:00
5717e7af0d syslog.c: use umove_or_printaddr and RVAL_DECODED
* sysctl.c (sys_sysctl): Use umove_or_printaddr and RVAL_DECODED.
2015-07-16 23:44:57 +00:00
be6d79146c sysinfo.c: use umove_or_printaddr
* sysinfo.c (sys_sysinfo): Use umove_or_printaddr.
2015-07-16 22:58:12 +00:00
279df2cc75 syslog.c: make use of RVAL_DECODED
* syslog.c (sys_syslog): Update for RVAL_DECODED.
2015-07-16 22:58:12 +00:00
aa06f46d01 syslog.c: use printaddr
* syslog.c (sys_syslog): Use printaddr.
2015-07-16 22:58:12 +00:00