[PATCH] xtensa: always retrieve all syscall arguments

Mike Frysinger vapier at gentoo.org
Tue May 7 02:03:43 UTC 2013


On Monday 06 May 2013 21:49:22 Mike Frysinger wrote:
> On Monday 06 May 2013 19:49:01 Chris Zankel wrote:
> > Now, readahead, and possibly all other syscalls that take 64-bit
> > arguments are handled by specific functions, so the problem doesn't
> > really exist in those cases. However, looking at arm (5), powerpc (5),
> > mips (5), tile (4), x86 (4), they seem to use the syscallent field as
> > the number of registers that need to be fetched from the kernel rather
> > than the number of arguments printed.
> 
> i think you do point out though that the value is wrong for 64bit arches --
> it should be 3:
> 	syscall(__NR_readahead,
> 		1 /* arg1: fd */,
> 		0 /* arg2: off */,
> 		0 /* arg3: count*/);

aaaand Dmitry has already fixed it :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130506/d8572693/attachment.bin>


More information about the Strace-devel mailing list