factorise sys_socketcall
sys_socketcall was duplicated in syswrap-{ppc64|ppc32|arm|mips32|s390x}-linux.c
=>
* Similarly for what was done for sys_ipc, factorise the code in syswrap-linux.c
* re-enabled PRE_MEM_READ for VKI_SYS_SENDMSG and VKI_SYS_RECVMSG 
  (PRE_MEM_READ calls were commented out around 2003, for what
   was supposed a glibc bug.
   The PRE_MEM_READ calls were already re-enabled in s390x)
* s390x also had some more checking to verify the addressibility of
  the args and fail the syscall with EFAULT if not addressable
  => same checks are now done for all platforms.

(tested on x86/amd64/mips32/s390x/ppc32/ppc64, 
 compiled for arm-android-emulator)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13104 a5019735-40e9-0310-863c-91ae7b9d1cf9
fix n-i-bz same as 303624 (fixed in 3.8.0), but for x86 android

(note: this might be a candidate if a 3.8.2 is done).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13105 a5019735-40e9-0310-863c-91ae7b9d1cf9
s390x machines z196 and zec12 have 4 levels of caches. Adopt the test suite


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13106 a5019735-40e9-0310-863c-91ae7b9d1cf9
Same idea as for mips. sem_post does not fail on s390


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13107 a5019735-40e9-0310-863c-91ae7b9d1cf9
Improve accuracy of definedness tracking through the x86 PMOVMSKB and
BSF instructions, as the lack of it causes false positives (Valgrind
side).  Fixes #308627.  (Patrick J. LoPresti <lopresti@gmail.com>)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13108 a5019735-40e9-0310-863c-91ae7b9d1cf9
Ignore ELF sections that have zero size.  Fixes #309600. 
(Dragos Tatulea, dragos.tatulea@gmail.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13109 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add ptrace getreset testcase from Andreas Arnez 
arnez AT  linux DOT vnet DOT ibm DOT com



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13110 a5019735-40e9-0310-863c-91ae7b9d1cf9
wire up testcase


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13111 a5019735-40e9-0310-863c-91ae7b9d1cf9
add s390 specific fix for getregset


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13112 a5019735-40e9-0310-863c-91ae7b9d1cf9
also wire up arm, x86 and amd64 regarding ptrace regsets
original patch from 
Andreas Arnez <arnez AT  linux DOT vnet DOT ibm DOT com>

Seems that ppc and mips dont have ptrace support....



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13113 a5019735-40e9-0310-863c-91ae7b9d1cf9
Announce fix for BZ 308886.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13114 a5019735-40e9-0310-863c-91ae7b9d1cf9
GETREGSET was introduced with 2.6.33.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13115 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add missing EXTRA DIST statement


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13116 a5019735-40e9-0310-863c-91ae7b9d1cf9
add BLKPBSZGET ioctl


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13117 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update list of ignored files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13118 a5019735-40e9-0310-863c-91ae7b9d1cf9
Fix more Char/HChar mixups. Closing in...


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13119 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update s390_features.c for DFP.
Add a testcase.
Patch by Maran (maranp@linux.vnet.ibm.com).
Part of fixing BZ 307113.
See also VEX r2560.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13120 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add missing files. They should have been added in r13120.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13121 a5019735-40e9-0310-863c-91ae7b9d1cf9
Char/HChar fixups for m_debuginfo and m_gdbserver.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13122 a5019735-40e9-0310-863c-91ae7b9d1cf9
Valgrind, V-bit tester: Add support for Iop_CmpORD class  iops

The Iop_CmpORD class of iops  support the POWER specific comparison
instructions.  The instructions take two 32-bit or 64-bit operands
and produce a result of the same size.  However, only the lower bits
of the result are set by the instruction.  The bits are set by the instruction
to indicate if the comparison is "less then", "greater then", or "equal".

This patch adds support to the V-bit tester to verify the propagation
of the undefined bits in the inputs to the output for the Iop_CmpORd iops.
The output bits are always set to undefined if any of the input bits are not
defined.

This patch is for bugzilla 310169 

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13123 a5019735-40e9-0310-863c-91ae7b9d1cf9