]> granicus.if.org Git - strace/log
strace
17 years ago2007-08-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 2 Aug 2007 01:13:33 +0000 (01:13 +0000)]
2007-08-01  Roland McGrath  <roland@redhat.com>

* linux/hppa/syscallent.h: Add entry for epoll_pwait.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.

17 years ago2007-07-23 Ulrich Drepper <drepper@redhat.com>
Roland McGrath [Thu, 2 Aug 2007 01:13:26 +0000 (01:13 +0000)]
2007-07-23  Ulrich Drepper  <drepper@redhat.com>

* desc.c (sys_epoll_wait): Move body of function to ...
(epoll_wait_common): ...here.  New function.
(sys_epoll_pwait): New function.
* linux/syscall.h: Declare sys_epoll_pwait.
* linux/syscallent.h: Add entry for epoll_pwait.
* linux/x86_64/syscallent.h: Likewise.

17 years ago.
Roland McGrath [Tue, 24 Jul 2007 01:59:02 +0000 (01:59 +0000)]
.

17 years ago2007-07-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:58:52 +0000 (01:58 +0000)]
2007-07-23  Roland McGrath  <roland@redhat.com>

* time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0.

17 years ago2007-07-23 Ulrich Drepper <drepper@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:57:11 +0000 (01:57 +0000)]
2007-07-23  Ulrich Drepper  <drepper@redhat.com>

* defs.h: Add new parameter to printtv_bitness prototype.
(printttv): Pass zero for the new parameter.
(printtv_special): New macro.
* desc.c (decode_select): Pass zero for the new parameter of
printtv_bitness.
* file.c (utimensatflags): New macro.
(sys_osf_utimes): Pass zero for the new parameter of
printtv_bitness.
(sys_utimes): Likewise.
(sys_futimesat): Likewise.
(decode_utimes): Add new parameter.  Pass it to the
printtv_bitness calls.  Fix printing of time values.
(sys_utimensat): New function.
* time.c (UTIME_NOW, UTIME_OMIT): Define if not already
happened.
(printtv_bitness): Add new parameter.  Print special UTIME_*
values as strings if set.
(sys_osf_gettimeofday): Pass zero for the new parameter of
printtv_bitness.
(sys_osf_settimeofday): Likewise.
* linux/syscall.h: Declare sys_utimensat.
* linux/syscallent.h: Add utimensat entry.
* linux/x86_64/syscallent.h: Likewise.

17 years ago.
Roland McGrath [Tue, 24 Jul 2007 01:53:09 +0000 (01:53 +0000)]
.

17 years ago2007-07-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:53:00 +0000 (01:53 +0000)]
2007-07-23  Roland McGrath  <roland@redhat.com>

* linux/arm/syscallent.h: Add move_pages.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.

17 years ago2007-07-23 Ulrich Drepper <drepper@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:52:58 +0000 (01:52 +0000)]
2007-07-23  Ulrich Drepper  <drepper@redhat.com>

* mem.c (move_pages_flags): New variable.
(sys_move_pages): New function.
* linux/syscall.h: Declare sys_move_pages.
* linux/syscallent.h: Add entry for sys_move_pages.
* linux/x86_64/syscallent.h: Likewise.

17 years ago2007-07-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:52:57 +0000 (01:52 +0000)]
2007-07-23  Roland McGrath  <roland@redhat.com>

* linux/syscallent.h: move_pages takes 6 args, not 5.
* linux/x86_64/syscallent.h: Likewise.
2007-07-23  Ulrich Drepper  <drepper@redhat.com>

* mem.c (move_pages_flags): New variable.
(sys_move_pages): New function.
* linux/syscall.h: Declare sys_move_pages.
* linux/syscallent.h: Add entry for sys_move_pages.
* linux/x86_64/syscallent.h: Likewise.

17 years ago.
Roland McGrath [Tue, 24 Jul 2007 01:38:31 +0000 (01:38 +0000)]
.

17 years ago2007-07-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 24 Jul 2007 01:38:22 +0000 (01:38 +0000)]
2007-07-23  Roland McGrath  <roland@redhat.com>

* util.c (tv_add): Fix rounding comparison.
Reported by Bai Weidong <baiwd@cn.fujitsu.com>.

17 years ago.
Roland McGrath [Wed, 11 Jul 2007 09:04:26 +0000 (09:04 +0000)]
.

17 years ago2007-07-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 11 Jul 2007 09:04:23 +0000 (09:04 +0000)]
2007-07-11  Roland McGrath  <roland@redhat.com>

* count.c (call_summary_pers): Use tv_float conversion for output of
cumulative time, in case it is negative from bogus -O value.
From Lai JiangShan <laijs@cn.fujitsu.com>.

17 years ago.
Roland McGrath [Wed, 11 Jul 2007 08:35:15 +0000 (08:35 +0000)]
.

17 years ago2007-07-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 11 Jul 2007 08:35:11 +0000 (08:35 +0000)]
2007-07-11  Roland McGrath  <roland@redhat.com>

* strace.c (handle_group_exit): Detach TCP before LEADER.
Don't use PTRACE_KILL on LEADER.

17 years ago.
Roland McGrath [Wed, 11 Jul 2007 07:23:44 +0000 (07:23 +0000)]
.

17 years ago2007-07-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 11 Jul 2007 07:23:40 +0000 (07:23 +0000)]
2007-07-11  Roland McGrath  <roland@redhat.com>

* util.c (printstr): Fix size calculation for outstr allocation.

17 years ago.
Roland McGrath [Wed, 11 Jul 2007 07:11:24 +0000 (07:11 +0000)]
.

17 years ago2007-07-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 11 Jul 2007 07:11:20 +0000 (07:11 +0000)]
2007-07-11  Roland McGrath  <roland@redhat.com>

* configure.ac (struct sigcontext.sc_hi2): Use #ifdef around
<asm/sigcontext.h> to match signal.c include conditions.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 20:55:15 +0000 (20:55 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:55:07 +0000 (20:55 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* debian/rules: Use debian/$(package) instead of debian/tmp as temp dir.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 20:50:56 +0000 (20:50 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:50:34 +0000 (20:50 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* configure.ac: Use <stddef.h> before <linux/socket.h>.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:49:59 +0000 (20:49 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* debian/changelog: Harmonize with debian version.
* debian/control (Uploaders): Fix surname spelling.
(Build-Depends): Make debhelper requirement (>= 5.0.0).
(Standards-Version): Update to 3.7.2.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 20:34:43 +0000 (20:34 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:34:39 +0000 (20:34 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* .cvsignore: Add some automake-created files.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 20:32:19 +0000 (20:32 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:31:58 +0000 (20:31 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* file.c (sys_utime): Use personality_wordsize to handle biarch.
Fixes RH#247185.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:16:42 +0000 (20:16 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* signal.c (sys_sigreturn) [MIPS]: Pass 3rd arg to sprintsigmask.
From Zhang Le <zhilg@users.sourceforge.net>.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 20:03:21 +0000 (20:03 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 20:03:16 +0000 (20:03 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* strace.c (strace_fopen): [_LFS64_LARGEFILE]: Use fopen64.
Fixes Debian#385310.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 19:37:07 +0000 (19:37 +0000)]
.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 19:31:52 +0000 (19:31 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 19:31:49 +0000 (19:31 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* strace.c (main): Fix error message for unfound -u user.
From Srinivasa Ds <srinivasa@in.ibm.com>.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 19:30:27 +0000 (19:30 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* debian/control (Architecture): Add armel.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 19:28:52 +0000 (19:28 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 19:28:35 +0000 (19:28 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* linux/syscallent.h: Fix sys_delete_module arg count.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc64/syscallent2.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/dummy.h (sys_delete_module): Use sys_open.
From Johannes Stezenbach <js@linuxtv.org>.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 19:09:14 +0000 (19:09 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 19:08:42 +0000 (19:08 +0000)]
2007-07-05  Roland McGrath  <roland@redhat.com>

* configure.ac: Check for struct sigcontext.sc_hi2.
* signal.c (sys_sigreturn) [MIPS]: Use sc_hi2 vs sc_sigset if found.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 19:01:39 +0000 (19:01 +0000)]
.

17 years ago2007-03-21 Andreas Schwab <schwab@suse.de>
Roland McGrath [Thu, 5 Jul 2007 19:01:17 +0000 (19:01 +0000)]
2007-03-21  Andreas Schwab  <schwab@suse.de>

* file.c (sys_newfstatat): Don't use printstat64 on ppc64.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 18:59:16 +0000 (18:59 +0000)]
.

17 years ago2007-07-05 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 5 Jul 2007 18:59:11 +0000 (18:59 +0000)]
2007-07-05  Roland McGrath  <roland@frob.com>

* process.c [LINUX] (futexops): Add many new values.
[LINUX] (futexwakeops, futexwakecmps): New tables.
[LINUX] (sys_futex): Use them.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#241467.

17 years ago.
Roland McGrath [Thu, 5 Jul 2007 18:43:24 +0000 (18:43 +0000)]
.

17 years ago2007-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 18:43:18 +0000 (18:43 +0000)]
2007-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>

* test/leaderkill.c: New file.
* test/.cvsignore, test/Makefile: Add it.

17 years ago2007-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
Roland McGrath [Thu, 5 Jul 2007 18:43:16 +0000 (18:43 +0000)]
2007-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>

* strace.c (detach): New prototype.  Extended the function comment.
[LINUX] (detach): Call droptcb() instead of the wrongly parametrized
detach() call.
(handle_group_exit): Call droptcb() instead of the wrongly parametrized
detach() call. Always call detach() only once from the group leader.
Comment the leader killing known bug tested by `test/leaderkill.c'.
Code advisory: Roland McGrath
Fixes RH#240961.

17 years ago2007-03-29 Vladimir Nadvornik <nadvornik@suse.cz>
Dmitry V. Levin [Sat, 30 Jun 2007 11:37:09 +0000 (11:37 +0000)]
2007-03-29  Vladimir Nadvornik <nadvornik@suse.cz>
    Dmitry V. Levin <ldv@altlinux.org>

Trace linux SG_IO ioctl arguments and results.
* scsi.c: New file.
* Makefile.am (strace_SOURCES): Add scsi.c
* defs.h (scsi_ioctl): New function.
* ioctl.c (ioctl_decode): Use scsi_ioctl().

17 years ago2007-06-28 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Fri, 29 Jun 2007 21:25:56 +0000 (21:25 +0000)]
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>.

17 years ago.
Roland McGrath [Mon, 11 Jun 2007 22:06:37 +0000 (22:06 +0000)]
.

17 years ago2007-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Roland McGrath [Mon, 11 Jun 2007 22:06:31 +0000 (22:06 +0000)]
2007-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>

Never interrupt when the attached traced process would be left stopped.
* strace.c (main): `-p' attaching moved to ...
(startup_attach): ... a new function, renamed a variable C to TCBI.
Block interrupting signals since the first tracee has been attached.
New comment about INTERRUPTED in the nonthreaded case.
[LINUX] (startup_attach): Check INTERRUPTED after each attached thread.
(main): Command spawning moved to ...
(startup_child): ... a new function, replaced RETURN with EXIT.
[LINUX] (detach): New variable CATCH_SIGSTOP, do not signal
new SIGSTOP for processes still in TCB_STARTUP.
(main): Move signals and BLOCKED_SET init before the tracees attaching,
[SUNOS4] (trace): Removed fixvfork () call as a dead code, SIGSTOP must
have been already caught before clearing TCB_STARTUP.
(trace): Removed the `!WIFSTOPPED(status)' dead code.
Clear TCB_STARTUP only in the case the received signal was SIGSTOP.
New comment when `TCB_BPTSET && TCB_STARTUP' combination can be set.
Code advisory: Roland McGrath
Fixes RH#240986.

17 years ago.
Roland McGrath [Sat, 2 Jun 2007 00:07:38 +0000 (00:07 +0000)]
.

17 years ago2007-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
Roland McGrath [Sat, 2 Jun 2007 00:07:33 +0000 (00:07 +0000)]
2007-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>

* strace.c [LINUX] (my_tgkill): New macro.
[LINUX] (detach): Use my_tgkill () instead of kill(2).
Fixes RH#240962.

17 years ago2007-03-30 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Thu, 29 Mar 2007 23:30:09 +0000 (23:30 +0000)]
2007-03-30  Dmitry V. Levin <ldv@altlinux.org>

* mem.c (mmap_flags): Add MAP_32BIT.
Reported by Kirill A. Shutemov.

17 years ago2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 21 Mar 2007 14:18:17 +0000 (14:18 +0000)]
2007-01-12  Dmitry V. Levin <ldv@altlinux.org>

* sock.c (sock_ioctl): Check umove() return code.

17 years ago2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 21 Mar 2007 13:57:50 +0000 (13:57 +0000)]
2007-01-12  Dmitry V. Levin <ldv@altlinux.org>

* sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFMAP.

17 years ago2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 21 Mar 2007 13:52:14 +0000 (13:52 +0000)]
2007-01-12  Dmitry V. Levin <ldv@altlinux.org>

* sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFTXQLEN.

17 years ago.
Roland McGrath [Fri, 16 Mar 2007 21:56:17 +0000 (21:56 +0000)]
.

17 years ago2007-03-16 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 16 Mar 2007 21:56:05 +0000 (21:56 +0000)]
2007-03-16  Roland McGrath  <roland@redhat.com>

* linux/s390/syscallent.h: Use sys_restart_syscall for 7.
* linux/s390x/syscallent.h: Likewise.

17 years ago.
Roland McGrath [Sun, 18 Feb 2007 22:56:46 +0000 (22:56 +0000)]
.

17 years ago2007-02-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 18 Feb 2007 22:56:37 +0000 (22:56 +0000)]
2007-02-18  Roland McGrath  <roland@redhat.com>

* strace.spec (Summary): Remove trailing period.
(%files): Add %doc files.
(%changelog): Double %s in text.
(BuildRoot): Change to Fedora canonical.
(%install): Don't use %makeinstall macro.
(%build): Use %{?_smp_mflags}.

17 years ago2007-02-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 18 Feb 2007 22:55:21 +0000 (22:55 +0000)]
2007-02-18  Roland McGrath  <roland@redhat.com>

* strace.spec (Summary): Remove trailing period.
(%files): Add %doc files.
(%changelog): Double %s in text.
(BuildRoot): Change to Fedora canonical.
(%install): Don't use %makeinstall macro.

17 years agolog updates
Roland McGrath [Tue, 16 Jan 2007 23:25:34 +0000 (23:25 +0000)]
log updates

17 years ago2007-01-16 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Tue, 16 Jan 2007 15:10:07 +0000 (15:10 +0000)]
2007-01-16  Dmitry V. Levin <ldv@altlinux.org>

Update mount parser to match kernel behaviour.
* system.c [LINUX] (MS_VERBOSE): Rename to MS_SILENT.
[LINUX] (MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED):
New macros.
[LINUX] (mount_flags): Add them.
[LINUX] (MS_MGC_MSK): New macro.
[LINUX] (sys_mount): Update parser to match kernel behaviour:
discard MS_MGC_VAL magic, do not decode type and/or data
strings when specified flags do not imply valid strings.

17 years agolog update
Roland McGrath [Tue, 16 Jan 2007 01:02:38 +0000 (01:02 +0000)]
log update

17 years ago2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Sat, 13 Jan 2007 11:17:38 +0000 (11:17 +0000)]
2007-01-12  Dmitry V. Levin <ldv@altlinux.org>

* time.c [LINUX] (tprint_timex32, tprint_timex): Decode adjtimex
modes as flags.

17 years ago2007-01-11 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Sat, 13 Jan 2007 11:15:48 +0000 (11:15 +0000)]
2007-01-11  Dmitry V. Levin <ldv@altlinux.org>

Update umount parser.
* system.c [LINUX] (MNT_FORCE, MNT_DETACH, MNT_EXPIRE): New macros.
[LINUX] (umount_flags): New xlat structure with MNT_* entries.
[LINUX] (sys_umount2): Use umount_flags.

17 years ago2007-01-11 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Thu, 11 Jan 2007 23:19:55 +0000 (23:19 +0000)]
2007-01-11  Dmitry V. Levin <ldv@altlinux.org>

Fix open(2) flags parser.
* defs.h (tprint_open_modes): New function.
* desc.c (sprint_open_modes): New function.
(sys_fcntl): Use tprint_open_modes() and sprint_open_modes().
* file.c (openmodes): Split xlat into open_access_modes and
open_mode_flags.
(tprint_open_modes): New function.
(decode_open): Use it.
* ipc.c (sys_mq_open, printmqattr): Likewise.
Fixes RH#222385.

17 years ago2007-01-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 11 Jan 2007 22:48:39 +0000 (22:48 +0000)]
2007-01-11  Roland McGrath  <roland@redhat.com>

* system.c [LINUX] (CTL_CPU): Define in case header is missing it.

17 years ago.
Roland McGrath [Thu, 11 Jan 2007 22:42:45 +0000 (22:42 +0000)]
.

17 years ago2007-01-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 11 Jan 2007 22:42:32 +0000 (22:42 +0000)]
2007-01-11  Roland McGrath  <roland@redhat.com>

* debian/control (Uploaders): Add Frederik Schueler <fs@debian.org>.

17 years ago.
Roland McGrath [Thu, 11 Jan 2007 22:26:04 +0000 (22:26 +0000)]
.

17 years ago.
Roland McGrath [Thu, 11 Jan 2007 22:22:54 +0000 (22:22 +0000)]
.

17 years ago2007-01-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 11 Jan 2007 22:22:47 +0000 (22:22 +0000)]
2007-01-11  Roland McGrath  <roland@redhat.com>

* configure.ac, NEWS: Version 4.5.15.
* debian/changelog, strace.spec: 4.5.15-1.
* strace.spec (Release): Use %{?dist}.

17 years ago2007-01-11 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 11 Jan 2007 22:22:42 +0000 (22:22 +0000)]
2007-01-11  Roland McGrath  <roland@redhat.com>

* configure.ac, NEWS: Version 4.5.15.
* debian/changelog, strace.spec: 4.5.15-1.

17 years ago2006-12-27 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Thu, 11 Jan 2007 22:05:04 +0000 (22:05 +0000)]
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.

17 years ago2006-12-21 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Thu, 21 Dec 2006 21:15:04 +0000 (21:15 +0000)]
2006-12-21  Dmitry V. Levin <ldv@altlinux.org>

Move counts code to separate file.
* count.c: New file.
* Makefile.am (strace_SOURCES): Add count.c.
* syscall.c (call_counts, countv, counts, shortest, time_cmp,
syscall_cmp, count_cmp, sortfun, overhead, set_sortby,
set_overhead, call_summary_pers, call_summary): Move to count.c
* count.c (count_syscall): New function.
* defs.h (count_syscall): Declare it.
* syscall.c (trace_syscall): Use it.

17 years agoRH#165469 is also Debian#350641.
Dmitry V. Levin [Thu, 21 Dec 2006 21:00:34 +0000 (21:00 +0000)]
RH#165469 is also Debian#350641.
RH#218435 is also Debian#353935.

17 years ago2006-12-20 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Thu, 21 Dec 2006 11:44:28 +0000 (11:44 +0000)]
2006-12-20  Dmitry V. Levin <ldv@altlinux.org>

* syscall.c (internal_syscall): Change conditions for internal_exit,
internal_fork, internal_clone, internal_exec and internal_wait
calls from switching on known scno values to switching on known
sysent[tcp->scno].sys_func values.
Fixes RH#179740.

17 years ago2006-12-20 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 20 Dec 2006 22:37:21 +0000 (22:37 +0000)]
2006-12-20  Dmitry V. Levin <ldv@altlinux.org>

Show system call summary for each personality.
* syscall.c (countv): New call_counts pointers array.
(counts): Convert to macro wrapper around countv.
(call_summary_pers): New function.
(call_summary): Use it for each personality.
Fixes RH#192193.

17 years ago2006-12-12 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 21:45:31 +0000 (21:45 +0000)]
2006-12-12  Dmitry V. Levin <ldv@altlinux.org>

Fix -ff -o behaviour.  Fix piping trace output.
* defs.h (newoutf): Remove.
(alloctcb): Rename to alloc_tcb.  Add alloctcb() macro wrapper
around alloc_tcb().
* process.c [!USE_PROCFS] (internal_clone, internal_fork):
Remove newoutf() call.
* strace.c (set_cloexec_flag, strace_fopen, strace_popen,
swap_uid): New functions.
(popen_pid): New variable.
(newoutf): Make static, use strace_fopen().
(main): Use strace_fopen() and strace_popen(), remove uids
swapping.  Do not open outfname when followfork > 1.
Reinitialize tcp->outf properly.
(alloctcb): Rename to alloc_tcb.  Use newoutf().
(trace): Check popen_pid.  Remove newoutf() call.
[USE_PROCFS] (proc_open, proc_poll_open): Use set_cloexec_flag().
Fixes RH#204950, RH#218435.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:45:02 +0000 (17:45 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Add biarch support for "struct sigevent".
* time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (printsigevent32):
New function.
[LINUX] (printsigevent): [SUPPORTED_PERSONALITIES > 1]
Handle 32-bit personality.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:43:45 +0000 (17:43 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Add biarch support for "struct timex".
* time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (tprint_timex32):
New function.
[LINUX] (tprint_timex): New function.
[LINUX] (sys_adjtimex): Use it.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:42:32 +0000 (17:42 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Enhance adjtimex parser.
* time.c [LINUX] (adjtimex_modes, adjtimex_status,
adjtimex_state): New xlat structures.
[LINUX] (sys_adjtimex): Print the whole struct timex.
Decode modes, status and return code.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:14:36 +0000 (17:14 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Add biarch support for "struct itimerval".
* time.c (printitv): Rename to printitv_bitness().
Add printitv() macro wrapper around printitv_bitness().
(printitv_bitness): Handle 32-bit personality.
[ALPHA] (sys_osf_getitimer, sys_osf_setitimer):
Use printitv_bitness().
(tprint_timeval, tprint_timeval32): New functions.
(printtv_bitness, printitv_bitness, sys_adjtimex): Use them.
(printitv32): Remove.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:10:11 +0000 (17:10 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Add biarch support for "struct timeval".
* defs.h (bitness_t): New enum type.
(printtv_bitness, sprinttv): New function prototypes.
(printtv): Convert to macro wrapper around printtv_bitness().
(printtv32): Remove.
* desc.c (decode_select): Use printtv_bitness() and sprinttv().
(sys_oldselect, sys_osf_select, sys_select, sys_pselect6):
Update decode_select() use.
* file.c [ALPHA] (sys_osf_utimes): Use printtv_bitness().
* time.c (printtv_bitness, sprinttv): New functions.
(printtv, printtv32): Remove.
[ALPHA] (sys_osf_settimeofday, sys_osf_settimeofday):
Use printtv_bitness().
Fixes RH#171626, RH#173050.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:08:08 +0000 (17:08 +0000)]
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.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 17:03:02 +0000 (17:03 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

* time.c (sys_timer_create): Check umove() return code.

17 years ago2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 13 Dec 2006 16:59:44 +0000 (16:59 +0000)]
2006-12-10  Dmitry V. Levin <ldv@altlinux.org>

Make several global variables static.
#ifdef definitions of rarely unused functions.
* defs.h (rflag, tflag, outfname): Remove.
* strace.c (iflag, interactive, pflag_seen, rflag, tflag,
outfname, username): Make static.
* desc.c (sys_getdtablesize): Define only for
ALPHA || FREEBSD || SUNOS4.
* file.c (sys_fchroot): Define only for SUNOS4 || SVR4.
(sys_mkfifo): Define only for FREEBSD.
* mem.c (sys_sbrk): Define only for FREEBSD || SUNOS4.
(sys_getpagesize): Define only for
ALPHA || FREEBSD || IA64 || SUNOS4 || SVR4.
* net.c (sys_so_socket): Define only for SVR4.
* process.c (sys_gethostid): Define only for
FREEBSD || SUNOS4 || SVR4.
(sys_gethostname): Define only for
ALPHA || FREEBSD || SUNOS4 || SVR4.
(sys_setpgrp): Define only for ALPHA || SUNOS4 || SVR4.
(sys_execv): Define only for SPARC || SPARC64 || SUNOS4.
* signal.c (sys_sigblock): Define only for FREEBSD || SUNOS4.
(sys_sighold, sys_sigwait): Define only for SVR4.
(sys_killpg): Define only for FREEBSD || SUNOS4.
* stream.c (sys_getmsg): Define only for
SPARC || SPARC64 || SUNOS4 || SVR4.
* syscall.c (sys_indir): Define only for SUNOS4.

17 years ago2006-11-27 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 4 Dec 2006 13:48:10 +0000 (13:48 +0000)]
2006-11-27  Dmitry V. Levin  <ldv@altlinux.org>

* system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers
removed CTL_PROC enum. Patch from Jakub Jelinek.
[LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.

17 years ago2006-11-20 Jakub Jelinek <jakub@redhat.com>
Dmitry V. Levin [Mon, 4 Dec 2006 13:46:28 +0000 (13:46 +0000)]
2006-11-20  Jakub Jelinek  <jakub@redhat.com>

* linux/ia64/syscallent.h: Add #if check to make sure that
SYS_socket_subcall adjustment isn't forgotten again.

18 years ago2006-10-16 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 16 Oct 2006 00:26:47 +0000 (00:26 +0000)]
2006-10-16  Dmitry V. Levin  <ldv@altlinux.org>

Implement comprehensive quotactl(2) parser for Linux.
* Makefile.am (strace_SOURCES): Add quota.c.
* quota.c: New file.
* resource.c: Remove old quotactl(2) parser.
Fixes RH#118696.

18 years ago2006-10-14 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Sat, 14 Oct 2006 20:20:46 +0000 (20:20 +0000)]
2006-10-14  Dmitry V. Levin  <ldv@altlinux.org>

* configure.ac(AC_CHECK_HEADERS): Add inttypes.h.
* file.c [_LFS64_LARGEFILE && (LINUX || SVR4)]:
Include <inttypes.h>.
(sys_getdents64): Use PRIu64/PRId64 to avoid gcc warnings on
64-bit platforms.

18 years ago2006-10-14 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Sat, 14 Oct 2006 14:23:57 +0000 (14:23 +0000)]
2006-10-14  Dmitry V. Levin  <ldv@altlinux.org>

* strace.c (main): Check getcwd() return code.

18 years ago2006-10-13 Ulrich Drepper <drepper@redhat.com>
Dmitry V. Levin [Fri, 13 Oct 2006 20:25:12 +0000 (20:25 +0000)]
2006-10-13  Ulrich Drepper  <drepper@redhat.com>
    Bernhard Kaindl <bk@suse.de>
    Dmitry V. Levin  <ldv@altlinux.org>
    Michael Holzheu <holzheu@de.ibm.com>

Add hooks for new syscalls.  Add decoders for *at, inotify*,
pselect6, ppoll and unshare syscalls.

* defs.h: Declare print_sigset.
* desc.c (sys_pselect6): New function.
* file.c (decode_open, decode_access, decode_mkdir,
decode_readlink, decode_chmod, decode_utimes, decode_mknod):
New functions.
(sys_open, sys_access, sys_mkdir, sys_readlink, sys_chmod,
sys_utimes, sys_mknod): Use them.
[LINUX] (fstatatflags, unlinkatflags, inotify_modes): New
variables.
[LINUX] (print_dirfd, sys_openat, sys_faccessat,
sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat,
sys_symlinkat, sys_readlinkat, sys_renameat, sys_fchownat,
sys_fchmodat, sys_futimesat, sys_mknodat, sys_inotify_add_watch,
sys_inotify_rm_watch): New functions.
* process.c [LINUX] (sys_unshare): New function.
* signal.c (print_sigset): New function.
(sys_sigprocmask): Use it.
* stream.c (decode_poll): New function.
(sys_poll): Use it.
[LINUX] (sys_ppoll): New function.
* linux/syscall.h: Delcare new syscall handlers.
* linux/syscallent.h: Hook up new syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Fixes RH#178633.

18 years ago2006-10-06 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 11 Oct 2006 23:11:43 +0000 (23:11 +0000)]
2006-10-06  Dmitry V. Levin  <ldv@altlinux.org>

* strace.c [!USE_PROCFS] (trace): Presence of PT_GETSIGINFO
macro does not mean that PT_CR_IPSR and PT_CR_IIP macros are
also defined, so check them along with PT_GETSIGINFO.
Fixes RH#209856.

18 years ago2006-09-01 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 11 Oct 2006 22:58:31 +0000 (22:58 +0000)]
2006-09-01  Dmitry V. Levin  <ldv@altlinux.org>

* file.c (print_xattr_val): Fix memory corruption bug reported
by James Antill.
Fixes RH#200621.

18 years ago2006-04-21 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 11 Oct 2006 22:56:49 +0000 (22:56 +0000)]
2006-04-21  Dmitry V. Levin  <ldv@altlinux.org>

* defs.h [LINUX && X86_64 && !__NR_exit_group]: Define
__NR_exit_group.

18 years ago2006-03-29 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 11 Oct 2006 22:55:25 +0000 (22:55 +0000)]
2006-03-29  Dmitry V. Levin  <ldv@altlinux.org>

Fix race conditions in tcb allocation.
* process.c (fork_tcb): Return error code as documented.  Do not
print "tcb table full" error message.
[USE_PROCFS] (internal_fork): Do not print "tcb table full"
error message.
[SYS_clone || SYS_clone2] (internal_clone, internal_fork): Call
fork_tcb() before alloctcb().  Do not print "tcb table full"
error message.
* strace.c (main): Do not print "tcb table full" error message.
(expand_tcbtab): Print error message in case of memory allocation
failure.
(alloctcb): Print error message when tcb table is full.
(trace): Expand tcb table if necessary prior to allocating
entry there.  Do not print "tcb table full" error message.
Fixes RH#180293.

18 years agofix bz tag
Roland McGrath [Tue, 10 Oct 2006 00:57:30 +0000 (00:57 +0000)]
fix bz tag

18 years ago.
Roland McGrath [Tue, 22 Aug 2006 07:37:00 +0000 (07:37 +0000)]
.