[PATCH] linux/ioctlent.sh: handle multiple defines per-ioctl

2008-03-26 Thread Mike Frysinger
the sed to handle the two-define case. I also fixed uniq/sort as doing `... | uniq | sort` wont work, you need to reverse the steps for uniq to actually work. Signed-off-by: Mike Frysinger [EMAIL PROTECTED] --- linux/ioctlent.sh |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff

syscallent.sh and useless END{} ?

2008-03-26 Thread Mike Frysinger
On Wednesday 26 March 2008, Mike Frysinger wrote: On Wednesday 26 March 2008, Dmitry V. Levin wrote: On Wed, Mar 26, 2008 at 06:36:05PM -0400, Mike Frysinger wrote: Signed-off-by: Mike Frysinger [EMAIL PROTECTED] --- signalent.sh |2 +- syscallent.sh |2 +- 2 files

[PATCH/v2] Add support for Linux/no-mmu with vfork

2008-10-23 Thread Mike Frysinger
in a few places, create a strace_fork() macro. It cannot be a function due to the fun children of a vfork share the stack of the parent, so returning from the function the child was spawned from would clobber the stack when the parent tried to return. Signed-off-by: Mike Frysinger [EMAIL PROTECTED

Re: [PATCH] linux/ioctlent.sh: handle multiple defines per-ioctl

2009-02-13 Thread Mike Frysinger
On Wednesday 26 March 2008 19:08:59 Mike Frysinger wrote: The current sed statement works fine if the ioctl definition only utilizes one define in it. If it uses two, things fall apart. Such is the case with linux/dm-ioctl.h: _IOC(_IOC_NONE,DM_IOCTL,DM_LIST_DEVICES_CMD,) Only the last

[PATCH] ia64/s390/s390x/sh: use common errnoent.h

2009-02-13 Thread Mike Frysinger
If we review arch/*/include/asm/errno.h in the kernel, we see that the ia64/s390/s390x/sh ports all use the common Linux errno values. So stop duplicating the header in the strace arch dirs and let it use the common errnoent.h header. Signed-off-by: Mike Frysinger vap...@gentoo.org

Re: [PATCH] fix for SuperH (SH)

2009-02-20 Thread Mike Frysinger
On Friday 20 February 2009 09:36:33 Bernhard Reutner-Fischer wrote: On Fri, Feb 20, 2009 at 09:31:47AM -0500, Mike Frysinger wrote: On Friday 20 February 2009 07:25:46 Hans-Christian Egtvedt wrote: The attached patch fixes SuperH (SH) architecture. I am not the author, but this patch has

Re: [PATCH] ia64/s390/s390x/sh: use common errnoent.h

2009-02-20 Thread Mike Frysinger
On Friday 20 February 2009 10:40:37 Denys Vlasenko wrote: powerpc/include/asm/errno.h does the same, and then makes one correction: #undef EDEADLOCK #define EDEADLOCK 58 /* File locking deadlock error */ #define _LAST_ERRNO 516 I am applying the patch, and then will try to

Re: [PATCH] sh: use common signalent.h

2009-02-20 Thread Mike Frysinger
On Friday 20 February 2009 11:24:59 Denys Vlasenko wrote: On Fri, 2009-02-13 at 17:29 -0500, Mike Frysinger wrote: The sh port uses the same signal list as the common Linux one, so drop the arch specific copy. Applying, thanks! What to do with ia64? It also has the same signal assignments

[PATCH 2/3] linux/ioctlent.sh: use `sort -u` rather than `sort|uniq`

2009-02-20 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/ioctlent.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/ioctlent.sh b/linux/ioctlent.sh index 479eed4..0258967 100644 --- a/linux/ioctlent.sh +++ b/linux/ioctlent.sh @@ -96,7 +96,7 @@ s/^\(.*\):[[:space

[PATCH] add .gitignore

2009-02-21 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- .gitignore | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..7977f44 --- /dev/null +++ b/.gitignore @@ -0,0

Re: [PATCH] Add support for AVR32 architecture to strace

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 02:07:08 Hans-Christian Egtvedt wrote: Please see the linked patch[0] which adds AVR32 architecture support to strace. Implemented by Håvard Skinnemoen (haavard.skinnem...@atmel.com) and ported to latest CVS HEAD by me. The patch is based against current CVS HEAD.

Re: scm choice

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 19:09:44 Dmitry V. Levin wrote: On Mon, Feb 23, 2009 at 01:46:35PM -0500, Mike Frysinger wrote: now that sf.net supports git, could we talk about transition ? :) Does it also support automated git-cvsimport? If not, I can share my cvs-authors file. :) i looked

Re: __NR_socketcall undefined on EABI arm causes build failure

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 20:19:51 Zac Wheeler wrote: Not sure if this is someone playing a joke or just untested but I can't figure out why you'd want to #ifdef out the closing braces for the prior case statement. The attached patch fixes it for me. you dont appear to be using vanilla

Re: scm choice

2009-02-23 Thread Mike Frysinger
On Monday 23 February 2009 22:39:33 Roland McGrath wrote: No opinions here. Git is fine with me if the conversion doesn't lose anything. Fortunately we have never used cvs branching to speak of, so there are probably no headaches. I also would not object at all if people wanted to move the

[PATCH] enable LFS support by default

2009-03-05 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- configure.ac |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index ffbfeb4..e0b341a 100644 --- a/configure.ac +++ b/configure.ac @@ -173,6 +173,7 @@ AC_PROG_CPP AC_PROG_GCC_TRADITIONAL

[PATCH] decode fcntl's F_{GET, SET}LEASE, F_NOTIFY, and F_DUPFD_CLOEXEC

2009-03-10 Thread Mike Frysinger
trace: fcntl(11, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_DELETE|DN_MULTISHOT) = -1 EINVAL (Invalid argument) Signed-off-by: Mike Frysinger vap...@gentoo.org --- desc.c | 70 1 files changed, 70 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] enable LFS support by default

2009-03-24 Thread Mike Frysinger
On Tuesday 24 March 2009 03:38:31 Roland McGrath wrote: Include ChangeLog entries before a patch, please. We do not use Signed-off-by lines. If you want a patch considered, say what it is for. considering the developers involved with strace maintenance, i didnt think i needed to explain LFS.

Re: [PATCH] fix display of dirfd with x86 binary and x86_64 strace

2009-04-05 Thread Mike Frysinger
forgot to include an example ... here is openat(AT_FDCWD, ...): before: openat(4294967196, /, O_WRONLY) = -1 EISDIR (Is a directory) after: openat(AT_FDCWD, /, O_WRONLY) = -1 EISDIR (Is a directory) and here is openat(-11, ...): before: openat(-11, /, O_WRONLY) = -1

Re: [PATCH] fix display of dirfd with x86 binary and x86_64 strace

2009-04-05 Thread Mike Frysinger
On Sunday 05 April 2009 02:03:33 Mike Frysinger wrote: and here is openat(-11, ...): before: openat(-11, /, O_WRONLY) = -1 EISDIR (Is a directory) after: openat(4294967285, /, O_WRONLY) = -1 EISDIR (Is a directory) ugh, obviously i had these before/after lines swapped

Re: Can't build strace 4.5.18 on arm with 2.6.29 kernel?

2009-05-04 Thread Mike Frysinger
the issue you refer to was fixed long ago in the repo. i imagine most distros have patches you can snipe if you dont want to dig through the scm yourself. -mike signature.asc Description: This is a digitally signed message part.

Re: Can't build strace 4.5.18 on arm with 2.6.29 kernel?

2009-05-05 Thread Mike Frysinger
On Tuesday 05 May 2009 13:20:20 Rob Landley wrote: On Monday 04 May 2009 18:32:53 Mike Frysinger wrote: the issue you refer to was fixed long ago in the repo. i imagine most distros have patches you can snipe if you dont want to dig through the scm yourself. Yeah, Mark pointed me

[PATCH] clean up header checks

2009-05-31 Thread Mike Frysinger
Convert all of the #ifdef checks for specific headers to AC_CHECK_HEADERS to avoid nested arch checks. Also reformat AC_CHECK_HEADERS in the configure.ac file in the process to keep it sorted and easily updated and prevent merging errors in the future. Signed-off-by: Mike Frysinger vap

[PATCH] linux/errno: add ERFKILL

2009-09-13 Thread Mike Frysinger
Latest Linux 2.6.31 defines errno 132 as ERFKILL. Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/errnoent.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/errnoent.h b/linux/errnoent.h index a9a9d34..c52d1d0 100644 --- a/linux/errnoent.h +++ b/linux

[PATCH] ignore ioctlsort helper program

2009-09-13 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 2afc8fe..dc91252 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ Makefile.in /missing /stamp-h1 +/ioctlsort /strace

[PATCH] mark shell scripts as executable

2009-09-13 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- 0 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 = 100755 errnoent.sh mode change 100644 = 100755 freebsd/ioctlent.sh mode change 100644 = 100755 linux/ioctlent.sh mode change 100644 = 100755 linux/mips/ioctlent.sh mode

Re: preparing to 4.5.19 release

2009-10-05 Thread Mike Frysinger
On Monday 05 October 2009 11:45:28 Dmitry V. Levin wrote: On Tue, Sep 29, 2009 at 04:10:48AM +0400, Dmitry V. Levin wrote: On Tue, Sep 22, 2009 at 01:04:45AM +0200, Frederik Schüler wrote: [...] I attached my current diff, you might want to crosscheck, waiting for debian hppa porters

[PATCH] split/sort AC_CHECK_FUNCS list

2009-10-06 Thread Mike Frysinger
* configure.ac (AC_CHECK_FUNCS): Sorted/expanded. Signed-off-by: Mike Frysinger vap...@gentoo.org --- cuts down on conflicts/rejects when people add more funcs to check configure.ac | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/configure.ac b

[PATCH] ioctlsort: check ppc hosts too

2009-10-06 Thread Mike Frysinger
* linux/ioctlsort.c: Check for __powerpc__. Signed-off-by: Mike Frysinger vap...@gentoo.org --- this fixes behavior when ioctlsort.c is built manually on the command line linux/ioctlsort.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/ioctlsort.c b/linux

[PATCH] Blackfin: update ioctl/syscall lists

2009-10-06 Thread Mike Frysinger
* linux/bfin/ioctlent.h: Sync list latest kernel sources. * linux/bfin/syscallent.h: Likewise. Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/bfin/ioctlent.h | 169 +-- linux/bfin/syscallent.h | 17 - 2 files changed, 176 insertions

[PATCH 1/1] ignore .gdb files from FLAT toolchains

2009-10-06 Thread Mike Frysinger
* .gitignore: Add /*.gdb. Signed-off-by: Mike Frysinger vap...@gentoo.org --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index dc91252..9f17271 100644 --- a/.gitignore +++ b/.gitignore @@ -23,5 +23,6 @@ Makefile.in /missing

[PATCH] silence ptrace() integer/pointer warnings

2009-10-06 Thread Mike Frysinger
€˜ptrace_restart’: util.c:282: warning: passing argument 4 of ‘ptrace’ makes integer from pointer without a cast * util.c (do_ptrace): Cast 4th arg to long. (ptrace_restart): Drop void* cast on 4th arg. Signed-off-by: Mike Frysinger vap...@gentoo.org --- util.c |4 ++-- 1 files changed, 2

Re: [PATCH] avoid malloc(0) in getdents

2009-10-07 Thread Mike Frysinger
On Wednesday 07 October 2009 19:32:39 Dmitry V. Levin wrote: On Wed, Oct 07, 2009 at 05:25:01AM -0400, Mike Frysinger wrote: When getdents finishes processing, it returns 0. Strace uses this to then try and do malloc(0), but on some systems this will always return NULL. Since the code

[PATCH v2] avoid malloc(0) in getdents

2009-10-07 Thread Mike Frysinger
(sys_getdents, sys_getdents64): Ignore malloc(0) == NULL. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - revised code based on feedback from Dmitry file.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/file.c b/file.c index c6e3b52..4a2512f 100644

Re: preparing to 4.5.19 release

2009-10-07 Thread Mike Frysinger
On Wednesday 07 October 2009 22:03:14 Roland McGrath wrote: Another small issue is file timestamps in release tarball. Since git does not store timestamps, all files will have current mtime after checkout, while we still package files with last modification in previous century (e.g.

Re: preparing to 4.5.19 release

2009-10-08 Thread Mike Frysinger
. On Wed, Oct 07, 2009 at 03:51:57PM -0400, Mike Frysinger wrote: [...] In file included from ../syscall.c:129: ../linux/sparc/syscallent.h:250: error: ‘sys_nanosleep’ undeclared here (not in a function) looks like linux/sparc/syscall.h needs updating to match linux/syscall.h. sparc

Re: preparing to 4.5.19 release

2009-10-08 Thread Mike Frysinger
On Thursday 08 October 2009 21:09:22 Mike Frysinger wrote: On Thursday 08 October 2009 20:33:31 Frederik Schüler wrote: On Friday 09 October 2009 01:14:13 Dmitry V. Levin wrote: On sparc, it is defined as static struct regs regs; Nothing has changed in this area since v4.5.18. Yes

Re: preparing to 4.5.19 release

2009-10-12 Thread Mike Frysinger
On Monday 12 October 2009 10:04:42 Frederik Schüler wrote: But we got another issue open: gcc -m64 -DHAVE_CONFIG_H -I. -I.. -Ilinux/sparc64 -I../linux/sparc64 -Ilinux - I../linux -Wall -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o ../util.c ../util.c: In function

Re: preparing to 4.5.19 release

2009-10-12 Thread Mike Frysinger
On Monday 12 October 2009 10:34:57 Dmitry V. Levin wrote: On Mon, Oct 12, 2009 at 04:27:23PM +0200, Frederik Schüler wrote: Now it builds both the 32 and 64bit strace binaries on sparc64, thanks! Does it also work there? ;) it works for me in sparc32 userland -mike signature.asc

Re: statfs64 and !LFS

2009-10-14 Thread Mike Frysinger
On Wednesday 14 October 2009 10:46:24 Bernhard Reutner-Fischer wrote: With this patchlet i'm able to build on a uClibc setup with LFS off. i stopped building non-LFS uClibc sometime ago which is probably why i didnt notice. looks straight forward to me though, thanks. -mike signature.asc

Re: preparing to 4.5.19 release

2009-10-18 Thread Mike Frysinger
On Monday 12 October 2009 16:36:43 Dmitry V. Levin wrote: On Mon, Oct 12, 2009 at 04:18:26PM +0400, Dmitry V. Levin wrote: On Sun, Oct 11, 2009 at 04:31:38PM -0700, Roland McGrath wrote: [...] Are we about ready to go now? Yes, everything looks OK, except build failure on Debian sparc.

Re: [PATCH] syscallent.h

2009-11-07 Thread Mike Frysinger
On Saturday 07 November 2009 08:13:42 Dmitry V. Levin wrote: On Fri, Nov 06, 2009 at 09:16:37PM -0500, Mike Frysinger wrote: On Friday 06 November 2009 20:20:32 William Cohen wrote: --- strace-4.5.19/linux/syscallent.h +++ strace-4.5.19/linux/syscallent.h every arch has its own

Re: [PATCH #2 (without fuzz)] strace: Add support for block ioctls

2009-11-30 Thread Mike Frysinger
On Monday 30 November 2009 15:50:19 Jeff Mahoney wrote: +++ b/block.c @@ -0,0 +1,221 @@ +#include defs.h shouldnt there be a comment block here with short desc/copyright/license -mike signature.asc Description: This is a digitally signed message part.

[PATCH] update Blackfin syscall list for linux-2.6.33

2010-03-05 Thread Mike Frysinger
* linux/bfin/syscallent.h: Rename perf_counter_open to perf_event_open. Add recvmmsg. Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/bfin/syscallent.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h index

Re: [PATCH] update Blackfin syscall list for linux-2.6.33

2010-03-06 Thread Mike Frysinger
On Friday 05 March 2010 18:50:32 Dmitry V. Levin wrote: On Fri, Mar 05, 2010 at 06:36:53AM -0500, Mike Frysinger wrote: * linux/bfin/syscallent.h: Rename perf_counter_open to perf_event_open. This rename (v2.6.31-6628-gcdd6c48) affects other architectures as well. Looks like our

Re: [PATCH] Avoid spurious error when checking for linux/netlink.h

2010-03-08 Thread Mike Frysinger
On Monday 08 March 2010 10:13:04 Andreas Schwab wrote: * configure.ac: Include asm/types.h when checking for linux/netlink.h. would linux/types.h be better ? -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH v2] Add support for the MicroBlaze architecture.

2010-07-06 Thread Mike Frysinger
On Tuesday, July 06, 2010 08:21:06 Edgar E. Iglesias wrote: This is an update of the MicroBlaze port. you posted a diffstat, but not an actual diff ... -mike signature.asc Description: This is a digitally signed message part.

[PATCH] linux/ioctlent.sh: search a few non-exported paths

2010-09-11 Thread Mike Frysinger
* linux/ioctlent.sh: Search a few non-exported paths. Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/ioctlent.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/linux/ioctlent.sh b/linux/ioctlent.sh index 9eca767..3977abf 100755 --- a/linux/ioctlent.sh +++ b

[PATCH] fix off_t/rlim_t size checks when cross-compiling

2010-09-12 Thread Mike Frysinger
compiler tricks with sizeof and array lengths to turn it into a pure build test and avoid the RUN issue completely. * acinclude.m4 (AC_OFF_T_IS_LONG_LONG, AC_RLIM_T_IS_LONG_LONG): Convert from AC_RUN_IFELSE to AC_COMPILE_IFELSE. Signed-off-by: Mike Frysinger vap...@gentoo.org --- note: all

[PATCH] Blackfin: update ioctl list

2011-01-17 Thread Mike Frysinger
* linux/bfin/ioctlent.h: Sync with latest kernel sources. --- linux/bfin/ioctlent.h | 337 ++--- 1 files changed, 234 insertions(+), 103 deletions(-) diff --git a/linux/bfin/ioctlent.h b/linux/bfin/ioctlent.h index 4b78fdf..ff3c1e5 100644 ---

Re: approaching 4.5.21 release

2011-01-17 Thread Mike Frysinger
On Monday, January 17, 2011 13:12:14 Dmitry V. Levin wrote: I agree, the amount of changes we've made since 4.5.20 qualifies for a new release. I test HEAD on x86 and x86-64 regularly, and there are no known regressions since 4.5.20. Blackfin seems to work fine in current master -mike

Re: How to run automake/autoconf?

2011-02-16 Thread Mike Frysinger
On Wednesday, February 16, 2011 11:01:53 Grant Edwards wrote: On 2011-02-16, Dmitry V. Levin l...@altlinux.org wrote: On Wed, Feb 16, 2011 at 03:43:19PM +, Grant Edwards wrote: I'm trying to build a git clone from yesterday, but I can't figure out how to run automake

Re: approaching 4.5.21 release

2011-02-16 Thread Mike Frysinger
On Tuesday, February 08, 2011 20:25:39 Dmitry V. Levin wrote: - update linux/[^b]*/ioctlent.h, these files are quite outdated; the Blackfin one should be pretty up-to-date ;). the ADI distribution runs a script to automatically make sure the Blackfin ioctl list isnt missing any new ioctls

Re: approaching 4.5.21 release

2011-02-17 Thread Mike Frysinger
On Thu, Feb 17, 2011 at 8:24 AM, Dmitry V. Levin wrote: On Thu, Feb 17, 2011 at 12:45:02AM -0500, Mike Frysinger wrote: On Tuesday, February 08, 2011 20:25:39 Dmitry V. Levin wrote: - update linux/[^b]*/ioctlent.h, these files are quite outdated; the Blackfin one should be pretty up-to-date

Re: approaching 4.5.21 release

2011-02-17 Thread Mike Frysinger
On Thu, Feb 17, 2011 at 1:35 PM, Roland McGrath wrote: i can easily test alpha/arm/hppa/ia64/ppc/ppc64/s390/sh/sparc, but without any sort of `make check`, my tests tend to consist of `strace ls` and `strace ps` and be like i guess that looks ok. The other important thing to check is some

Re: approaching 4.5.21 release

2011-02-18 Thread Mike Frysinger
testing 65c1a81f6ad628240445ba24d888d25b2fd69c1e: alpha: ok arm: ok hppa: ok ia64: ok ppc: ok ppc64: hangs hard when tracing forks s390: my system is down atm ... sh: ok sparc: build failure hth -mike signature.asc Description: This is a digitally signed message part.

[PATCH] sparc: punt unused syscall.h.2

2011-02-19 Thread Mike Frysinger
I can't find any mention of this header actually being used. Seems to be a really old copy of the common syscall.h. Signed-off-by: Mike Frysinger vap...@gentoo.org * Makefile.am (EXTRA_DIST): Remove linux/sparc/syscall.h.2. * linux/sparc/syscall.h.2: Deleted. --- Makefile.am

Re: approaching 4.5.21 release

2011-02-19 Thread Mike Frysinger
On Saturday, February 19, 2011 15:06:06 Dmitry V. Levin wrote: On Fri, Feb 18, 2011 at 09:52:54PM -0500, Mike Frysinger wrote: testing 65c1a81f6ad628240445ba24d888d25b2fd69c1e: ppc64: hangs hard when tracing forks Could you find out what $ env -i strace -d -f /usr/bin/time /bin/true

Re: [PATCH] sparc

2011-02-19 Thread Mike Frysinger
On Saturday, February 19, 2011 18:02:40 Dmitry V. Levin wrote: On Sat, Feb 19, 2011 at 03:13:05PM -0500, Mike Frysinger wrote: +#if defined SPARC || defined SPARC64 +#include sparc/syscall1.h +int sys_execv(); +int sys_getpagesize(); +int sys_getmsg(), sys_putmsg(); + +int

Re: [PATCH] sparc

2011-02-19 Thread Mike Frysinger
On Sat, Feb 19, 2011 at 6:58 PM, Dmitry V. Levin wrote: P.S. I wonder why all these sys_* declarations are not listed sequentially, in alphabetical order? looking at some of the files and their history, it seems like people tried to group them according to various specs and/or related

Re: PTRACE_GETEVENTMSG bug

2011-02-19 Thread Mike Frysinger
On Sat, Feb 19, 2011 at 6:34 PM, Dmitry V. Levin wrote: On Sat, Feb 19, 2011 at 03:43:04PM -0500, Mike Frysinger wrote: On Saturday, February 19, 2011 15:06:06 Dmitry V. Levin wrote: On Fri, Feb 18, 2011 at 09:52:54PM -0500, Mike Frysinger wrote: testing

Re: approaching 4.5.21 release

2011-02-19 Thread Mike Frysinger
vm is back up. testing e44a4a262ab1d47815262a6bb03ba6001c79096a: s390: ok s390x: hangs hard too, but merging ldv/PTRACE_GETEVENTMSG fixes it so at this point, i think the only ones not tested: - avr32 - microblaze - mips - sh64 (although i think this is more PoC? ive never seen anyone

s390/s390x ioctls

2011-02-20 Thread Mike Frysinger
anyone know what's going on with the s390 ioctls in ioctlent.h that are 8 hex digits long instead of the normal 4 ? they date back to the original port (done in 2002). seems like garbage that can be thrown away ... -mike signature.asc Description: This is a digitally signed message part.

[PATCH] update mount flags to latest linux

2011-02-21 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org * system.c (MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN): Define. (mount_flags): Add MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN. --- system.c | 10 ++ 1 files

[PATCH] update mount flags to latest linux

2011-02-21 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org * system.c (MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN): Define. (mount_flags): Add MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN. --- system.c | 10 ++ 1 files

[PATCH] ioctlsort: zero pad to 4 places

2011-02-21 Thread Mike Frysinger
Zero padding the ioctl number will allow simple sorting via shell scripts. Signed-off-by: Mike Frysinger vap...@gentoo.org --- linux/ioctlent.h | 170 ++-- linux/ioctlsort.c |2 +- 2 files changed, 86 insertions(+), 86 deletions(-) diff

Re: [PATCH] update mount flags to latest linux

2011-02-21 Thread Mike Frysinger
sorry, fat fingered this ... please ignore -mike signature.asc Description: This is a digitally signed message part. -- Index, Search Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness

Re: s390/s390x ioctls

2011-02-22 Thread Mike Frysinger
On Tuesday, February 22, 2011 05:19:08 Heiko Carstens wrote: On Sun, Feb 20, 2011 at 04:04:21PM -0500, Mike Frysinger wrote: anyone know what's going on with the s390 ioctls in ioctlent.h that are 8 hex digits long instead of the normal 4 ? they date back to the original port (done in 2002

Re: approaching 4.6 release

2011-02-28 Thread Mike Frysinger
On Monday, February 28, 2011 12:46:31 Dmitry V. Levin wrote: On Mon, Feb 28, 2011 at 12:18:49PM -0500, Mike Frysinger wrote: On Saturday, February 26, 2011 10:12:53 Dmitry V. Levin wrote: [...] Mike, maybe you can autoregenerate ioctlent.h files for mips, hppa, alpha, sh and ia64

Re: approaching 4.6 release

2011-02-28 Thread Mike Frysinger
On Monday, February 28, 2011 14:13:55 Dmitry V. Levin wrote: On Mon, Feb 28, 2011 at 12:51:48PM -0500, Mike Frysinger wrote: On Monday, February 28, 2011 12:46:31 Dmitry V. Levin wrote: On Mon, Feb 28, 2011 at 12:18:49PM -0500, Mike Frysinger wrote: On Saturday, February 26, 2011 10:12

Re: linux/ioctlent: unify them all

2011-03-07 Thread Mike Frysinger
On Monday, March 07, 2011 13:16:51 Dmitry V. Levin wrote: On Mon, Mar 07, 2011 at 09:30:36AM -0500, Mike Frysinger wrote: ive tweaked the patch and it seems to work on the systems i have access to git://sources.blackfin.uclinux.org/git/sf.net/strace/strace.git vapier Thanks

Re: strace 4.6 released

2011-03-15 Thread Mike Frysinger
On Tuesday, March 15, 2011 20:32:30 Dmitry V. Levin wrote: On Mon, Mar 14, 2011 at 07:35:40PM +0300, Dmitry V. Levin wrote: Everything seems to be ready for 4.6. strace 4.6 is tagged and uploaded. seems strace-4.5.20 is still set as the default d/l on the sf project page -mike

Re: strace 4.6 released

2011-03-15 Thread Mike Frysinger
On Tuesday, March 15, 2011 21:20:41 Dmitry V. Levin wrote: On Tue, Mar 15, 2011 at 09:03:37PM -0400, Mike Frysinger wrote: On Tuesday, March 15, 2011 20:32:30 Dmitry V. Levin wrote: On Mon, Mar 14, 2011 at 07:35:40PM +0300, Dmitry V. Levin wrote: Everything seems to be ready for 4.6

Re: strace 4.6 released

2011-03-15 Thread Mike Frysinger
On Tuesday, March 15, 2011 21:39:39 Dmitry V. Levin wrote: On Tue, Mar 15, 2011 at 09:25:46PM -0400, Mike Frysinger wrote: On Tuesday, March 15, 2011 21:20:41 Dmitry V. Levin wrote: On Tue, Mar 15, 2011 at 09:03:37PM -0400, Mike Frysinger wrote: On Tuesday, March 15, 2011 20:32:30 Dmitry

Re: [PATCH] Use PTRACE_GETREGS on i386

2011-08-26 Thread Mike Frysinger
On Friday, August 26, 2011 13:32:17 Denys Vlasenko wrote: On Fri, 2011-08-26 at 20:36 +0400, Dmitry V. Levin wrote: On Thu, Aug 25, 2011 at 12:10:06PM +0200, Denys Vlasenko wrote: +static struct i386_user_regs_struct i386_regs; strace is not going to call PTRACE_GETREGS with different

Re: [PATCH] Use PTRACE_GETREGS on i386

2011-08-29 Thread Mike Frysinger
On Monday, August 29, 2011 04:42:04 Denys Vlasenko wrote: On Fri, 2011-08-26 at 15:56 -0400, Mike Frysinger wrote: On Friday, August 26, 2011 13:32:17 Denys Vlasenko wrote: On Fri, 2011-08-26 at 20:36 +0400, Dmitry V. Levin wrote: On Thu, Aug 25, 2011 at 12:10:06PM +0200, Denys Vlasenko

Re: epoll_create(flags): EPOLL_CLOEXEC is not defined

2011-10-13 Thread Mike Frysinger
On Thursday 13 October 2011 10:40:59 Марк Коренберг wrote: epoll_create(flags): EPOLL_CLOEXEC is not defined. I see some number instead of EPOLL_CLOEXEC in first argument of this syscall. epoll_create() does not take flags, it takes a size. epoll_create1() takes flags. and the latter

[PATCH] sys_epoll_create1: decode flag arguments correctly

2011-10-13 Thread Mike Frysinger
* desc.c (epollflags): Define. (sys_epoll_create1): Use epollflags to printflags. Change O to EPOLL. Reported-by: Марк Коренберг socketp...@gmail.com Signed-off-by: Mike Frysinger vap...@gentoo.org --- desc.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git

Re: syscall_

2011-11-18 Thread Mike Frysinger
On Thursday 17 November 2011 17:36:36 Igal Sokolov wrote: I am using strace on MIPS. During the tracing I get plenty of [pid 1435] syscall_834107236(0x6ba, 0x393a9d54, 0x, 0x1, 0xbd, 0, 0x3937b900, 0x3937b900, 0x1, 0x3939d000, 0x8731fc, 0x31f12fc8, 0x31f13190, 0x2c8482d0, 0,

[PATCH] include stdbool.h for bool types

2011-12-10 Thread Mike Frysinger
Current build fails due to missing stdbool.h include: strace.c:102:1: error: unknown type name 'bool' strace.c: In function 'die_out_of_memory': strace.c:269:2: error: unknown type name 'bool' Signed-off-by: Mike Frysinger vap...@gentoo.org * strace.c: Include stdbool.h --- strace.c

Re: strace-4.6 failed to build with clang-3.0

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 19:12:50 Alexander Kolesen wrote: I've tried to build strace-4.6 with clang-3.0 and got the following error: /usr/bin/clang -DHAVE_CONFIG_H -I. -I./linux/x86_64 -I./linux -I./linux -Wall -Wwrite-strings -O2 -pipe -MT strace.o -MD -MP -MF .deps/strace.Tpo -c

[PATCH] util: check for process_vm_readv in C library

2012-02-13 Thread Mike Frysinger
of 'process_vm_readv' was here Add a configure check for the func. Signed-off-by: Mike Frysinger vap...@gentoo.org --- configure.ac |1 + util.c |8 +++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 789a997..55c7682 100644

Re: [PATCH] util: check for process_vm_readv in C library

2012-02-16 Thread Mike Frysinger
On Thursday 16 February 2012 11:55:06 Dmitry V. Levin wrote: A ChangeLog-style entry is missing in the commit message, but the commit is already pushed... blah, sorry. i started to look at `git log` to look at the style needed for the changelog, but then noticed something in my commit i had

[PATCH] ppc64: drop unused pid

2012-03-14 Thread Mike Frysinger
* syscall.c (get_scno): Delete unused pid variable. Signed-off-by: Mike Frysinger vap...@gentoo.org --- syscall.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/syscall.c b/syscall.c index 191127b..d1c8992 100644 --- a/syscall.c +++ b/syscall.c @@ -811,7 +811,6

Re: upcoming release: what needs to be done

2012-03-14 Thread Mike Frysinger
On Wednesday 14 March 2012 22:19:08 Dmitry V. Levin wrote: On Wed, Mar 14, 2012 at 08:39:35PM -0400, Mike Frysinger wrote: alpha looks broken with signals ... these funcs pass the target's syscall arg pointer to the C library's sigprocmask() which obviously won't be valid: signal.c

Re: upcoming release: what needs to be done

2012-03-14 Thread Mike Frysinger
arm hits this warning: signal.c: In function ‘sys_rt_sigaction’: signal.c:1345:4: warning: left shift count = width of type ignoring that, `make check` fails because my /bin/sh is dash, and the $* code the tests uses doesn't work. not sure if it's a bug in dash, but using ${*:-../strace}

[PATCH] improve ifdef check with decode_subcall

2012-03-14 Thread Mike Frysinger
Use the same ifdef logic around the call sites of decode_subcall() to protect the definition of the func itself. This fixes warnings for targets like hppa which don't use this func. * syscall.c (decode_subcall): Wrap in SYS_socket_subcall and SYS_ipc_subcall define checks. Signed-off-by: Mike

Re: upcoming release: what needs to be done

2012-03-14 Thread Mike Frysinger
hppa hit this warning: ipc.c: In function ‘sys_shmat’: ipc.c:407:16: warning: unused variable ‘raddr’ but looking at the code, we could add another ifdef around the variable definition, but i'm not sure that really improves things all that much ... it also hit another warning,

Re: upcoming release: what needs to be done

2012-03-15 Thread Mike Frysinger
On Thursday 15 March 2012 17:10:37 Dmitry V. Levin wrote: On Wed, Mar 14, 2012 at 08:39:35PM -0400, Mike Frysinger wrote: alpha looks broken with signals ... Not only with signals, IPC decoding also seems to be broken on alpha: SYS_ipc_subcall is naturally not defined, but indirect_ipccall

Re: Q: can rlim_t be a long long type on linux

2012-03-16 Thread Mike Frysinger
On Friday 16 March 2012 16:18:33 Andreas Schwab wrote: Dmitry V. Levin writes: Is it correct that rlim_t cannot be a long long type on linux, or am I missing something? x32 is going to be the first. mips/n32 doesn't ? note, the x32 strace port can be found here:

Re: upcoming release: what needs to be done

2012-04-02 Thread Mike Frysinger
On Monday 12 March 2012 17:50:48 Dmitry V. Levin wrote: There is quite enough good stuff accumulated in strace.git since v4.6 to have a new release soon. If there are no objections, here is a list of pre-release work to be done for this release: - merge pending patches if any (please speak

Re: [PATCH RFC] roll our own printf implementation

2012-04-02 Thread Mike Frysinger
On Friday 30 March 2012 16:08:36 Denys Vlasenko wrote: On 03/30/2012 08:24 PM, Mike Frysinger wrote: it's hard to say that having to add casts to arguments is an improvement. are those really necessary? Casts are necessary only when you print chars or shorts - a rare operation. As you

[PATCH v2] decode mtd ioctls

2012-04-03 Thread Mike Frysinger
'. * Makefile.am (strace_SOURCES): Add mtd.c. * mtd.c: New file. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - seems mtd-user.h lies and most ioctls take pointers to ints/off_ts rather than inlining them as the argument. my simple dummy test code seems ok, but i'll try

Re: upcoming release: what needs to be done

2012-04-03 Thread Mike Frysinger
On Tuesday 03 April 2012 19:38:06 Dmitry V. Levin wrote: On Mon, Apr 02, 2012 at 11:26:06PM -0400, Mike Frysinger wrote: On Monday 12 March 2012 17:50:48 Dmitry V. Levin wrote: There is quite enough good stuff accumulated in strace.git since v4.6 to have a new release soon

[PATCH v4] decode mtd ioctls

2012-04-05 Thread Mike Frysinger
'. * Makefile.am (strace_SOURCES): Add mtd.c. (EXTRA_DIST): Add linux/mtd-abi.h. * mtd.c: New file. * linux/mtd-abi.h: New file. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v4 - include local header in dist target Makefile.am |4 +- defs.h |2 + io.c|2

[PATCH v3] decode mtd ioctls

2012-04-05 Thread Mike Frysinger
'. * Makefile.am (strace_SOURCES): Add mtd.c. * mtd.c: New file. * linux/mtd-abi.h: New file. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v3 - include local copy of mtd-abi.h and use it when host is old Makefile.am |2 +- defs.h |2 + io.c|2 +- ioctl.c

Re: program stuck at read

2012-04-14 Thread Mike Frysinger
On Saturday 14 April 2012 08:49:23 Mahmood Naderan wrote: read(0, it's reading from stdin. it isn't stuck, it's waiting for you to give some data on stdin. -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH 1/2] Cast clock_t type to unsigned long

2012-04-15 Thread Mike Frysinger
On Sunday 15 April 2012 14:17:13 H.J. Lu wrote: Linux kernel v3.4 adds x32 support whose clock_t is long long. This patch casts clock_t type to unsigned long for %lu. shouldn't we cast it to long long then and use %llu ? -mike signature.asc Description: This is a digitally signed message

Re: [PATCH 2/2] Properly support lseek for n32 and x32

2012-04-15 Thread Mike Frysinger
On Sunday 15 April 2012 15:54:13 Denys Vlasenko wrote: On 04/15/2012 08:21 PM, H.J. Lu wrote: Linux kernel v3.4 adds x32 support. Both x32 and n32 use 64bit offset for lseek parameter and return value. We need u_lrval to handle it properly. Also we shouldn't check HAVE_LONG_LONG_OFF_T

Re: [PATCH 1/2] Cast clock_t type to unsigned long

2012-04-15 Thread Mike Frysinger
On Sunday 15 April 2012 16:22:06 H.J. Lu wrote: On Sun, Apr 15, 2012 at 12:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Sunday 15 April 2012 14:17:13 H.J. Lu wrote: Linux kernel v3.4 adds x32 support whose clock_t is long long. This patch casts clock_t type to unsigned long for %lu

Re: PATCH: Add x32 support to strace

2012-04-15 Thread Mike Frysinger
in configure.ac. Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You

  1   2   3   4   >