Permalink
Switch branches/tags
Nothing to show
Commits on Apr 15, 2012
  1. Cast to unsigned long

    hjl-tools committed Apr 15, 2012
  2. Cast to unsigned long

    hjl-tools committed Apr 14, 2012
    	* signal.c (printsiginfo): Cast to unsigned long.
Commits on Feb 3, 2012
  1. Skip the entry if the sys_func field is NULL

    hjl-tools committed Feb 3, 2012
    2012-02-03  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* syscall.c (dumpio): Also check the sys_func field.
    	(internal_syscall): Likewise.
    	(trace_syscall_exiting): Likewise.
    	(trace_syscall_entering): Likewise.
Commits on Feb 2, 2012
  1. Define RLIM64_INFINITY only if not defined

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* resource.c (RLIM64_INFINITY): Define only if it isn't defined.
  2. Cast to long for %l in printf

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* count.c (call_summary_pers): Cast to long.
    	* ipc.c (sys_mq_open): Likewise.
    	(printmqattr): Likewise.
    	* quota.c (decode_cmd_data): Likewise.
    	* resource.c (sys_sysinfo): Likewise.
    	* time.c (tprint_timex): Likewise.
  3. Check sys_pread64 and sys_pwrite64 only if needed

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* syscall.c (dumpio): Check sys_pread64 and sys_pwrite64 only if
    	HAVE_LONG_LONG_OFF_T isn't defined.
  4. Check HAVE_LONG_LONG_OFF_T when printing offset

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* io.c (sys_sendfile): Check HAVE_LONG_LONG_OFF_T when printing
    	offset.
  5. Define old stat functions only if needed

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* file.c (convertoldstat): Define only if HAVE_LONG_LONG_OFF_T
    	isn't defined.
    	(sys_oldstat): Likewise.
    	(sys_oldfstat): Likewise.
    	(sys_oldlstat): Likewise.
  6. Print NULL for zero address in sys_mmap64

    hjl-tools committed Feb 2, 2012
    2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* mem.c (sys_mmap64): Print NULL for zero address.
Commits on Mar 15, 2011
  1. Ensure that PTRACE_GETSIGINFO et al are always defined on Linux

    ldv-alt committed Mar 15, 2011
    * configure.ac (AC_CHECK_DECLS): Add PTRACE_* constants.
    * defs.h [LINUX]: Define those PTRACE_* constants that are not provided
    by <sys/ptrace.h>.
  2. * CREDITS.in: Fix typo.

    ldv-alt committed Mar 15, 2011
Commits on Mar 14, 2011
  1. Update PTRACE_* constants

    ldv-alt committed Mar 14, 2011
    * process.c (ptrace_cmds): Add PTRACE_GETREGSET and PTRACE_SETREGSET.
  2. Prepare for 4.6 release

    ldv-alt committed Feb 21, 2011
    * NEWS: Update for 4.6 release.
    * configure.ac: Version 4.6.
    * debian/changelog: 4.6-1.
    * strace.spec: 4.6-1.
  3. linux/ioctlent: unify them all

    vapier committed with ldv-alt Feb 21, 2011
    This unifies all the ioctlent.h's in the linux subdir while still
    allowing each arch to maintain its own minor list.
    
    The basic method is:
    - each arch has linux/<arch>/ioctlent.h.in which defines only the
    arch-specific ioctls;
    - linux/ioctlent.h.in which defines only the common ioctls;
    - at build time, these two headers are combined and sorted to produce
    the linux/ioctlent.h file.
    
    This also requires a little tweaking of the include files since the
    common ioctlent.h is a built file.
    
    * linux/ioctlent.h: Split into linux/ioctlent.h.in and
    linux/i386/ioctlent.h.in, remove asm entries from the former, remove
    non-asm entries from the latter.
    * linux/alpha/ioctlent.h: Rename to linux/alpha/ioctlent.h.in, remove
    non-asm entries.
    * linux/bfin/ioctlent.h: Rename to linux/bfin/ioctlent.h.in, remove
    non-asm entries.
    * linux/hppa/ioctlent.h: Rename to linux/hppa/ioctlent.h.in, remove
    non-asm entries.
    * linux/ia64/ioctlent.h: Rename to linux/ia64/ioctlent.h.in, remove
    non-asm entries.
    * linux/mips/ioctlent.h: Rename to linux/mips/ioctlent.h.in, remove
    non-asm entries.
    * linux/powerpc/ioctlent.h: Rename to linux/powerpc/ioctlent.h.in,
    remove non-asm entries.
    * linux/s390/ioctlent.h: Rename to linux/s390/ioctlent.h.in, remove
    non-asm entries.
    * linux/sh/ioctlent.h: Rename to linux/sh/ioctlent.h.in, remove
    non-asm entries.
    * linux/sparc/ioctlent.h: Rename to linux/sparc/ioctlent.h.in, remove
    non-asm entries.
    * linux/arm/ioctlent.h.in: New file.
    * linux/avr32/ioctlent.h.in: Likewise.
    * linux/i386/ioctlent.h.in: Likewise.
    * linux/m68k/ioctlent.h.in: Likewise.
    * linux/microblaze/ioctlent.h.in: Likewise.
    * linux/tile/ioctlent.h.in: Likewise.
    * linux/x86_64/ioctlent.h.in: Likewise.
    * linux/s390x/ioctlent.h.in: Include ioctlent.h.in instead of
    ioctlent.h.
    * linux/sh64/ioctlent.h.in: Likewise.
    * linux/sparc64/ioctlent.h.in: Likewise.
    * linux/arm/ioctlent1.h: Update ioctlent.h include.
    * linux/powerpc/ioctlent1.h: Likewise.
    * linux/sparc/ioctlent1.h: Likewise.
    * linux/sparc64/ioctlent1.h: Likewise.
    * linux/x86_64/ioctlent1.h: Likewise.
    * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
    (EXTRA_DIST): Update.
    [MAINTAINER_MODE && LINUX]: Convert from ioctlent_h to ioctlent_h_in.
    [LINUX]: Add $(builddir)/$(OS)/ioctlent.h generation rules.
    * .gitignore: Add linux/ioctlent.h.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Commits on Mar 10, 2011
  1. Show more details about signals received by traced processess

    ldv-alt committed Mar 10, 2011
    * strace.c [!USE_PROCFS] (trace): Differentiate output format depending
    on PTRACE_GETSIGINFO success or failure.  In the former case, use
    printsiginfo() to show more details about received signal.
  2. Get rid of PT_GETSIGINFO

    ldv-alt committed Mar 10, 2011
    * strace.c [!USE_PROCFS] (trace): Assume that PTRACE_GETSIGINFO is
    available.  Replace PT_GETSIGINFO with PTRACE_GETSIGINFO.  Use
    PTRACE_GETSIGINFO for all signals.
  3. Enhance decoding of kernel-generated signals

    ldv-alt committed Mar 10, 2011
    * signal.c (printsiginfo) [LINUX]: Do not print uninteresting
    zero-initialized fields.
  4. Fix decoding of user-generated signals

    ldv-alt committed Mar 10, 2011
    * signal.c [LINUX] (SI_FROMUSER): Define.
    [LINUX || SVR4] (printsiginfo) [SI_FROMUSER]: Enhance decoding.
  5. Recognize SI_KERNEL and SI_ASYNCNL

    ldv-alt committed Mar 10, 2011
    * signal.c [LINUX] (SI_KERNEL, SI_ASYNCNL): Define.
    [LINUX || SVR4] (siginfo_codes): Add entries for SI_KERNEL and
    SI_ASYNCNL, reorder entries.
Commits on Mar 5, 2011
  1. Take all git branches into account for generation of CREDITS file

    hartwork committed with ldv-alt Mar 4, 2011
    * Makefile.am: Make CREDITS target depend on all git branches.
Commits on Mar 4, 2011
  1. Fix decoding of file descriptors

    ldv-alt committed Mar 4, 2011
    * 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>.
Commits on Mar 3, 2011
  1. Print shutdown(2) modes as SHUT_* constants

    hartwork committed with ldv-alt Mar 3, 2011
    * net.c (shutdown_modes): New xlat structure.
    (sys_shutdown): Use shutdown_modes to decode 2nd syscall argument.
  2. Fix decoding of inotify_init1() flags

    hartwork committed with ldv-alt Mar 2, 2011
    * file.c (inotify_init_flags): New xlat structure.
    (sys_inotify_init1): Use it instead of open_mode_flags.
  3. Fix struct xlat initialization bugs

    ldv-alt committed Mar 3, 2011
    * file.c (inotify_modes): Terminate with NULL entry.
    * net.c (sock_type_flags): Make this array static.
    (socketlayers): Add a comment that this array should remain not
    NULL-terminated.
  4. tests: avoid SIGPIPE

    ldv-alt committed Mar 3, 2011
    * tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
    The former may result to strace being killed by SIGPIPE, which in
    certain configuratons may lead to generation of a core file.
    Suggested by Mike Frysinger.
Commits on Mar 1, 2011
  1. tests: do not make missing /usr/bin/time a failure

    vapier committed with ldv-alt Mar 1, 2011
    * tests/init.sh (framework_skip_): New function.
    (check_prog): Use it instead of framework_failure_.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Commits on Feb 27, 2011
  1. Generate an xz tar archive of the distribution

    ldv-alt committed Feb 27, 2011
    * configure.ac (AM_INIT_AUTOMAKE): Replace dist-bzip2 with dist-xz.
    * Makefile.am: Update srpm target.
    * make-dist: Update for dist-xz.
    * strace.spec: Update Source tag.
    * debian/watch: Update regexp.
    * .gitignore: Add strace-*.tar.xz.
  2. Use "make check" in debian/rules and strace.spec

    ldv-alt committed Feb 27, 2011
    * debian/control: Update Build-Depends.
    * debian/rules: Run "make check".
    * strace.spec: Update BuildRequires. Run "make check" in %check section.
  3. Implement two basic "strace -f" tests

    ldv-alt committed Feb 27, 2011
    * Makefile.am (SUBDIRS): Add tests.
    * configure.ac (AC_CONFIG_FILES): Add tests/Makefile.
    * tests/.gitignore: New file.
    * tests/Makefile.am: Likewise.
    * tests/init.sh: Likewise.
    * tests/ptrace_setoptions: Likewise.
    * tests/strace-f: Likewise.
Commits on Feb 26, 2011
  1. ppc, s390, sparc: regenerate ioctlent.h files

    ldv-alt committed Feb 26, 2011
    * linux/powerpc/ioctlent.h: Regenerated using Fedora 15 kernel headers.
    * linux/s390/ioctlent.h: Likewise.
    * linux/sparc/ioctlent.h: Likewise.
  2. Remove redundant ioctlent.h files

    ldv-alt committed Feb 26, 2011
    * linux/s390x/ioctlent.h: Replace old contents with include of
    s390/ioctlent.h file.
    * linux/sparc64/ioctlent.h: Replace old contents with include of
    sparc/ioctlent.h file.
Commits on Feb 25, 2011
  1. ioctlsort: sync with ioctl_lookup()

    ldv-alt committed Feb 25, 2011
    * linux/ioctlsort.c (main): Use NR and TYPE bits only, to sync with
    ioctl_lookup() which looks at these bits only.
  2. Remove obsolete .cvsignore files

    ldv-alt committed Feb 25, 2011
    * test/.cvsignore: Rename to test/.gitignore.
    * */.cvsignore, */*/.cvsignore: Removed.
  3. Ignore generated intermediate header files

    ldv-alt committed Feb 25, 2011
    * .gitignore: Add ioctls.h and ioctldefs.h.
Commits on Feb 24, 2011
  1. Generate much of the CREDITS file from git log

    ldv-alt committed Feb 24, 2011
    * CREDITS.in: New file, derived from CREDITS, without names of
    those who are listed as git log 'Author:'s.
    * CREDITS: Remove file.
    * Makefile.am [MAINTAINER_MODE] (CREDITS): New rule.
    * .gitignore: Add CREDITS.
    * .mailmap: New file, required to map git author names and email
    addresses to canonical/preferred form.