]> granicus.if.org Git - strace/commit
Optimize sys_old_mmap
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 19 Aug 2011 15:07:38 +0000 (17:07 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 23 Aug 2011 10:53:01 +0000 (12:53 +0200)
commit9aa97968ed75103c1f8a18e079b73328710ebe1e
tree67f80040815aca748c6f1321b14d6921eff23378
parent31f9cb6f4889c4b3b28993eb259f20ef097b2b6a
Optimize sys_old_mmap

* mem.c (sys_old_mmap): For Ia64 and 32-bit personality of x86-64,
copy narrow parameters from userspace by single umove, not by six
separate ones; then assign them to long u_arg[i]. For SH[64],
avoid copying of tcp->u_arg.
(sys_mmap): Add FIXME comment - SH64 and i386 seem to be handled
differently for no apparent reason.
* test/mmap_offset_decode.c: New test program, illustrates FIXME.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
mem.c
test/mmap_offset_decode.c [new file with mode: 0644]