d35df493b4e7684c50d2d2fa032ee3a7ac228009 |
|
16-Feb-2017 |
Elliott Hughes <enh@google.com> |
Upgrade strace to 4.16 from 4.14. Noteworthy changes in release 4.16 (2017-02-14) * Improvements * Implemented syscall return value injection (-e inject=SET:retval= option). * Implemented signal injection (-e inject=SET:signal= option). * Implemented decoding of SUID_DUMP_* constants in PR_[GS]ET_DUMPABLE. * Implemented decoding of all SG_* ioctl commands. * Implemented decoding of ustat syscall. * Implemented decoding of BPF_OBJ_PIN, BPF_OBJ_GET, BPF_PROG_ATTACH, and BPF_PROG_DETACH commands of bpf syscall. * Enhanced decoding of sg_io_hdr and sg_io_v4 structures. * Enhanced decoding of get_robust_list, getrandom, io_submit, set_robust_list syscalls. * Enhanced decoding of entities of kernel long type on x32 and mips n32 ABIs. * Updated lists of IP_*, IPV6_*, and LOOP_* constants. * Updated lists of ioctl commands from Linux 4.10. * Added decoding of recently added syscalls on avr32, microblaze, ppc, and ppc64. * Bug fixes * Fixed pathmatch of oldselect syscall on 64-bit architectures. * Fixed decoding of mmap2 syscall on s390 when arguments are not available. * Fixed decoding of kexec_file_load, mprotect, pkey_mprotect, prctl, preadv*, and pwritev* syscalls on x32. * Fixed printing of string arguments of getxattr and setxattr syscalls when -s option is used to limit the printed string size. * Fixed decoding of ifconf, ifreq, and loop_info structures on non-native personalities. * Fixed decoding of SG_* and LOOP_* ioctl commands. * Fixed build on mips with musl libc. * Fixed cross-building of ioctlsort. * Applied minor formatting fixes to the manual page. Noteworthy changes in release 4.15 (2016-12-14) * Changes in behavior * Time stamps are now printed according to ISO 8601. * Changed output format of val3 parameter of futex FUTEX_WAKE_OP operation. * The last argument of mincore, sched_getaffinity, and sched_setaffinity syscalls is now formatted as an array. * Improvements * Implemented syscall fault injection (-e fault=... option). * Implemented decoding of DM_* ioctl commands. * Implemented decoding of attr parameter of perf_event_open syscall. * Implemented decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls. * Implemented dumping of mq_timedsend and mq_timedreceive syscalls. * Implemented decoding of PR_SET_FP_MODE and PR_GET_FP_MODE operations of prctl syscall. * Implemented PTRACE_GETREGS API support on m68k. * Updated lists of ARCH_*, BPF_*, BTRFS_*, FALLOC_*, MS_*, *_MAGIC, and V4L2_* constants. * Updated lists of ioctl commands from Linux 4.9. * Added decoding of recently added syscalls on arc, x32, and xtensa. * Enhanced manual page. * Bug fixes * Fixed corner cases in decoding of exit, exit_group, futimesat, getgroups, getresuid, init_module, inotify_init1, kcmp, kexec_load, lookup_dcookie, mq_getsetattr, mq_notify, mq_open, mq_timedreceive, mq_timedsend, name_to_handle_at, prctl, process_vm_readv, process_vm_writev, setfsuid, setgroups, setns, unshare, and utimes syscalls. * Fixed handling of verbose flag in printing of controls array of struct v4l2_ext_controls. * Fixed omission of field names in the output of capability, sigaction, sigevent, statfs, timespec, timeval, and utimbuf structures. * Fixed printing of unknown syscalls in siginfo structure. * Fixed decoding of ioctl constants on m68k. * Fixed cris architecture support. * Fixed cross build when host compiler does not support the same set of warning flags as the cross compiler. * Fixed build on SLE10 and SLE11. Bug: N/A Test: manual Change-Id: I590bf5db1652aa1dfdc0eb16e30fd97c82af2261
/external/strace/net.c
|
cce5aaef1e44c59063e8b3e99dc3045305a52f20 |
|
02-Oct-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Use tprints instead of tprintf in a few more places * btrfs.c (btrfs_print_qgroup_inherit, btrfs_print_tree_search, btrfs_ioctl): Replace tprintf with tprints for printing strings without format specifiers. * net.c (print_group_req): Likewise. * scsi.c (scsi_ioctl): Likewise. * term.c (decode_termios, decode_termio): Likewise. * userfaultfd.c (uffdio_ioctl): Likewise.
/external/strace/net.c
|
b759d276d53cbac1f60895c7e674b63f841f6d5d |
|
15-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Unabuse struct tcb.auxstr As we've got a proper mechanism that parsers can use for storing private data between entering and exiting stages, all cases of struct tcb.auxstr abuse should go. * btrfs.c (btrfs_ioctl): Use set_tcb_priv_ulong and get_tcb_priv_ulong instead of abusing tcp->auxstr. * file_handle.c (SYS_FUNC(name_to_handle_at)): Likewise. * msghdr.c (SYS_FUNC(recvmsg)): Likewise. * net.c (decode_sockname, SYS_FUNC(recvfrom)): Likewise. * v4l2.c (print_v4l2_queryctrl): Likewise.
/external/strace/net.c
|
dc84fa3646f6a4f9e81d47059fe0c84a9b70f3b4 |
|
15-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move parsers of sendmsg and recvmsg syscalls to msghdr.c * defs.h (fetch_msghdr_namelen, decode_msghdr): Remove. * net.c (SYS_FUNC(sendmsg), SYS_FUNC(recvmsg)): Move ... * msghdr.c: ... here. (fetch_msghdr_namelen, decode_msghdr): Add static qualifier.
/external/strace/net.c
|
4de8de50d25f515100e7d13a9b7d551613d8d27e |
|
15-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move parsers of sendmmsg and recvmmsg syscalls to mmsghdr.c * defs.h (decode_mmsgvec): Remove. * net.c: Do not include "msghdr.h". (SYS_FUNC(sendmmsg), SYS_FUNC(recvmmsg)): Move ... * mmsghdr.c: ... here. (decode_mmsgvec): Add static qualifier.
/external/strace/net.c
|
d8f77cdf42bf7215e7e7615b617a1de3d01188fd |
|
13-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of struct msghdr.msg_name* arguments of recvmsg syscall As the msghdr.msg_namelen argument of recvmsg syscall has the same read-write semantics as the address length argument of recvfrom syscall, parser of recvmsg syscall needs a similar fix. * defs.h (fetch_msghdr_namelen): New prototype. (decode_msghdr): Add "int *" argument. * msghdr.c (print_msghdr): Likewise. Treat it as a pointer to struct msghdr.msg_namelen passed to the kernel. Pass to decode_sockaddr the size of socket address actually returned by the kernel. Print both user and kernel address lengths when the value changes. (decode_msghdr, decode_mmsghdr): Add "int *" argument, forward it to print_msghdr. (decode_mmsgvec): Update decode_mmsghdr invocation. (fetch_msghdr_namelen): New function. * net.c (SYS_FUNC(sendmsg)): Update decode_msghdr invocation. (SYS_FUNC(recvmsg)): Use fetch_msghdr_namelen on entering to save struct msghdr.msg_namelen. On exiting, pass the saved value to decode_msghdr.
/external/strace/net.c
|
7acde9e99465c0dfdc95d4e6aad0ecd8157b5c06 |
|
12-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix printing of socklen argument of bind and sendto syscalls * net.c (SYS_FUNC(bind)): Print 3rd syscall argument using %d format. (SYS_FUNC(sendto)): Print 6th syscall argument using %d format.
/external/strace/net.c
|
802f2646431fec5aa727864c1528305b675eaa13 |
|
12-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of sockaddr related arguments of recvfrom syscall * net.c (SYS_FUNC(recvfrom)): Use fetch_socklen. Save the address length passed to the kernel and print it on error. Do not print more bytes of the socket address than actually returned by the kernel. Print both user and kernel address lengths when the returned address is truncated.
/external/strace/net.c
|
eca8b5b26afa2db3bb5f6a1177cbcc22fdd4c9c9 |
|
09-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Print both values of changing address length in sockname family syscalls * net.c (decode_sockname): Print both user and kernel address lengths when the value changes. * tests/net-y-unix.c (main): Update expected output. * tests/net-yy-unix.c (main): Likewise. * tests/net.expected: Likewise.
/external/strace/net.c
|
36df8223a1bebd83838ae5301fa429a7fbc36c0d |
|
09-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Enhance diagnostics of address truncation in sockname family syscalls * net.c (decode_sockname): Print both user and kernel address lengths when the returned address is truncated. * tests/sun_path.expected: Update expected output.
/external/strace/net.c
|
d07eac3ac4104b89855ca5c4ba04cd2a285c6749 |
|
09-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of getsockname, getpeername, accept, and accept4 syscalls * net.c (fetch_socklen): New function. (decode_sockname): Use it. On entering syscall, decode early and return RVAL_DECODED when possible. On error, print the address length passed to the kernel. Do not print more bytes of the socket address than actually returned by the kernel.
/external/strace/net.c
|
d1cedf0fdbf3afd6f8da79470a538253f1c0d559 |
|
09-Jul-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Prepare parsers of sockname family syscalls for the upcoming fix * net.c (do_sockname): Rename to decode_sockname, drop second argument, do not print sock_type_flags, return RVAL_DECODED on exiting. (SYS_FUNC(accept), SYS_FUNC(getsockname)): Use decode_sockname instead of do_sockname, take its return code into account. (SYS_FUNC(accept4)): Likewise. Print sock_type_flags when decode_sockname returns RVAL_DECODED.
/external/strace/net.c
|
2850f745ca49f52b4b1266a6a1b1ec0c58f77c66 |
|
06-Jul-2016 |
Fabien Siron <fabien.siron@epita.fr> |
Add a general netlink socket parser Introduce a general socket netlink parser which prints the header and a string for the remaining part of the buffer. It doesn't handle all the netlink flags and types yet because the parser needs more information, this will be implemented later. * net.c (decode_sockbuf): New function. (SYS_FUNC(send), SYS_FUNC(sendto), SYS_FUNC(recv), SYS_FUNC(recvfrom)): Use it instead of printstr. * msghdr.c (print_msghdr): Pass IOV_DECODE_NETLINK to tprint_iov_upto() for netlink sockets. * netlink.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (decode_netlink, getfdproto): New prototypes. (iov_decode): Add IOV_DECODER_NETLINK. * io.c (print_iovec): Use decode_netlink(). * util.c (getfdproto): Remove static keyword. * xlat/netlink_flags.in: New file. * xlat/netlink_types.in: New file.
/external/strace/net.c
|
95cce4f9a641e6d3b6c02df30a6297ed789d6d1b |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move all msghdr and mmsghdr parsers to a separate file * defs.h (msg_flags, socketlayers, decode_msghdr, decode_mmsg): New prototypes. * msghdr.c: New file. * Makefile.am (strace_SOURCES): Add it. * net.c: Move all msghdr and mmsghdr parsers to msghdr.c.
/external/strace/net.c
|
9a8216ea7b3466c2ef0393aae4c59447344ac092 |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Mpersify fetchers of struct msghdr and struct mmsghdr * fetch_struct_msghdr.c: New file. * fetch_struct_mmsghdr.c: Likewise. * Makefile.am (strace_SOURCES): Add them. * net.c (struct msghdr32, struct mmsghdr32, copy_from_msghdr32, fetch_msghdr, fetch_mmsghdr): Remove. (decode_msghdr, dumpiov_in_msghdr): Use fetch_struct_msghdr instead of fetch_msghdr. (decode_mmsghdr): Change msg_len argument to use_msg_len. Use fetch_struct_mmsghdr instead of fetch_mmsghdr. Return fetch_struct_mmsghdr's return code. (decode_mmsg): Rename to decode_mmsgvec. Take addr and len arguments. Do not print vlen and flags. Check decode_mmsghdr's return code. Print mmsghdr array using square brackets. (dumpiov_in_mmsghdr): Use fetch_struct_mmsghdr instead of fetch_mmsghdr. (SYS_FUNC(sendmmsg), SYS_FUNC(recvmmsg)): Use decode_mmsgvec instead of decode_mmsg. Print vlen and flags. * tests/mmsg.c (main): Update expected output.
/external/strace/net.c
|
4b38ce956c270a28fd0aa018f448b082371a08b1 |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move fallback definition of struct mmsghdr to a separate file. * msghdr.h: New file. * Makefile.am (strace_SOURCES): Add it. * net.c: Include it. Move fallback definition of struct mmsghdr there. * tests/mmsg.c: Include "msghdr.h". Remove fallback definition of struct mmsghdr.
/external/strace/net.c
|
26f90afc686afcf01807e75515541085081f670b |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: print struct msghdr as a regular structure * net.c (print_msghdr): Print msg_name, msg_namelen, msg_iov, and msg_iovlen fields like other regular fields. * tests/inet-cmsg.c (main): Update expected output. * tests/mmsg.c (main): Likewise. * tests/recvmsg.c (main): Likewise. * tests/scm_rights-fd.test: Likewise.
/external/strace/net.c
|
3e514c05e3b664192c6ee0d60cfbfd94e086a526 |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: rename some internal functions for consistency and readability * net.c (printcmsghdr): Rename to decode_msg_control. (do_msghdr): Rename to print_msghdr. (extractmsghdr): Rename to fetch_msghdr. (extractmmsghdr): Rename to fetch_mmsghdr. (printmsghdr): Rename to decode_msghdr. (printmmsghdr): Rename to decode_mmsghdr. All callers updated.
/external/strace/net.c
|
00ba20aae1cf8afe2a86a0218a240a01d03153ca |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: when printing struct msghdr.msg_control, also print its name * net.c (printcmsghdr): Skip control messages of zero length. Always print "msg_control=" before the control message. (do_msghdr): Print control message before its length, not after. * tests/inet-cmsg.c (main): Update expected output. * tests/scm_rights-fd.test: Likewise.
/external/strace/net.c
|
cf0ef0852cc92ee2ae19aaf3557b7e685a3921d1 |
|
27-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Assume that libc provides struct msghdr.msg_control * configure.ac (AC_CHECK_MEMBERS): Remove struct msghdr.msg_control. * net.c (do_msghdr): Remove HAVE_STRUCT_MSGHDR_MSG_CONTROL check.
/external/strace/net.c
|
e96aee7ebbc23e602664ec1487e62d0885167111 |
|
25-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move all sockaddr parsers to a separate file * sockaddr_ll.c: Rename to sockaddr.c (print_sockaddr_data_ll): Add static keyword. * Makefile.am (strace_SOURCES): Likewise. * defs.h (print_sockaddr_data_ll): Remove. (addrfams): New prototype. * net.c: Move all sockaddr parsers to sockaddr.c.
/external/strace/net.c
|
42e566ae7419082953995a90ae86cdfaa7a12f45 |
|
25-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: rename printsock to decode_sockaddr * defs.h (printsock): Rename to decode_sockaddr. * net.c (printsock): Likewise. (do_msghdr, SYS_FUNC(bind), do_sockname, SYS_FUNC(sendto), SYS_FUNC(recvfrom)): Replace printsock with decode_sockaddr.
/external/strace/net.c
|
45ae937cedd8ddb477ead0a04158c79b214d5422 |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing AF_PACKET socket addresses * defs.h (print_ifindex, print_sockaddr_data_ll): New prototypes. * net.c: Stop including "xlat/af_packet_types.h". (print_ifindex): Remove static keyword. (print_sockaddr_data_l): Remove. * sockaddr_ll.c: New file. * Makefile.am (strace_SOURCES): Add it. * xlat/arp_hardware_types.in: New file. * xlat/ethernet_protocols.in: Likewise.
/external/strace/net.c
|
eef96acd1aaf01ead9d9b9f8076a89083e7e3e87 |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: skip details of too short socket addresses, part 2 * net.c (sa_printers): Add minimal address length for each socket family. (print_sockaddr): Call socket family specific sockaddr printer only when socket address length is greater or equal the minimal address length for the socket family.
/external/strace/net.c
|
324f68d439c711cc1babfd5c88a6c45e39365e17 |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing AF_BLUETOOTH socket addresses * xlat/hci_channels.in: New file. * net.c (print_sockaddr_data_raw): New function. (print_sockaddr): Use it. [HAVE_BLUETOOTH_BLUETOOTH_H]: Include "xlat/hci_channels.h". [HAVE_BLUETOOTH_BLUETOOTH_H] (print_sockaddr_data_bt): Fix printing sockaddr_hci, sockaddr_sco, sockaddr_rc, and sockaddr_l2 structures.
/external/strace/net.c
|
102c8ca79e3dd38e259057385d712e7821a82a0a |
|
24-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing AF_IPX sockets addresses, part 2 * net.c (print_sockaddr_data_ipx): Print sockaddr_ipx.sipx_network using %#08x format. Print elements of sockaddr_ipx.sipx_node array and sockaddr_ipx.sipx_type using %#02x format.
/external/strace/net.c
|
0e09796e9539c9d8df9ad3575c1b09934d233a26 |
|
24-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing AF_UNIX abstract socket addresses AF_UNIX abstract socket address specified by sockaddr_un.sun_path is not a NUL-terminated string. * net.c (SIZEOF_SA_FAMILY): New macro. (print_sockaddr_data_un): Use it. Specify actual address length in print_quoted_string calls. Do not set QUOTE_0_TERMINATED flag when printing an abstract socket address.
/external/strace/net.c
|
71e05be60a95c833c4b244510cf30a1b0f5afdb4 |
|
24-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing field names of struct sockaddr_nl * net.c (print_sockaddr_data_nl): Change "pid" to "nl_pid", "groups" to "nl_groups". Print sockaddr_nl.nl_groups using %#08x format. * tests/net-yy-netlink.c (main): Update.
/external/strace/net.c
|
60bf6c7e7b839d9d5dbc902f04d7b1c83b5eb449 |
|
24-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing struct sockaddr_in6.sin6_flowinfo * net.c (print_sockaddr_data_in6): Convert sockaddr_in6.sin6_flowinfo from network order to host order before printing.
/external/strace/net.c
|
c6fd08c6edf7cd5747f13cc411bae6396da4a81c |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: do not print sockaddr_in6.sin6_scope_id unnecessarily Prior to RFC2553, struct sockaddr_in6 had no sin6_scope_id field. As the kernel still accepts RFC2133 editions of struct sockaddr_in6, print sockaddr_in6.sin6_scope_id only when it is specified. * net.c (SIN6_MIN_LEN): New macro. (print_sockaddr_data_in6): Print sockaddr_in6.sin6_scope_id only when socket address length exceeds SIN6_MIN_LEN.
/external/strace/net.c
|
dcc7a3c1c68455bffe16b5c4cd32ea1b92a5a4d1 |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing raw data of socket addresses * net.c (print_sockaddr): When printing socket address raw data, read exactly the number of data bytes specified for the socket addess.
/external/strace/net.c
|
f52753aad56ef89574e1aa864c5492b623be984f |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: skip details of too short socket addresses * net.c (print_sockaddr): Print socket address details only when the address size is greater than sizeof(struct sockaddr.sa_family). (print_sockaddr_data_un): Remove handling of addrlen == 2. * tests/net-y-unix.c (main): Update expected pattern. * tests/net-yy-unix.c (main): Likewise. * tests/net.expected: Likewise.
/external/strace/net.c
|
0a3d0e5f494c1ee63fbb1fcf9f4a57cbaedeb4ed |
|
23-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Assume that libc provides struct sockaddr_in6.sin6_scope_id * configure.ac (AC_CHECK_MEMBERS): Remove struct sockaddr_in6.sin6_scope_id. * net.c (print_sockaddr_data_in6): Remove HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID check.
/external/strace/net.c
|
42c5878867257a49d9550b3644c7f68490fa8ca1 |
|
22-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Split print_sockaddr * net.c (sockaddr_buf_t): Remove. (sockaddr_printer): New type. (sa_printers): New array of sockaddr_printer. (print_sockaddr): Use it. Move printers of family specific sockaddr data to separate funcions.
/external/strace/net.c
|
2a54d8b2572ad7aab1fa0f0dfd95963d573c1b48 |
|
22-Jun-2016 |
Fabien Siron <fabien.siron@epita.fr> |
Add a enum for decoding to tprint_iov() and tprint_iov_upto() Introduce a new type iov_decode which will be used instead of the integer "decode" as a parameter. * defs.h (iov_decode): New enum. (tprint_iov, tprint_iov_upto): Change type of "decode_iov" to enum iov_decode. * aio.c (print_iocb): Change type of "decode_iov" to enum iov_decode in tprint_iov() call. * keyctl.c (keyctl_instantiate_key_iov): Likewise. * process.c (ptrace): Likewise. * process_vm.c (process_vm_readv, process_vm_writev): Likewise. * io.c (writev, do_pwritev, vmsplice): Likewise. (print_iovec): Replace the condition with a switch. (tprint_iov_upto): Change type of "decode_iov" to enum iov_decode. (readv, do_preadv): Change type of "decode_iov" to enum iov_decode in tprint_iov_upto() call. * scsi.c (print_sg_io_v3_req, print_sg_io_v3_res, print_sg_io_v4_req, print_sg_io_v4_res): Likewise. * net.c (do_msghdr): Adapt call of tprint_iov_upto().
/external/strace/net.c
|
64906b8f0a88bdac7c9e38c96f15543afde7d814 |
|
22-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: fix zero padding of sockaddr buffer Before this change printsock used to erroneously clear the last byte of sockaddr buffer. * net.c (printsock): Use struct sockaddr_storage as a sockaddr buffer. Reserve additional byte after the sockaddr buffer for zero padding. Do not clear memory that is going to be overwritten by umoven. Clear the tail of sockaddr buffer that was not overwritten by umoven.
/external/strace/net.c
|
0a1ce620626de07f1a3f3ddba19d74aaa6638597 |
|
21-Jun-2016 |
Fabien Siron <fabien.siron@epita.fr> |
Change printsock to return socket family * defs.h (printsock): Change return type to int. * net.c (printsock): Likewise. Return socket family on success and -1 in case of an error.
/external/strace/net.c
|
3bf9c190f17b69ff90023fa721efa79dac62c7fc |
|
21-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Export print_sockaddr function * defs.h (print_sockaddr): New prototype. * net.c (print_sockaddr): Remove static keyword. Change type of address pointer to "const void *". (print_cmsg_ip_recverr, print_group_req): Remove redundant casts in print_sockaddr invocations.
/external/strace/net.c
|
b5f1fd926ad6cc52e115c9af1d303ad1b853ad90 |
|
21-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Assume that libc provides inet_ntop and inet_pton * configure.ac (AC_CHECK_FUNCS): Remove inet_ntop and inet_pton. * net.c (sockaddr_buf_t, print_sockaddr, print_mreq6): Remove HAVE_INET_NTOP checks. * tests/ip_mreq.c: Remove HAVE_INET_PTON check.
/external/strace/net.c
|
f8ed94b53ace398836ebfb64381a7b0554d5f35f |
|
21-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use SO_LINGER unconditionally * net.c (print_linger, print_getsockopt, print_setsockopt): Do not check for SO_LINGER availability.
/external/strace/net.c
|
43369fc103ef3cdcf9c41ba55493a9462b24b405 |
|
21-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use AF_BLUETOOTH unconditionally * net.c (print_sockaddr, SYS_FUNC(socket)): Do not check for AF_BLUETOOTH availability.
/external/strace/net.c
|
bc4102e81d16c7fb90d9cb503f7c1c48dbc7b3f6 |
|
20-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: fix printing AF_IPX sockets * net.c (print_sockaddr): Print sockaddr_ipx as a regular structure. (SYS_FUNC(socket)): Remove special handling of AF_IPX.
/external/strace/net.c
|
eb1c22b8c21c95bbcae89a96cf21a481403b8bc2 |
|
20-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use AF_IPX unconditionally * net.c (sockaddr_buf_t, print_sockaddr, SYS_FUNC(socket)): Do not check for AF_IPX availability.
/external/strace/net.c
|
ebda41a44a3e36ef05409b4ba64d419b7abfe943 |
|
20-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Cleanup netipx/ipx.h availability check * configure.ac (AC_CHECK_HEADERS): Add netipx/ipx.h. * net.c: Check for HAVE_NETIPX_IPX_H instead of __GLIBC__.
/external/strace/net.c
|
5e26ee2221e2991121ede72fcb4be2d0ff969dc8 |
|
15-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use AF_INET6 unconditionally * net.c (SYS_FUNC(socket)): Do not check for AF_INET6 availability.
/external/strace/net.c
|
c981b1f858843e79654324c34d7eb57c6706123d |
|
15-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use AF_PACKET unconditionally * net.c: Do not check for AF_PACKET availability.
/external/strace/net.c
|
4f689a14073122af4e5796f9ca3efd638333a0a7 |
|
15-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: include <linux/if_packet.h> unconditionally * configure.ac (AC_CHECK_HEADERS): Remove linux/if_packet.h. * net.c: Include <linux/if_packet.h> unconditionally.
/external/strace/net.c
|
fba9db299c1458ac0391606fb2e62f4f519af631 |
|
15-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use ICMP_FILTER unconditionally * net.c: Do not check for ICMP_FILTER availability.
/external/strace/net.c
|
d06010b3c4b96abf050e3d03c9ad99af85ef1e4b |
|
15-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: include <linux/icmp.h> unconditionally * configure.ac (AC_CHECK_HEADERS): Remove linux/icmp.h. * net.c: Follow the example of tests/net-icmp_filter.c and include <linux/icmp.h> unconditionally.
/external/strace/net.c
|
9457304b4c9ed9ecd59b79b16555bad835860866 |
|
14-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use AF_NETLINK unconditionally * net.c: Do not check for AF_NETLINK availability.
/external/strace/net.c
|
b10ee4e0eba41e19d566fe880b7d3bebc253290a |
|
14-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: include <linux/netlink.h> unconditionally * configure.ac (AC_CHECK_HEADERS): Remove linux/netlink.h. * net.c: Follow the example of socketutils.c and include <linux/netlink.h> unconditionally.
/external/strace/net.c
|
484326dbd8f8e02983e37498b4b5fa990d16b536 |
|
11-Jun-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Consistently use printaddr for printing addresses * bjm.c (SYS_FUNC(init_module)): Use printaddr. * clone.c (SYS_FUNC(clone)): Likewise. * evdev.c (ff_effect_ioctl): Likewise. * mtd.c (decode_mtd_oob_buf): Likewise. * net.c (SYS_FUNC(sendmmsg), SYS_FUNC(recvmmsg), SYS_FUNC(getsockopt)): Likewise. * print_sigevent.c (print_sigevent): Likewise. * printsiginfo.c (printsigval, print_si_info): Likewise. * signal.c (decode_new_sigaction): Likewise. * sysmips.c (SYS_FUNC(sysmips)): Likewise. * util.c (printpathn, printstr, umoven_or_printaddr): Likewise. * v4l2.c (print_v4l2_buffer, print_v4l2_framebuffer, umoven_or_printaddr_ignore_syserror): Likewise. * tests/net-icmp_filter.c (main): Update. Based on patch by Eugene Syromyatnikov <evgsyr@gmail.com>.
/external/strace/net.c
|
9134aab4073a8be6bb529aeb05e8c5f4be69540f |
|
14-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Prepare for transition from xlookup64 to xlookup * fcntl.c (print_fcntl, SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Cast 2nd argument of xlookup to unsigned long. * prctl.c (SYS_FUNC(prctl)): Likewise. * sched.c (SYS_FUNC(sched_getscheduler)): Likewise. * time.c (do_adjtimex): Likewise. * ioprio.c (sprint_ioprio): Change type of the argument and local variables from int to unsigned int. * keyctl.c (print_keyring_serial_number): Cast 2nd argument of xlookup to unsigned int. * net.c (tprint_sock_type): Change type of the argument to unsigned int. * printmode.c (sprintmode): Likewise. * printsiginfo.c (printsigval): Change type of si_code argument to unsigned int.
/external/strace/net.c
|
eb5c233d99b210e2e74472c27fd196f3fdb1c059 |
|
06-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix corner cases of ICMP_FILTER decoding * net.c (print_icmp_filter): Print icmp_filter for any positive length. * tests/net-icmp_filter.c: New file. * tests/net-icmp_filter.test: New test. * tests/.gitignore: Add net-icmp_filter. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add net-icmp_filter.test.
/external/strace/net.c
|
71fe62e6b7083159d19cd2762c3f6d25511844e5 |
|
04-Apr-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Replace PF_* constants with AF_* AF_* constants appear to be more standardized, and in practice there's always a one to one relationship between AF_* and PF_*, so let's use AF_* instead of PF_*. * xlat/domains.in: Remove. * net.c: Do not define PF_UNSPEC. Stop including "xlat/domains.h". Replace PF_* with AF_*. Replace domains with addrfams. * tests/inet-cmsg.c: Replace PF_INET with AF_INET. * tests/net-yy-inet.c: Likewise. * tests/netlink_inet_diag.c: Likewise. * tests/net-accept-connect.c: Replace PF_LOCAL with AF_LOCAL. * tests/net-y-unix.c: Likewise. * tests/net-yy-unix.c: Likewise. * tests/netlink_unix_diag.c: Likewise. * tests/net.expected: Replace PF_ with AF_.
/external/strace/net.c
|
f40ea796ba5199efe703f9f0b2c7343d0fb8258f |
|
01-Apr-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Consistently handle 2nd and 3rd arguments of [gs]etsockopt as unsigned The second (level) and third (optname) arguments of getsockopt and setsockopt syscalls are enums, so treat them consistently as enums: use "unsigned int" type to avoid potential sign extension issues. * net.c (print_sockopt_fd_level_name, print_getsockopt, print_setsockopt): Change type of "level" and "name" arguments from "int" to "unsigned int".
/external/strace/net.c
|
9b388858035455e120f5d13b1707a96e77ca621a |
|
12-Feb-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
alpha, ia64, mips, sh*, sparc*: fix error path decoding of pipe syscall * net.c (do_pipe) [HAVE_GETRVAL2]: Remove. Always call decode_pair_fd on exiting. (SYS_FUNC(pipe)) [HAVE_GETRVAL2]: Call printpair_fd instead of do_pipe.
/external/strace/net.c
|
d44707d889a9a69e3aaebd2535968957cbcddedb |
|
20-Jan-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix dumping of recvmmsg syscall in case of short read * net.c (dumpiov_in_mmsghdr): Call dumpiov_upto instead of dumpiov, pass data size limit to dumpiov_upto. * NEWS: Mention this fix. * tests/mmsg.c (main): Update.
/external/strace/net.c
|
93c9d1cdbdc9d1f406f5a773eac987ef1db6ce95 |
|
20-Jan-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix dumping of recvmsg syscall in case of short read * defs.h (dumpiov_in_msghdr): Add unsigned long argument. * net.c (dumpiov_in_msghdr): Add data_size argument. Call dumpiov_upto instead of dumpiov, pass data_size to dumpiov_upto. * syscall.c (dumpio): Pass data size limit to dumpiov_in_msghdr. * NEWS: Mention this fix. * tests/recvmsg.c: New file. * tests/recvmsg.test: New test. * tests/Makefile.am (check_PROGRAMS): Add recvmsg. (TESTS): Add recvmsg.test. * tests/.gitignore: Add recvmsg.
/external/strace/net.c
|
a17f593e508ccab2e92032ef9ee5518d79379641 |
|
23-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: fix printing of IP_RECVOPTS/IP_RETOPTS cmsg options * net.c (print_cmsg_ip_opts): Print each byte as unsigned char.
/external/strace/net.c
|
1f111cff5a09e7c78fb4daaf6dada0abe22185c9 |
|
21-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Implement IPPROTO_IP control messages decoding * net.c: Include "xlat/ip_cmsg_types.h". (print_cmsg_ip_pktinfo, print_cmsg_ip_ttl, print_cmsg_ip_tos, print_cmsg_ip_opts, print_cmsg_ip_recverr, print_cmsg_ip_checksum, print_cmsg_ip_origdstaddr): New functions. (print_cmsg_type_data): Add generic SOL_IP level decoding. Use these functions for decoding of IP_PKTINFO, IP_TTL, IP_TOS, IP_RECVOPTS, IP_RETOPTS, IP_RECVERR, IP_ORIGDSTADDR, IP_CHECKSUM, and SCM_SECURITY type messages. * xlat/ip_cmsg_types.in: New file. * xlat/sockipoptions.in: Move IP_RETOPTS before IP_RECVRETOPTS. * tests/inet-cmsg.c: New file. * tests/inet-cmsg.test: New test. * tests/Makefile.am (check_PROGRAMS): Add inet-cmsg. (TESTS): Add inet-cmsg.test. * tests/.gitignore: Add inet-cmsg. Suggested-by: Orion Poplawski <orion@cora.nwra.com>
/external/strace/net.c
|
1103b4ee8603fb43b73d468d838ff18cbf1c514f |
|
21-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Simplify control messages printers Do not pass sizeof(struct cmsghdr) to every cmsg printer. * net.c (printcmsghdr): Pass pointer to cmsg_data and length of cmsg_data to print_cmsg_type_data. (print_cmsg_type_data): Update prototype. Pass pointer to cmsg_data and length of cmsg_data to cmsg printers. (print_scm_rights, print_scm_creds, print_scm_security): Update.
/external/strace/net.c
|
1019f002c11a075abbbc195b62617775d5c5e0d0 |
|
21-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: factor out address printing code to a separate function * net.c (sockaddr_buf_t): New type. (print_sockaddr): New function. (printsock, print_group_req): Use it.
/external/strace/net.c
|
f54cb96f7fdca4e1fa1c371e7874d7bba3bfc0ef |
|
19-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printcmsghdr: move type and data decoders to a separate function * net.c (print_scm_rights, print_scm_creds, print_scm_security): Change to return void. Move printing of struct cmsghdr closing '}' ... (printcmsghdr): ... here. Move type and data decoders to ... (print_cmsg_type_data): ... new function.
/external/strace/net.c
|
b36d132907088b878fe77c25a7e8a9c85bf379f0 |
|
19-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Assume that libc provides sendmsg Starting with commit v4.6-281-g7af9f35, we implicitly assume that HAVE_SENDMSG is always defined. Therefore, the check for sendmsg availability is redundant and could be safely removed. * configure.ac (AC_CHECK_FUNCS): Remove sendmsg. * linux/dummy.h [!HAVE_SENDMSG] (sys_recvmsg, sys_sendmsg): Remove stub aliases. * net.c [HAVE_SENDMSG]: Define unconditionally. * syscall.c (dumpio) [HAVE_SENDMSG]: Likewise.
/external/strace/net.c
|
3a1e95d14e99ed1bef0a6a097ed4620bf809e191 |
|
19-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: move fallback definition of SCM_SECURITY to xlat/ * net.c: Move fallback definition of SCM_SECURITY ... * xlat/scmvals.in: ... here.
/external/strace/net.c
|
2950de36314b5ea88a3741e24f948113358f7ce2 |
|
18-Sep-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Convert another parser of struct timespec to new mpers infrastructure * print_time.c (sprint_timespec): New mpers printer. * defs.h (TIMESPEC_TEXT_BUFSIZE): Update. (sprint_timespec): Remove. * time.c (sprint_timespec): Remove. * net.c (sys_recvmmsg): Update callers. * poll.c (decode_poll_exiting): Likewise.
/external/strace/net.c
|
54646b8e057443f0b76afe9a231eae63afbf5d5a |
|
19-Aug-2015 |
Mike Frysinger <vapier@gentoo.org> |
decode extend getsockopt/setsockopt options Currently the code assumes the set of valid options between getsockopt and setsockopt are exactly the same and thus maintains one list. The kernel unfortunately does not do this -- it allows for different opts between the get and set functions. See the {g,s}et_opt{min,max} fields in the various netfilter subcores. To support this, extend the printxval function to take multiple sets of xlats as varargs. Then we add the new get/set lists, and pass them down in the net code when decoding things. A simple example is iptables; before: getsockopt(4, SOL_IP, 0x40 /* IP_??? */, ...) = 0 getsockopt(4, SOL_IP, 0x41 /* IP_??? */, ...) = 0 after: getsockopt(4, SOL_IP, IPT_SO_GET_INFO, ...) = 0 getsockopt(4, SOL_IP, IPT_SO_GET_ENTRIES, ...) = 0 If these were setsockopt calls, then 0x40 & 0x41 would be IPT_SO_SET_REPLACE & IPT_SO_SET_ADD_COUNTERS. * configure.ac: Check for netfilter headers. * defs.h (printxvals): New prototype. (printxval): Change to a define. * net.c: Include netfilter headers and new sockopts headers. (print_sockopt_fd_level_name): Add a is_getsockopt argument. Change SOL_IP and SOL_IPV6 decoding to use printxvals, and use is_getsockopt to pass more xlats down. (getsockopt): Call print_sockopt_fd_level_name with is_getsockopt as true. (setsockopt): Call print_sockopt_fd_level_name with is_getsockopt as false. * util.c (printxval): Rename to ... (printxvals): ... this. Rewrite to be varargs based. * xlat/getsockipoptions.in: New xlat list. * xlat/getsockipv6options.in, xlat/setsockipoptions.in, xlat/setsockipv6options.in: Likewise.
/external/strace/net.c
|
2a4f0521fc34f853c1bd41e5176d01162c161bbf |
|
02-Aug-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
pipe, pipe2, socketpair: print returned descriptors using printfd * net.c (printpair_fd, decode_pair_fd): New functions. (do_pipe, sys_socketpair): Use them.
/external/strace/net.c
|
3d463be47e84896366a86d156cbf1466f69a9811 |
|
02-Aug-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
socket: mark return code with RVAL_FD flag * net.c (sys_socket): Set RVAL_FD flag in the return code. * tests/net-yy-accept.awk: Update socket and bind regexps. * tests/unix-yy-accept.awk: Likewise. * tests/net-yy-connect.awk: Update socket and connect regexps. * tests/unix-yy-connect.awk: Likewise.
/external/strace/net.c
|
52dc1506abc7372c4beebbd185d09501f52c6283 |
|
30-Jul-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: use printaddr * net.c (printsock, sys_recvfrom): Use printaddr.
/external/strace/net.c
|
383386de73799a7c977e729c1e104ba6d6b3630c |
|
30-Jul-2015 |
Denys Vlasenko <dvlasenk@redhat.com> |
net.c: recvfrom fixes This change fixes these three problems (before/after is shown): On interrupted syscall, flags are not decoded: -recvfrom(3, 0x7fff0a41e306, 10, 2, 0, 0) = ? ERESTARTSYS +recvfrom(3, 0x7fff0a41e306, 10, MSG_PEEK, 0, 0) = ? ERESTARTSYS If peer address is unavalable (example: anon sockets from socketpair()), kernel returns socklen of 0, but we ignore that and show bogus sockaddr data: -recvfrom(3, "123456789\0", 10, MSG_PEEK, {sa_family=0x7777 /* AF_??? */, sa_data="wwwwwwwwwwwwww"}, [0]) = 10 +recvfrom(3, "123456789\0", 10, MSG_PEEK, 0x7ffde6edf760, [0]) = 10 SYS_FUNC(recvfrom) passes address of fromlen, not fromlen, to printsock(): - printsock(tcp, tcp->u_arg[4], tcp->u_arg[5]); + printsock(tcp, tcp->u_arg[4], fromlen); Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
771c2a4651633319fedd92774eaf479f9acf2a58 |
|
20-Jul-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Alias sys_connect to sys_bind * linux/dummy.h (sys_connect): Alias to sys_bind. * net.c (sys_connect): Remove.
/external/strace/net.c
|
219b3a79b48f86168564773711d5954ae70fdf39 |
|
20-Jul-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
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.
/external/strace/net.c
|
6c277da20558fcae086c7a7a26cd63f4e553a84d |
|
20-Jul-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
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.
/external/strace/net.c
|
b679508f6ef838a390d807c1bb4696b096543475 |
|
07-Jul-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Use printpair_int * evdev.c (repeat_ioctl): Use printpair_int. * net.c (do_pipe, sys_socketpair): Likewise.
/external/strace/net.c
|
d93c4e80b3cf1e04cef218aef32a77be8b7bcd2f |
|
17-Jun-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Consistenly use #ifdef to check for AC_DEFINE'd macros * aio.c (print_common_flags): Use #ifdef in the check for HAVE_STRUCT_IOCB_U_C_FLAGS. * defs.h: Use #ifdef in the check for HAVE_LITTLE_ENDIAN_LONG_LONG. * net.c: Use #ifdef in the check for HAVE_SENDMSG. * syscall.c (dumpio): Likewise. * printstat.h (DO_PRINTSTAT): Use #ifdef in checks for HAVE_STRUCT_STAT_ST_* macros. * util.c: Use #ifdef in checks for HAVE_SYS_XATTR_H.
/external/strace/net.c
|
fddeeba9b8f83573aff43d4041f1770749cb1235 |
|
17-Jun-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: move fallback definitions of SOL_* constants to xlat/ * net.c: Move definitions of SOL_* constants ... * xlat/socketlayers.in: ... here.
/external/strace/net.c
|
7bee462a645a69e042c7262317f40c77d1516d95 |
|
08-Jun-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: decode setsockopt() multicast arguments * configure.ac (AC_CHECK_FUNCS): Add inet_pton. * net.c (print_mreq, print_mreq6): New functions. (print_setsockopt): Use them to decode IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP, IPV6_JOIN_ANYCAST, and IPV6_LEAVE_ANYCAST. * tests/ip_mreq.c: New file. * tests/ip_mreq.expected: Likewise. * tests/ip_mreq.test: New test. * tests/Makefile.am (check_PROGRAMS): Add ip_mreq. (TESTS): Add ip_mreq.test. (EXTRA_DIST): ip_mreq.expected. * tests/.gitignore: Add ip_mreq. Based on patch by Ben Noordhuis <info@bnoordhuis.nl>.
/external/strace/net.c
|
ae28093c650f8ee4709c1a22ff365201e2fe809a |
|
05-Jun-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: factor out interface index printing code * net.c (print_ifindex): New function. (printsock) [HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID]: Use it.
/external/strace/net.c
|
3e9d71feaad428f0f8e335f83b86e9f2a16781fb |
|
25-May-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Introduce memory allocation wrappers Introduce wrappers to the following functions that do memory allocation: malloc, calloc, realloc, strdup. This commit is a follow-up to the related discussions in strace-devel ML: http://sourceforge.net/p/strace/mailman/message/33618180/ http://sourceforge.net/p/strace/mailman/message/33733470/ * defs.h (xmalloc, xcalloc, xreallocarray, xstrdup): New prototypes. * xmalloc.c: New file. * Makefile.am (strace_SOURCES): Add it. * count.c (count_syscall, call_summary_pers): Use xcalloc. * desc.c (decode_select): Use xmalloc. * dirent.c (sys_getdents, sys_getdents64): Likewise. * net.c (sys_recvmmsg): Use xstrdup. * pathtrace.c (storepath): Use xreallocarray. (pathtrace_match): Use xmalloc. * strace.c (die_out_of_memory): Move to xmalloc.c. (expand_tcbtab): Use xcalloc and xreallocarray. (startup_child): Use xstrdup. (init): Use xmalloc, xcalloc, and xstrdup. * syscall.c (reallocate_qual): Use xreallocarray. (qualify): Use xstrdup. * unwind.c (unwind_tcb_init): Use xmalloc. (build_mmap_cache): Use xcalloc, xreallocarray, and xstrdup. (get_symbol_name): Use xreallocarray. (stacktrace_walk, queue_put): Use xmalloc. * util.c (printstr): Use xmalloc. * vsprintf.c (strace_vfprintf): Likewise.
/external/strace/net.c
|
a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b |
|
07-Apr-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Declare syscall parsers using SYS_FUNC macro Introduce SYS_FUNC macro to declare and define all syscall parsers. * Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h. (sys_func.h): New rule. * defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros. * linux/syscall.h: Include "sys_func.h". [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers. Remove other declarations. * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs and osf_fstatfs syscall parsers. * *.c: Use SYS_FUNC to define syscall parsers.
/external/strace/net.c
|
78ed3f3558942b7c042aeb84ee0f4a2dccf64791 |
|
23-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
alpha, ia64, sh, sparc, sparc64: fix pipe and pipe2 syscalls decoding Fix pipe syscall decoding on alpha. Fix pipe2 syscall decoding on ia64, sh, sparc, and sparc64. * configure.ac (AC_CHECK_FUNCS): Add pipe2. * defs.h [ALPHA || IA64 || SH || SPARC || SPARC64] (HAVE_GETRVAL2): Define. * net.c (do_pipe): Check HAVE_GETRVAL2 instead of architecture macros. Do not use getrval2 for pipe2 decoding. Print address if umove call fails. * syscall.c (getrval2): Check HAVE_GETRVAL2 instead of architecture macros. Implement for [ALPHA]. * tests/pipe.c: New file. * tests/pipe.expected: New file. * tests/pipe.test: New test. * tests/Makefile.am (check_PROGRAMS): Add pipe. (TESTS): Add pipe.test. (EXTRA_DIST): Add pipe.expected. * tests/.gitignore: Add pipe.
/external/strace/net.c
|
7e69ed98cdd3c8ee0bba783927bc95b895c60160 |
|
21-Mar-2015 |
Denys Vlasenko <dvlasenk@redhat.com> |
Change last parameter of umoven() from char* to void* Saves tons of casts. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
3910d0f67caccf421c72a19026d89115000ebefd |
|
08-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
print_setsockopt: fix fall-through bug in SOL_IP switch case This fixes the bug introduced by commit v4.9-250-ga0a4909. * net.c (print_setsockopt): Separate SOL_IP case from SOL_PACKET. Reported-by: Ben Noordhuis <info@bnoordhuis.nl>
/external/strace/net.c
|
f362a33660fd8f2bdfad9bf3985a08b8fd837f38 |
|
31-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: remove unused HAVE_SIN6_SCOPE_ID_LINUX-based code The AC_SIN6_SCOPE_ID autoconf macro that was able to define HAVE_SIN6_SCOPE_ID_LINUX was removed by commit v4.4-98-g64f793a. * net.c [HAVE_SIN6_SCOPE_ID_LINUX]: Remove.
/external/strace/net.c
|
d0dceaf0ffdd1ad0e5169777126da8126903dba8 |
|
30-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: do not fetch sockaddr.sa_data twice * net.c (printsock): Print addrbuf.sa.sa_data using print_quoted_string.
/external/strace/net.c
|
a0a4909988f9a5db1427dbf7a5ef4efbfb3e8125 |
|
30-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
setsockopt: add decoding of MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP * net.c (print_group_req): New function. (print_setsockopt): Use it.
/external/strace/net.c
|
f57bd11eb0b20de9642c9da7b7b870e6c59fef6e |
|
29-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: print the whole sockaddr_un.sun_path * net.c (printsock): If sockaddr_un.sun_path is not NUL-terminated, do not omit the last byte of sockaddr_un.sun_path array.
/external/strace/net.c
|
d9177dfc12f82a9238bf71e85d07d41346c5e5e8 |
|
29-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: do not fetch sockaddr_un.sun_path twice * net.c (printsock): Print addrbuf.sau.sun_path using print_quoted_string.
/external/strace/net.c
|
6d31c7a6a974472cf32579dbd61554b45a5fbd0e |
|
29-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
net: define all SOL_* constants Ensure that all known SOL_* constants are defined. Sync the list of known SOL_* constants with linux/socket.h. * net.c: Provide definitions for all SOL_* constants. Remove all SOL_* preprocessor conditionals. (socketlayers): Disconnect from inet_protocols. * xlat/socketlayers.in: Remove SOL_ICMP, add SOL_ALG and SOL_NFC.
/external/strace/net.c
|
02f2f091d58023912ad8814c960cf6c8bc3d0574 |
|
29-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
setsockopt: decode PACKET_ADD_MEMBERSHIP * xlat/packet_mreq_type.in: New file. * net.c: Include "xlat/packet_mreq_type.h". (print_packet_mreq): New function. (print_setsockopt): Use it.
/external/strace/net.c
|
0509c8ed6db16c10d26801e6be8acc923eba2a32 |
|
29-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
getsockopt, setsockopt: do not decode structures in non-verbose mode Move the code that is common between getsockopt and setsockopt parsers to a separate function. Move printers specific to getsockopt and setsockopt to separate functions, choose appropriate parsers depending on verbose mode. Move parsers of specific socket options to separate functions. * net.c (printicmpfilter): Rename to print_icmp_filter. (printsockopt): Remove. (print_sockopt_fd_level_name, print_linger, print_ucred, print_tpacket_stats, print_getsockopt, print_tpacket_req, print_packet_mreq, print_setsockopt): New functions. (sys_getsockopt, sys_setsockopt): Use them.
/external/strace/net.c
|
00244b94bbfc3edd2ca17c83e879154b6f6708d4 |
|
28-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
sendmsg: do not decode msghdr in non-verbose mode * net.c (printmsghdr): Do not decode struct msghdr in non-verbose mode.
/external/strace/net.c
|
0e9d594caa0362d30ab3c39d509da997d051220b |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: quote network interface names * net.c (printsock): Print network interface names returned by if_indextoname() using print_quoted_string.
/external/strace/net.c
|
513e96eb94841734274c0607aae2c9f212411eee |
|
26-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Rework string_quote API string_quote() has proven to be too hard to use, replace it with print_quoted_string() that does memory allocation and prints the result. * defs.h (string_quote): Remove. (QUOTE_0_TERMINATED, QUOTE_OMIT_LEADING_TRAILING_QUOTES): New macros. (print_quoted_string): New prototype. * util.c (string_quote): Make static; take "style" flags instead of "len", treat QUOTE_0_TERMINATED style flag as former (len == -1); add QUOTE_OMIT_LEADING_TRAILING_QUOTES style flag support. (ALLOCA_CUTOFF, use_alloca): New macros. (print_quoted_string): New function. (printpathn, printstr): Update to new API. * loop.c (loop_ioctl): Likewise. * mtd.c (ubi_ioctl): Likewise. * net.c (print_scm_security): Likewise. * socketutils.c (unix_parse_response): Likewise.
/external/strace/net.c
|
b85a7f3b9525a3b4cd84f301b2c7b100348242fe |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Impove struct cmsghdr decoding Print all cmsghdr structures in msg_control array, not just the first one. Change output format to be consistent with other parts of strace where structures and arrays are printed. Implement decoder for SCM_SECURITY message type. * net.c (print_scm_rights, print_scm_creds, print_scm_security): New functions. (printcmsghdr): Use them. Iterate over all members of the array. * xlat/scmvals.in: Add SCM_SECURITY. * tests/scm_rights.c (main): Pass one more descriptor to the receiver. Set SO_PASSCRED on the receiver part. Reserve enough space to receive SCM_CREDENTIALS and SCM_RIGHTS. * tests/scm_rights-fd.test: Update.
/external/strace/net.c
|
05884d866c1d108fbc83bb8161051c156aacfde6 |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix ILP32 personality struct cmsghdr decoding on LP64 architectures * net.c (union_cmsghdr): New union. [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] (cmsghdr32): New structure. (printcmsghdr): Properly handle the case of current_wordsize < sizeof(long).
/external/strace/net.c
|
d9f7e7a4392a5fb38b3c60825fedddb28f30572f |
|
09-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix build on systems that lack NETLINK_SOCK_DIAG definition NETLINK_INET_DIAG was introduced in linux v2.6.14, NETLINK_SOCK_DIAG was added much later in linux v3.3. * net.c [!NETLINK_SOCK_DIAG && NETLINK_INET_DIAG] (NETLINK_SOCK_DIAG): Define. * socketutils.c: Likewise. * tests/netlink_unix_diag.c: Likewise.
/external/strace/net.c
|
37548c4afc768cfc37866d77fb141f43823d9010 |
|
02-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Alias sys_getpeername to sys_getsockname Since parsers for getpeername and getsockname syscalls are identical, replace sys_getpeername with an alias to sys_getsockname. * linux/dummy.h (sys_getpeername): Alias to sys_getsockname. * linux/syscall.h (sys_getpeername): Remove. * net.c (sys_getpeername): Remove.
/external/strace/net.c
|
b2fa2beedc603a17ed7afaa32b80180e54b901f1 |
|
21-Nov-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Include <sys/uio.h> unconditionally Since <sys/uio.h> is standardized by POSIX and is present in all available versions of glibc, it's safe to assume that any usable libc implementation provides this header file. * configure.ac (AC_CHECK_HEADERS): Remove sys/uio.h. * io.c: Include <sys/uio.h> unconditionally. (tprint_iov_upto, tprint_iov, sys_readv, sys_writev, print_llu_from_low_high_val, sys_preadv, sys_pwritev): Define unconditionally. * net.c: Include <sys/uio.h> unconditionally. * util.c: Include <sys/uio.h> unconditionally. (dumpiov): Define unconditionally.
/external/strace/net.c
|
a807dceca5ccfaf283aedaca3d998f83db8fe1fa |
|
06-Nov-2014 |
Masatake YAMATO <yamato@redhat.com> |
Add functions for dumping iovecs in mmsghdr used in sendmmsg and recvmmsg This patch is similar to what I did in commit 02f9f6b386741a52f58e1b31ad4e7fff60781ef8. That commit was for sendmsg and recvmsg system calls. This one is for sendmmsg and recvmmsg system calls. * defs.h (dumpiov_in_mmsghdr): New declaration. * net.c (extractmmsghdr): New function derived from printmmsghdr. (printmmsghdr): Use it. (dumpiov_in_mmsghdr): New function. * syscall.c (dumpio) [HAVE_SENDMSG]: Call dumpiov_in_mmsghdr for recvmmsg and sendmmsg syscalls. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/net.c
|
caf6a438f9d97684c10da8a6453d1e0e151a9613 |
|
06-Nov-2014 |
Masatake YAMATO <yamato@redhat.com> |
Use the definition of struct mmsghdr if it is defined in build environment mmsghrd structure type is defined locally in printmmsghdr function. However, more functions will refer the definition in modifications for supporting "-e write=set" and "-e read=set" option for sendmmsg and recvmmsg system calls. After this change, the system definition of struct mmsghdr will be used if configure reports it is available, falling back to the old local definition. * configure.ac (AC_CHECK_TYPES): Add struct mmsghdr. * net.c [!HAVE_STRUCT_MMSGHDR] (struct mmsghdr): Define. (printmmsghdr): Use previously defined struct mmsghdr. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
/external/strace/net.c
|
b248543be91457a6c0567a4b057ff0acc361efc2 |
|
06-Nov-2014 |
Masatake YAMATO <yamato@redhat.com> |
Introduce a separate function to copy from msghdr32 to msghdr This patch is an initial step for supporting "-e write=set" and "-e read=set" option for sendmmsg and recvmmsg system calls. Coverting a data of msghdr32 to msghdr is needed both for {send,recv}msg and {send,recv}mmsg to decode parameters. To share the copying code in both decoders, a separate function named copy_from_msghdr32 is introduced. * net.c [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] (copy_from_msghdr32): New function. (extractmsghdr) [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4]: Use it. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
/external/strace/net.c
|
c400a1c70ebebde368481c01e85d68e7fd118be6 |
|
03-Oct-2014 |
Lubomir Rintel <lkundrak@v3.sk> |
Dump details for Bluetooth socket operations * configure.ac (AC_CHECK_HEADERS): Add bluetooth/bluetooth.h. * xlat/bt_protocols.in: New file. * net.c [AF_BLUETOOTH && HAVE_BLUETOOTH_BLUETOOTH_H]: Include bluetooth headers. [PF_BLUETOOTH && HAVE_BLUETOOTH_BLUETOOTH_H]: Include "xlat/bt_protocols.h". (printsock) [AF_BLUETOOTH && HAVE_BLUETOOTH_BLUETOOTH_H]: Dump details for AF_BLUETOOTH sockets. (sys_socket) [PF_BLUETOOTH && HAVE_BLUETOOTH_BLUETOOTH_H]: Decode protocol for PF_BLUETOOTH sockets. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/net.c
|
02f9f6b386741a52f58e1b31ad4e7fff60781ef8 |
|
15-Oct-2014 |
Masatake YAMATO <yamato@redhat.com> |
Add a function for dumping iovec in msghdr used in sendmsg and recvmsg Here is an example session: $ ./strace -e write=all ip link change dev enp0s25 mtu 1501 > /dev/null sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"(... * 40 bytes in buffer 0 | 00000 28 00 00 00 10 00 05 00 d0 d9 aa 53 00 00 00 00 (..........S.... | | 00010 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ | | 00020 08 00 04 00 dd 05 00 00 ........ | ... $ ./strace -e read=all ip link show > /dev/null recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"... * 8192 bytes in buffer 0 | 00000 34 00 00 00 02 00 00 00 00 00 00 00 ff 23 00 00 4............#.. | | 00010 ff ff ff ff 20 00 00 00 10 00 05 00 00 00 00 00 .... ........... | ... * defs.h (dumpiov_in_msghdr): New prototype. * net.c (extractmsghdr): New function derived from printmsghdr. (printmsghdr): Use extractmsghdr. (dumpiov_in_msghdr): New function. * syscall.c (dumpio) [HAVE_SENDMSG]: Call dumpiov_in_msghdr for recvmsg and sendmsg syscalls. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/net.c
|
3ed5d021837768405d9f9c9e7d2b05dc6a110d94 |
|
10-Sep-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix compilation warnings reported by gcc -Wsign-compare * configure.ac (gl_WARN_ADD): Add -Wsign-compare. * defs.h (struct tcb): Change 'currpers' type to unsigned. (struct xlat): Change 'val' type to unsigned (signame): Add 'const' qualifier to its argument. (xlookup, printxval): Add 'const' qualifier to the 2nd argument and change its type to unsigned. (printpathn): Change the 3rd argument type to unsigned. (ioctl_lookup): Change 1st argument type to unsigned. * count.c (call_summary_pers, call_summary): Change 'i' type to unsigned. * file.c (print_xattr_list): Fix comparisons between signed and unsigned long values. * ioctl.c (compare): Fix cast. (ioctl_lookup): Change 1st argument type to to unsigned. (ioctl_next_match): Change 'code' type to unsigned. * mem.c (sys_move_pages): Change 'i' type to unsigned. * mtd.c (mtd_ioctl): Change 'i' and 'j' types to unsigned. Print 'i' using %u format string. * process.c (sys_prctl): Change 'i' type to unsigned. (printargv): Change 'n' type to unsigned. (sys_ptrace): Change 'addr' type to unsigned. * scsi.c (print_sg_io_buffer): Add 'const' qualifier to 'len' argument and change its type to unsigned. Change 'i' and 'allocated' types to unsigned. * signal.c (signame): Add 'const' qualifier to its argument. Fix comparisons between signed and unsigned values. (sprintsigmask_n, printsiginfo): Fix comparisons between signed and unsigned values. * sock.c (sock_ioctl): Change 'i' and 'nifra' types to unsigned. * strace.c (expand_tcbtab, alloctcb): Change 'i' type to unsigned. (detach): Change 'sig' type to unsigned. (startup_attach): Change 'tcbi' type to unsigned. (startup_child): Change 'm', 'n', and 'len' types to unsigned. (init): Use new variable to iterate 'tcbtab'. (pid2tcb): Change 'i' type to unsigned. (cleanup): Change 'i' and 'sig' types to unsigned. * syscall.c (update_personality): Change 'personality' argument type to unsigned. (struct qual_options): Change 'bitflag' type to unsigned. (reallocate_qual): Add 'const' qualifier to its argument and change its type to unsigned. (qualify_one): Change 'n' and 'bitflag' arguments types to unsigned. Add 'const' qualifier to 'n', 'not', and 'pers' arguments. Change 'p' type to signed int. (qual_syscall): Change 'bitflag' argument type to unsigned. Add 'const' qualifier to 'bitflag' and 'not' arguments. Change 'p' type to signed int. (qual_signal): Change 'bitflag' argument type to unsigned. Add 'const' qualifier to 'bitflag' and 'not' arguments. Change 'i' type to unsigned. (qual_desc): Change 'bitflag' argument type to unsigned. Add 'const' qualifier to 'bitflag' and 'not' arguments. (qualify): Change 'i' type to unsigned. (get_scno): Change 'currpers' type to unsigned. Fix a comparison between signed and unsigned values. * system.c (sys_sysctl): Change 'cnt' and 'max_cnt' types to unsigned. Fix comparisons between signed and unsigned values. * util.c (xlookup, printxval): Add 'const' qualifier to 'val' argument and change its type to unsigned. (printuid): Fix a comparison between signed and unsigned values. (printpathn): Change 'n' argument type to unsigned. (printstr): Change 'size' type to unsigned. Fix a comparison between signed and unsigned values. (setbpt): Change 'i' type to unsigned. * net.c (printsock): Silence a compilation warning. * reboot.c (sys_reboot): Likewise.
/external/strace/net.c
|
1e42f2dbe721f7cb1e4bdfc9103bf358b4a443c1 |
|
10-Sep-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
tprint_sock_type: remove unused parameter * net.c (tprint_sock_type): Remove unused parameter 'tcp'. (sys_socket, sys_socketpair): Update callers.
/external/strace/net.c
|
130636529156859aaafbf57278f5dbcceae2c76a |
|
10-Sep-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
printsock: fix decoding of unrecognized AF_PACKET packet types * net.c (printsock): Fix fallback string for AF_PACKET packet types.
/external/strace/net.c
|
15114ec215f889b71fd1f9ed2012b8deeb33a55c |
|
06-Aug-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode file descriptors returned by accept and accept4 syscalls * net.c (do_accept): Rename to do_sockname. (sys_accept, sys_accept4): Update callers, return RVAL_FD. (sys_getsockname, sys_getpeername): Call do_sockname directly. * tests/net-fd.test: Update.
/external/strace/net.c
|
d35bdcad13caac3e167735e1f0fc50355b2f9523 |
|
26-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Compress blank lines Suppress empty lines left after automated xlat conversion.
/external/strace/net.c
|
0ed617bd66624cec6138102545d73b2e2346f1f6 |
|
26-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Generate xlat/*.in files Automatically convert xlat structures from *.c files to xlat/*.in files using "./generate_xlat_in.sh *.c" command.
/external/strace/net.c
|
f23b097fc5fdc031dc795c10876d97f31b2826d8 |
|
29-May-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode file descriptors passed via SCM_RIGHTS control messages * net.c (printcmsghdr): Print descriptors from SCM_RIGHTS control messages using printfd. * tests/scm_rights.c: New file. * tests/scm_rights-fd.test: New test. * tests/Makefile.am (check_PROGRAMS): Add scm_rights. (TESTS): Add scm_rights-fd.test. * tests/.gitignore: Add scm_rights and uio.
/external/strace/net.c
|
2394a3d0e5ee5684a42b36218ada2dcf3b4e705f |
|
11-Mar-2014 |
Masatake YAMATO <yamato@redhat.com> |
Decode protocol argument for PF_NETLINK sockets * net.c (protocols): Rename to inet_protocols. [PF_NETLINK] (netlink_protocols): New xlat structure. (sys_socket): Rename protocols to inet_protocols. [PF_NETLINK]: Decode protocol argument using netlink_protocols. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/net.c
|
033fb910a291a26d714d277c748683e67903f44c |
|
11-Mar-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Cleanup socketpair decoding The only supported domain for socketpair syscall is AF_UNIX, so no decoding related to other domains is required for socketpair. * net.c (sys_socketpair): Remove support for PF_INET and PF_IPX domains, print the protocol argument as is.
/external/strace/net.c
|
594527353359d9a6aad516992e09c393e11f3bd2 |
|
05-Feb-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Use XLAT_END macro Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
/external/strace/net.c
|
bce0cc6a2d103e1da4c15a4c5396fdc5676294f7 |
|
05-Feb-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Use XLAT macro Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
/external/strace/net.c
|
894c7e3858ede412e37a1752c716bed7f30a9605 |
|
01-Feb-2014 |
Philippe Ombredanne <pombredanne@nexb.com> |
Add decoding of sockets descriptor 'paths' for network calls * net.c (sys_bind, sys_listen, do_accept, sys_send, sys_sendto, sys_sendmsg, sys_sendmmsg, sys_recv, sys_recvfrom, sys_recvmsg, sys_recvmmsg, sys_shutdown, sys_getsockopt, sys_setsockopt): Decode socket descriptor arguments using printfd. * pathtrace.c (pathtrace_match): Also check TRACE_NETWORK syscalls that take socket descriptor arguments. * tests/net-fd.test: New test for socket descriptor arguments decoding. * tests/Makefile.am (TESTS): Add net-fd.test. (net-fd.log): New dependency on net.log. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/net.c
|
aa4633c76e6fe34463cbe4acda113b7e7ab42642 |
|
31-Jan-2014 |
Mike Frysinger <vapier@gentoo.org> |
net: add more sockopt options This syncs with the defines as available in linux-3.13. * net.c (sockipoptions): Add IP_IPSEC_POLICY, IP_XFRM_POLICY, IP_PASSSEC, IP_TRANSPARENT, IP_ORIGDSTADDR, IP_RECVORIGDSTADDR, IP_MINTTL, IP_NODEFRAG, IP_UNBLOCK_SOURCE, IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP, IP_DROP_SOURCE_MEMBERSHIP, MCAST_JOIN_GROUP, MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP, MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, IP_MULTICAST_ALL, IP_UNICAST_IF.
/external/strace/net.c
|
840a253bacdd107f90628dd3d5371d03fdca48ab |
|
12-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove unneeded redefinitions of IPPROTO_* macros IPPROTO_* macros are defined by <netinet/in.h>, no need to redefine them. * net.c (IPPROTO_EGP, IPPROTO_PUP, IPPROTO_IDP, IPPROTO_IGMP, IPPROTO_RAW, IPPROTO_MAX): Remove. Reported by John Spencer.
/external/strace/net.c
|
70e84c4e251829d3ccb954637209a9dd47dd37a0 |
|
12-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove unused code * configure.ac (AC_CHECK_TYPES): Remove struct opthdr and struct t_opthdr. * net.c (print_sock_optmgmt): Remove.
/external/strace/net.c
|
ea0d2a60b1c00b41696ef223df2377809b9e1fa9 |
|
17-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Update AF_*, PF_*, MSG_*, and TCP_* constants * net.c (domains, addrfams, protocols, socktcpoptions): Sync with Linux 3.9.
/external/strace/net.c
|
3e759d4293076b9358a25bb61d50d3e6fff5b0e2 |
|
12-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Handle recv[m]msg for non-native 32-bit personality syscalls * net.c (printmsghdr): If current_wordsize is 4 and long is wider than it, read 32-bit struct msghdr and expand it into a native one before using it. (printmmsghdr): Likewise for struct mmsghdr. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
99aa181ebcee3f6ae4f8eb83c719cc64cc5a09ec |
|
08-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
If we are on a glibc system, assume it's at least glibc 2.1 It is not likely anyone uses glibc older that that: glibc 2.1.1 was released in 1999 * net.c: Remove test for glibc >= 2.1. * signal.c: Remove code which is compiled only for glibc < 2.1. * util.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
5ea97658e78b6ce9fb768ffdd6a4b682c5df8e90 |
|
01-May-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix recvmmsg decode: do not show more data than actually returned This change complements recent fix for recvmsg decoding. * net.c (printmmsghdr): Add msg_len parameter to pass down to do_msghdr. When this parameter is zero, pass mmsghdr.msg_len to do_msghdr instead. (decode_mmsg): Add msg_len parameter, pass it down to printmmsghdr. (sys_sendmmsg): Call decode_mmsg with msg_len == (unsigned long) -1L. (sys_recvmmsg): Call decode_mmsg with msg_len == 0.
/external/strace/net.c
|
043b5f81429412cf23d578d1dc2b45107a8352e5 |
|
01-May-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove recently introduced use of ULONG_MAX * io.c: Remove limits.h inclusion. (tprint_iov): Use "(unsigned long) -1L" instead of "ULONG_MAX". * net.c: Remove limits.h inclusion. (printmmsghdr, sys_sendmsg): Use "(unsigned long) -1L" instead of "ULONG_MAX".
/external/strace/net.c
|
e0bc222263cf47a43e1b26d55edb2ffadc8ccbff |
|
28-Apr-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix recvmsg decode: do not show more data than actually returned I noticed that "hostname -d" talks over netlink and gets 20 bytes of response, but we show entire 1024 bytes of iov. This changes fixes that. * defs.h: New function tprint_iov_upto. * io.c (tprint_iov_upto): Definition of this function. (tprint_iov): Call tprint_iov_upto. * net.c (do_msghdr): Add data_size parameter, pass it down to tprint_iov_upto. (printmsghdr): Add data_size parameter, pass it down to do_msghdr. (printmmsghdr): Call do_msghdr with data_size==ULONG_MAX. (sys_sendmsg): Call printmsghdr with data_size==ULONG_MAX. (sys_recvmsg): Call printmsghdr with data_size==tcp->u_rval. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
989ebc91395600c21b4242aee27df9190b2166b3 |
|
17-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Reindent case labels. No code changes * net.c (printsockopt): Reindent case labels. * signal.c (sys_signal): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8 |
|
16-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Tidy up includes and copyright notices, fix indentation The files not mentioned in changelog below had only copyright notices fixes and indentation fixes. * defs.h: Include <stdint.h> and <inttypes.h>. * file.c: Do not include <inttypes.h>. Move struct kernel_dirent declaration below top include block. * block.c: Do not include <stdint.h> and <inttypes.h>. * quota.c: Likewise. * desc.c: Likewise. * signal.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
3df080af316bd7dad363d464114bc20ce36c1f53 |
|
13-Mar-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c: recognize MSG_WAITFORONE * net.c (msg_flags): Add MSG_WAITFORONE.
/external/strace/net.c
|
7af9f35001af19e2844b3e9fb3c672ee696be17b |
|
12-Mar-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Implement sendmmsg syscall decoder * linux/dummy.h (sys_sendmmsg): Remove. * linux/syscall.h (sys_sendmmsg): New prototype. * net.c (printmmsghdr): Add index argument specifying the element in mmsghdr array to print. (decode_mmsg): New function, prints the whole mmsghdr array, its length and message flags. (sys_sendmmsg): New function. (sys_recvmmsg): Use decode_mmsg to fix mmsghdr array decoding.
/external/strace/net.c
|
b237b1b20da4ff40efb919f9d4a6458a05f375ca |
|
27-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Style fixes, no code changes * desc.c (sys_io_getevents): Indentation fix. * file.c (sys_xstat): Remove space after function name. (decode_mknod): Indentation fix. * net.c (printsockopt): Indentation fix. * process.c (unalignctl_string): Indentation fix. (sys_sched_getscheduler): Remove space after ! operator. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
e83e157021177930b64ec4aa4983bbe13b39e91b |
|
25-Feb-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Compress blank lines Suppress repeated empty lines left after automated code removal. This change was made by filtering every source code file through "cat -s".
/external/strace/net.c
|
1a3cf10c3095a9f80138b83f3d54499b825c9797 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Build fixes after non-Linux code removal * configure.ac: Remove calls to proc-based ptrace checks. * proc.c: Remove, it's empty now. * Makefile.am: Remove reference to proc.c. * net.c: Remove trailing newlines. * quota.c: Likewise * resource.c: Likewise * strace.c: Likewise * stream.c: Likewise * time.c: Likewise Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
c36c352329755387f0a503cc9a47047e6de6e711 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix defined(FOO) style * file.c: Consistently use defined(FOO) instead of defined (FOO). * mem.c: Likewise. * net.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * linux/mips/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
8470374cba7df0e70653d95c4f336a4082c68d82 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Cleanup after non-Linux code removal. Conditions such as defined(LINUX) are always true now, defined(FREEBSD) etc are always false. When if directive has them as subexpressions, it can be simplified. Another trivial changes here are fixes for directive indentation. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
ed720fda5d515f1359fcd3242223e553d1216789 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Automated removal of non-Linux code This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
c86340e171ebbb4b11e986d172e9b27535ae1807 |
|
22-Feb-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix sockaddr_un.sun_path name in decoded output * net.c (printsock): Show sockaddr_un.sun_path as "sun_path". This fixes Debian bug #554946.
/external/strace/net.c
|
a1d541ec56e2fb4716f083fcc814b1dedde63d87 |
|
20-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Eliminate code duplication in time printing, reduce a few static buffers text data bss dec hex filename 238454 664 28772 267890 41672 strace.before 238106 664 28676 267446 414b6 strace * defs.h: Add TIMESPEC_TEXT_BUFSIZE and TIMEVAL_TEXT_BUFSIZE defines. Add 'int special' parameter to sprinttv(). * time.c (sprinttv): Add 'int special' parameter, and use it similarly to 'int special' parameter of printtv_bitness(). (printtv_bitness): Use sprinttv() instead of duplicating its code. (print_timespec): Use sprint_timespec() instead of duplicating its code. * desc.c (decode_select): Use TIMEVAL_TEXT_BUFSIZE instead of 128 when checking remaining buffer size. * net.c (sys_recvmsg): Use TIMESPEC_TEXT_BUFSIZE instead of 128 for static buffer size. * stream.c (decode_poll): Use TIMESPEC_TEXT_BUFSIZE instead of 128 when checking remaining buffer size. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/net.c
|
b05fc5463be8df587b4acc8f522f51e21bc22be8 |
|
01-Dec-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
* net.c (socktcpoptions): Add more TCP_* constants from linux/tcp.h Reported-by: Rick Jones <rick.jones2@hp.com>
/external/strace/net.c
|
60fe8c139c6f2febefe595781812ddf0864a6ab8 |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Use tprints with literal strings, it may be faster than tprintf * bjm.c: Replace tprintf("str") with tprints("str"). * block.c: Likewise. * desc.c: Likewise. * file.c: Likewise. * io.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * resource.c: Likewise. * scsi.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
5940e6593911dcace424c668a1c0934c71fccb9e |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix "format not a string literal" warning caused by tprintf(str) * defs.h: Declare tprints(). * strace.c: Define tprints(). (tabto): Use tprints(str), since tprintf(str) was throwing a warning. * desc.c: Use tprints(str) instead of tprintf("%s", str). * file.c: Likewise. * io.c: Likewise. * net.c: Likewise. * process.c: Likewise. * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
7b609d5ba0852e6c56ba311350ebd4412361777b |
|
22-Jun-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Whitespace cleanups. No code changes. * count.c: Place opening curly brace after if (), not on the next line. Almost all strace code alredy uses this style. * desc.c: Likewise. * file.c: Likewise. * net.c: Likewise. * pathtrace.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * signal.c: Likewise. * strace.c: Likewise. * syscall.c: Likewise. * time.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
8884968a46f5413345de7b0085388a367eb9caae |
|
14-Jun-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Add argument to tprint_iov() specifying whether to decode each iovec * defs.h (tprint_iov): Add decode_iov argument. * io.c (tprint_iov): Implement new decode_iov argument. (sys_readv, sys_writev, sys_sendfile, sys_preadv, sys_pwritev): Update tprint_iov calls. * net.c (do_msghdr): Likewise.
/external/strace/net.c
|
b63256e69bf3f1a74aadb0e14556490bc8f4ef95 |
|
07-Jun-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Whitespace cleanups. no code changes. * bjm.c: Fix tabulation (such as extra spaces before tabs), convert punctuation where it deviates from prevalent form elsewhere in strace code, convert sizeof and offsetof where it deviates from from prevalent form, remove space between function/macro/array names and (parameters) or [index], add space between "if" and (condition), correct non-standard or wrong indentaion. * defs.h: Likewise * desc.c: Likewise * file.c: Likewise * ipc.c: Likewise * linux/arm/syscallent.h: Likewise * linux/avr32/syscallent.h: Likewise * linux/hppa/syscallent.h: Likewise * linux/i386/syscallent.h: Likewise * linux/ioctlsort.c: Likewise * linux/m68k/syscallent.h: Likewise * linux/microblaze/syscallent.h: Likewise * linux/powerpc/syscallent.h: Likewise * linux/s390/syscallent.h: Likewise * linux/s390x/syscallent.h: Likewise * linux/sh/syscallent.h: Likewise * linux/sh64/syscallent.h: Likewise * linux/tile/syscallent.h: Likewise * linux/x86_64/syscallent.h: Likewise * mem.c: Likewise * net.c: Likewise * pathtrace.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * sunos4/syscall.h: Likewise * sunos4/syscallent.h: Likewise * svr4/syscall.h: Likewise * svr4/syscallent.h: Likewise * syscall.c: Likewise * system.c: Likewise * test/childthread.c: Likewise * test/leaderkill.c: Likewise * test/skodic.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
1201426dd43f5b4e12dfe520e2a9c5027d33dc11 |
|
30-May-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
"Modernize" all old-style function parameter declarations * bjm.c: Convert all remaining old-style C function definitions to a "modern" form. This does not change any actual code. * io.c: Likewise * ioctl.c: Likewise * net.c: Likewise * proc.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * syscall.c: Likewise * system.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/net.c
|
9cd385010ec1e0d22be70ff5163db194f1f22735 |
|
03-Mar-2011 |
Sebastian Pipping <sebastian@pipping.org> |
Print shutdown(2) modes as SHUT_* constants * net.c (shutdown_modes): New xlat structure. (sys_shutdown): Use shutdown_modes to decode 2nd syscall argument.
/external/strace/net.c
|
d475c06134717745987e4c1859e4cdb8d16e2001 |
|
03-Mar-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix struct xlat initialization bugs * file.c (inotify_modes): Terminate with NULL entry. * net.c (sock_type_flags): Make this array static. (socketlayers): Add a comment that this array should remain not NULL-terminated.
/external/strace/net.c
|
7fea79b7606644ec4e7c2e0a9fbb070c15cbc589 |
|
14-Jan-2011 |
Holger Hans Peter Freyther <zecke@selfish.org> |
Parse SOL_SCTP socket options * configure.ac (AC_CHECK_HEADERS): Add netinet/sctp.h. * net.c [HAVE_NETINET_SCTP_H]: Include <netinet/sctp.h>. [SOL_SCTP] (socksctpoptions): New xlat structure. (sys_getsockopt, printsockopt): Parse SOL_SCTP options.
/external/strace/net.c
|
ce9e0f4c7fa3159376b7d05b8527bddfef0d2305 |
|
14-Jan-2011 |
Holger Hans Peter Freyther <zecke@selfish.org> |
* net.c (socketlayers): Add more SOL_* constants from linux/socket.h
/external/strace/net.c
|
d48c6b91e235d485308881f41bdfb21cd1426c15 |
|
10-Jan-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
* net.c (protocols): Add more IPPROTO_* constants defined in netinet/in.h
/external/strace/net.c
|
efa8bda2e7c06831de5262873d4da5749ea33302 |
|
07-Jan-2011 |
Holger Hans Peter Freyther <holger@freyther.de> |
* net.c (protocols): Add IPPROTO_GRE, IPPROTO_SCTP and IPPROTO_UDPLITE.
/external/strace/net.c
|
0ddd8addef9e9b0c7af00f70b97b3e464205ad1d |
|
03-Dec-2010 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode struct ucred for getsockopt SO_PEERCRED * net.c (sys_getsockopt): Decode SO_PEERCRED. Proposed by Arkadiusz Miśkiewicz <arekm@maven.pl>.
/external/strace/net.c
|
e6591031475ace4ac54bb9995f21dd86fa857b1b |
|
29-Mar-2010 |
Dmitry V. Levin <ldv@altlinux.org> |
Enhance recvmmsg parser * net.c (sys_recvmmsg): Decode mmsghdr structure on exit from the syscall. Decode timespec structure both on entrance and on exit.
/external/strace/net.c
|
0873f29af4c1b2357e4f13338731665dd1ee2893 |
|
12-Feb-2010 |
Andreas Schwab <schwab@linux-m68k.org> |
Decode recvmmsg syscall * net.c (do_msghr): New function to print struct msghdr. (printmsghdr): Use it. (printmmsghdr, sys_recvmmsg): New. * linux/syscall.h: Declare sys_recvmmsg. (SYS_sub_recvmmsg): Define. (SYS_socket_nsubcalls): Bump. * linux/sparc/syscall.h: Likewise. * linux/arm/syscallent.h: Add sys_recvmmsg. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/ia64/syscallent.h: Adjust.
/external/strace/net.c
|
e5e60858063f214fcd7860f50f8bcb46f951f9ab |
|
31-Dec-2009 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove dead code * defs.h (tv_tv): Remove. * net.c (sys_xsetsockaddr): Remove commented out dead code. * process.c (setarg, sys_execv, sys_execve, struct_user_offsets): Likewise. * signal.c (sys_sigsuspend): Likewise. * strace.c (reaper, trace): Likewise. * stream.c (internal_stream_ioctl): Likewise. * syscall.c (trace_syscall): Likewise. * term.c (term_ioctl): Likewise. * util.c (tv_tv, umoven, uload, getpc, fixvfork, setbpt, clearbpt): Likewise.
/external/strace/net.c
|
ca75bd6dffc01e4d95e85d3af82d446cd80afbb5 |
|
13-Nov-2009 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode more SOL_PACKET socket options * net.c (sockpacketoptions): Add more PACKET_* entries. (sys_getsockopt): Decode PACKET_STATISTICS. (printsockopt): Decode PACKET_RX_RING and PACKET_TX_RING. Patch by Gabor Gombas.
/external/strace/net.c
|
312891930180ba10bd9d65c3e47f92cf15a6dacd |
|
06-Nov-2009 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix getsockopt decoding on architectures where sizeof(long) > sizeof(int) * net.c (sys_getsockopt): Optimize output a bit. Decode integer argument using printnum_int(), patch by Gabor Gombas.
/external/strace/net.c
|
705ff10c0b9c07b9b51fc2f2bc6f3e6412f6ed9c |
|
14-Aug-2009 |
Paolo Bonzini <pbonzini@redhat.com> |
Replace x86-64 paccept with accept4 This patch changes the paccept syscall to accept4 for x86-64, since the former was dropped in Linux kernel commit v2.6.27-rc7-14-g2d4c826. At the same time, it adds support for pretty printing its arguments. * linux/x86_64/syscallent.h: Replace paccept with accept4, hook in sys_accept4. * net.c (sys_accept): Leave a small stub calling the new... (do_accept): ... function, which also adds a flags_arg argument. (sys_accept4): New.
/external/strace/net.c
|
132c52a5ccf7b12a44a617f06c97d3f4344a4421 |
|
23-Mar-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
* system.c (sram_alloc_flag): Add L2_SRAM constant. by Mike Frysinger (vapier AT gentoo.org). (sys_sram_alloc): Fix improperly used %zu: tcp->u_arg is not a size_t, it is a long. * net.c (printcmsghdr): Fix improperly used %zu: struct cmsghdr::cmsg_len is not a size_t.
/external/strace/net.c
|
5ae2b7c601dadf79a4345e1ee21053947b9e4add |
|
27-Feb-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
AVR32 support by Hans-Christian Egtvedt (hans-christian.egtvedt AT atmel.com). * configure.ac: Make it recognize avr32. * defs.h: Define LINUX_AVR32. * linux/avr32/syscallent.h: New file. * Makefile.am: Reference linux/avr32/syscallent.h. * proc.c (change_syscall, setarg): Add support for avr32. (struct xlat struct_user_offsets[]): Ditto. * syscall.c (get_scno): Ditto. (get_error, force_result, syscall_enter): Ditto. * util.c (getpc, printcall): Ditto.
/external/strace/net.c
|
f535b54bc40373c81b13df0975aef4212dacbbde |
|
13-Jan-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fixes for ptrace() argument parsing. * process.c: Add parsing of PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO. * strace.c (handle_stopped_tcbs): Make PTRACE_SETOPTIONS define check more robust. * defs.h: Declare several "extern const struct xlat" arrays here. * desc.c: Remove open_mode_flags[] and open_access_modes[] extern declarations. * net.c: Remove open_mode_flags[] extern declaration. * sock.c: Remove addrfams[] extern declaration. * util.c: Remove struct_user_offsets[] extern declaration. * signal.c: Remove open_mode_flags[] extern declaration.
/external/strace/net.c
|
2fc6615b9137234af661ed15796e021e98e43bf9 |
|
01-Jan-2009 |
Dmitry V. Levin <ldv@altlinux.org> |
2009-01-01 Andreas Schwab <schwab@suse.de> * net.c (sys_accept): Properly decode third argument as pointer to int.
/external/strace/net.c
|
4371b10b30ceb369942e93105c038519524ba18e |
|
10-Nov-2008 |
Dmitry V. Levin <ldv@altlinux.org> |
2008-10-23 Dmitry V. Levin <ldv@altlinux.org> Implement parsers for new linux syscalls. * desc.c (do_dup2, [LINUX] sys_dup3): New functions. (sys_dup2): Use do_dup2. [LINUX] (sys_epoll_create1): New function. [LINUX] (do_eventfd, sys_eventfd2): New functions. [LINUX] (sys_eventfd): Use do_eventfd. * net.c (do_pipe, [LINUX] sys_pipe2): New functions. (sys_pipe): Use do_pipe. * signal.c [LINUX] (do_signalfd, sys_signalfd4): New functions. [LINUX] (sys_signalfd): Use do_signalfd. * linux/syscall.h: Declare new sys_* functions. * linux/syscallent.h: Hook up signalfd4, eventfd2, epoll_create1, dup3, pipe2, inotify_init1. * linux/x86_64/syscallent.h: Hook up paccept, signalfd4, eventfd2, epoll_create1, dup3, pipe2, inotify_init1.
/external/strace/net.c
|
8a550d729d53f963452d10990cd56d1132cb1602 |
|
10-Nov-2008 |
Dmitry V. Levin <ldv@altlinux.org> |
2008-10-22 Dmitry V. Levin <ldv@altlinux.org> Handle socket type flags introduced in linux 2.6.27. * net.c (socktypes): Add SOCK_DCCP. (sock_type_flags): New xlat structure. (tprint_sock_type): New function. (sys_socket, sys_socketpair): Use it to parse socket type and socket type flags.
/external/strace/net.c
|
c294b8f411e25097f80280fbb924bc031becc181 |
|
01-Nov-2007 |
Roland McGrath <roland@redhat.com> |
2007-11-01 Roland McGrath <roland@redhat.com> * net.c (sockpacketoptions): Make PACKET_ADD_MEMBERSHIP and PACKET_DROP_MEMBERSHIP conditional. From Bernhard Fischer <rep.dot.nop@gmail.com>.
/external/strace/net.c
|
16fbe97a10d7aa9af820b1c98243d9c2bfb120de |
|
13-Oct-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
net.c (printsock): Really use printpathn() as written in ChangeLog entry
/external/strace/net.c
|
b6c32f4598b84364472bc3febcb80ff3e475def8 |
|
09-Oct-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
2007-10-01 Dmitry V. Levin <ldv@altlinux.org> * net.c (printsock): Output AF_UNIX socket address using printpathn() to avoid unprintable characters in output. Suggested by Neil Campbell.
/external/strace/net.c
|
71d3d663caa197b26dcdade024612eee76bf837a |
|
07-Aug-2007 |
Roland McGrath <roland@redhat.com> |
2007-08-03 Ulrich Drepper <drepper@redhat.com> * file.c (open_mode_flags): Add O_CLOEXEC. * net.c (msg_flags): Add MSG_CMSG_CLOEXEC.
/external/strace/net.c
|
b9fe011cdfb0a3014e68a6e82007b6c2703a340b |
|
13-Dec-2006 |
Dmitry V. Levin <ldv@altlinux.org> |
2006-12-10 Dmitry V. Levin <ldv@altlinux.org> Make several global variables static. #ifdef definitions of rarely unused functions. * defs.h (rflag, tflag, outfname): Remove. * strace.c (iflag, interactive, pflag_seen, rflag, tflag, outfname, username): Make static. * desc.c (sys_getdtablesize): Define only for ALPHA || FREEBSD || SUNOS4. * file.c (sys_fchroot): Define only for SUNOS4 || SVR4. (sys_mkfifo): Define only for FREEBSD. * mem.c (sys_sbrk): Define only for FREEBSD || SUNOS4. (sys_getpagesize): Define only for ALPHA || FREEBSD || IA64 || SUNOS4 || SVR4. * net.c (sys_so_socket): Define only for SVR4. * process.c (sys_gethostid): Define only for FREEBSD || SUNOS4 || SVR4. (sys_gethostname): Define only for ALPHA || FREEBSD || SUNOS4 || SVR4. (sys_setpgrp): Define only for ALPHA || SUNOS4 || SVR4. (sys_execv): Define only for SPARC || SPARC64 || SUNOS4. * signal.c (sys_sigblock): Define only for FREEBSD || SUNOS4. (sys_sighold, sys_sigwait): Define only for SVR4. (sys_killpg): Define only for FREEBSD || SUNOS4. * stream.c (sys_getmsg): Define only for SPARC || SPARC64 || SUNOS4 || SVR4. * syscall.c (sys_indir): Define only for SUNOS4.
/external/strace/net.c
|
c0b9e37b3fefaf5d7e6a3c132c72df84eee411a9 |
|
05-Jul-2005 |
Roland McGrath <roland@redhat.com> |
2005-07-04 Roland McGrath <roland@redhat.com> * net.c (sockipv6options): Add IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP, IPV6_ROUTER_ALERT. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#162450.
/external/strace/net.c
|
04ac03a554548ad69f2699b98ae31e15a7fc7915 |
|
05-Jul-2005 |
Roland McGrath <roland@redhat.com> |
2005-07-04 Roland McGrath <roland@redhat.com> * net.c (sockipoptions): Fix typos. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#161578.
/external/strace/net.c
|
9814a94bd10aea81b8bcb29e2ba167b09d70cedb |
|
05-Jul-2005 |
Roland McGrath <roland@redhat.com> |
2005-07-04 Roland McGrath <roland@redhat.com> * util.c (printnum_int): New function, printnum with s/long/int/. * defs.h: Declare it. * net.c (printsockopt): Use it for int-sized option. Fixes RH#162449.
/external/strace/net.c
|
aa524c88c49814863cb7f19e5c8a8eeca6ce22fe |
|
01-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-05-31 Dmitry V. Levin <ldv@altlinux.org> Deal with memory management issues. * defs.h (tprint_iov): Update prototype. * desc.c (sys_epoll_wait) [HAVE_SYS_EPOLL_H]: Do not allocate epoll_event array of arbitrary size on the stack, to avoid stack overflow. * file.c (print_xattr_val): Check for integer overflow during malloc size calculation, to avoid heap corruption. * io.c (tprint_iov) [HAVE_SYS_UIO_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Change iovec array handling to avoid heap memory allocation. * mem.c (get_nodes) [LINUX]: Check for integer overflow during size calculation and do not allocate array of arbitrary size on the stack, to avoid stack overflow. * net.c (printcmsghdr) [HAVE_SENDMSG]: Do not allocate array of arbitrary size on the stack, to avoid stack overflow. Do not trust cmsg.cmsg_len to avoid read beyond the end of allocated object. (printmsghdr) [HAVE_SENDMSG]: Update tprint_iov() usage. * process.c (sys_setgroups): Check for integer overflow during malloc size calculation, to avoid heap corruption. Change gid_t array handling to avoid heap memory allocation. (sys_getgroups): Likewise. (sys_setgroups32) [LINUX]: Likewise. (sys_getgroups32) [LINUX]: Likewise. * stream.c (sys_poll) [HAVE_SYS_POLL_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Change pollfd array handling to avoid heap memory allocation. * system.c (sys_sysctl) [LINUX]: Check for integer overflow during malloc size calculation, to avoid heap corruption. * util.c (dumpiov) [HAVE_SYS_UIO_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Fixes RH#159196.
/external/strace/net.c
|
b2dee13345a62c80a677f3342cd525d611fbc632 |
|
01-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-05-31 Dmitry V. Levin <ldv@altlinux.org> * util.c (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument, "const char *", with similar meaning to the third argument of printxval(). * defs.h (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument. * bjm.c (sys_query_module) [LINUX]: Pass third argument to printflags(). * desc.c (sys_fcntl): Likewise. (sys_flock) [LOCK_SH]: Likewise. (print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise. * file.c (sys_open): Likewise. (solaris_open) [LINUXSPARC]: Likewise. (sys_access): Likewise. (sys_chflags, sys_fchflags) [FREEBSD]: Likewise. (realprintstat) [HAVE_LONG_LONG_OFF_T && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (printstat64) [HAVE_STAT64 && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (sys_setxattr, sys_fsetxattr): Likewise. * ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget, sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise. (sys_mq_open) [LINUX]: Likewise. (printmqattr) [HAVE_MQUEUE_H]: Likewise. * mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mprotect): Likewise. (sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise. (sys_msync) [MS_ASYNC]: Likewise. (sys_mctl) [MC_SYNC]: Likewise. (sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]: Likewise. * net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise. (sys_send, sys_sendto): Likewise. (sys_sendmsg) [HAVE_SENDMSG]: Likewise. (sys_recv, sys_recvfrom): Likewise. (sys_recvmsg) [HAVE_SENDMSG]: Likewise. (printicmpfilter) [ICMP_FILTER]: Likewise. * proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise. * process.c (sys_clone) [LINUX]: Likewise. (printwaitn): Likewise. (sys_waitid) [SVR4 || LINUX]: Likewise. * signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise. (sys_sigaction): Likewise. (printcontext) [SVR4]: Likewise. (print_stack_t) [LINUX) || FREEBSD]: Likewise. (sys_rt_sigaction) [LINUX]: Likewise. * sock.c (sock_ioctl) [LINUX]: Likewise. * stream.c (sys_putmsg, sys_getmsg): Likewise. (sys_putpmsg) [SYS_putpmsg]: Likewise. (sys_getpmsg) [SYS_getpmsg]: Likewise. (sys_poll): Likewise. (print_transport_message) [TI_BIND]: Likewise. (stream_ioctl): Likewise. * system.c (sys_mount, sys_reboot): Likewise. (sys_cacheflush) [LINUX && M68K]: Likewise. (sys_capget, sys_capset) [SYS_capget]: Likewise. * term.c (term_ioctl) [TIOCMGET]: Likewise. * time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]: Likewise. Fixes RH#159310.
/external/strace/net.c
|
96ad7b8f529221bd1db1c3cdca871ee9e1dc713a |
|
02-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-02-01 Roland McGrath <roland@redhat.com> * net.c (sys_getsockopt): Fix a format %ld -> %d.
/external/strace/net.c
|
fc544dbb6ce7da41263aa91df62fd0f17ab716dd |
|
02-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-01-22 Andreas Schwab <schwab@suse.de> * net.c (sys_getsockopt): Change type of len to int.
/external/strace/net.c
|
5077082649babf6dac0cabf5e2dd53dff4d393d0 |
|
07-Oct-2004 |
Roland McGrath <roland@redhat.com> |
2004-10-06 Roland McGrath <roland@redhat.com> * net.c [HAVE_SENDMSG] (printcmsghdr): New function. (printmsghdr): Use it.
/external/strace/net.c
|
d9f816f60457930af27349fac3d23b3b78338036 |
|
04-Sep-2004 |
Roland McGrath <roland@redhat.com> |
2004-09-03 Roland McGrath <roland@redhat.com> * util.c (xlookup, printxval, addflags, printflags): Use const for struct xlat * argument. * defs.h (xlookup, printxval, addflags, printflags): Update decls. * bjm.c: Add const to all struct xlat defns. * desc.c: Likewise. * file.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * resource.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * stream.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise.
/external/strace/net.c
|
1bf4373ab6b6105d3174e024279e66292cee4b83 |
|
31-Aug-2004 |
Roland McGrath <roland@redhat.com> |
2004-08-31 Roland McGrath <roland@redhat.com> * net.c (sockoptions): Add all SO_* macros known in Linux 2.6.9. Fixes Debian bug #171653.
/external/strace/net.c
|
4f6ba69d99a8b6933707abdeb0151f98c28172c9 |
|
31-Aug-2004 |
Roland McGrath <roland@redhat.com> |
2004-08-30 Roland McGrath <roland@redhat.com> * net.c (sockipoptions): Add some options. [SOL_IPV6] (sockipv6options): New variable. (sys_getsockopt, printsockopt): Use it for SOL_IPV6 level. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#128391.
/external/strace/net.c
|
6d1a65c759c6c650e47ce5045a26380a4acbdffa |
|
12-Jul-2004 |
Roland McGrath <roland@redhat.com> |
2004-07-07 David S. Miller <davem@nuts.davemloft.net> * linux/sparc/syscallent.h: Sync with reality. * linux/sparc/syscall.h (sys_sendfile64, sys_futex, sys_gettid, sys_sched_setaffinity, sys_sched_getaffinity, sys_setxattr, sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr, sys_fgetxattr, sys_listxattr, sys_llistxattr, sys_flistxattr, sys_removexattr, sys_lremovexattr, sys_fremovexattr, sys_remap_file_pages, sys_readahead, sys_tgkill, sys_statfs64, sys_fstatfs64, sys_clock_settime, sys_clock_gettime, sys_clock_getres, sys_clock_nanosleep, sys_timer_create, sys_timer_settime, sys_timer_gettime): New declarations. * linux/sparc64/dummy2.h, linux/sparc64/syscallent2.h, linux/sparc64/syscall.h, linux/sparc64/errnoent.h, linux/sparc64/errnoent1.h, linux/sparc64/errnoent2.h, linux/sparc64/ioctlent.h, linux/sparc64/ioctlent1.h, linux/sparc64/ioctlent2.h, linux/sparc64/signalent.h, linux/sparc64/signalent.h, linux/sparc64/signalent.h, linux/sparc64/signalent1.h, linux/sparc64/signalent2.h, linux/sparc64/syscall1.h, linux/sparc64/syscallent.h, linux/sparc64/syscallent1.h: New files. * defs.h (LINUXSPARC): Define also when SPARC64. (LINUX && SPARC64): Set SUPPORTED_PERSONALITIES to 3. Ignore SIGTRAP after execve by defining TCB_WAITEXECVE. Define possibly missing __NR_exit_group. Declare getrval2. * configure.ac (sparc64): New architecture case. * config.h.in (SPARC64): New define. * file.c (stat_sparc64): New structure. (printstat_sparc64): New output routine for that. (printstat): Call it, if personality is 2. (printstat64): Likewise. * util.c: Conditionalize ptrace defines on LINUXSPARC not LINUX && SPARC. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS to PTRACE_FOOREGS64 so that more sparc code can be shared between 64-bit and 32-bit. (_hack_syscall5): Correct trap number when SPARC64. (PTRACE_WRITE{TEXT,DATA}): Add SPARC64 to ifdef guard. (getpc): Handle SPARC64 && LINUX. (printcall): Likewise. (arg fetching/setting): Use same code for SPARC64 LINUX as for SPARC. (setbpt): Handle SPARC64 && LINUX. (clearbpt): Likewise. * signal.c: Conditionalize ptrace defines on SPARC and SPARC64. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS to PTRACE_FOOREGS64 so that more sparc code can be shared between 64-bit and 32-bit. (m_siginfo): Use same definition on SPARC64 as SPARC. (sys_sigreturn): Handle LINUX && SPARC64. * syscall.c: Conditionalize ptrace defines on SPARC and SPARC64. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS to PTRACE_FOOREGS64 so that more sparc code can be shared between 64-bit and 32-bit. (getscno): Use same static state on SPARC64 as SPARC, and add SPARC64 handling. (get_error): Handle LINUX && SPARC64. (force_result): Likewise. (syscall_enter): Likewise. (trace_syscall): Handle sys_socketcall and sys_ipc on SPARC64 just like SPARC. (getrval2): Handle LINUX && SPARC64. * process.c: Conditionalize ptrace defines on SPARC and SPARC64. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS to PTRACE_FOOREGS64 so that more sparc code can be shared between 64-bit and 32-bit. (change_syscall): Handle LINUX && SPARC64. (struct_user_offsets): Ifdef out those which do not exist on SPARC64. * net.c (sys_pipe): Handle LINUX && SPARC64. * ioctl.c: Fix initializer typo for nioctlents2, was nioctlents1 by accident.
/external/strace/net.c
|
5687ff1ca7b4a284c0638fc4bf14fa6c76e04fc9 |
|
12-Jul-2004 |
Roland McGrath <roland@redhat.com> |
2004-07-12 Roland McGrath <roland@redhat.com> * net.c (addrfams): Make variable global. * sock.c (sock_ioctl): Decode the arguments for SIOCGIFNAME, SIOCGIFINDEX, and SIOCGIFCONF. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#126917.
/external/strace/net.c
|
5a8146a20860eca692d182553ebe28b258c11af5 |
|
04-Jun-2004 |
Roland McGrath <roland@redhat.com> |
2004-06-03 Roland McGrath <roland@redhat.com> * net.c (domains): Add many PF_* values #ifdef PF_*. (addrfams): Add many AF_* values #ifdef AF_*. Fixes Debian bug #250506.
/external/strace/net.c
|
05e5e79a706a560188c28aba8d765e1a8534e87b |
|
14-Apr-2004 |
Roland McGrath <roland@redhat.com> |
2004-04-13 Roland McGrath <roland@redhat.com> * net.c (msg_flags): Grok MSG_FIX, MSG_SYN, MSG_RST, MSG_NOSIGNAL, MSG_MORE. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#120541.
/external/strace/net.c
|
b4ce17690f176b972a8cb5cbdd1005bbd4aecf15 |
|
01-Mar-2004 |
Roland McGrath <roland@redhat.com> |
2004-02-26 Andreas Schwab <schwab@suse.de> * defs.h [LINUX && IA64]: Declare getrval2 also on IA64. * net.c (sys_pipe) [LINUX && IA64]: For IA64 use the two return values. * syscall.c (getrval2) [LINUX && IA64]: Implement for IA64.
/external/strace/net.c
|
36ef1bc03e291f98eb5f44ba722a49b87c3cb5e5 |
|
07-Nov-2003 |
Roland McGrath <roland@redhat.com> |
2003-11-06 Roland McGrath <roland@redhat.com> * net.c (printsock): Fix typo in #ifdef AF_NETLINK. From Ulrich Drepper <drepper@redhat.com>.
/external/strace/net.c
|
8758e544d502e54202079b0521ae0a234d644a4a |
|
24-Jun-2003 |
Roland McGrath <roland@redhat.com> |
2003-06-23 Roland McGrath <roland@redhat.com> * net.c (sys_socket): Decode protocol for PF_INET6 same as PF_INET. From Ulrich Drepper <drepper@redhat.com>.
/external/strace/net.c
|
6b1d43ef29a23e5e0aba381f70e2f64e9cface30 |
|
31-Mar-2003 |
Roland McGrath <roland@redhat.com> |
2003-02-26 Stuart Menefy <stuart.menefy@st.com> Various fixes for SuperH [SH]: * mem.c (sys_old_mmap): mmap() parameters passed in registers * net.c (sys_pipe), syscall.c (getrval2): pipe() results returned in registers * process.c (change_syscall): Fixed register which holds system call number * util.c (arg0_offset, arg1_offset): provide definition * Makefile.am: Added new files in linux/sh * linux/sh/syscallent.h: New file. * linux/sh/errnoent.h: New file. * linux/sh/ioctlent.h: New file. * linux/sh/signalent.h: New file.
/external/strace/net.c
|
c3ca0d80a59586c39803a75384e64e13424e8506 |
|
14-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-13 Roland McGrath <roland@redhat.com> * net.c: HAVE_OPTHDR -> HAVE_STRUCT_OPTHDR Reported by John Hughes <john@Calva.COM>.
/external/strace/net.c
|
6d2b34971b33d379c89c36c5ad1b0c6d5d12c453 |
|
30-Dec-2002 |
Roland McGrath <roland@redhat.com> |
2002-12-22 Roland McGrath <roland@redhat.com> Update to Autoconf 2.57, and Automakify with version 1.7. * Makefile.am: New file. * Makefile.in: File removed. * configure.in: Moved to ... * configure.ac: ... here. Update for Autoconf 2.5x and Automake. * aclocal.m4: Moved to ... * acinclude.m4: ... here. Update for Autoconf 2.5x. * AUTHORS: New file, makes automake happy. * autogen.sh: File removed. * README-CVS: Update to recommend autoreconf instead. * file.c: HAVE_ST_* -> HAVE_STRUCT_STAT_ST_*. * net.c: HAVE_SIN6_SCOPE_ID -> HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID, HAVE_MSG_CONTROL -> HAVE_STRUCT_MSGHDR_MSG_CONTROL. * strace.c: *_DECLARED -> HAVE_DECL_* * stream.c: HAVE_* -> HAVE_STRUCT_*
/external/strace/net.c
|
2c4e3a8061130493bd196564f096b677c5528fc1 |
|
24-May-2002 |
John Hughes <john@Calva.COM> |
fix unsigned arithmetic bug in previous change
/external/strace/net.c
|
38ae88d332acd9f86a30d58158e306d795d98977 |
|
23-May-2002 |
John Hughes <john@Calva.COM> |
Improve tracing of timod ioctls
/external/strace/net.c
|
93f7fccaa60735509fd75ad22c8a97a8cd52f6bb |
|
22-May-2002 |
John Hughes <john@Calva.COM> |
improve {set,get}sockopt
/external/strace/net.c
|
b0c598ff8d03a57627a5335448a8a60f0950f4f7 |
|
01-Apr-2002 |
Wichert Akkerman <wichert@deephackmode.org> |
decode packet options
/external/strace/net.c
|
8b8ff7c7800c70393c03b1a806be6daec6a0e068 |
|
27-Dec-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Add new TCP socket options
/external/strace/net.c
|
1fcb1d64ed13836334d100af9412f220efa1bbfa |
|
18-Sep-2001 |
John Hughes <john@Calva.COM> |
fix sockaddr display
/external/strace/net.c
|
1d08dcf46dd4b2cfe3e27723c05b0aec9955c591 |
|
10-Jul-2001 |
John Hughes <john@Calva.COM> |
Merge iov fixes from Richard Kettlewell
/external/strace/net.c
|
6156357814ce751cb0e82a88a4824c931b2e3d62 |
|
27-Mar-2001 |
John Hughes <john@Calva.COM> |
Fix compile errors with SCO UDK compiler
/external/strace/net.c
|
bdf48f55f264a9cd2eb1b3cac8f1f87c1acad008 |
|
06-Mar-2001 |
John Hughes <john@Calva.COM> |
Merge Harald B�hme's solaris patches
/external/strace/net.c
|
1e4cb3466230aa8b4f2e8e8936b240c7b98db486 |
|
06-Mar-2001 |
John Hughes <john@Calva.COM> |
fix compile on UW
/external/strace/net.c
|
fa30618c22c58ca26d9cb89bd297197ed99cc30f |
|
21-Feb-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Fix format for Unix domain sockets
/external/strace/net.c
|
f185065a405794eaf6abc0dcf8345d9e6aa882f7 |
|
16-Feb-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
add support for IPv6 scope ids
/external/strace/net.c
|
8c7122c9519dfd46ea7c8c026eab6f7aed74cf21 |
|
16-Feb-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Test for netinet/tcp.h and udp.h and use those
/external/strace/net.c
|
efdecacc5d7f91c17adb7cdb1dd7306ea6d22c9f |
|
26-Nov-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
fix formating error in sys_setsockopt add list of socketlayers and use that for [gs]etsockopt
/external/strace/net.c
|
2e4ffe59b588159eb80e236f068278ba47735932 |
|
04-Sep-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
more FreeBSD updates
/external/strace/net.c
|
bf79f2e16b090ffe59cd1e1820935680a2da7b78 |
|
01-Sep-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
Add FreeBSD support
/external/strace/net.c
|
16a03d2e97415afe6cf34172a0aea97a95a0b160 |
|
10-Aug-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
test/clone.c: minor fixup Another bunch of patches from John Hughes merged: signal.c: + SVR4 printcontext(): sigset_t != sigset_t* + getcontext returns a value, so print on exit of syscall + add UC_FP to ucontext_flags for OS writers that can't spell + sys_signal(): special case SIG_{ERR,DFL,IGN} + decode_subcall(): only do subcall range checking when needed bunch of UnixWare updates aclocal.m4, acconfig.h, configure.in: add test for long long type
/external/strace/net.c
|
7987cdf192632516d6ba493b0a9943f5a3a7c362 |
|
05-Jul-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
net.c: add SOL_PACKET and SOL_RAW socket options, update SOL_IP and SOL_TCP
/external/strace/net.c
|
4dc8a2aec63e4fb5ee2688544c4de323ed5de3ef |
|
23-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Bunch of stuff
/external/strace/net.c
|
e4aafd4c4d5ecd3317419d1681ef5804dbf1333e |
|
26-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Merge patches from John Hughes
/external/strace/net.c
|
f5eeabb156641482abd504fb98b039e1aae4ae87 |
|
18-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Start merging linux-ip-routing fork
/external/strace/net.c
|
2f473da12babff710bbe37c7f95be01fd00118f9 |
|
01-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Fix duplicate for sys_create_module Include linux/in6.h only for Linux MIPS
/external/strace/net.c
|
505e176ded6376a1283093b334c2c6deb47916e7 |
|
01-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
test for linux/in6.h in configure
/external/strace/net.c
|
15dea97f8a05b2b67f5752137fe93e3cc20db6ec |
|
06-Oct-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Compilation updates
/external/strace/net.c
|
9ce1a63eb20b069607c06f9645ac5a17b418a5f3 |
|
30-Aug-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Catching up on my mail-backlog, see ChangeLog for details
/external/strace/net.c
|
dbb440e5ae5d1a6be4eeda28088e8dfc9b195bac |
|
11-May-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Only compile IPX-support in net.c for Linux
/external/strace/net.c
|
2e2553a534f532a1546ea2b2f3dc3cd2276d020d |
|
09-May-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Merged in a bunch of patches that I got as reaction to the 3.99 release. See the ChangeLog for details
/external/strace/net.c
|
6bfcd3287759af376cfcc7670da3f048261fab90 |
|
06-Apr-1999 |
Nate Sammons <nate@users.sourceforge.net> |
Avoid compiler warning.
/external/strace/net.c
|
5daa028ca314e4c36c1f38e0149834d9a0520128 |
|
15-Mar-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Simply bugfixes, see patch to debian/changelog for details
/external/strace/net.c
|
76baf7c9f6dd61a15524ad43c1b690c252cf5b7c |
|
19-Feb-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Initial revision
/external/strace/net.c
|