ea1fea69828ded9dfb1980193da64aebf649f3b9 |
|
31-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
umovestr: read chunks of memory up to pagesize at a time * defs.h (get_pagesize): New prototype. * mem.c (get_pagesize) Make global. * util.c (PAGMASK): Remove. (vm_read_mem): New process_vm_readv proxy function. (umoven, umovestr): Use it. (umovestr): Read chunks up to pagesize at a time.
/external/strace/util.c
|
48321344d7c6f1af5326b31131b3f57da57e4203 |
|
31-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
umovestr: fix short read bug * util.c (umovestr): Check the right address. * tests/umovestr.c: New file. * tests/umovestr2.c: Likewise. * tests/umovestr.expected: Likewise. * tests/umovestr.test: New test. * tests/umovestr2.test: Likewise. * tests/Makefile.am (check_PROGRAMS): Add umovestr and umovestr2. (TESTS): Add umovestr.test and umovestr2.test. (EXTRA_DIST): Add umovestr.expected. * tests/.gitignore: Add umovestr and umovestr2. Reported-by: Josef T. Burger <bolo@cs.wisc.edu>
/external/strace/util.c
|
b2893c9e9e84e51d6e11ddae7c6908bb707ddbb2 |
|
30-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
When process_vm_readv fails with EPERM, try PTRACE_PEEKDATA process_vm_readv() and ptrace(PTRACE_PEEKDATA) have inconsistent access control rules wrt traced processes: process_vm_readv() is more likely to fail with EPERM than ptrace(PTRACE_PEEKDATA) when tracing a process that has execve'd a privileged executable. * util.c (umoven, umovestr): If process_vm_readv returned EPERM, fall back to ptrace(PTRACE_PEEKDATA). Reported-by: Andrew Guertin <lists@dolphinling.net>
/external/strace/util.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/util.c
|
7211dbcb2f8a43eb5d36bd15c7ba1267ba21e223 |
|
28-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
build: include ptrace.h after regs.h Restore the order of including <sys/reg.h> and <linux/ptrace.h> headers that was inadvertently changed by commit v4.9-280-g5503dd2. This should fix build on platforms like m68k where some constants are defined simultaneously as enums by <sys/reg.h> and as macros by <asm/ptrace.h>. * process.c: Include "ptrace.h" after "regs.h". * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise.
/external/strace/util.c
|
23ce9e48b54bd8bfec5b8768c85173fe4038ebac |
|
08-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove support for systems without PTRACE_SETOPTIONS Assume that the kernel is v2.5.46 or newer, i.e. PTRACE_SETOPTIONS and PTRACE_O_TRACESYSGOOD|PTRACE_O_TRACEEXEC|PTRACE_O_TRACECLONE are universally available. This change removes all code that implemented post-execve SIGTRAP handling and fork/vfork/clone->CLONE_PTRACE substitution. * defs.h (TCB_BPTSET, TCB_WAITEXECVE): Remove macros. (need_fork_exec_workarounds, setbpt, clearbpt): Remove declarations. * strace.c (need_fork_exec_workarounds, test_ptrace_setoptions_followfork, test_ptrace_setoptions_for_all): Remove. (syscall_trap_sig): Set to (SIGTRAP | 0x80). (ptrace_setoptions): Set to (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC). (detach): Do not test for TCB_BPTSET. (init): Do not call test_ptrace_setoptions_followfork and test_ptrace_setoptions_for_all. Do not test for TCB_BPTSET. * syscall.c (syscall_fixup_on_sysenter, internal_fork, internal_exec, syscall_fixup_for_fork_exec, syscall_fixup_on_sysexit): Remove. (trace_syscall_entering): Do not test for TCB_WAITEXECVE. Do not call syscall_fixup_on_sysenter and syscall_fixup_for_fork_exec. (trace_syscall_exiting): Do not call syscall_fixup_on_sysexit and syscall_fixup_for_fork_exec. [IA64] (ia64_ia32mode): Make static. * linux/ia64/arch_regs.h (ia64_ia32mode): Remove declaration. * util.c: Do not include "syscall.h". (arg_setup, get_arg0, get_arg1, set_arg0, set_arg1, restore_arg0, restore_arg1, arg_finish_change, change_syscall, setbpt, clearbpt): Remove. * tests/ptrace_setoptions.test: Remove. * tests/Makefile.am (TESTS): Remove it.
/external/strace/util.c
|
1c603a9e076f12ed50521637b218f40111d56e1f |
|
17-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Rename printnum to printnum_long to avoid confusion * defs.h (printnum): Rename to printnum_long. * util.c (printnum): Likewise. * process.c (sys_ptrace): Likewise. * time.c (sys_time): Likewise.
/external/strace/util.c
|
5503dd28c6cab61af949f592e8bfcdaf1380cfef |
|
13-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Move regs-related macros and declarations from defs.h to regs.h * regs.h: New file. * Makefile.am (strace_SOURCES): Add it. * linux/arch_regs.h: New file. * linux/alpha/arch_regs.h: Likewise. * linux/arm/arch_regs.h: Likewise. * linux/hppa/arch_regs.h: Likewise. * linux/i386/arch_regs.h: Likewise. * linux/ia64/arch_regs.h: Likewise. * linux/mips/arch_regs.h: Likewise. * linux/powerpc/arch_regs.h: Likewise. * linux/sh64/arch_regs.h: Likewise. * linux/sparc/arch_regs.h: Likewise. * linux/sparc64/arch_regs.h: Likewise. * linux/tile/arch_regs.h: Likewise. * linux/x86_64/arch_regs.h: Likewise. * Makefile.am (EXTRA_DIST): Add them. * defs.h: Remove definitions of PTRACE_*, REG_*, PT_*, U_REG_*, and ARM_* macros. Remove declarations of struct pt_regs variables. [SPARC]: Do not include <asm/psr.h>. [SPARC64]: Do not include <asm/psrcompat.h>. * bjm.c: Do not include <sys/user.h>. * process.c: Include "regs.h". Do not include <sys/user.h> and <sys/reg.h>. [IA64]: Do not include <asm/ptrace_offsets.h> and <asm/rse.h>. * util.c: Likewise. * syscall.c: Likewise. [AARCH64]: Define struct arm_pt_regs and ARM_* macros. [SPARC]: Include <asm/psr.h>. [SPARC64]: Include <asm/psrcompat.h>. * signal.c: Include "regs.h". Do not include <sys/user.h> and <sys/reg.h>. [IA64]: Do not include <asm/ptrace_offsets.h>. * strace.c [IA64]: Do not include <asm/ptrace_offsets.h>.
/external/strace/util.c
|
fadf379b8e3618585cecad447867af27930ac5e3 |
|
13-Feb-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Move all ptrace-related macros and declarations from defs.h to ptrace.h * ptrace.h: New file. * Makefile.am (strace_SOURCES): Add it. * configure.ac (AC_CHECK_HEADERS): Remove linux/ptrace.h and sys/ptrace.h. * defs.h: Do not include <sys/ptrace.h> and <asm/ptrace.h>. Remove definitions of PTRACE_* macros. * process.c: Remove <linux/ptrace.h> workarounds, include "ptrace.h". * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. * strace.c: Include "ptrace.h". * wait.c: Likewise.
/external/strace/util.c
|
c7235992dc0c2367eea9fa9f44a037a2b7b99d34 |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printfd: quote pathnames Change printfd() behaviour in show_fd_path mode to quote pathnames the same way printpathn() does. * util.c (printfd): Print non-socket paths using print_quoted_string. * tests/scm_rights-fd.test: Test it. * tests/scm_rights.c: Update.
/external/strace/util.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/util.c
|
97e5996105e72d021abfb82d2bec4a077646e6ad |
|
14-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Change length type of umoven and umovestr to unsigned * defs.h (umoven, umovestr): Change type of 3rd argument from "int" to "unsigned int". * util.c (umoven, umovestr): Likewise. Adjust the code appropriately.
/external/strace/util.c
|
1ea64735fc2cdd4d2814a6455b50f6989c7f1d34 |
|
10-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix fanotify_mark decoding on 32-bit architectures The fanotify_mark syscall takes a 64-bit mask, and on 32-bit architectures it is split up into two syscall arguments. * configure.ac (AC_CHECK_FUNCS): Add fanotify_mark. (AC_CHECK_HEADERS): Add sys/fanotify.h. * defs.h (getllval): New prototype. * util.c (getllval): New function based on printllval. (printllval): Use getllval. * fanotify.c (sys_fanotify_mark): Use getllval to properly decode 64-bit mask and two syscall arguments followed by it. * tests/fanotify_mark.c: New file. * tests/fanotify_mark.test: New test. * tests/Makefile.am (check_PROGRAMS): Add fanotify_mark. (TESTS): Add fanotify_mark.test. * tests/.gitignore: Add fanotify_mark.
/external/strace/util.c
|
d4a9d8323554414cc08f90b6eb991bc6955a64e2 |
|
08-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix printing of time_t values set in the distant future * util.c (sprinttime): Increase buffer size. * tests/stat64-v.test: Try to set modification time of the sample file to a value set in the distant future.
/external/strace/util.c
|
f605e92365c7479d59ccfac3a294089f89359715 |
|
09-Dec-2014 |
Masatake YAMATO <yamato@redhat.com> |
Use the protocol name of a socket as a hint for peer address resolution To resolve the peer address of socket, all combinations of families (AF_INET, AF_INET6) and protocols(IPPROTO_TCP, IPPROTO_UDP) were tried. This change utilizes the protocol name obtained via getxattr to specify the right combination. * socketutils.c (inet_print): New helper function. (print_sockaddr_by_inode): Use it. Utilize the protocol name associated with the given inode for resolving the peer socket address. If the protocol name is NULL, resolve the address by trying combinations of families and protocols as before. * defs.h (print_sockaddr_by_inode): Update prototype. * util.c (printfd): Pass the protocol name associated with the given path to print_sockaddr_by_inode as the 2nd argument. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/util.c
|
25ebe46ce23d6db0dd2623bcc798d2f6a9bc6163 |
|
13-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
util.c: move printuid to uid.c This will make further uid/gid fixes simpler. * util.c (printuid): Move * uid.c: ... here.
/external/strace/util.c
|
1da7c95b62537f066c74972e2b59a322446ca86e |
|
13-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
printuid: fix uid_t decoding on 64-bit architectures It was not a good idea to treat uid_t as a long int type because the latter is twice larger than uid_t on 64-bit architectures. * defs.h (printuid): Change uid argument type from "unsigned long" to "unsigned int". * util.c (printuid): Likewise. When uid equals to -1, print "-1". * tests/uid.awk: New file. * tests/uid.c: New file. * tests/uid32.c: Likewise. * tests/uid.test: New test. * tests/uid32.test: Likewise. * tests/Makefile.am (CHECK_PROGRAMS): Add uid and uid32. (TESTS): Add uid.test and uid32.test. (EXTRA_DIST): Add uid.awk. * tests/.gitignore: Add uid and uid32.
/external/strace/util.c
|
b1a01b8d42555979255977eb7dfc5db5cef0d769 |
|
06-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Export sprinttime * defs.h (sprinttime): New prototype. * file.c (sprinttime): Make global and move to util.c.
/external/strace/util.c
|
f548067417e1700e549e1dfe9ffab281258df9cd |
|
22-Nov-2014 |
Masatake YAMATO <yamato@redhat.com> |
Print protocol name of socket descriptors with -yy option For those socket descriptors that have no associated ip:port pairs (or when this information is not available), -yy option prints the same <socket:[INODE]> information as -y option, e.g. $ strace -e sendto -yy ip l > /dev/null sendto(3<socket:[23456789]>, ... This change makes -yy output more informative: instead of just printing "socket", the name of protocol behind the socket descriptor will be printed, e.g. sendto(3<NETLINK:[23456789]>, ... * configure.ac (AC_CHECK_HEADERS): Add sys/xattr.h. * tests/net-yy-accept.awk: Update to support protocol names. * tests/net-yy-connect.awk: Likewise. * util.c [HAVE_SYS_XATTR_H]: Include <sys/xattr.h>. (getfdproto): New function. (printfd): Use it. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/util.c
|
025b3581ae241150dfc8e24f6a7bae413f8c72b2 |
|
21-Nov-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Replace MAXPATHLEN with PATH_MAX MAXPATHLEN is defined to PATH_MAX, so replace the former with the latter. * strace.c (startup_child): Replace MAXPATHLEN with PATH_MAX. * util.c (printpathn, printpath): Likewise.
/external/strace/util.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/util.c
|
40c174b38b15adb059f3e855e24fcfea9e091a87 |
|
20-Oct-2014 |
Maarten ter Huurne <maarten@treewalker.org> |
Include <linux/ptrace.h> regardless of <sys/reg.h> existence This fixes compilation with musl libc. This approach was already used in process.c, so I assume it is safe. * signal.c: Move [HAVE_LINUX_PTRACE_H] code out of [HAVE_SYS_REG_H] check. * syscall.c: Likewise. * util.c: Likewise. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
/external/strace/util.c
|
4176d533e0c0a205aa07e9670c6935cf9bd394a6 |
|
22-Sep-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
fsmagic: sort array by value and use bsearch for faster lookup * defs.h (xlat_search): New prototype. * util.c (xlat_bsearch_compare, xlat_search): New functions. * file.c (sprintfstype): Use xlat_search for fsmagic lookup. * xlat/fsmagic.in: Sort by value and mark as not NULL-terminated. * tests/statfs.c: New file. * tests/statfs.test: New test. * tests/Makefile.am (check_PROGRAMS): Add statfs. (statfs_CFLAGS): Define. (TESTS): Add statfs.test. * tests/.gitignore: Add statfs.
/external/strace/util.c
|
2f6510c8a6a358ec00f56a491318181bc068a1fc |
|
21-Aug-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Add -yy option: print ip and port associated with socket descriptors When two ore more -y options are given, print local and remote ip:port pairs associated with socket descriptors. This implementation uses NETLINK_INET_DIAG for sockaddr lookup; it's based on the patch prepared by Zubin Mithra as a part of his GSoC 2014 strace project. * Makefile.am (strace_SOURCES): Add socketutils.c (EXTRA_DIST): Add linux/inet_diag.h and linux/sock_diag.h. * defs.h (print_sockaddr_by_inode): New prototype. * linux/inet_diag.h: New file. * linux/sock_diag.h: Likewise. * socketutils.c: Likewise. * strace.1: Document -yy option. * strace.c (usage): Likewise. * util.c (printfd): Use print_sockaddr_by_inode.
/external/strace/util.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/util.c
|
3c49b02e98af0aabfffd20fd8b34b1f71b8cffb9 |
|
07-Aug-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix preadv/pwritev offset decoding on bigendian architectures This partially reverts commit 7845a42b39e59e904d01e75e21f7bc7eb6462560. * util.c (printllval): Remove align argument. * defs.h (printllval): Update prototype. (printllval_aligned, printllval_unaligned): Remove. * file.c (sys_readahead, sys_truncate64, sys_ftruncate64, sys_fadvise64, sys_fadvise64_64, sys_sync_file_range, sys_sync_file_range2, sys_fallocate): Replace printllval_aligned call with printllval. * io.c (sys_pread, sys_pwrite): Likewise. (print_llu_from_low_high_val): New function. (sys_preadv, sys_pwritev): Use it instead of printllval_unaligned.
/external/strace/util.c
|
447db45365e37ec97c41b26b5a24e38d58e4f3ae |
|
29-May-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Constify tv_* functions * defs.h (tv_nz, tv_cmp, tv_float, tv_add, tv_sub, tv_mul, tv_div): Add const qualifier to read only arguments. * util.c (tv_nz, tv_cmp, tv_float, tv_add, tv_sub, tv_mul, tv_div): Likewise.
/external/strace/util.c
|
6556315493082df9a24dbce9dadea4d6673e9965 |
|
12-May-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Alias sys_vfork to sys_fork * process.c (sys_vfork): Remove. * linux/syscall.h (sys_vfork): Likewise. * linux/dummy.h (sys_vfork): Alias to sys_fork. * linux/alpha/syscallent.h: Fix vfork entry. * util.c (setbpt): Do not check for sys_vfork. * syscall.c (syscall_fixup_for_fork_exec): Likewise.
/external/strace/util.c
|
7845a42b39e59e904d01e75e21f7bc7eb6462560 |
|
17-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix preadv/pwritev offset decoding * util.c (printllval): Add align argument. * defs.h (printllval): Update prototype. (printllval_aligned, printllval_unaligned): New macros. * file.c (sys_readahead, sys_truncate64, sys_ftruncate64, sys_fadvise64, sys_fadvise64_64, sys_sync_file_range, sys_sync_file_range2, sys_fallocate): Replace printllval call with printllval_aligned. * io.c (sys_pread, sys_pwrite): Likewise. (sys_preadv, sys_pwritev): Replace printllval call with printllval_unaligned. * linux/arm/syscallent.h: Set the number of preadv and pwritev arguments to 5. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. Reported-by: Dima Kogan <dima@secretsauce.net>
/external/strace/util.c
|
94e246ac57b52346144fece3549820ed04b13058 |
|
31-Dec-2013 |
Mike Frysinger <vapier@gentoo.org> |
Delete old PTRACE_{PEEK,POKE}USR logic The code base has settled on PTRACE_{PEEK,POKE}USER (with an E) and has logic in defs.h to make sure it's set sanely. Delete this old logic as the defs.h takes care of it now. * process.c: Delete PTRACE_PEEKUSR/PTRACE_POKEUSR defines. * signal.c: Likewise. * syscall.c: Delete PTRACE_PEEKUSR define. * util.c: Likewise.
/external/strace/util.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/util.c
|
0b4060f61f1bb101b5d8d084714b7d2feacdb199 |
|
24-Sep-2013 |
Ali Polatel <alip@exherbo.org> |
Work around conflict between <sys/ptrace.h> and <linux/ptrace.h> Since glibc-2.18~39 <sys/ptrace.h> defines ptrace_peeksiginfo_args which collides with <linux/ptrace.h>. * configure.ac: Check for `struct ptrace_peeksiginfo_args' in <sys/ptrace.h>. * process.c: Work around potential conflict between <sys/ptrace.h> and <linux/ptrace.h> by redefining ptrace_peeksiginfo_args. * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. Signed-off-by: Ali Polatel <alip@exherbo.org>
/external/strace/util.c
|
7daacbbbe7349677476a3d2fbf174dcf86f171be |
|
15-Aug-2013 |
Vineet Gupta <Vineet.Gupta1@synopsys.com> |
Add support for ARC Cores from Synopsys Take #2 on mainlining strace support for ARC (last one was 4.6 based back in March 2011), see http://sourceforge.net/p/strace/mailman/message/27210168/ The syscall ABI is asm-generic/unistd.h based (so no legacy syscalls), hence very similar to metag port. test/* all seem to work well. * linux/arc/ioctlent.h.in: New file. * linux/arc/syscallent.h: Likewise. * Makefile.am (EXTRA_DIST): Add linux/arc/ioctlent.h.in and linux/arc/syscallent.h. * configure.ac: Add ARC to the list of supported architectures. * defs.h: Add ARC support. * process.c (struct_user_offsets): Likewise. * signal.c (sys_sigreturn): Likewise. * syscall.c (print_pc, get_regset, get_regs, get_scno, get_syscall_args, get_syscall_result, get_error): Likewise. * util.c (change_syscall): Likewise. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
c09646aa9e8768d308267bb92747b2d1ff58b1c3 |
|
01-Jul-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Rename ia32 to ia64_ia32mode, and make it bool, not long Grepping for just ia32 was turning up many false positives. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
752e5a02e67f66f555aa39faf522f07126924e62 |
|
28-Jun-2013 |
Denys Vlasenko <dvlasenk@redhat.com> |
Change upeek() to take pid, not full tcp. This will be used by next change. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
8e096c4ec507d9de1dd2f0d86ae925eb34b57053 |
|
06-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
ARM OABI: fix 64-bit arguments decoding ARM OABI and ARM EABI have different function parameters passing rules, see commit v4.6-11-g7a5b08f for details. * util.c (printllval): Do not align argument number in case of ARM OABI. * file.c (sys_fadvise64_64): Likewise.
/external/strace/util.c
|
a32b6837044c54957b9b90954e246a56c9bef403 |
|
06-May-2013 |
Mike Frysinger <vapier@gentoo.org> |
printllval: fix 64bit unpacking on mips/o32 and xtensa The mips/o32 ABI and xtensa arch also do 64bit aligning, so add it to the printllval list for this. Normally for sys_fadvise64_64 we'd handle the same list of arches, but mips/o32 ABI is funky and doesn't shift -- it has 7 args. So just add xtensa to it. * file.c (sys_fadvise64_64): Add XTENSA to the shifted list. * util.c (printllval): Add LINUX_MIPSO32 and XTENSA to the shifted list.
/external/strace/util.c
|
7a498be266b80b7fef70fe74deed269ae3881525 |
|
04-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
printxval: support more architectures * configure.ac: Define SIZEOF_LONG_LONG. * util.c (printllval): Handle all architectures with sizeof(long) > 4 and sizeof(long) == sizeof(long long).
/external/strace/util.c
|
80acf62207377f67f3245408e24562ed014358e0 |
|
04-May-2013 |
Mike Frysinger <vapier@gentoo.org> |
Fix building for sparc64 targets * util.c (printllval): Handle SPARC64 define.
/external/strace/util.c
|
921744d5e72022e68158efa7052f1d7ebe193cc1 |
|
04-May-2013 |
Mike Frysinger <vapier@gentoo.org> |
Fix building for mips n64 targets * util.c (printllval): Handle LINUX_MIPSN64 define.
/external/strace/util.c
|
a55b6b193c0bc7e84fd3b56be20ce546c51eb068 |
|
04-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
arm, aarch64, ppc: fix printllval-based decoders * util.c (printllval) [ARM || POWERPC]: Align argument number. [AARCH64]: Align argument number in 32bit mode. * file.c (sys_fadvise64_64) [ARM || POWERPC]: Remove no longer needed printllval workaround. [AARCH64]: Fix printing POSIX_FADV_* constants in 32bit mode.
/external/strace/util.c
|
d648f29cc3aeabf0a0430f8ab12ce35fa6c4e48e |
|
02-May-2013 |
Mike Frysinger <vapier@gentoo.org> |
Decode mtd/ubi ioctls Been playing with UBI of late and it'd help if I could see what it was doing. Not entirely sure about the decoding of UBI_IOCVOLUP -- it takes a pointer to a 64bit value, not a strict. * util.c (MAX, MIN): Move to ... * defs.h (MAX, MIN): ... here. (CLAMP): Define. (ubi_ioctl): New prototype. * ioctl.c (ioctl_decode): Call ubi_ioctl when code is 'o' or 'O'. * mtd.c: Include ubi user API header. (ubi_volume_types): New enum decode. (ubi_volume_props): Likewise. (ubi_ioctl): Define. * linux/ubi-user.h: Import from linux 3.8.
/external/strace/util.c
|
0b468833390a78395be48f70d582a6679ab28a76 |
|
02-May-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
x32: fix printllval-based decoders of i386 syscalls * util.c (printllval) [X32]: Handle i386 personality.
/external/strace/util.c
|
6303f357793be8be7860cf257fed0efd427c0f98 |
|
01-May-2013 |
Mike Frysinger <vapier@gentoo.org> |
printllval: handle s390x This is a 64bit arch w/no personalities, so fix printing. It can now trace a simple call like readahead: $ cat test.c main(){readahead(-1, (unsigned long long)1 << 50, 0);} $ gcc test.c $ ./strace -ereadahead ./a.out readahead(-1, 1125899906842624, 0) = -1 EBADF (Bad file descriptor) * util.c (printllval): Handle S390X define. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
341d09a8fe29da9e8292a5b35c990bd55506c59e |
|
30-Mar-2013 |
Andreas Schwab <schwab@suse.de> |
AArch64: Fix printing of long long value * util.c (printllval): Fix printing of long long values on AArch64. Signed-off-by: Andreas Schwab <schwab@suse.de>
/external/strace/util.c
|
8f636ed12870cdc8e4b38194eb4b701f42ad222b |
|
25-Mar-2013 |
Chris Zankel <chris@zankel.net> |
Add support for the XTENSA architecture * configure.ac: Add XTENSA to the list of supported architectures. * defs.h: Add XTENSA support. * linux/xtensa/syscallent.h: New file. * linux/xtensa/ioctlent.h.in: Likewise. * process.c (struct_user_offsets): Add XTENSA support. * signal.c (sys_sigreturn): Likewise. * syscall.c (printcall, get_scno, get_syscall_args, get_syscall_result, get_error): Likewise. * util.c (change_syscall): Likewise. Signed-off-by: Chris Zankel <chris@zankel.net>
/external/strace/util.c
|
5198ed4bb36e3105a1f12bb3250bee78b6e0dd72 |
|
06-Mar-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Open-code isprint(c) and isspace(c) We don't call setlocale, thus we always use C locale. But libc supports various other locales, and therefore its ctype interface is general and at times inefficient. For example, in glibc these macros result in function call, whereas for e.g. isprint(c) just c >= ' ' && c <= 0x7e suffices. By open-coding ctype checks (we have only 4 of them) we avoid function calls, we get smaller code: text data bss dec hex filename 245127 680 5708 251515 3d67b strace_old 245019 676 5708 251403 3d60b strace and we don't link in ctype tables (beneficial for static builds). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
61ad0a401c6d1b7b4c1a209f9d61c3790e1e7d15 |
|
06-Mar-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Stop using a large static buffer in getfdpath text data bss dec hex filename 245075 680 9836 255591 3e667 strace_old 245143 680 5708 251531 3d68b strace Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
5f999a869b681ff69cbb801225677fc125b6aefd |
|
22-Feb-2013 |
James Hogan <james.hogan@imgtec.com> |
Add support for Imagination Technologies Meta Add support for Imagination Technologies Meta architecture (the architecture/ABI is usually referred to as metag in code). The Meta Linux kernel port is in the process of being upstreamed for v3.9 so it uses generic system call numbers. sys_lookup_dcookie writes a filename to buffer argument, so I've set TF flag. nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h so I've left it blank. truncate64/ftruncate64/pread64/pwrite64/readahead have unaligned 64bit args which are packed tightly on metag, so less arguments on metag. fchdir/llseek takes a file descriptor so s/TF/TD/ sync_file_range has 2 64bit args so uses 6 args, so s/4/6/ timerfd_create/msgget/msgctl/msgrcv/semget/segtimedop/semop/shmget/ shmctl/shmat/shmdt/recvmsg/migrate_pages have different number of args. oldgetrlimit is just getrlimit for metag. add TM flag to various memory syscalls. metag doesn't directly use sys_mmap_pgoff for mmap2. prlimit64/process_vm_readv/process_vm_writev take a pid so add TP flag. fanotify_init doesn't appear to take a file descriptor so remove TD. Add kcmp syscall. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Christian Svensson <blue@cmd.nu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
1694092d7d92953dbee0639ead0ae379f145c4dd |
|
01-Mar-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
umovestr: speed up check for NUL byte in the fetched word Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
879ddddebab29211e495d99811cbd30a9eaf3055 |
|
01-Mar-2013 |
Chris Metcalf <cmetcalf@tilera.com> |
tile: handle printllval like x86_64 or powerpc64 Without this fix the tilegx build fails when it hits the new #error about SIZEOF_LONG > 4. * util.c (printllval): Fix printing of long long values on TILE. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
9700592e49bd7407c58693f1d397055fa485fc18 |
|
26-Feb-2013 |
Dmitry V. Levin <ldv@altlinux.org> |
Cleanup umoven and umovestr Cleanup sloppy error handling. First, EFAULT kind of errors from process_vm_readv by itself is not something unusual, so a warning message will not be issued unless a short read is detected. Second, clients of umoven and umovestr are not prepared to detect and handle short reads that can happen in these functions. The most safe way to handle them is to return an error code. * util.c (umoven, umovestr): Cleanup handling of errors coming from process_vm_readv and PTRACE_PEEKDATA.
/external/strace/util.c
|
905e8e0e2f0a1f51ab92424dcb005885ea8b2459 |
|
26-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Mass replace error_msg("%s", "literal") -> error_msg("literal") There is no need to print literal strings through "%s". Only untrusted strings such as filenames need that. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
1d58fe9b3b925735bde72cac96a042b3cef03037 |
|
26-Feb-2013 |
Ben Noordhuis <info@bnoordhuis.nl> |
Make umoven report success as 0, not >=0, stop returning success on partial reads umoven() uses process_vm_readv() when available but it returns the return value of that syscall, which is the number of bytes copied, while its callers expect it to simply return zero on success. It was causing syscalls that take a user-space argument to print the abbreviated version, e.g.: epoll_ctl(5, EPOLL_CTL_ADD, 10, {...}) Instead of: epoll_ctl(5, EPOLL_CTL_ADD, 10, {EPOLLIN, {u32=10, u64=10}}) * util.c (umoven): Make umove[n] report success as 0, not >=0, stop returning "success" on partial reads. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
f90979b7014b6b158eed6105b1bdf6014cea70f6 |
|
22-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix wrong offset display in dumpstr BTW, the new code from prev commit is 5 times faster than old one :) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
763258071ccafd3499979348a5461670bbe20bd8 |
|
22-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix a bug in dumpstr (no null termination). Essentially rewrote dumpstr This is a 14 year old bug (!). It wasn't biting us merely because outstr[80] was static, thus ended up in bss and whatever was after it "accidentally" provided the NUL byte. When dumpstr was changed to use on-stack buffer, the bug reared its ugly head. This is a rewrite which is smaller and should be significantly faster for _long_ strings. text data bss dec hex filename 244627 680 10860 256167 3e8a7 strace.t9/strace 244563 680 10860 256103 3e867 strace.ta/strace * util.c (dumpstr): Rewrite to be faster and smaller. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
74ec14f968a418691b851cbbfeb0269174c64b08 |
|
21-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Eliminate many SCNO_IS_VALID checks By adding tcp->s_ent pointer tot syscall table entry, we can replace sysent[tcp->scno] references by tcp->s_ent. More importantly, we may ensure that tcp->s_ent is always valid, regardless of tcp->scno value. This allows us to drop SCNO_IS_VALID(tcp->scno) checks before we access syscall table entry. We can optimize (qual_flags[tcp->scno] & QUAL_foo) checks with a similar technique. Resulting code shrink: text data bss dec hex filename 245975 700 19072 265747 40e13 strace.t3/strace 245703 700 19072 265475 40d03 strace.t4/strace * count.c (count_syscall): Use cheaper SCNO_IN_RANGE() check. * defs.h: Add "int qual_flg" and "const struct sysent *s_ent" to struct tcb. Remove "int u_nargs" from it. Add UNDEFINED_SCNO constant which will mark undefined scnos in tcp->qual_flg. * pathtrace.c (pathtrace_match): Drop SCNO_IS_VALID check. Use tcp->s_ent instead of sysent[tcp->scno]. * process.c (sys_prctl): Use tcp->s_ent->nargs instead of tcp->u_nargs. (sys_waitid): Likewise. * strace.c (init): Add compile-time check that DEFAULT_QUAL_FLAGS constant is consistent with init code. * syscall.c (decode_socket_subcall): Use tcp->s_ent->nargs instead of tcp->u_nargs. Set tcp->qual_flg and tcp->s_ent. (decode_ipc_subcall): Likewise. (printargs): Use tcp->s_ent->nargs instead of tcp->u_nargs. (printargs_lu): Likewise. (printargs_ld): Likewise. (get_scno): [MIPS,ALPHA] Use cheaper SCNO_IN_RANGE() check. If !SCNO_IS_VALID, set tcp->s_ent and tcp->qual_flg to default values. (internal_fork): Use tcp->s_ent instead of sysent[tcp->scno]. (syscall_fixup_for_fork_exec): Remove SCNO_IS_VALID check. Use tcp->s_ent instead of sysent[tcp->scno]. (get_syscall_args): Likewise. (get_error): Drop SCNO_IS_VALID check where it is redundant. (dumpio): Drop SCNO_IS_VALID check where it is redundant. Use tcp->s_ent instead of sysent[tcp->scno]. (trace_syscall_entering): Use (tcp->qual_flg & UNDEFINED_SCNO) instead of SCNO_IS_VALID check. Use tcp->s_ent instead of sysent[tcp->scno]. Drop SCNO_IS_VALID check where it is redundant. Print undefined syscall name with undefined_scno_name(tcp). (trace_syscall_exiting): Likewise. * util.c (setbpt): Use tcp->s_ent instead of sysent[tcp->scno]. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
2544f988c96a48e48369a767d8886c4282859ed3 |
|
19-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix compiler warnings With constant current_wordsize == 4 and 32-bit longs, gcc was spooked by "1ul << (8 * current_wordsize)" = "1ul << 32". Make such places conditional on SIZEOF_LONG > 4. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
c9d0fc0a63d5b425d6a4e9fedb4cb7a8e3129d6c |
|
17-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove broken HAVE_LONG_LONG conditionals We use printllval without HAVE_LONG_LONG guards in many places, but define it only if HAVE_LONG_LONG. This means that on !HAVE_LONG_LONG systems we won't build for some time now. * defs.h: Remove HAVE_LONG_LONG guard around LONG_LONG() macro and printllval() function declaration. * util.c: Remove HAVE_LONG_LONG guard around printllval() function definition. (printllval): Add compile-time error check for using wrong if branch. Explain places where we deliberately use mismatched types for printf formats. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
cb26b754935ffac5476f7f6e581346374eddf713 |
|
15-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove unnecessary "return 0" statements * util.c (change_syscall): Remove dummy "return 0"s. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
492f81f14cc86c13b0f67ac66a3d5ea9f6ccb673 |
|
14-Feb-2013 |
Christian Svensson <blue@cmd.nu> |
Add support for the OpenRISC 1000 platform * configure.ac: Added or1k architecture.. * defs.h: Added or1k to use register reading system. * linux/or1k/ioctlent.h.in: Use i386 ioctls. * linux/or1k/syscallent.h: New file. * process.c: Added or1k register defs to struct_user_offsets[]. * syscall.c: Added or1k_io iovec for or1k GETREGSET, Â regset structure for or1k. Â (printcall): Added handling for or1k. Â (get_regs): Likewise. Â (get_scno): Likewise. Â (get_syscall_args): Likewise. Â (get_syscall_result): Likewise. (get_error): Likewise. * util.c (change_syscall): Added dummy handling for or1k. * system.c (sys_or1k_atomic): New function (or1k specific syscall). Signed-off-by: Christian Svensson <blue@cmd.nu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
a86696ba6417eeebc92d8ee232d626d97bc8a048 |
|
12-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove hacks for old kernels for architectures which require new kernels * util.c (change_syscall): For MICROBLAZE, replace code with dummy "return 0" and a comment explaining why that is ok for this architecture. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
bf357fcb76baeb64a45fc2b6b355c913c63e6015 |
|
12-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove hacks for old kernels for architectures which require new kernels * defs.h: Do not define TCB_WAITEXECVE for AARCH64. * util.c (change_syscall): For AARCH64 and X32, replace code with dummy "return 0" and a comment explaining why that is ok for these architectures. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
d27809c978f3c8c3271f7d726dc92dd0eefa8a0f |
|
12-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove old kernel hacks for architectures which require new kernels * defs.h: Do not define TCB_WAITEXECVE for AVR32, BFIN and TILE. * util.c (change_syscall): For AVR32, BFIN and TILE, replace code with dummy "return 0" and a comment explaining why that is ok for these architectures. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.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/util.c
|
0b99a8ac3bf6314bc92ab528b3849ab3faf7bf4c |
|
05-Feb-2013 |
Chris Metcalf <cmetcalf@tilera.com> |
Add tilegx support to strace tilegx support has been in the kernel since 3.0. In addition, fix some issues with the tilepro support already present in strace, primarily the decision to use the <asm/unistd.h> numbering space for system calls. * defs.h [TILE]: Include <asm/ptrace.h> and provide an extern struct pt_regs tile_regs for efficiency. Provide compat 32-bit personality via SUPPORTED_PERSONALITIES, PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE, and DEFAULT_PERSONALITY. * linux/tile/errnoent1.h: New file, includes linux/errnoent.h. * linux/tile/ioctlent1.h: New file, includes linux/ioctlent.h. * linux/tile/signalent1.h: New file, includes linux/signalent.h. * linux/tile/syscallent.h: Update with new asm-generic syscalls. The version previously committed was the from the first tile patch to LKML, which subsequently was changed to use <asm-generic/unistd.h>. * linux/tile/syscallent1.h: Copy from linux/tile/syscallent.h. * mem.c (addtileflags) [TILE]: use %ld properly for a "long" variable. * process.c [TILE]: Choose clone arguments correctly and properly suppress all "struct user" related offsets in user_struct_offsets. * signal.c [TILE]: Use tile_regs not upeek. * syscall.c (update_personality) [TILE]: Print mode. (PT_FLAGS_COMPAT) [TILE]: Provide if not in system headers. (tile_regs) [TILE]: Define 'struct pt_regs' variable to hold state. (get_regs) [TILE]: use PTRACE_GETREGS to set tile_regs rather than using upeek. (get_scno) [TILE]: Set personality. (get_syscall_args) [TILE]: Use tile_regs. (get_syscall_result) [TILE]: Update tile_regs. (get_error) [TILE]: Use tile_regs. (printcall) [TILE]: Print pc. (arg0_offset, arg1_offset, restore_arg0, restore_arg1) [TILE]: Properly handle tile call semantics and support tilegx. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
ce7d953ebecc10f71e191b6d18cfeb2399429d5f |
|
05-Feb-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Optimize out PTRACE_PEEKUSER with -i strace -i was fetching PC with a separate PEEKUSER despite having GETREGS data: ptrace(PTRACE_GETREGS, 22331, 0, 0x8087f00) = 0 ptrace(PTRACE_PEEKUSER, 22331, 4*EIP, [0x80dd7b7]) = 0 write(3, "[080dd7b7] ioctl(0, SNDCTL_TMR_T"..., 82) = 82 ptrace(PTRACE_SYSCALL, 22331, 0, SIG_0) = 0 Now it does this: ptrace(PTRACE_GETREGS, 22549, 0, 0x8087ea0) = 0 write(3, "[080dd7b7] ioctl(0, SNDCTL_TMR_T"..., 82) = 82 ptrace(PTRACE_SYSCALL, 22549, 0, SIG_0) = 0 Analogous improvement in sys_sigreturn() is also implemented. * defs.h: Declare extern struct pt_regs regs for SPARC[64] and ARM. Declare clear_regs(), get_regs() and get_regs_error flag variable. * strace.c (trace): Call get_regs(pid) as soon as we know the tcb and that it is stopped. * syscall.c (get_regs): New function. Used to fetch registers early, just after tracee has stopped. (printcall): Move it here from util.c. Use global regs.REG data, if available on the arch, instead of re-fetching it. (get_scno): Use global regs.REG data. (get_syscall_result): Likewise. * signal.c (sys_sigreturn): Likewise. * util.c (printcall): Moved to syscall.c. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
eb54c4772581a143e2757a2be9718377058cc703 |
|
03-Dec-2012 |
John Spencer <maillist-strace@barfooze.de> |
Fix glibc version checks * util.c: Check if __GLIBC__ is defined before using it. * signal.c: Likewise. Fix __GLIBC_MINOR__ checks.
/external/strace/util.c
|
05eb905c4433c60d538e134619a3117522072a2f |
|
29-Nov-2012 |
James Hogan <james.hogan@imgtec.com> |
Add state argument to change_syscall and fix SPARC Add a state argument to change_syscall() so that SPARC can modify that instead of read-modify-writing the whole register set. This function is always called within an arg_setup/arg_finish_change sequence which on certain architectures like SPARC will also be doing a read-modify-write. This prevents the second write (from arg_finish_change) from undoing the effects of the change_syscall call. * util.c (change_syscall): Move below definition of arg_setup_state. Add state argument. [SPARC || SPARC64] Change to set state->u_regs[U_REG_G1] rather than read-modify-writing it with PTRACE_GETREGS and PTRACE_SETREGS. (setbpt, clearbpt): Pass state argument to change_syscall. Signed-off-by: James Hogan <james.hogan@imgtec.com>
/external/strace/util.c
|
9a71bcdab254e4cd93b8f1e93c659644eb70ea9b |
|
18-Sep-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Use perror_msg instead of perror * signal.c (sys_sigreturn): Use perror_msg instead of perror. * strace.c (tprintf, tprints, detach, startup_attach): Likewise. * syscall.c (get_scno): Likewise. * util.c (umoven, umovestr): Likewise.
/external/strace/util.c
|
4411a0ce304812ea2f4e5c33815f7148981af195 |
|
27-Sep-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
process_vm_readv may return ESRCH if tracee was killed, don't complain Discovered by running test/sigkill_rain under strace. * util.c (umoven): Do not emit error message if process_vm_readv fails with ESRCH. (umovestr): LikeWise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
55980f5b72000406e3fd843b098b5c1328a21e45 |
|
14-May-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
On clearing "breakpopint", restore syscall number too This fixes Fedora bug 659382. Low risk: this code is not supposed to be used on any non-acient kernel. * util.c (clearbpt): Restore syscall number too. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
24ee60b836ad33bb4ac694ca99d6c94a8cc5ff92 |
|
05-May-2012 |
Mike Frysinger <vapier@gentoo.org> |
util: fix building when glibc has a stub process_vm_readv If you have a newer glibc which provides process_vm_readv, but it is built against older kernel headers which lack __NR_process_vm_readv, the library will contain a stub implementation that just returns ENOSYS. Autoconf checks for this case explicitly and will declare it as unavailable. So we end up in a case where the headers provide the prototype, but autoconf has not defined HAVE_PROCESS_VM_READV, so we hit the same build failure again: util.c:738:16: error: static declaration of 'process_vm_readv' follows non-static declaration /usr/include/bits/uio.h:58:16: note: previous declaration of 'process_vm_readv' was here So rename our local function to something unique, and add a define so the callers all hit the right place. * util.c (strace_process_vm_readv): Rename from process_vm_readv. (process_vm_readv): Define to strace_process_vm_readv. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
b5d43b81a8abdf17bc3aa585a66215ebe3ba3671 |
|
28-Apr-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix printstr's len parameter width We often pass syscall params and other long-sized values as printstr(len). Truncating them to int may be a bad thing. * defs.h: Change len parameter's type from int to long in string_quote and printstr function declarations. * util.c (string_quote): Special-case only len==-1, not all len<0. (printstr): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
ebee04cfb009bdc46599774b4647f6615b6ce3a2 |
|
18-Apr-2012 |
Mike Frysinger <vapier@gentoo.org> |
Decode /dev/loop ioctls Needed to debug some losetup failures, and it's easier when you can see what the kernel is getting vs what you think you're sending, so add some decoders for those ioctls. * loop.c: New file. * Makefile.am (strace_SOURCES): Add loop.c. * defs.h (loop_ioctl): New prototype. (string_quote): Likewise. * ioctl.c (ioctl_decode): Call loop_ioctl when code is 'L'. * util.c (string_quote): Remove static keyword. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
35be58119e3727a694d8c9f9b83f372401fcc4c0 |
|
16-Apr-2012 |
H.J. Lu <hongjiu.lu@intel.com> |
Add x32 support to strace X32 support is added to Linux kernel 3.4. In a nutshell, x32 is x86-64 with 32bit pointers. At system call level, x32 is also identical to x86-64, as shown by many changes like "defined(X86_64) || defined(X32)". The main differerence bewteen x32 and x86-64 is off_t in x32 is long long instead of long. This patch adds x32 support to strace. Tested on Linux/x32. * configure.ac: Support X32. * defs.h: Set SUPPORTED_PERSONALITIES to 3 for X86_64, Set PERSONALITY2_WORDSIZE to 4 for X86_64. Add tcb::ext_arg for X32. * file.c (stat): New for X32. (sys_lseek): Use 64-bit version for X32. (printstat64): Check current_personality != 1 for X86_64. * ipc.c (indirect_ipccall): Check current_personality == 1 for X86_64. * mem.c (sys_mmap64): Also use tcp->u_arg for X32. Print NULL for zero address. Call printllval for offset for X32. * pathtrace.c (pathtrace_match): Don't check sys_old_mmap for X32. * process.c (ARG_FLAGS): Defined for X32. (ARG_STACK): Likewise. (ARG_PTID): Likewise. (change_syscall): Handle X32. (struct_user_offsets): Support X32. (sys_arch_prctl): Likewise. * signal.c: Include <asm/sigcontext.h> for X32. (SA_RESTORER): Also define for X32. * syscall.c (update_personality): Support X32 for X86_64. (is_restart_error): Likewise. (syscall_fixup_on_sysenter): Likewise. (get_syscall_args): Likewise. (get_syscall_result): Likewise. (get_error): Likewise. (__X32_SYSCALL_BIT): Define if not defined. (__X32_SYSCALL_MASK): Likewise. (get_scno): Check DS register value for X32. Use __X32_SYSCALL_MASK on X32 system calls. * util.c (printllval): Use ext_arg for X32. (printcall): Support X32. (change_syscall): Likewise. (arg0_offset): Likewise. (arg1_offset): Likewise. * Makefile.am (EXTRA_DIST): Add linux/x32/errnoent.h, linux/x32/ioctlent.h.in, linux/x32/signalent.h, linux/x32/syscallent.h, linux/x86_64/errnoent2.h, linux/x86_64/ioctlent2.h, linux/x86_64/signalent2.h and linux/x86_64/syscallent2.h. * linux/x32/errnoent.h: New. * linux/x32/ioctlent.h.in: Likewise. * linux/x32/signalent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/errnoent2.h: Likewise. * linux/x86_64/ioctlent2.h: Likewise. * linux/x86_64/signalent2.h: Likewise. * linux/x86_64/syscallent2.h: Likewise. Signed-off-by: H.J. Lu <hongjiu.lu@intel.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
378f9c5ad0043632475cd17cbe5fe4cf38971b2b |
|
26-Mar-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
printstr: check for potential integer overflow * util.c (printstr): Check for potential integer overflow during outstr buffer size calculation.
/external/strace/util.c
|
ccee169ab6aa4ae7515198dadcef5dd2286ede4b |
|
25-Mar-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Robustify parsing of numbers from strings * defs.h (string_to_uint): New prototype. * util.c (string_to_uint): New function. * strace.c (error_opt_arg): New function. (process_opt_p_list): Use string_to_uint instead of atoi. Terminate in case of invalid process id. (init): Use string_to_uint instead of atoi. Use error_opt_arg in case of invalid option argument. * syscall.c (qual_syscall, qual_signal, qual_desc): Use string_to_uint instead of atoi.
/external/strace/util.c
|
852f98a3824f6b8359df744af5772306410341ab |
|
20-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Make ptrace_restart() static. No code changes * defs.h: Remove ptrace_restart() declaration. * strace.c (ptrace_restart): Move its definition here. * util.c (ptrace_restart): Remove its definition. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.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/util.c
|
e10a0e4734c1b4853c71d008c135880d0ad35d5f |
|
17-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove unused PTRACE_WRITE{TEXT,DATA} constants (they are from SunOS) * util.c: Remove unused PTRACE_WRITE{TEXT,DATA} constants. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
3da9693b81db07da14e3e3364f81a6f4d4c26597 |
|
17-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove unused constants. No code changes * syscall.c: Remove unused ENOIOCTLCMD constant. Fix indentation. * util.c: Remove unused CLONE_STOPPED constant. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
081533c10048365a2a8ffd2456af81765d402810 |
|
17-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Move change_syscall() to its only user and make it static * defs.h: Remove declaration of change_syscall(). * process.c (change_syscall): Remove definition of this function. * util.c (change_syscall): Add definition of change_syscall(). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.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/util.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/util.c
|
bcde70adbcff01af4a0675d2fd9d9522807d573e |
|
15-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove extra include directives. No code changes. * defs.h: Include <signal.h> unconditionally. Other files were doing it unconditionally, so no harm done. * bjm.c: Remove system includes which are already included by defs.h. * pathtrace.c: Likewise. * process.c: Likewise. * signal.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
114aefd6183b8c073453f8def73270c42255f974 |
|
08-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Pass addr=0 instead of 1 into restarting ptrace calls While we are at it, fold do_ptrace into its lone caller. We no longer set tcp->ptrace_errno = ESRCH on ESRC error in upeek. Other code paths where ptrace fails wern't doing it, and the code which checks tcp->ptrace_errno even assumes it is never set to ESRCH. (It was me who added this code sometime ago, so it was my fault that it was a bit messy) I ran sigkill_rain test and verified that unfinished syscalls are still handled correctly. * util.c (ptrace_restart): Do not pass addr=1 to ptrace(), pass 0 instead. I have no idea why we were passing 1. Ptrace documentation says that addr parameter is ignored. (do_ptrace): Remove this function. (upeek): Use ptrace() instead of do_ptrace(). * defs.h: Remove do_ptrace() declaration. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
4c65c44478f1591d96cda425d78451334fe1d401 |
|
08-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Trivial tweaks to error messages * strace.c (test_ptrace_setoptions_followfork): Use kill_save_errno instead of kill. (trace): Use perror_msg instead of perror. * count.c (set_sortby): Use error_msg_and_die instead of fprintf. * syscall.c (qualify): Likewise. * util.c (ptrace_restart): Expand error message. (umoven): Likewise. (umovestr): Likewise. (upeek): Use perror_msg instead of sprintf + perror. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.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/util.c
|
aa925db23634fe6a2c1d4b47accb3649daf1b781 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Remove a few more code parts which are unused on Linux This change is abapted from Dmitry's changes to remove support for non-Linux architectures. * Makefile.am: Remove if LINUX/endif pairs. * defs.h: Remove stream_ioctl() declaration. * ioctl.c (ioctl_decode): Remove 'ifdef HAVE_SYS_STREAM_H' block. * resource.c: Use 'defined(FOO)' instead of 'defined FOO' form. * util.c: Likewise. * signal.c: Remove conditional includes which are never used on Linux. * stream.c: Likewise. * file.c: Remove excessive empty lines. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
2d1e90f9588281bb5520783006c06bc23f997bf8 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Reindent preprocessor directives in util.c; fix style. * util.c: Fix indentation of preprocessor directives broken by automatic removal of non-Linux code. Fix style to use consistent defined(FOO) instead of defined (FOO). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.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/util.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/util.c
|
d2a660f534d98169f60d50706cbb2ec15fa13cf8 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
When accessing data blocks, truncate addr to wordsize * util.c (umoven): Truncate addr to wordsize before use.
/external/strace/util.c
|
0c661513e5a4594cfae98042018ed549b1e26b8d |
|
20-Feb-2012 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove initialization of native_scno field * linux/i386/syscallent.h: Remove native_scno initialization for clone, fork and vfork. * linux/ia64/syscallent.h (sys_fork, sys_vfork): Remove redirections to printargs. * linux/syscall.h [IA64]: Do not define SYS_fork and SYS_vfork. * util.c (printcall) [IA64]: Likewise. (setbpt): Use sys_func to check for clone, fork and vfork syscalls.
/external/strace/util.c
|
612659e41e2f41490ea5ae2926f5e002bb398334 |
|
14-Feb-2012 |
Mike Frysinger <vapier@gentoo.org> |
util: check for process_vm_readv in C library glibc-2.15 provides process_vm_readv, so trying to provide it ourselves with that version fails. * configure.ac (AC_CHECK_FUNCS): Add process_vm_readv. * util.c: Handle HAVE_PROCESS_VM_READV. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
4f3df078b26899afe0f25d8651b06a5a5b5143e2 |
|
29-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Simple optimizations text data bss dec hex filename 239474 672 20484 260630 3fa16 strace.before 239234 668 19044 258946 3f382 strace * file.c (sprint_open_modes): Reduce static buffer size. Simplify separator printing. * signal.c (sprintsigmask): Reduce static buffer size. Simplify separator printing and printing of almost full masks. Use stpcpy instead of sprintf and strcpy+strlen. * strace.c (startup_child): Don't strchr() for ':' twice in a row. * util.c (sprintflags): Exit loop early if possible. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
31fa8a22b17b2f898513b68e04269597147d2478 |
|
29-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Add experimental code to use PTRACE_SEIZE, disabled by default All new code is predicated on "ifdef USE_SEIZE". If it is not defined, behavior is not changed. If USE_SEIZE is enabled and run-time check shows that PTRACE_SEIZE works, then: - All attaching is done with PTRACE_SEIZE + PTRACE_INTERRUPT. This means that we no longer generate (and possibly race with) SIGSTOP. - PTRACE_EVENT_STOP will be generated if tracee is group-stopped. When we detect it, we issue PTRACE_LISTEN instead of PTRACE_SYSCALL. This leaves tracee stopped. This fixes the inability to SIGSTOP or ^Z a straced process. * defs.h: Add commented-out "define USE_SEIZE 1" and define PTRACE_SEIZE and related constants. * strace.c: New variable post_attach_sigstop shows whether we age going to expect SIGSTOP on attach (IOW: are we going to use PTRACE_SEIZE). (ptrace_attach_or_seize): New function. Uses PTRACE_ATTACH or PTRACE_SEIZE + PTRACE_INTERRUPT to attach to given pid. (startup_attach): Use ptrace_attach_or_seize() instead of ptrace(PTRACE_ATTACH). (startup_child): Conditionally use alternative attach method using PTRACE_SEIZE. (test_ptrace_setoptions_followfork): More robust parameters to PTRACE_TRACEME. (test_ptrace_seize): New function to test whether PTRACE_SEIZE works. (main): Call test_ptrace_seize() while initializing. (trace): If PTRACE_EVENT_STOP is seen, restart using PTRACE_LISTEN in order to not let tracee run. * process.c: Decode PTRACE_SEIZE, PTRACE_INTERRUPT, PTRACE_LISTEN. * util.c (ptrace_restart): Add "LISTEN" to a possible error message. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
2945639eb854598dbbdc98c4f7e965a0a99492dd |
|
28-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
process_vm_readv gets EINVAL if process is gone (SIGKILLed). Don't complain. * util.c (umoven): Don't complain on EINVAL from process_vm_readv. (umovestr): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
3af224c5cd8a64a6af3f875549ff821e2b5cb211 |
|
28-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Use process_vm_readv instead of PTRACE_PEEKDATA to read data blocks Currently, we use PTRACE_PEEKDATA to read things like filenames and data passed by I/O syscalls. PTRACE_PEEKDATA gets one word per syscall. This is VERY expensive. For example, in order to print fstat syscall, we need to perform more than twenty trips into kernel to fetch one struct stat! Kernel 3.2 got a new syscall, process_vm_readv(), which can be used to copy data blocks out of process' address space. This change uses it in umoven() and umovestr() functions if possible, with fallback to old method if process_vm_readv() fails. If it returns ENOSYS, we don't try to use it anymore, eliminating overhead of trying it on older kernels. Result of "time strace -oLOG ls -l /usr/lib >/dev/null": before patch: 0.372s After patch: 0.262s * util.c (process_vm_readv): Wrapper to call process_vm_readv syscall. (umoven): Use process_vm_readv for block reads of tracee memory. (umovestr): Likewise. * linux/syscall.h: Declare new function sys_process_vm_readv. * process.c (sys_process_vm_readv): Decoder for new syscall. * linux/i386/syscallent.h: Add process_vm_readv, process_vm_writev syscalls. * linux/x86_64/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
a47e6b9fbb98e2363af28cf9cfa436964faa4fc6 |
|
21-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Improve code readability (logic is unchanged) * util.c (umoven): Move assignment out of function call. Make assignment to a flag variable later, closer to the place where it will be used. (umovestr): Likewise. (uload): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
6cecba53225ae30f1a28ce6954fb0cda847f3688 |
|
20-Jan-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Change umovestr API: return > 0 instead of 0 if NUL was seen * pathtrace.c (upathmatch): Adjust umovestr return value check for new API. * util.c (printpathn): Use umovestr() > 0 return value for more efficient (and robust - we don't depend on "no overwrote past NUL" behavior anymore) handling of terminating NUL. (printstr): Remove useless NUL placement before umovestr() call. Allocate 1 byte more to outstr[] array - for NUL. (umovestr): Change to return 1 if NUL was seen. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/util.c
|
b3c52cf02ae536634898cd12afa5f3fcad17fbf2 |
|
19-Jan-2012 |
Denys Vlasenko <dvlasenk@redhat.com> |
Reduce bss usage and speed up string printing text data bss dec hex filename 237913 660 49284 287857 46471 strace.before 237973 660 28772 267405 4148d strace This reduces L1 D-cache pressure a bit: instead of dirtying 20k of bss, we will reuse already dirty stack area. * util.c (printpathn): Use on-stack buffers instead of static ones. Saves 5*MAXPATHLEN in bss. (printstr): Use tprints() instead of tprintf("%s") when printing formatted string. May be a bit faster, depending on libc. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
856c7ed97bce524ade99bb1fc41e746973d45acc |
|
26-Dec-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Enhance decoding for personalities with small wordsize * util.c (umoven, umovestr) [SUPPORTED_PERSONALITIES > 1]: If current personality's wordsize is less than sizeof(long), use only significant bits of the given address.
/external/strace/util.c
|
be55ce794aed3395eeb1ca7cfb9a460a8050b82b |
|
11-Oct-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Remove unreachable code in umoven() and umovestr(). * util.c (umoven, umovestr): Remove unreachable code. Reported-by: Weichuan Yan <wchyan@marvell.com>
/external/strace/util.c
|
014ca3a53cb24d8e12e87f43a880efc52940a8be |
|
02-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Trivial fixes on error paths * strace.c (startup_attach): Emit message on fork() failure. (startup_child): Remove non-informative comment. * util.c (ptrace_restart): use perror_msg() on error instead of fprintf(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.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/util.c
|
0a295bc97fd2ba9e6dc02f382dc87bc8705dc4d0 |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Add stpcpy to autoconf machinery * configure.ac: Add stpcpy to AC_CHECK_FUNCS. * defs.h: Frame stpcpy with "if !defined HAVE_STPCPY". * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.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/util.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/util.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/util.c
|
8778bffdd25dca050b3aa2a7a7e05bc8a63a6665 |
|
31-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Optimize string_quote() for speed * util.c (string_quote): Speed up check for terminating NUL. Replace strintf() with open-coded binary to hex/oct conversions - we potentially do them for every single byte, need to be fast. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
5284557bfad96f12dd5798539008e1644f1dc094 |
|
31-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Optimization: eliminate some usages of strcat() * defs.h: Declare stpcpy(). * util.c: Define stpcpy(). * file.c: Remove static str_append(). (sprint_open_modes): Use stpcpy() instead of str_append(). (sprintflags): Use stpcpy() instead of strcat(). (printpathn): Eliminate usage of strcat(). (printstr): Eliminate usage of strcat(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
cfd364b011e170377ae002551c4391c01f51acbf |
|
20-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Small optimizations related to memory allocation * strace (expand_tcbtab): Shorten "out of memory" message. (rebuild_pollv): Remove unnecessary NULL check before free(). * util.c (dumpstr): Add a comment about likely bug. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.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/util.c
|
4924dbd6d750665cf383b20ab4fd67e48219ab91 |
|
19-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Make addflags return void * defs.h (addflags): Change return type from int to void. * util.c (addflags): Change return type from int to void. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
4b08df42ff069dcf44b8ed206ae33a2904c366ba |
|
19-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Use simpler rounding up to next multiple of 2. * util.c (printllval): simpler rounding up to next multiple of 2. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
c133bf0eb240de31856f82972cf7f6f1e512780b |
|
23-Jun-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Untangle a particularly badly obfuscated bit of code. No logic changes. * util.c (setbpt): Calculate new arg0 in more readable way. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.c
|
e7c9024acf94101ceb17006102629f14e0f25553 |
|
22-Jun-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Trivial fixes * process.c (internal_fork): Remove conditionals which make no difference (we return 0 on both branches of these ifs). * util.c: Fix indentation of an ifdef. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/util.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/util.c
|
7a5b08fb26dcfb343e2c89567bf139af252a95fd |
|
28-May-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
ARM EABI: fix 64-bit syscall's arguments decoding ARM OABI and ARM EABI have different function parameters passing rules. With EABI, 64-bit function parameters passed in registers are aligned to an even-numbered register instead of using the next available pair, see http://lkml.org/lkml/2006/1/12/175 This rule also applies to syscall's arguments. * linux/arm/syscallent.h (pread, pwrite, truncate64, ftruncate64, readahead, preadv, pwritev): Fix number of arguments. * util.c (printllval): Align 64bit argument to 64bit boundary on __ARM_EABI__. Reported-by: Damir Shayhutdinov <damir@altlinux.org> Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/util.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/util.c
|
8a08277d13d0378c2ff3ce851534c3bf7e31defa |
|
07-Apr-2011 |
Grant Edwards <grant.b.edwards@gmail.com> |
Add ability to print file descriptor paths and filter by those paths * pathtrace.c: New file, implements matching syscall arguments to user-specified file paths. * Makefile.am (strace_SOURCES): Add pathtrace.c. * defs.h (TCB_FILTERED, filtered): New defines. (getfdpath, pathtrace_select, pathtrace_match, show_fd_path, tracing_paths): New declarations. * strace.c (show_fd_path, tracing_paths): New global variables. (usage, main): Implement handling of -y and -P options. * strace.1: Add descriptions of -y and -P options. * syscall.c (trace_syscall_entering): Add path matching logic to the print/noprint decision and set the TCB_FILTERED bit appropriately. (trace_syscall_exiting): Use filtered() macro that checks the TCB_FILTERED bit to determine print/noprint status. * util.c (printfd): Use getfdpath().
/external/strace/util.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/util.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/util.c
|
d69fa497f4729373618fb7b506a2362422487ab1 |
|
12-Jul-2010 |
Andreas Schwab <schwab@linux-m68k.org> |
Add biarch support for powerpc64 * acinclude.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Use int instead of long. * configure.ac [$host_cpu = powerpc*]: Also define POWERPC64 if $host_cpu = powerpc64. * defs.h (SUPPORTED_PERSONALITIES, PERSONALITY0_WORDSIZE) (PERSONALITY1_WORDSIZE) [POWERPC64]: Define. * file.c: (struct stat_powerpc32, printstat_powerpc32) [POWERPC64]: Define. (printstat) [LINUX && POWERPC64]: Use printstat_powerpc32 in 32-bit personality. (sys_newfstatat) [POWERPC64]: Handle personalities. * signal.c (sys_sigreturn) [POWERPC64]: Likewise. * util.c (printllval) [POWERPC64]: Likewise. (printcall) [POWERPC64]: Use wider format for IP prefix. * syscall.c (get_scno) [POWERPC64]: Check for 64/32 bit mode. * linux/powerpc/errnoent1.h: New file. * linux/powerpc/ioctlent1.h: New file. * linux/powerpc/signalent1.h: New file. * linux/powerpc/syscallent1.h: New file.
/external/strace/util.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/util.c
|
46ed50d56909843420b0a0cb1360a500ce421d52 |
|
11-Nov-2009 |
Andreas Schwab <schwab@redhat.com> |
Ignore errors if a thread is killed * util.c (clearbpt): Ignore ESRCH error.
/external/strace/util.c
|
b5600fc3df0453ba11f254a9b49add3ffbec9733 |
|
04-Nov-2009 |
Andreas Schwab <schwab@redhat.com> |
Factor out printing of 64bit syscall argument * defs.h (ALIGN64): Remove. (printllval): Declare. * util.c (printllval): Define. * file.c (sys_readahead): Use printllval. (sys_lseek64): Likewise. (sys_truncate64): Likewise. (sys_ftruncate64): Likewise. (sys_fadvise64): Likewise. (sys_fadvise64_64): Likewise. (sys_fallocate): Likewise. * io.c (sys_pread): Likewise. (sys_pwrite): Likewise. (sys_pread64): Likewise. (sys_pwrite64): Likewise. * mem.c (sys_mmap64): Likewise.
/external/strace/util.c
|
8566c500253f3bef38ace7d6031f76fe5d21f7e0 |
|
12-Oct-2009 |
Mike Frysinger <vapier@gentoo.org> |
sparc/linux: Rewrite to use asm/ptrace.h The current sparc/linux code uses asm/reg.h, but recent Linux kernels dropped that header completely. So switch over to the ptrace headers as those should stick around indefinitely as part of the ABI. * defs.h [LINUXSPARC] (U_REG_G1, U_REG_O0, U_REG_O1): Define. * process.c: Drop asm/regs.h include. [SPARC || SPARC64] (change_syscall): Change struct regs to struct pt_regs. * signal.c: Drop asm/regs.h include. (m_siginfo_t): Unify [SPARC || SPARC64] and [MIPS]. [SPARC || SPARC64] (sys_sigreturn): Change struct regs to struct pt_regs. * syscall.c: Drop asm/regs.h include. [SPARC || SPARC64] (internal_syscall, get_scno, get_error, force_result, syscall_enter): Change struct regs to struct pt_regs. * util.c: Drop asm/regs.h include. (_hack_syscall5, _ptrace): Delete. [SPARC || SPARC64] (getpc, printcall, arg_setup_state): Change struct regs to struct pt_regs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
09a13c2da736aa9a74e7de761062c82832f7cf04 |
|
07-Oct-2009 |
Mike Frysinger <vapier@gentoo.org> |
Silence compiler warnings about implicit cast from pointer to integer * util.c (do_ptrace): Cast ptrace() 4th arg to long. (ptrace_restart): Drop void* cast on ptrace() 4th arg. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/util.c
|
eeb9ce3895f1ca0920d50696ef8b48124cef9da6 |
|
05-Oct-2009 |
Edgar E. Iglesias <edgar.iglesias@gmail.com> |
CRIS: Correct first argument to upeek() This complements commit ea0e6e80260d2b1b7ad40282012b0e47869bcddf. * syscall.c [CRISV10 || CRISV32] (syscall_fixup, syscall_enter): Pass tcp pointer instead of pid to upeek(). * util.c [CRISV10 || CRISV32] (printcall): Likewise. Signed-off-by: Edgar E. Iglesias <edgar@axis.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
/external/strace/util.c
|
eb9e2e8904ce85a6c7390be25bb873c6db88c4d3 |
|
03-Jun-2009 |
Roland McGrath <roland@redhat.com> |
Revert unapproved commits.
/external/strace/util.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/util.c
|
ea0e6e80260d2b1b7ad40282012b0e47869bcddf |
|
25-Feb-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
CRIS support by Hinko Kocevar (hinko.kocevar AT cetrtapot.si) * configure.ac: Make it recognize cris. * process.c: Define ARG_xxx constants for cris. (change_syscall): Add support for cris. (struct_user_offsets): Add cris-specific data. * signal.c (sys_sigreturn): Add support for cris. * syscall.c (get_scno): Add support for cris. (syscall_fixup): Add support for cris. (get_error): Add support for cris. (syscall_enter): Add support for cris. (force_result): While at it, fix cpp directives indentation. * util.c (printcall): Add support for cris.
/external/strace/util.c
|
4dedd561d61562fe66f1a0b673ad33ac6a1e3c71 |
|
24-Feb-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
Replace many more bare ptrace calls with calls to wrappers which do proper error-checking and set tcp->ptrace_errno. In some cases, missing error checking is added. Error handling for trace_syscall() failures and other cases where tcp->ptrace_errno is nonzero is cleaned up a bit and made more verbose if we see error other than ESRC. Some comments are added or expanded. * defs.h: Declare ptrace_cmds[]. Modify do_ptrace declaration (last parameter is long, not void *). * process.c: Make ptrace_cmds[] non-static. (change_syscall): Use do_ptrace() instead of bare ptrace(). * signal.c: Use do_ptrace() instead of bare ptrace(). * strace.c: Update trace_syscall() failure handling. * syscall.c: Use do_ptrace() instead of bare ptrace(). * util.c: Use do_ptrace() instead of bare ptrace(). Update do_ptrace() wrapper. (str_PTRACE_xxx): New function - helper returning "PTRACE_xxx". (do_ptrace_peekdata): New function - wrapper for PTRACE_PEEKDATA (do_ptrace5): New function - wrapper for 5-argument ptrace calls.
/external/strace/util.c
|
3bb7cd6660032e97f76e8f62efd3540dbba97656 |
|
09-Feb-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
* defs.h: Correct the comment about TCB_SUSPENDED. * strace.c: Fix misplaced #endif. * util.c: Indent preprocessor directives, mark code parts which can never be reached by compilation because of the combination of #if directives. These are likely dead code, I want to remove them later.
/external/strace/util.c
|
418d66a847bda4867c59e604c0d07c64ed53e320 |
|
17-Jan-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
Two cleanups: tcb table expansion failure is not really a survivable event, we do not have any viable way to continue. No wonder most places where that is detected have FIXMEs. It's way simpler to treat as fatal failure, and handle it inside tcb table expansion finctions. Second cleanup: tidy up haphazard locations of a few externs. * defs.h: Change return type of expand_tcbtab() to void. Declare change_syscall(). * process.c: Change all callsites of alloctcb(), alloc_tcb() and fork_tcb(), removing now-redundant error checks. (fork_tcb): Change return type to void - it can't fail now. * strace.c: Move extern declarations out of function bodies. Change all callsites of alloctcb(), alloc_tcb() and fork_tcb(), removing now-redundant error checks. (expand_tcbtab): Change return type to void - it can't fail now. On failure to expand, print a message, clean up, and exit. (alloc_tcb): On failure to expand, print a message, clean up, and exit. * util.c (setbpt): Remove extern declaration from function body.
/external/strace/util.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/util.c
|
ef2fbf856cf775981b52278c80ce2a74a44019f4 |
|
06-Jan-2009 |
Denys Vlasenko <dvlasenk@redhat.com> |
Output format fixes, improving the situation after recent change which added better handling of processes suddenly disappearing. Now we often do not finish last line before exiting in those cases. The only change affecting something other than output is change in umovestr where we were calling abort() on ptrace error. * strace.c (trace): If trace_syscall() failed with ESRCH, finish current output line with " <unfinished ...>". (mp_ioctl): While we are at it, fix gross style mismatch in this function definition. No code chages. * syscall.c (trace_syscall): If decode fails on syscall exit, finish current output line with "= ? <unavailable>". * util.c (umoven): Do not complain if error is ESRCH. (umovestr): Do not complain and do not abort() if error is ESRCH. * defs.h: Remove unused tcp parameter from printtrailer(). * process.c: Adjust printtrailer() calls accordingly. * strace.c: Adjust printtrailer() calls accordingly. * syscall.c: Adjust printtrailer() calls accordingly.
/external/strace/util.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/util.c
|
732d1bf4d4aaff68eff1c41d8900264637a57dfe |
|
17-Dec-2008 |
Denys Vlasenko <dvlasenk@redhat.com> |
Make strace somewhat resilient against process disappearing under its claws. Prime example is sudden SIGKILL. Fixes RH#472053
/external/strace/util.c
|
932fc7d4fc1a29e8b8bcea5685db3f6c2e212e36 |
|
16-Dec-2008 |
Denys Vlasenko <dvlasenk@redhat.com> |
This patch does not change any logic. It merely passes tcp pointer to upeek instead of pid. This is needed if one wants to check or change some tcp fields. I have patches which require this. I can imagine someone else eventually needing to look at tcp for completely orthogonal reasons.
/external/strace/util.c
|
a501f1426eeeeeb6fc31317c1ab7cc491026f495 |
|
11-Nov-2008 |
Dmitry V. Levin <ldv@altlinux.org> |
2008-11-09 Dmitry V. Levin <ldv@altlinux.org> * util.c (string_quote): Fix support for NUL-terminated string. Add comments. (printpathn): Fix the case when "..." was appended to the output but no truncation was actually made. Add comments. (printstr): Fix memory allocation. Fix two cases when "..." was appended to the output but no truncation was actually made. Add comments.
/external/strace/util.c
|
87ea1f4fe68c6110a96a76f8601b3e204200082d |
|
10-Nov-2008 |
Dmitry V. Levin <ldv@altlinux.org> |
2008-10-23 Mike Frysinger <vapier@gentoo.org> Port strace to the Blackfin architecture. * configure.ac: Add bfin to supported architectures. * process.c: Skip u_fpvalid/u_fpstate for Blackfin architecture. (change_syscall): Support Blackfin architecture. * syscall.c: Declare r0 for Blackfin architecture. (get_scno): Decode Blackfin syscall number. (syscall_fixup): Extract Blackfin return value. (get_error): Decode Blackfin return value. (force_result): Poke Blackfin return value. (syscall_enter): Extract Blackfin syscall arguments. * defs.h: Define TCB_WAITEXECVE for Blackfin architecture. * linux/syscall.h (sys_sram_alloc): Declare for Blackfin architecture. * system.c (sys_sram_alloc): Decode Blackfin sram_alloc() syscall. * util.c (getpc): Handle PC on Blackfin architecture. (printcall): Likewise. * linux/bfin/ioctlent.h, linux/bfin/syscallent.h: New Blackfin headers. * Makefile.am (EXTRA_DIST): Add linux/bfin/ioctlent.h and linux/bfin/syscallent.h.
/external/strace/util.c
|
8fc9575e0b45aae0af00e73da2d7b7bca5ebbf13 |
|
06-Aug-2008 |
Jan Kratochvil <jan.kratochvil@redhat.com> |
2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> * util.c (CLONE_VM): Define if not defined already. (setbpt): Clear CLONE_VM in the case we already clear CLONE_VFORK for SYS_clone and SYS_clone2. Reported by Michal Nowak. Fixes RH#455078.
/external/strace/util.c
|
1f942710a57860eeabfa03e62b8ac151022d1be3 |
|
06-Aug-2008 |
Jan Kratochvil <jan.kratochvil@redhat.com> |
2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> Fix compiler warnings. * signal.c (sys_signal): Cast to SIG_* to the matching type LONG. * strace.c (trace): Variables PSR and PC are now signed. * syscall.c (syscall_enter): Variable RBS_END is now signed long. Remove/add the RBS_END casts appropriately. * util.c [IA64] (arg_setup): Variable BSP is now signed long. Remove/add the BSP casts appropriately. <ia32>: Initialize *STATE.
/external/strace/util.c
|
b659f87e7d5b10f2c06626368efb8a0637f91da5 |
|
18-Jul-2008 |
Roland McGrath <roland@redhat.com> |
2008-06-30 Jan Kratochvil <jan.kratochvil@redhat.com> Fix ia64 `-f' on CLONE2 formerly crashing the child. * util.c [IA64] (restore_arg0, restore_arg1): Define as empty. Fixes RH#453438.
/external/strace/util.c
|
d6ff0d520d4bd8dda1523ec57e8ba2bc0ab3cf69 |
|
18-Jul-2008 |
Roland McGrath <roland@redhat.com> |
2008-06-27 Jan Kratochvil <jan.kratochvil@redhat.com> * util.c (CLONE_VFORK): Define if not defined already. (setbpt): Clear CLONE_VFORK for SYS_clone and SYS_clone2. Reported by Vitaly Mayatskikh.
/external/strace/util.c
|
3291ef2013cf9510f8ca493ab1c81862fd3a5e15 |
|
20-May-2008 |
Roland McGrath <roland@redhat.com> |
2008-05-19 Roland McGrath <roland@redhat.com> * util.c [LINUX] (setbpt): Use correct SYS_clone number for current personality. Fixes RH#447475.
/external/strace/util.c
|
6d9703205e06c77c6c8d38eac6796cfc9a4ea92c |
|
02-Nov-2007 |
Roland McGrath <roland@redhat.com> |
2007-11-01 Roland McGrath <roland@redhat.com> * util.c (string_quote): Return nonzero if the string was unterminated. (printstr): Use that value instead of just our own test. (printpathn): Likewise. Fixes RH#358241.
/external/strace/util.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/util.c
|
bea0203d2d4c8be1818c7d93a630306d79edf716 |
|
08-Oct-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
2007-10-01 Dmitry V. Levin <ldv@altlinux.org> * util.c (string_quote): Move quoting code from ... (printstr) ... here. Use string_quote. (printpathn): Update for new string_quote interface. (printpath): Use printpathn.
/external/strace/util.c
|
1c459769f69ff7cac0e12f934517e1ab349b9cc0 |
|
02-Aug-2007 |
Roland McGrath <roland@redhat.com> |
2007-08-01 Roland McGrath <roland@redhat.com> * util.c (umoven): Don't perror for EIO. (umovestr): Likewise.
/external/strace/util.c
|
a503dcf82047ecf3d8c535406898f3059e424131 |
|
02-Aug-2007 |
Roland McGrath <roland@redhat.com> |
2007-08-01 Roland McGrath <roland@redhat.com> * util.c (printstr): Don't print ... if the string matches the length limit exactly.
/external/strace/util.c
|
58372f52ac5f824be687c01bfc1db1ffb963f91e |
|
24-Jul-2007 |
Roland McGrath <roland@redhat.com> |
2007-07-23 Roland McGrath <roland@redhat.com> * util.c (tv_add): Fix rounding comparison. Reported by Bai Weidong <baiwd@cn.fujitsu.com>.
/external/strace/util.c
|
779c466c0fdb4a0e4039d5ed407d1e6f61c23437 |
|
11-Jul-2007 |
Roland McGrath <roland@redhat.com> |
2007-07-11 Roland McGrath <roland@redhat.com> * util.c (printstr): Fix size calculation for outstr allocation.
/external/strace/util.c
|
fefdd97156bb2f86c5b6596dc7e28d954516b3ed |
|
29-Jun-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
2007-06-28 Dmitry V. Levin <ldv@altlinux.org> * util.c (tv_mul): Multiply tv_usec properly. Patch from Cai Fei <caifei@cn.fujitsu.com>.
/external/strace/util.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/util.c
|
4ebb4e3d312bb8215f4eea9130cce6bb8bdb972f |
|
13-Dec-2006 |
Dmitry V. Levin <ldv@altlinux.org> |
2006-12-10 Dmitry V. Levin <ldv@altlinux.org> Add biarch support for "struct iovec". * defs.h (personality_wordsize): Add. * io.c [HAVE_SYS_UIO_H] (tprint_iov): [LINUX && SUPPORTED_PERSONALITIES > 1] Handle 32-bit personality. * util.c [HAVE_SYS_UIO_H] (dumpiov): [LINUX && SUPPORTED_PERSONALITIES > 1] Likewise. Patch from Jakub Jelinek. Fixes RH#218433.
/external/strace/util.c
|
b15c4e47ff5b2b0dd71fa10472eafb1d5abf4c5f |
|
22-Oct-2005 |
Roland McGrath <roland@redhat.com> |
2005-10-21 Roland McGrath <roland@redhat.com> * util.c (printpathn): Cap N at sizeof path - 1.
/external/strace/util.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/util.c
|
a4d4853f679014799a6608cc8114e6ce7f37ae89 |
|
08-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-06-08 Dmitry V. Levin <ldv@altlinux.org> Minor namespace cleanup. * defs.h (string_quote): Remove declaration. * file.c (openmodessol) [LINUXSPARC]: Make static. (fileflags): Likewise. (aclcmds, aclipc) [HAVE_SYS_ACL_H]: Likewise. (direnttypes) [FREEBSD || LINUX]: Likewise. (xattrflags): Likewise. * process.c (unalignctl_string): Make static. (setarg): Disable. * syscall.c (subcalls_table): Make static. (socket_map) [!(LINUX && (ALPHA || MIPS))]: Likewise. (sparc_socket_decode): Make static, define for [SPARC || SPARC64] only. (decode_subcall): Make static. (syscall_fixup): Likewise. (get_error): Likewise. (syscall_enter): Likewise. * util.c (tv_tv): Disable. (getpc): Likewise. (string_quote): Make static. Fixes RH#159688.
/external/strace/util.c
|
84fa923c15aa537b666d26694549091e9b9a5ddb |
|
08-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-05-12 Philippe De Muyter <phdm@macqel.be> * util.c (getpc, printcall): Check #if defined(M68K), not M68k. Enables `-i' on m68k machines.
/external/strace/util.c
|
ca85b97c9cea63db45e59a345218b902936b693d |
|
08-Jun-2005 |
Roland McGrath <roland@redhat.com> |
revert debugging code
/external/strace/util.c
|
76989d7a16cb9683d0a75a6261f18ced66d0c04a |
|
08-Jun-2005 |
Roland McGrath <roland@redhat.com> |
2005-06-06 Roland McGrath <roland@redhat.com> * defs.h (struct sysent): New member `native_scno'. (known_scno): Declare new function. * linux/syscallent.h: Add new final field to interesting syscalls. * syscall.c (known_scno): New function. (dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it. * process.c (internal_fork, internal_exit): Likewise. [IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise. * strace.c (proc_open): Likewise. * util.c [LINUX] (setbpt): Likewise. * linux/syscall.h: Remove [!defined(X86_64)] from conditional for defining SYS_socket_subcall et al. * linux/syscallent.h: Likewise for #error check. * syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases. Fixes RH#158934.
/external/strace/util.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/util.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/util.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/util.c
|
371ed8fceca7e2812a5edbaab2db2cce966dc0e8 |
|
06-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-02-05 Roland McGrath <roland@redhat.com> * util.c (printpath, printpathn): Print NULL and don't try any fetch when ADDR is zero. Fixes Debian bug #63093.
/external/strace/util.c
|
7a91883b32776a7fc8255ddbcf2d1781be9e2c2e |
|
02-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-02-02 Roland McGrath <roland@redhat.com> * util.c (printcall): Print 16 ?s when long is 8 bytes. Fixes RH#146932.
/external/strace/util.c
|
eac26fc53eaf2cd52c1c531d1d3817a66b8b2180 |
|
02-Feb-2005 |
Roland McGrath <roland@redhat.com> |
2005-02-01 Roland McGrath <roland@redhat.com> * util.c (getpc) [S390 || S390X]: Implement it. Patch by David Wilder <wilder@us.ibm.com>.
/external/strace/util.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/util.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/util.c
|
02cee8d5cbcb0aaaf64d4f4d0916e3d4dbd8ee01 |
|
02-Mar-2004 |
Roland McGrath <roland@redhat.com> |
2004-03-02 Roland McGrath <roland@redhat.com> * util.c (setbpt): Fix one missed spot to use new arg0_index macro. From Michael Holzheu <HOLZHEU@de.ibm.com>.
/external/strace/util.c
|
ce9f0740d3b6e9910f25712771961bdb4bb4eaa2 |
|
01-Mar-2004 |
Roland McGrath <roland@redhat.com> |
2004-03-01 Roland McGrath <roland@redhat.com> * configure.ac: Check for `struct pt_all_user_regs' and `struct ia64_fpreg' in <sys/ptrace.h>. * util.c, process.c, syscall.c: Work around conflicts between <sys/ptrace.h> and <linux/ptrace.h> for defining those types.
/external/strace/util.c
|
90d0afd72811fa149d66b9c6b59d0ebcbf9aba6b |
|
01-Mar-2004 |
Roland McGrath <roland@redhat.com> |
Tweak last change.
/external/strace/util.c
|
c9dc3c1ea77e24e531bde164ba90cc226b1305f8 |
|
01-Mar-2004 |
Roland McGrath <roland@redhat.com> |
2004-03-01 Roland McGrath <roland@redhat.com> * util.c [LINUX] (arg0_index, arg1_index): New macros. [S390 || S390X]: Define them with inverted values. (setbpt): Use them for u_arg indices.
/external/strace/util.c
|
08267b8d6703c23332e39b1296e10e327196acb3 |
|
20-Feb-2004 |
Roland McGrath <roland@redhat.com> |
2003-12-31 David Mosberger <davidm@hpl.hp.com> * process.c (internal_exit): For ia64, also recognize IA-32 252 as exit_group(). (change_syscall): For IA64, also support changing IA-32 syscalls. * syscall.c (internal_syscall): For IA64, also recognize IA-32 syscall 252 (exit_group) as an internal_exit() syscall. * util.c (SYS_fork): For IA64, define them to the IA-32 syscall number. (SYS_vfork): Likewise. (arg_setup): For IA64 version, also support IA-32 syscalls. (get_arg0): Likewise. (get_arg1): Likewise. (set_arg0): Likewise. (set_arg1): Likewise.
/external/strace/util.c
|
6bc1220fe3f10e16919f182ad394c35619fe2e7f |
|
13-Nov-2003 |
Roland McGrath <roland@redhat.com> |
2003-09-06 Dmitry V. Levin <ldv@altlinux.org> * util.c (printuid): New function. * defs.h: Declare it. * file.c (sys_chown): Use it. * file.c (sys_fchown): Likewise. * process.c (sys_setreuid, sys_setregid, sys_setresuid, sys_setresgid): Likewise.
/external/strace/util.c
|
f5a477788ed49d3c15e2080c03d30d4beaeefee3 |
|
27-Jun-2003 |
Roland McGrath <roland@redhat.com> |
2003-06-26 Roland McGrath <roland@redhat.com> * configure.ac: SHMEDIA -> SH64 * defs.h: Likewise. * mem.c: Likewise. * process.c: Likewise. * sock.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. * linux/shmedia/syscallent.h: Moved to ... * linux/sh64/syscallent.h: ... here.
/external/strace/util.c
|
ef388689610fa17df1d3001face8057b411a2e26 |
|
04-Jun-2003 |
Roland McGrath <roland@redhat.com> |
2003-06-03 Roland McGrath <roland@redhat.com> * util.c (printcall) [LINUX]: Fix typo [IA62] -> [IA64]. Linux/ARM improvements from Russell King <rmk@arm.linux.org.uk>: * defs.h [LINUX] (TCB_WAITEXECVE): Define for [ARM] too. * process.c (struct_user_offsets) [LINUX] [ARM]: Add ARM registers. * signal.c [LINUX] (sys_sigreturn) [ARM]: New case. * syscall.c (get_scno, syscall_fixup) [LINUX] [ARM]: Case rewritten. (get_error) [LINUX] [ARM]: Update. (syscall_enter) [LINUX] [ARM]: New case. * util.c (printcall) [LINUX] [ARM]: New case.
/external/strace/util.c
|
e1e584b8fa0d97caad461f82a5427cd37d6327f3 |
|
02-Jun-2003 |
Roland McGrath <roland@redhat.com> |
2003-06-02 Roland McGrath <roland@redhat.com> * configure.ac, defs.h, mem.c, process.c, sock.c, syscall.c, util.c: Merged in SHmedia port from Stephen Thomas <stephen.thomas@superh.com>.
/external/strace/util.c
|
ac971c27278e1d45bf12c1ba522c7507ba778144 |
|
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,errnoent,ioctlent,signalent}.h: New files
/external/strace/util.c
|
4db2624c8f6ec2c6f204c945df349bf42a897d01 |
|
30-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-23 Roland McGrath <roland@redhat.com> * util.c [LINUX && SPARC]: Do renaming kludges around <asm/reg.h> like signal.c does.
/external/strace/util.c
|
7b3082206c5ea5ea41259c8b013138c6f6b6463a |
|
20-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-20 Roland McGrath <roland@redhat.com> * util.c (restore_arg0): Evaluate args in no-op defns. * util.c [S390 || S390X] (arg0_offset, arg1_offset): Fix definitions for clone call on S390. From Michael Holzheu <holzheu@de.ibm.com>.
/external/strace/util.c
|
9b0982b5d3b84c845192ad8b7ad822f81cf4743a |
|
18-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-17 Anton Blanchard <anton@samba.org> * util.c [LINUX] (setbpt): Handle SYS_vfork like SYS_fork.
/external/strace/util.c
|
9383c6c539af09303efe0a16dea55363b095f66e |
|
18-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-17 Anton Blanchard <anton@samba.org> * util.c [LINUX] (setbpt): Handle SYS_vfork like SYS_fork.
/external/strace/util.c
|
eb285359906700f46b22cf4f9911695034313736 |
|
14-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-14 Roland McGrath <roland@redhat.com> * configure.ac: Match powerpc* (includes powerpc64), and don't match ppc (never comes out of config.sub). * process.c (sys_ptrace): Use #lx format for address argument. [POWERPC]: Use sizeof(unsigned long) in place of 4 for multipliers. * process.c [POWERPC]: Likewise. * signal.c (sys_sigreturn) [POWERPC]: Likewise. * syscall.c (get_scno) [POWERPC]: Likewise. * util.c [POWERPC]: Likewise. (printnum): Use long for NUM. From Anton Blanchard <anton@samba.org>.
/external/strace/util.c
|
e1df47ff9a7f3e1ed90969109258f2686f74ce0d |
|
14-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-14 Roland McGrath <roland@redhat.com> * util.c [LINUX] (restore_arg0, restore_arg1): New macros, defined appropriately via set_arg0 or no-ops for each architecture. (clearbpt): Use those instead of set_arg0 and set_arg1.
/external/strace/util.c
|
7f33cc3eb5ead7a79cae8c586e40d2f8b573eec1 |
|
10-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-10 Roland McGrath <roland@redhat.com> * util.c [LINUX && X86_64] (arg0_offset, arg1_offset): Use correct values for x86-64, conditional on current_personality.
/external/strace/util.c
|
43b286f8cb8586acef62da1cbfa5e00d0ea4d427 |
|
10-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-10 Roland McGrath <roland@redhat.com> * process.c (change_syscall) [POWERPC]: Add missing return. * util.c [POWERPC] (arg0_offset): Set to 4*PT_R3, not 4*PT_ORIG_R3.
/external/strace/util.c
|
d81f1d9aac84cbed9d9dcde84fa44f8b1f9b6a66 |
|
09-Jan-2003 |
Roland McGrath <roland@redhat.com> |
2003-01-08 Roland McGrath <roland@redhat.com> Revamp -f support for Linux. * util.c [LINUX] (setbpt, clearbpt): New implementations that tweak the system call to be clone with CLONE_PTRACE set. Various new static helper functions. * process.c (internal_clone): Define also #ifdef SYS_clone2. Initialize TCPCHILD->parent field. [CLONE_PTRACE]: Don't do PTRACE_ATTACH here, because it's preattached. Check in case the new child is in the tcb already. (internal_fork) [LINUX]: Just call internal_clone. * strace.c (trace) [LINUX]: Under -f/-F, grok an unknown pid reporting to wait, put it in the TCB with TCB_ATTACHED|TCB_SUSPENDED.
/external/strace/util.c
|
1e85cf9cb1b0cf3773bbd361bce57379d30b4940 |
|
16-Dec-2002 |
Roland McGrath <roland@redhat.com> |
2002-12-15 Roland McGrath <roland@redhat.com> * util.c [POWERPC] (LOOP): Fix value, now 0x48000000 (0: b 0b). Old value was bogus, not even a proper instruction. From Guy M. Streeter <streeter@redhat.com>.
/external/strace/util.c
|
10a88d09ebe283d0dd2ba5deccfe50dc20ea5821 |
|
07-Oct-2002 |
Michal Ludvig <mludvig@suse.cz> |
2002-10-07 Michal Ludvig <mludvig@suse.cz> Merged s390x port by Heiko Carstens <Heiko.Carstens@de.ibm.com> and bugfixes to s390 by D.J. Barrow.
/external/strace/util.c
|
0e035502d28ef981636abde3139247e6fb2bfcce |
|
23-Sep-2002 |
Michal Ludvig <mludvig@suse.cz> |
2002-09-23 Michal Ludvig <mludvig@suse.cz> Merged x86-64 port by Andi Kleen <ak@suse.de> and Michal Ludvig <mludvig@suse.cz> * Makefile.in: New target 'headers'. Failure ignored. * acconfig.h: New defines for x86-64. * configure.in: Ditto. * defs.h: Ditto. * file.c: Ditto. * signal.c: Ditto. * process.c: Added support for x86-64. * util.c: Ditto. * syscall.c: Ditto + added automatic personality switching. * linux/syscall.h: Ditto. * linux/x86_64: New directory. * linux/x86_64/Makefile.in: New file. * linux/x86_64/gentab.pl: Ditto. * linux/x86_64/i386-headers.diff: Ditto. * linux/x86_64/makeheaders.sh: Ditto. * linux/x86_64/syscallent.h: Ditto. * mem.c (print_mmap): Always print arg[4] as int.
/external/strace/util.c
|
ccef63782c10d9ce9da77ef7530861a3d14b1300 |
|
01-May-2002 |
Wichert Akkerman <wichert@deephackmode.org> |
Merge patch from Greg Banks for Linux/SuperH support
/external/strace/util.c
|
9cecf7f8d6115a247be7186013857270b2d588d5 |
|
16-Oct-2001 |
John Hughes <john@Calva.COM> |
Fix umovestr of unmapped page for UnixWare
/external/strace/util.c
|
7b3346be42d6a1f539e95d385ee498f8b3c529f8 |
|
10-Oct-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Import lots of ia64 related changes from David Mosberger
/external/strace/util.c
|
1d08dcf46dd4b2cfe3e27723c05b0aec9955c591 |
|
10-Jul-2001 |
John Hughes <john@Calva.COM> |
Merge iov fixes from Richard Kettlewell
/external/strace/util.c
|
aa09c6b01ee425d419cdae4389fad0a06da489ef |
|
15-May-2001 |
John Hughes <john@Calva.COM> |
Don\'t run off end of memory in umovestr when USE_PROCFS
/external/strace/util.c
|
75c422b3a8c2eecc403f14a00e14f7675149dd07 |
|
10-Apr-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
add code to print PC for MIPS
/external/strace/util.c
|
c1652e2095fcd9ac62cf2669ef6aec5fd0052851 |
|
27-Mar-2001 |
Wichert Akkerman <wichert@deephackmode.org> |
Add Linux/hppa port, patch from Richard Hirst
/external/strace/util.c
|
bf79f2e16b090ffe59cd1e1820935680a2da7b78 |
|
01-Sep-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
Add FreeBSD support
/external/strace/util.c
|
43a7482edbc7142b91e95d7aedeb9d121fc4880f |
|
27-Jun-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
Merge changes from Ulrich
/external/strace/util.c
|
c792698a99b640e7d256e8692c992bd967f0c5b2 |
|
11-Apr-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
README-linux: updated to note that strace might not compile with development kernels bjm.c: sys_query_module: check if malloc succeeds system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once linux/syscallent.h: updated for 2.3.99pre3 linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls even though Linux doesn't implement them syscall.c: add global variables for MIPS registers as well syscall.c: move global variables to before get_scno since that uses them util.c: oops, misspelled defined process.c: fix ptrace calls in change_syscall mem.c: decode sys_madvise Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi> + add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct + small fix for RLIMIT_* and RUSAGE_BOTH + enhace support for capget and capset
/external/strace/util.c
|
faf722234dc8af97776f94fdda7e100fb60650a2 |
|
20-Feb-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
test/vfork.c: new file to test vfork traces test/.cvsignore: new file defs.h: Up maximum number of traced processed to 64 strace.c: Disable some debugging code from davidm implement setarg for more architectures implement change_syscall
/external/strace/util.c
|
8b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5 |
|
03-Feb-2000 |
Wichert Akkerman <wichert@deephackmode.org> |
Merge Trillian patches (Linux ia64)
/external/strace/util.c
|
9a8a37f2b28d1c0d3f57951fd5aeeb96ff7d2f16 |
|
25-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
fix loop for arm
/external/strace/util.c
|
0396bdc0a7fbef876653460e3ba512398e40ba9b |
|
25-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Use STAT64 test for the new stat64 functions
/external/strace/util.c
|
7a0b649aeace5c1e1efe4a1d7b1ae6e3a87e0d44 |
|
23-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Begin work on supporting clone
/external/strace/util.c
|
4dc8a2aec63e4fb5ee2688544c4de323ed5de3ef |
|
23-Dec-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Bunch of stuff
/external/strace/util.c
|
ea78f0f77185f7d6d0b2055805139d96e1be816c |
|
29-Nov-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Add UnixWare support to configure
/external/strace/util.c
|
f90da01fd19a7779d6ed9ad66605367ae43bb2fd |
|
31-Oct-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Add Linux MIPS support
/external/strace/util.c
|
15dea97f8a05b2b67f5752137fe93e3cc20db6ec |
|
06-Oct-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Compilation updates
/external/strace/util.c
|
9ce1a63eb20b069607c06f9645ac5a17b418a5f3 |
|
30-Aug-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Catching up on my mail-backlog, see ChangeLog for details
/external/strace/util.c
|
36915a19e4806339b76209b20fdbd1091c126115 |
|
13-Jul-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Add test for sys/reg.h and use that instead of asm/ptrace.h This should fix building problems on glibc2.0 systems
/external/strace/util.c
|
e6f876c49de4a5f535e476804e4627f8e0ecb869 |
|
22-Jun-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Linux/powerpc and SunOS fixes
/external/strace/util.c
|
dacfb6ebd630641d851b6df94c3b4587969a6cfb |
|
03-Jun-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Add sparc patches from Jakub Jelinek
/external/strace/util.c
|
71bdaff3b7009ce6d7fa9d8dda569b758ae238af |
|
28-May-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Fix typo
/external/strace/util.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/util.c
|
9047076564d0a097897f165a1311f35f8a2b116b |
|
17-Mar-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
sys/reg apparently only exists on i386 and m68k, so fix the test in a couple of files
/external/strace/util.c
|
5daa028ca314e4c36c1f38e0149834d9a0520128 |
|
15-Mar-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Simply bugfixes, see patch to debian/changelog for details
/external/strace/util.c
|
76baf7c9f6dd61a15524ad43c1b690c252cf5b7c |
|
19-Feb-1999 |
Wichert Akkerman <wichert@deephackmode.org> |
Initial revision
/external/strace/util.c
|