1064 Commits

Author SHA1 Message Date
Roland McGrath
419cd38805 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.
2007-08-02 01:13:33 +00:00
Roland McGrath
f240005701 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.
2007-08-02 01:13:26 +00:00
Roland McGrath
b2c4f507ac . 2007-07-24 01:59:02 +00:00
Roland McGrath
41383399cd 2007-07-23 Roland McGrath <roland@redhat.com>
* time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0.
2007-07-24 01:58:52 +00:00
Roland McGrath
6afc5659ac 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.
2007-07-24 01:57:11 +00:00
Roland McGrath
b912ffe5cc . 2007-07-24 01:53:09 +00:00
Roland McGrath
0e091a1a3d 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.
2007-07-24 01:53:00 +00:00
Roland McGrath
2c00a4a3cb 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.
2007-07-24 01:52:58 +00:00
Roland McGrath
7c7c00b193 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.
2007-07-24 01:52:57 +00:00
Roland McGrath
2149fc0b46 . 2007-07-24 01:38:31 +00:00
Roland McGrath
58372f52ac 2007-07-23 Roland McGrath <roland@redhat.com>
* util.c (tv_add): Fix rounding comparison.
	Reported by Bai Weidong <baiwd@cn.fujitsu.com>.
2007-07-24 01:38:22 +00:00
Roland McGrath
a7f34143e3 . 2007-07-11 09:04:26 +00:00
Roland McGrath
14e3174d1c 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>.
2007-07-11 09:04:23 +00:00
Roland McGrath
0adfb528d8 . 2007-07-11 08:35:15 +00:00
Roland McGrath
d6a32f176c 2007-07-11 Roland McGrath <roland@redhat.com>
* strace.c (handle_group_exit): Detach TCP before LEADER.
	Don't use PTRACE_KILL on LEADER.
2007-07-11 08:35:11 +00:00
Roland McGrath
70b2f0a80a . 2007-07-11 07:23:44 +00:00
Roland McGrath
779c466c0f 2007-07-11 Roland McGrath <roland@redhat.com>
* util.c (printstr): Fix size calculation for outstr allocation.
2007-07-11 07:23:40 +00:00
Roland McGrath
cbf406099b . 2007-07-11 07:11:24 +00:00
Roland McGrath
d26486e7f9 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.
2007-07-11 07:11:20 +00:00
Roland McGrath
96affab069 . 2007-07-05 20:55:15 +00:00
Roland McGrath
6c95bedf8d 2007-07-05 Roland McGrath <roland@redhat.com>
* debian/rules: Use debian/$(package) instead of debian/tmp as temp dir.
2007-07-05 20:55:07 +00:00
Roland McGrath
b3205c80f6 . 2007-07-05 20:50:56 +00:00
Roland McGrath
e7fa305735 2007-07-05 Roland McGrath <roland@redhat.com>
* configure.ac: Use <stddef.h> before <linux/socket.h>.
2007-07-05 20:50:34 +00:00
Roland McGrath
877882ab9b 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.
2007-07-05 20:49:59 +00:00
Roland McGrath
1be68c49b1 . 2007-07-05 20:34:43 +00:00
Roland McGrath
5a7151c0e6 2007-07-05 Roland McGrath <roland@redhat.com>
* .cvsignore: Add some automake-created files.
2007-07-05 20:34:39 +00:00
Roland McGrath
f9fe645bbc . 2007-07-05 20:32:19 +00:00
Roland McGrath
7e9817c1bf 2007-07-05 Roland McGrath <roland@redhat.com>
* file.c (sys_utime): Use personality_wordsize to handle biarch.
	Fixes RH#247185.
2007-07-05 20:31:58 +00:00
Roland McGrath
57dd0cb90e 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>.
2007-07-05 20:16:42 +00:00
Roland McGrath
4acaaa16d9 . 2007-07-05 20:03:21 +00:00
Roland McGrath
4bfa6266eb 2007-07-05 Roland McGrath <roland@redhat.com>
* strace.c (strace_fopen): [_LFS64_LARGEFILE]: Use fopen64.
	Fixes Debian#385310.
2007-07-05 20:03:16 +00:00
Roland McGrath
599df140f5 . 2007-07-05 19:37:07 +00:00
Roland McGrath
6176a1a971 . 2007-07-05 19:31:52 +00:00
Roland McGrath
09553f85cd 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>.
2007-07-05 19:31:49 +00:00
Roland McGrath
c9024cc375 2007-07-05 Roland McGrath <roland@redhat.com>
* debian/control (Architecture): Add armel.
2007-07-05 19:30:27 +00:00
Roland McGrath
a41eb90022 . 2007-07-05 19:28:52 +00:00
Roland McGrath
6e2612785d 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>.
2007-07-05 19:28:35 +00:00
Roland McGrath
0268783772 . 2007-07-05 19:09:14 +00:00
Roland McGrath
fece322e8b 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.
2007-07-05 19:08:42 +00:00
Roland McGrath
a7b4e0a7d7 . 2007-07-05 19:01:39 +00:00
Roland McGrath
359c8ed57c 2007-03-21 Andreas Schwab <schwab@suse.de>
* file.c (sys_newfstatat): Don't use printstat64 on ppc64.
2007-07-05 19:01:17 +00:00
Roland McGrath
c219f7c462 . 2007-07-05 18:59:16 +00:00
Roland McGrath
51942a9f14 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.
2007-07-05 18:59:11 +00:00
Roland McGrath
70e4b462da . 2007-07-05 18:43:24 +00:00
Roland McGrath
e1e57b2840 2007-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* test/leaderkill.c: New file.
	* test/.cvsignore, test/Makefile: Add it.
2007-07-05 18:43:18 +00:00
Roland McGrath
0a46388034 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.
2007-07-05 18:43:16 +00:00
b011af5ef0 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().
2007-06-30 11:37:09 +00:00
fefdd97156 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>.
2007-06-29 21:25:56 +00:00
Roland McGrath
8a483d8562 . 2007-06-11 22:06:37 +00:00
Roland McGrath
02203311e9 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.
2007-06-11 22:06:31 +00:00