64aa1b1e2dd14c5259bd349270f4d1e29d4fb421 |
|
04-Jun-2014 |
Zubin Mithra <zubin.mithra@gmail.com> |
Decode paths associated with file descriptors returned by syscalls * defs.h (RVAL_FD): New macro. (RVAL_MASK, RVAL_STR, RVAL_NONE): Update. * desc.c (sys_dup, sys_delete_module): New functions. (do_dup2, decode_open, sys_creat): Change return value to RVAL_FD. * linux/dummy.h (sys_delete_module, sys_dup): Remove. * linux/syscall.h (sys_delete_module, sys_dup): New prototypes. * syscall.c (trace_syscall_exiting): Handle RVAL_FD. Signed-off-by: Zubin Mithra <zubin.mithra@gmail.com>
/external/strace/desc.c
|
d35bdcad13caac3e167735e1f0fc50355b2f9523 |
|
26-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Compress blank lines Suppress empty lines left after automated xlat conversion.
/external/strace/desc.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/desc.c
|
e51ce47b1158e8424eee314ca2f3731881355eec |
|
17-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
epoll_ctl: fix EPOLL_CTL_DEL argument decoding * desc.c (sys_epoll_ctl): Do not parse the event structure for EPOLL_CTL_DEL operation. Reported-by: Марк Коренберг <socketpair@gmail.com>
/external/strace/desc.c
|
54cabefc753cc72417bb610cb9f7873f4389e9f5 |
|
04-Mar-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix fcntl decoding Assume that F_SETLK64, F_SETLKW64, and F_GETLK64 are either defined or not defined altogether. Do not assume that sizeof(off_t) < sizeof(long long) when F_SETLK64 is undefined. This change fixes build with musl libc on x86. * configure.ac: Define SIZEOF_OFF_T. * desc.c (USE_PRINTFLOCK64): New macro. (struct flock64, printflock64): Do not define on X32. (printflock): Replace X32 specific workaround with SIZEOF_OFF_T check. Fix printing off_t members of struct flock. (sys_fcntl): Use USE_PRINTFLOCK64.
/external/strace/desc.c
|
ec21e07441030009a53786905ccbeaaed5e0ee9c |
|
01-Mar-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
sys_fcntl: remove F_FREESP and F_FREESP64 support F_FREESP and F_FREESP64 fcntl commands are not available in Linux and therefore the code implementing their decoding is useless. Besides that, F_FREESP64 decoding is too complicated to support. * desc.c (fcntlcmds): Remove F_FREESP and F_FREESP64. Remove F_FREESP64 from the check whether to define struct flock64. (sys_fcntl): Remove F_FREESP and F_FREESP64 support.
/external/strace/desc.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/desc.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/desc.c
|
594eb8f8f882e61fe89f08c9a524f73af43790f9 |
|
12-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Define printflock64 only if it is referenced by other code * configure.ac (AC_CHECK_TYPES): Add struct flock64. * desc.c (HAVE_F_SETLK64, HAVE_F_SETLKW64, HAVE_F_GETLK64): New macros. [!HAVE_STRUCT_FLOCK64] (struct flock64): Define. (printflock64): Define only if referenced by other code. (sys_fcntl): Handle F_FREESP64, F_SETLK64, F_SETLKW64, and F_GETLK64 iff these constants are defined and differ from their non-64bit versions.
/external/strace/desc.c
|
2b640347869c4d6a0aa9b51c5812a80f84fc486a |
|
11-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Move io_* syscalls decoding to a separate file * desc.c (sys_io_setup, sys_io_destroy, sys_io_submit, sys_io_cancel, sys_io_getevents, declarations from libaio.h): Move to ... * aio.c: new file. * Makefile.am (strace_SOURCES): Add aio.c.
/external/strace/desc.c
|
2df03c494eb3c36c4178eba35c374831031d1a58 |
|
11-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Stop using external libaio.h. This change incorporates a partial copy instead of using external libaio.h. Why? Because we want to properly decode 32-bit aio calls by 64-bit strace. For that, we need more definitions than libaio.h provides. (These defs are not done yet, but will eventually be done). Keeping our local 32-bit compat defs in sync with libaio.h _without seeing libaio structs_ is hard/more bug prone. A smaller benefit is that we don't need libaio installed. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
abd2fda38003f61f50e5b4ed4f77f7997d7172ac |
|
11-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
sys_io_submit: simplify iocb_cmd_lookup() helper. This helper returns two values (a string and an enum). The caller prints the string. It's simpler to just print the string in the caller itself. This eliminates "return by reference" and more importantly, an intermediate static string buffer for the string result. Since function of the helper is different now, it is renamed to tprint_lio_opcode(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
ab24d5182847b52095efb129bbd47dfdc1f21662 |
|
11-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
sys_io_submit: stop traversing iocb vector after first failure. The program may use a very large nr but supply either outright invalid iocbpp[], or one with far fewer elements than nr. We used to try reading iocbpp[i] until i == nr. With this change, we stop on the first failure. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
b338f2d65ea9d911a0fead3229ba336bc30e6214 |
|
09-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix select decoding on e.g. 32-bit ppc process by 64-bit strace. Added next_set_bit() function which finds the next set bit, properly taking into account word size of the traced process. Use it in decode_select() instead of fd_isset(). Also, properly round fdsize up to word size of traced process, not to strace's word size. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
1297a513dad3ce3bc6f8472ed592a865aea18fac |
|
06-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Speed up and explain fd_isset() Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
c2982b5b72335205849265182b23866ffbe7a16c |
|
06-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix select decoding for glibc in _FORTIFY_SOURCE mode glibc in _FORTIFY_SOURCE mode raises SIGABRT when descriptor greater or equal to FD_SETSIZE is passed to FD_ISSET. Select family syscalls, however, can legitimately accept such descriptors. To overcome this limitation, we have to replace FD_ISSET with an equivalent that imposes no such restrictions. * desc.c (fd_isset): New function. (decode_select): Use it instead of FD_ISSET.
/external/strace/desc.c
|
f3696b3c8bdd32b5621f0fa126c269f13c11bfc4 |
|
05-Nov-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
More select decoding fixes * desc.c (decode_select): Actually print arg[0] as int on entering syscall. When arg[0] is negative, do not attempt to fetch and decode descriptor sets on entering syscall, kernel will reject it anyway. On exiting syscall, stop checking descriptor sets as soon as all returned descriptors are found.
/external/strace/desc.c
|
1f65c3cd2ac24c6fcc6a8eb3eb88cd6161c25c88 |
|
05-Nov-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Truncate arg[0] to int in select decoding. This matches kernel's behavior. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
025f1082b6c9573772472cc9039c2e10225c2c42 |
|
05-Nov-2013 |
Dr. David Alan Gilbert <dave@treblig.org> |
Fix select decoding with bogus (huge or negative) nfds. We used to allocate and fetch bit arrays using a sanitized length, but then iterate over them with "j < arg[0]" condition, where arg[0] is not sanitized. This segfaults if arg[0] is huge or negative. This change fixes this. Add test/select.c to capture the case. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
8a1ebbbee95a3412a3c7bfee21f6d33c11293d30 |
|
18-Jul-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Add compat support for sys_pselect6 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
5e133aa68498626afdbdcf29e22300257a21bf57 |
|
18-Jul-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix sigset printing via print_sigset(). Replace print_sigset() with print_sigset_addr_len(), which takes not only addr, but also len parameter. This allows us to drop "do we need to print RT signals?" parameter, and this fixes RT signals printing in many syscalls. sys_epoll_pwait: print RT signals too, print sigmask size argument. sys_sigprocmask: print_sigset -> print_sigset_addr_len(current_wordsize), no change in functionality. sys_sigpending: use print_sigset_addr_len(current_wordsize) instead of open-coding it. sys_rt_sigprocmask: use print_sigset_addr_len instead of open-coding it. sys_rt_sigpending: ditto. sys_rt_sigsuspend: ditto. sys_rt_sigtimedwait: ditto. do_signalfd: print_sigset -> print_sigset_addr_len. This fixes RT signals printing (wasn't showing them before). sys_ppoll: ditto. copy_sigset_len() is folded into its only user, print_sigset_addr_len(), and copy_sigset() is gone. While at it, checked kernel sources and noted where kernel enforces sigset_size == NSIG / 8 (== sizeof(kernel_sigset_t)), and where it allows word-sized sigset_size ([rt_]sigpending). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
0eeda2cdaac422a1510be642571771d22c5349d6 |
|
01-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
x32: fix build regressions introduced by commit v4.7-96-g8435d67 * desc.c (printflock) [X32]: Add special handling required for this architecture with sizeof(long) < sizeof(off_t). * file.c [X32] (struct stat64): Add __attribute__((packed)). [X32] (HAVE_STAT64): Define. (printstat) [X32]: Redirect to printstat64. (printstat64) [X32]: Use "struct stat" instead of "struct stat64". [X32] (realprintstat64): Rename to printstat64_x32. (sys_stat64, sys_fstat64) [X32]: Remove second definitions of these functions. Call printstat64_x32 instead of printstat64 * linux/x32/syscallent.h: Fix handlers for truncate and ftruncate.
/external/strace/desc.c
|
72cdefbb72d3bd376fbcaa97c41666388cc31e92 |
|
31-Mar-2013 |
Zev Weiss <zev@bewilderbeest.net> |
Print io_submit() offsets in decimal This makes output formatting more consistent with pread()/pwrite(), which print their offset parameters in decimal. * desc.c (sys_io_submit): Change offset output format from %llx to %lld. Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
/external/strace/desc.c
|
3b211d8df0c28490b883fb521329faab384d4520 |
|
19-Mar-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix build with older versions of libaio.h * configure.ac: When libaio.h is available, check for struct iocb.u.c.flags, IO_CMD_PWRITE and IO_CMD_PWRITEV. * desc.c (print_common_flags): Check for HAVE_STRUCT_IOCB_U_C_FLAGS. (sys_io_submit): Check for HAVE_DECL_IO_CMD_PWRITE and HAVE_DECL_IO_CMD_PWRITEV.
/external/strace/desc.c
|
c108ba2dbbe631dc3fdbf9f69bd0ac10a72c68cb |
|
18-Mar-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix io_submit decoding * desc.c (print_common_flags, sys_io_submit): Add missing ", " to SUB_COMMON output, remove extra ", " from SUB_VECTOR output.
/external/strace/desc.c
|
8435d672ebbc318648a54beef1d491f1ce0531a3 |
|
18-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove code which supports systems with long long off_t. While looking at mmap mess, did experimenting in order to figure out what gets used when. Tried building armv4tl, armv5l, armv6l, mips, mipsel, i686, x86_64 and none of they have long long off_t, which isn't suprprising: we aren't using glibc defines which enable that. Moreover, we SHOULD NOT use off_t in syscall decode! Its size depends on libc, not on arch! I.e. it is essentially unpredictable and can even in theory vary on the same arch with different libc. We should use longs or long longs, in a way which matches architectural ABI for the given syscall. There are usually *at most* two permutations, no need to add yet another variable (sizeof(off_t)) to the mix. This change removes almost all HAVE_LONG_LONG_OFF_T conditionals, which will reveal further possible simplifications. * mem.c: Remove code conditional on HAVE_LONG_LONG_OFF_T. As a result, never remap sys_mmap64 to sys_mmap. (print_mmap): Compile unconditionally. (sys_old_mmap): Compile unconditionally. (sys_mmap): Compile unconditionally. * io.c (sys_sendfile): Add a FIXME comment. * file.c: Remove code conditional on HAVE_LONG_LONG_OFF_T. As a result, never remap sys_*stat64 to sys_*stat etc. (sys_truncate): Compile unconditionally. (realprintstat): Likewise. (sys_stat): Likewise. (sys_fstat): Likewise. (sys_lstat): Likewise. * desc.c (printflock): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.c
|
86738a232d74ddea29d2b9c90e8d036f63c438fd |
|
17-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Merge two identical tables * defs.h: Declare whence_codes[]. * desc.c: Delete static whence[]. (printflock[64]): Use whence_codes. * file.c: Make whence_codes[] non-static. Add SEEK_DATA and SEEK_HOLE to them. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.c
|
751acb3d70ebefcde1b71fb2ab61a3cffd2e7c4b |
|
08-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Dying suddenly with abort() is rude, avoid if possible * file.c (sys_utime): Don't call abort() if wordsize is strange. Instead, warn user about it. * desc.c (printflock): Use the same message string as in sys_utime. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.c
|
88eafd81ab061ff217c0b56f02b07c16cbd29ff4 |
|
04-Feb-2013 |
Ben Noordhuis <info@bnoordhuis.nl> |
Improve perf_event_open argument decoding * configure.ac (AC_CHECK_HEADERS): Add linux/perf_event.h. * desc.c [HAVE_LINUX_PERF_EVENT_H]: Include <linux/perf_event.h>. (perf_event_open_flags): New xlat structure. (sys_perf_event_open): New function. * linux/dummy.h (sys_perf_event_open): Remove. * linux/syscall.h (sys_perf_event_open): New prototype. Signed-off-by: Ben Noordhuis <info@bnoordhuis.nl> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/desc.c
|
61d62cf9481f100f76f1e8a2dfe131f638566633 |
|
16-Apr-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Stop using %h[h]u format specifiers This is needed for simplified printf, and reduces code size a bit. * block.c (block_ioctl): Cast the value to unsinged and use %u instead of using %hu. * desc.c (sys_io_cancel): Likewise. * resource.c (sys_sysinfo): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.c
|
9fd4f96d2a2527ac7ca90c156bfc11ce10118684 |
|
19-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Optimize code if we have only one personality On i386: text data bss dec hex filename 238025 672 18980 257677 3ee8d strace.before 237389 704 18944 257037 3ec0d strace * defs.h: Define PERSONALITY0_WORDSIZE as sizeof(long) if not defined. Introduce new define, current_wordsize as (personality_wordsize[current_personality]). Make set_personality() no-op, current_personality constant zero, current_wordsize as PERSONALITY0_WORDSIZE if we have only one personality. * count.c (call_summary): Use current_wordsize instead of personality_wordsize[current_personality]. * desc.c (printflock): Likewise. * file.c (sys_utime): Likewise. * io.c (tprint_iov): Likewise. * process.c (printargv): Likewise. * resource.c (decode_rlimit): Likewise. * signal.c (sys_kill): Likewise. (sys_rt_sigaction): Likewise. * time.c (sprinttv): Likewise. (sprint_timespec): Likewise. (printitv_bitness): Likewise. (tprint_timex): Likewise. (printsigevent): Likewise. * util.c (dumpiov): Likewise. (umoven): Likewise. (umovestr): Likewise. * syscall.c: Initialize sysent to sysent0 etc. Make current_personality, personality_wordsize[], set_personality() conditional on SUPPORTED_PERSONALITIES > 1. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.c
|
3e3490acf776124a52c0315a113cb2e364d1bc40 |
|
17-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Indentation and whitespace fixes. No code changes. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.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/desc.c
|
72879c6a35cd5afa7f58ee7bc32e4dcd8e65bd9a |
|
27-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Alias a few more syscall printing functions text data bss dec hex filename 237384 672 19044 257100 3ec4c strace.before 236448 672 19044 256164 3e8a4 strace * defs.h: Declare new functions printargs_lu(), printargs_ld() which simply print syscall all args as unsigned or signed longs. * desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it. * linux/syscall.h: Remove declarations of the following functions: sys_alarm, sys_getresgid, sys_getsid, sys_nice, sys_setgid, sys_setpgid, sys_setpgrp, sys_setregid, sys_setresgid. * process.c (sys_setgid): Delete this function: now aliased to sys_setuid(). (sys_getresgid): Delete this function: now aliased to sys_getresuid(). (sys_setregid): Delete this function: now aliased to sys_setreuid(). (sys_setresgid): Delete this function: now aliased to sys_setresuid(). (sys_setpgrp): Delete this function: now aliased to printargs_lu(). (sys_getsid): Likewise. (sys_setpgid): Likewise. (sys_alarm): Likewise. (sys_getpgrp): Delete this function: was unused - was already shadowed by a define in linux/dummy.h. (sys_setsid): Likewise. (sys_getpgid): Likewise. * resource.c (sys_nice): Delete this function: now aliased to printargs_ld(). * linux/dummy.h: Define new aliases (see above for the list). * syscall.c (printargs_lu): New function. (printargs_ld): New function. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/desc.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/desc.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/desc.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/desc.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/desc.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/desc.c
|
ad178c0dc050a0bd68179ca60f3aebe0ff6ddd89 |
|
28-Nov-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove redundant parsers * desc.c (sys_dup): Remove. * file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot, sys_unlink, sys_symlink, sys_rename): Remove. * linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove. * linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink. * pathtrace.c (pathtrace_match): Update. * sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir, sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink. * svr4/dummy.h: Likewise. * sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove. * svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
/external/strace/desc.c
|
aed334c02cec45657b8b817110292457aacde3db |
|
14-Oct-2011 |
Mike Frysinger <vapier@gentoo.org> |
sys_epoll_create1: decode flag arguments correctly * desc.c (epollflags): Define. (sys_epoll_create1): Use epollflags to printflags. Change "O" to "EPOLL". Reported-by: Марк Коренберг <socketpair@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/desc.c
|
c327d71258edb75a8120dfbbdd0b1828a3f43a9a |
|
11-Oct-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix epoll_wait and epoll_pwait decoding * desc.c (epoll_wait_common): Print "maxevents" and "timeout" arguments as integers. Reported-by: Марк Коренберг <socketpair@gmail.com>
/external/strace/desc.c
|
5967c1a66bab9032e67e3dc9fbd521648cc91c07 |
|
11-Oct-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode EPOLLRDHUP * desc.c (epollevents): Add EPOLLRDHUP. Reported-by: Марк Коренберг <socketpair@gmail.com>
/external/strace/desc.c
|
ad5155af816306b99a2644f5b73c4197c9f85b35 |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix compile failure introduced by last commit * desc.c (decode_select): Fix double definition of nfds. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
79a79ea851250a30005d6323b20a9e30d9f336c1 |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Roll back "die on malloc failure" behaviour a bit After recent change, select(2^31-1, NULL, NULL, NULL) would make strace exit. This change caps fdsize so that it is always in [0, 1025*1024], IOW: we will try to allocate at most 1 megabyte, which in practice will almost always work, unlike malloc(2Gig). * desc.c (decode_select): Cap fdsize to 1024*1024. * pathtrace.c (pathtrace_match): Cap fdsize to 1024*1024. * file.c (sys_getdents): Cap len to 1024*1024. (sys_getdents64): Cap len to 1024*1024. * util.c (dumpiov): Refuse to process iov with more than 1024*1024 elements. Don't die on malloc failure. (dumpstr): Don't die on malloc failure. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
1161725b8ec3934ac25f12b6d8ae81bc9ffa8b2c |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
* desc.c (decode_select): Set tcp->auxstr as late as possible. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.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/desc.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/desc.c
|
1d46ba57a8ab16b353b531f2bbefe2ad7f354ca9 |
|
31-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Make out-of-memory handling more uniform This fixes one real bug in dumpstr(). * defs.h: Declare die_out_of_memory(). * strace.c (die_out_of_memory): New function. (strace_popen): If allocation fails, call die_out_of_memory(). (main): Likewise. (expand_tcbtab): Likewise. (rebuild_pollv): Likewise. * count.c (count_syscall): Likewise. (call_summary_pers): Likewise. * desc.c (decode_select): Likewise. * file.c (sys_getdents): Likewise. (sys_getdents64): Likewise. (sys_getdirentries): Likewise. * pathtrace.c (pathtrace_match): Likewise. * syscall.c (qualify): Likewise. * util.c (printstr): Likewise. (dumpiov): Likewise. (dumpstr): Likewise. (fixvfork): Likewise. * mem.c (sys_mincore): Don't check free() parameter for NULL. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
2fb4db3e7aa1d6ac6b4b43f47597197492a846dd |
|
31-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Optimization: eliminate all remaining usages of strcat() After this change, we don't use strcat() anywhere. * defs.h: Change sprinttv() return type to char *. * time.c (sprinttv): Return pointer past last stored char. * desc.c (decode_select): Change printing logic in order to eliminate usage of strcat() - use stpcpy(), *outptr++ = ch, sprintf() instead. Also reduce usage of strlen(). * stream.c (decode_poll): Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
5d64581e106f47c474707001f924ee15ef22830b |
|
20-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Improve code readability by avoiding assignments inside if() * desc.c (decode_select): Move assignment out of if() condition. * file.c (sprinttime): Likewise. (sys_getdirentries): Likewise. * io.c (sys_ioctl): Likewise. * strace.c (test_ptrace_setoptions_followfork): Likewise. (main): Likewise. (proc_open): Likewise. (detach): Likewise. (proc_poll): Likewise. (trace): Likewise. * syscall.c (qualify): Likewise. (sys_indir): Likewise. * test/procpollable.c (main): Likewise. * test/sfd.c (main): Likewise. * time.c (printtv_bitness): Likewise. (sprinttv): Likewise. (print_timespec): Likewise. (void sprint_timespec): Likewise. (printitv_bitness): Likewise. * util.c (dumpstr): Likewise. (umovestr): Likewise. (fixvfork): Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
799926211a0343561a92d8fc6dfc87202a136bd0 |
|
19-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Optimize iocb_cmd_lookup * desc.c (iocb_cmd_lookup): Make command table constant. Reduce size of static char buffer. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.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/desc.c
|
081e72f41af2ca987882c03efc3960c1f87ecaa6 |
|
21-Jun-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix build when libaio-devel is not available * desc.c: Do not compile code that uses struct iocb unless HAVE_LIBAIO_H is set. Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/desc.c
|
dfcd741a5ad170f7fc4ccc0391d3dc92e2d5e3ab |
|
14-Jun-2011 |
Andi Kleen <ak@linux.intel.com> |
Enhance io_submit() decoding strace didn't decode important fields in the iocb passed to io_submit. This patch changes the code to dump them all. Also it prefixes the fields with names to make it easier to read. * desc.c (iocb_cmd_lookup, print_common_flags): New functions. (sys_io_submit): New iocb decoder.
/external/strace/desc.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/desc.c
|
3138213bc9a827a372ad9f8009ebcc5d8797ce2d |
|
04-Mar-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of file descriptors * defs.h (printfd): New function prototype. * util.c (printfd): New function. * file.c (print_dirfd): Update prototype to use printfd(). (sys_openat, sys_faccessat, sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat, sys_readlinkat, sys_renameat, sys_fchownat, sys_fchmodat, sys_futimesat, sys_utimensat, sys_mknodat): Update use of print_dirfd(). (sys_lseek, sys_llseek, sys_readahead, sys_ftruncate, sys_ftruncate64, sys_fstat, sys_fstat64, sys_oldfstat, sys_fstatfs, sys_fstatfs64, sys_fchdir, sys_fchroot, sys_linkat, sys_fchown, sys_fchmod, sys_fsync, sys_readdir, sys_getdents, sys_getdirentries, sys_fsetxattr, sys_fgetxattr, sys_flistxattr, sys_fremovexattr, sys_fadvise64, sys_fadvise64_64, sys_inotify_add_watch, sys_inotify_rm_watch, sys_fallocate): Use printfd() for decoding of file descriptors. * desc.c (sys_fcntl, sys_flock, sys_close, sys_dup, do_dup2, decode_select, sys_epoll_ctl, epoll_wait_common): Use printfd() for decoding of file descriptors. * io.c (sys_read, sys_write, sys_readv, sys_writev, sys_pread, sys_pwrite, sys_sendfile, sys_sendfile64, sys_pread64, sys_pwrite64, sys_ioctl): Likewise. * mem.c (print_mmap, sys_mmap64): Likewise. * signal.c (do_signalfd): Likewise. * stream.c (decode_poll): Likewise. * time.c (sys_timerfd_settime, sys_timerfd_gettime): Likewise. Based on patch from Grant Edwards <grant.b.edwards@gmail.com>.
/external/strace/desc.c
|
30145dda9d7ff70df1d5ad750a183572c73e8963 |
|
07-Sep-2010 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix const-correctness issues uncovered by gcc -Wwrite-strings * defs.h (struct xlat): Add const qualifier to the field of type "char *". (set_sortby, qualify, printnum, printnum_int): Add const qualifier to arguments of type "char *". * count.c (set_sortby): Add const qualifier to the argument and automatic variable of type "char *". * desc.c (decode_select): Add const qualifier to automatic variables of type "char *". * ioctlsort.c (struct ioctlent): Add const qualifier to fields of type "char *". (main): Add const qualifier to argv. * process.c (printargv): Add const qualifier to the argument and automatic variable of type "char *". (printargc) Add const qualifier to argument of type "char *". * signal.c (sprintsigmask, parse_sigset_t): Add const qualifier to arguments of type "char *". * strace.c (progname): Add const qualifier. (detach): Add const qualifier to automatic variable of type "char *". * stream.c (struct strbuf): Add const qualifier to the field of type "char *". * syscall.c (struct qual_options): Add const qualifier to fields of type "char *". (qual_syscall, qual_fault, qual_desc, lookup_class): Add const qualifier to arguments of type "char *". (qual_signal): Add const qualifier to the argument of type "char *", avoid modification of constant argument. (qualify): Likewise. * util.c (printflags): Add const qualifier to automatic variable of type "char *". (printnum, printnum_int): Add const qualifier to arguments of type "char *".
/external/strace/desc.c
|
9676499f89dbb6e870ed19c857c4ceaca44452b7 |
|
07-Apr-2010 |
Dmitry V. Levin <ldv@altlinux.org> |
* desc.c (sys_epoll_pwait): Fix output formatting bug.
/external/strace/desc.c
|
6e6337549506469fd6dc3e20e7623f3161b476f6 |
|
07-Apr-2010 |
Dmitry V. Levin <ldv@altlinux.org> |
* desc.c (decode_select): Fix potential stack buffer overflow.
/external/strace/desc.c
|
414fe7d4d284e22d7855c5367f17dbc0714738d9 |
|
08-Jul-2009 |
Dmitry V. Levin <ldv@altlinux.org> |
Cleanup trailing whitespaces and indentation that uses spaces before tabs Correct spacing to fix warnings reported by git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/desc.c
|
eb9e2e8904ce85a6c7390be25bb873c6db88c4d3 |
|
03-Jun-2009 |
Roland McGrath <roland@redhat.com> |
Revert unapproved commits.
/external/strace/desc.c
|
7a862d76203181c8df053a69f18d46146b81d508 |
|
15-Apr-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
* signal (sys_rt_sigaction): Print struct sigaction correctly in 32/64 environment. * desc.c (printflock): Add #ifdefs around earlier flock 32/64 fix so that we don't waste time on arches with one personality.
/external/strace/desc.c
|
eedaac768dcb55346292495440f1201bd7b2b1b4 |
|
10-Mar-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
Decode fcntl's F_{GET,SET}LEASE, F_NOTIFY, and F_DUPFD_CLOEXEC. By Mike Frysinger (vapier AT gentoo.org) * desc.c: Add F_SETLEASE, F_GETLEASE, F_NOTIFY, F_DUPFD_CLOEXEC to fcntlcmds[]. Create notifyflags[] array. (sys_fcntl): Handle new flags. Optimize printing of open modes. * defs.h: Declare sprint_open_modes(), remove unused parameter in tprint_open_modes(). * desc.c (sprint_open_modes): Move fuction definition from here... * file.c (sprint_open_modes): To here. (tprint_open_modes): Use sprint_open_modes(), it already generates needed string. * ipc.c: Remove unused parameter from calls to tprint_open_modes().
/external/strace/desc.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/desc.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/desc.c
|
30b5e5ab67ad13a37cb2b010332c2b434d887fe2 |
|
06-Jan-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
* desc.c (printflock): Fix display of fcntl(F_SETLK) on non-native 32-bit architecture. Fixes RH#471169 "format fcntl64() system calls for 32 bit application incorrect". * desc.c: const'ify two static struct xlat vector[]'s, convert all remaining old style C parameter declarations in this file.
/external/strace/desc.c
|
adedb510197209e7077310f9e9f67e3d51fb8617 |
|
30-Dec-2008 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fixing many instances of broken indentation with spaces instead of tabs. No code changes.
/external/strace/desc.c
|
b1efe53531c2f0f3fd2a4fc8a56220737539c44e |
|
23-Dec-2008 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix build breakage from my previous commit. Now I test for PT_SETOPTIONS being #defined. Remove trailing whitespace. No actual code changes.
/external/strace/desc.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/desc.c
|
21a75347451b5178a0eb85a48042b8db0e45b318 |
|
03-Sep-2008 |
Dmitry V. Levin <ldv@altlinux.org> |
2008-04-19 Dmitry V. Levin <ldv@altlinux.org> * desc.c (sys_fcntl): Do not initialize auxstr for failed syscall. * process.c (sys_fork, sys_rfork) [USE_PROCFS]: Likewise. * signal.c (sys_signal): Likewise. * stream.c (internal_stream_ioctl): Likewise. * time.c (sys_adjtimex): Likewise. * syscall.c (trace_syscall): If RVAL_STR is set, then print auxstr for failed syscall as well.
/external/strace/desc.c
|
fe10aa70a7668557e567339cf63adf84879c8123 |
|
01-Nov-2007 |
Roland McGrath <roland@redhat.com> |
2007-09-22 Dmitry V. Levin <ldv@altlinux.org> * desc.c (sys_pselect6): Decode signal mask when entering syscall. Relax signal mask size check.
/external/strace/desc.c
|
6bc09daaf6b249b35dec4283b165b1f39e6d6a0d |
|
01-Nov-2007 |
Roland McGrath <roland@redhat.com> |
2007-09-22 Dmitry V. Levin <ldv@altlinux.org> * time.c (print_timespec, sprint_timespec): New functions. * defs.h (print_timespec, sprint_timespec): Declare them. * desc.c (sys_io_getevents): Use print_timespec. * stream.c (sys_ppoll): Likewise. (decode_poll): Use sprint_timespec.
/external/strace/desc.c
|
a6c0d8c90a1cc3117f70281968d9efe6de755d83 |
|
01-Nov-2007 |
Roland McGrath <roland@redhat.com> |
2007-09-22 Dmitry V. Levin <ldv@altlinux.org> * desc.c (sprintflags): Remove static qualifier, add "prefix" argument, move function to ... * util.c (sprintflags): ... here. * defs.h (sprintflags): Declare it.
/external/strace/desc.c
|
e7c39670197fbf293d013134fe3ce65eaa7d0caa |
|
02-Aug-2007 |
Roland McGrath <roland@redhat.com> |
2007-07-23 Ulrich Drepper <drepper@redhat.com> * desc.c (sys_eventfd): New function. * linux/syscall.h: Declare sys_eventfd. * linux/syscallent.h: Add entry for eventfd. * linux/x86_64/syscallent.h: Likewise.
/external/strace/desc.c
|
f240005701067569f9a9c97d9b01cdaba247c56a |
|
02-Aug-2007 |
Roland McGrath <roland@redhat.com> |
2007-07-23 Ulrich Drepper <drepper@redhat.com> * desc.c (sys_epoll_wait): Move body of function to ... (epoll_wait_common): ...here. New function. (sys_epoll_pwait): New function. * linux/syscall.h: Declare sys_epoll_pwait. * linux/syscallent.h: Add entry for epoll_pwait. * linux/x86_64/syscallent.h: Likewise.
/external/strace/desc.c
|
6afc5659acc3df3d2e446ba4aa3a76bdd7264e1b |
|
24-Jul-2007 |
Roland McGrath <roland@redhat.com> |
2007-07-23 Ulrich Drepper <drepper@redhat.com> * defs.h: Add new parameter to printtv_bitness prototype. (printttv): Pass zero for the new parameter. (printtv_special): New macro. * desc.c (decode_select): Pass zero for the new parameter of printtv_bitness. * file.c (utimensatflags): New macro. (sys_osf_utimes): Pass zero for the new parameter of printtv_bitness. (sys_utimes): Likewise. (sys_futimesat): Likewise. (decode_utimes): Add new parameter. Pass it to the printtv_bitness calls. Fix printing of time values. (sys_utimensat): New function. * time.c (UTIME_NOW, UTIME_OMIT): Define if not already happened. (printtv_bitness): Add new parameter. Print special UTIME_* values as strings if set. (sys_osf_gettimeofday): Pass zero for the new parameter of printtv_bitness. (sys_osf_settimeofday): Likewise. * linux/syscall.h: Declare sys_utimensat. * linux/syscallent.h: Add utimensat entry. * linux/x86_64/syscallent.h: Likewise.
/external/strace/desc.c
|
9b5b67eb43bf90e83834126dfde4472e5a721080 |
|
12-Jan-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
2007-01-11 Dmitry V. Levin <ldv@altlinux.org> Fix open(2) flags parser. * defs.h (tprint_open_modes): New function. * desc.c (sprint_open_modes): New function. (sys_fcntl): Use tprint_open_modes() and sprint_open_modes(). * file.c (openmodes): Split xlat into open_access_modes and open_mode_flags. (tprint_open_modes): New function. (decode_open): Use it. * ipc.c (sys_mq_open, printmqattr): Likewise. Fixes RH#222385.
/external/strace/desc.c
|
ab9008bc085848e6c898cd38b7415baa161c5890 |
|
11-Jan-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
2006-12-27 Dmitry V. Levin <ldv@altlinux.org> Add const qualifier to xlookup() return value * defs.h (xlookup): Add const qualifier to return value. * desc.c (sprintflags): Likewise. * process.c (printpriv): Update xlookup() use. * signal.c (sprintsigmask): Add const qualifier to first argument and return value. * util.c (xlookup): Add const qualifier to return value. (printxval): Update xlookup() use.
/external/strace/desc.c
|
a7945a3d4e144674a8dd1d885e7086bc274e391b |
|
13-Dec-2006 |
Dmitry V. Levin <ldv@altlinux.org> |
2006-12-10 Dmitry V. Levin <ldv@altlinux.org> Add biarch support for "struct timeval". * defs.h (bitness_t): New enum type. (printtv_bitness, sprinttv): New function prototypes. (printtv): Convert to macro wrapper around printtv_bitness(). (printtv32): Remove. * desc.c (decode_select): Use printtv_bitness() and sprinttv(). (sys_oldselect, sys_osf_select, sys_select, sys_pselect6): Update decode_select() use. * file.c [ALPHA] (sys_osf_utimes): Use printtv_bitness(). * time.c (printtv_bitness, sprinttv): New functions. (printtv, printtv32): Remove. [ALPHA] (sys_osf_settimeofday, sys_osf_settimeofday): Use printtv_bitness(). Fixes RH#171626, RH#173050.
/external/strace/desc.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/desc.c
|
95ebf5abfc1f3ed8b451b7816aa51b93a49e3ef7 |
|
13-Oct-2006 |
Dmitry V. Levin <ldv@altlinux.org> |
2006-10-13 Ulrich Drepper <drepper@redhat.com> Bernhard Kaindl <bk@suse.de> Dmitry V. Levin <ldv@altlinux.org> Michael Holzheu <holzheu@de.ibm.com> Add hooks for new syscalls. Add decoders for *at, inotify*, pselect6, ppoll and unshare syscalls. * defs.h: Declare print_sigset. * desc.c (sys_pselect6): New function. * file.c (decode_open, decode_access, decode_mkdir, decode_readlink, decode_chmod, decode_utimes, decode_mknod): New functions. (sys_open, sys_access, sys_mkdir, sys_readlink, sys_chmod, sys_utimes, sys_mknod): Use them. [LINUX] (fstatatflags, unlinkatflags, inotify_modes): New variables. [LINUX] (print_dirfd, sys_openat, sys_faccessat, sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat, sys_symlinkat, sys_readlinkat, sys_renameat, sys_fchownat, sys_fchmodat, sys_futimesat, sys_mknodat, sys_inotify_add_watch, sys_inotify_rm_watch): New functions. * process.c [LINUX] (sys_unshare): New function. * signal.c (print_sigset): New function. (sys_sigprocmask): Use it. * stream.c (decode_poll): New function. (sys_poll): Use it. [LINUX] (sys_ppoll): New function. * linux/syscall.h: Delcare new syscall handlers. * linux/syscallent.h: Hook up new syscalls. * linux/alpha/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. Fixes RH#178633.
/external/strace/desc.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/desc.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/desc.c
|
46100d07257824da2ae1147da0324b5788c95501 |
|
01-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-05-31 Dmitry V. Levin <ldv@altlinux.org> * bjm.c (sys_query_module) [LINUX]: Unitize "out of memory" errors reporting style. * strace.c (rebuild_pollv) [USE_PROCFS]: Likewise. * system.c (sys_capget, sys_capset) [SYS_capget]: Likewise. * util.c (printstr): Likewise. (dumpiov) [HAVE_SYS_UIO_H]: Likewise. (fixvfork) [SUNOS4]: Likewise. * desc.c (decode_select): Continue to decode syscall arguments in case of OOM condition. * file.c (sys_getdents): Likewise. (sys_getdents64) [_LFS64_LARGEFILE]: Likewise. (sys_getdirentries) [FREEBSD]: Likewise. * mem.c (sys_mincore): Changed type of variables which deal with malloc size from int to unsigned long. Fixes RH#159308.
/external/strace/desc.c
|
37b9f8480cf54455d1943e534509e20a92da2199 |
|
09-May-2005 |
Roland McGrath <roland@redhat.com> |
2005-05-09 Roland McGrath <roland@redhat.com> * desc.c (sys_io_setup, sys_io_submit, sys_io_cancel, sys_io_getevents, sys_io_destroy): New functions. * linux/syscall.h: Declare them. * linux/syscallent.h: Use those for io_* syscalls. * linux/alpha/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. From Zach Brown <zach.brown@oracle.com>. Fixes RH#155065.
/external/strace/desc.c
|
183df961ee3bb7376458483905d8253dae0f1cf8 |
|
23-Mar-2005 |
Roland McGrath <roland@redhat.com> |
2005-03-22 Roland McGrath <roland@redhat.com> * desc.c (decode_select): Increase local buffer size. Fixes RH#151570.
/external/strace/desc.c
|
e85aaa459ac01e12560d28cb7aad5bce18f54fba |
|
06-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-02-05 Roland McGrath <roland@redhat.com> * desc.c (decode_select): Calculate size of passed fd_set vectors and copy in the user's size rather than the standard sizeof(fd_set). Fixes Debian bug #65654.
/external/strace/desc.c
|
6e52d23cc6a6084802422652e28e9bf4434a7406 |
|
20-Oct-2004 |
Roland McGrath <roland@redhat.com> |
2004-10-19 Roland McGrath <roland@redhat.com> * configure.ac: Check for sys/epoll.h. * desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H]. (epollctls, epollevents): Protect each entry with #ifdef on its macro.
/external/strace/desc.c
|
63d6e54c8bc29c3d4f7c391165c6199788e9622b |
|
20-Oct-2004 |
Roland McGrath <roland@redhat.com> |
2004-10-19 Roland McGrath <roland@redhat.com> * configure.ac: Check for sys/epoll.h. * desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H]. (epollctls, epollevents): Protect each entry with #ifdef on its macro.
/external/strace/desc.c
|
93817bfb82577309f84cb5ac8324e34f502d777f |
|
07-Oct-2004 |
Roland McGrath <roland@redhat.com> |
2004-10-06 Roland McGrath <roland@redhat.com> * desc.c [LINUX] (sys_epoll_create, sys_epoll_ctl, sys_epoll_wait): New functions. * linux/syscall.h: Declare them. * linux/syscallent.h: Use those for epoll_* syscalls. * linux/alpha/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/sparc64/syscallent2.h: Likewise. * linux/x86_64/syscallent.h: Likewise. From Ulrich Drepper <drepper@redhat.com>. Fixes RH#134463.
/external/strace/desc.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/desc.c
|
81634e482ee9e5b6e6e23e58cb1ea4b7bbbf464f |
|
14-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-13 Roland McGrath <roland@redhat.com> * desc.c (printflock64): Fix ADDR argument type. From Anton Blanchard <anton@samba.org>.
/external/strace/desc.c
|
e948faf94efd282b44a6e61666b27551a9629273 |
|
16-Dec-2002 |
Roland McGrath <roland@redhat.com> |
2002-12-15 Roland McGrath <roland@redhat.com> * desc.c (sys_osf_select): Add missing return type.
/external/strace/desc.c
|
7b3346be42d6a1f539e95d385ee498f8b3c529f8 |
|
10-Oct-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Import lots of ia64 related changes from David Mosberger
/external/strace/desc.c
|
70623be853b5524d87d980ac3d611b11890800ea |
|
08-Mar-2001 |
John Hughes <john@Calva.COM> |
Use configure to detect 64bit off_t and rlim_t
/external/strace/desc.c
|
b8c9f77c6d2d9350d26705ff6b200e54d1ca66cc |
|
07-Mar-2001 |
John Hughes <john@Calva.COM> |
FreeBSD uses 64 bit off_t, fix stat&fcntl(flock)
/external/strace/desc.c
|
bdf48f55f264a9cd2eb1b3cac8f1f87c1acad008 |
|
06-Mar-2001 |
John Hughes <john@Calva.COM> |
Merge Harald B�hme's solaris patches
/external/strace/desc.c
|
5ae21ead9f83597452f9a0517e8a51fa4823f921 |
|
01-May-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
The `too much stuff, just check the ChangeLog' update
/external/strace/desc.c
|
8b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5 |
|
03-Feb-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
Merge Trillian patches (Linux ia64)
/external/strace/desc.c
|
4dc8a2aec63e4fb5ee2688544c4de323ed5de3ef |
|
23-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Bunch of stuff
/external/strace/desc.c
|
221f54f721a2f74e629bb70e34888205f68e95cc |
|
18-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Now it builds on alpha again...
/external/strace/desc.c
|
f5eeabb156641482abd504fb98b039e1aae4ae87 |
|
18-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Start merging linux-ip-routing fork
/external/strace/desc.c
|
76baf7c9f6dd61a15524ad43c1b690c252cf5b7c |
|
19-Feb-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Initial revision
/external/strace/desc.c
|