History log of /external/valgrind/include/vki/vki-linux.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ed39800a83baf5bffbe391f3974eb2af0f415f80 21-Jun-2017 Elliott Hughes <enh@google.com> Upgrade to valgrind 3.13.0 (15 June 2017).

Release 3.13.0 (15 June 2017)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

3.13.0 is a feature release with many improvements and the usual collection of
bug fixes.

This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
X86/Solaris, AMD64/Solaris and AMD64/MacOSX 10.12.

* ==================== CORE CHANGES ===================

* The translation cache size has been increased to keep up with the demands of
large applications. The maximum number of sectors has increased from 24 to
48. The default number of sectors has increased from 16 to 32 on all
targets except Android, where the increase is from 6 to 12.

* The amount of memory that Valgrind can use has been increased from 64GB to
128GB. In particular this means your application can allocate up to about
60GB when running on Memcheck.

* Valgrind's default load address has been changed from 0x3800'0000 to
0x5800'0000, so as to make it possible to load larger executables. This
should make it possible to load executables of size at least 1200MB.

* A massive spaceleak caused by reading compressed debuginfo files has been
fixed. Valgrind should now be entirely usable with gcc-7.0 "-gz" created
debuginfo.

* The C++ demangler has been updated.

* Support for demangling Rust symbols has been added.

* A new representation of stack traces, the "XTree", has been added. An XTree
is a tree of stacktraces with data associated with the stacktraces. This is
used by various tools (Memcheck, Helgrind, Massif) to report on the heap
consumption of your program. Reporting is controlled by the new options
--xtree-memory=none|allocs|full and --xtree-memory-file=<file>.

A report can also be produced on demand using the gdbserver monitor command
'xtmemory [<filename>]>'. The XTree can be output in 2 formats: 'callgrind
format' and 'massif format. The existing visualisers for these formats (e.g.
callgrind_annotate, KCachegrind, ms_print) can be used to visualise and
analyse these reports.

Memcheck can also produce XTree leak reports using the Callgrind file
format. For more details, see the user manual.

* ================== PLATFORM CHANGES =================

* ppc64: support for ISA 3.0B and various fixes for existing 3.0 support

* amd64: fixes for JIT failure problems on long AVX2 code blocks

* amd64 and x86: support for CET prefixes has been added

* arm32: a few missing ARMv8 instructions have been implemented

* arm64, mips64, mips32: an alternative implementation of Load-Linked and
Store-Conditional instructions has been added. This is to deal with
processor implementations that implement the LL/SC specifications strictly
and as a result cause Valgrind to hang in certain situations. The
alternative implementation is automatically enabled at startup, as required.
You can use the option --sim-hints=fallback-llsc to force-enable it if you
want.

* Support for OSX 10.12 has been improved.

* On Linux, clone handling has been improved to honour CLONE_VFORK that
involves a child stack. Note however that CLONE_VFORK | CLONE_VM is handled
like CLONE_VFORK (by removing CLONE_VM), so applications that depend on
CLONE_VM exact semantics will (still) not work.

* The TileGX/Linux port has been removed because it appears to be both unused
and unsupported.

* ==================== TOOL CHANGES ====================

* Memcheck:

- Memcheck should give fewer false positives when running optimised
Clang/LLVM generated code.

- Support for --xtree-memory and 'xtmemory [<filename>]>'.

- New command line options --xtree-leak=no|yes and --xtree-leak-file=<file>
to produce the end of execution leak report in a xtree callgrind format
file.

- New option 'xtleak' in the memcheck leak_check monitor command, to produce
the leak report in an xtree file.

* Massif:

- Support for --xtree-memory and 'xtmemory [<filename>]>'.

- For some workloads (typically, for big applications), Massif memory
consumption and CPU consumption has decreased significantly.

* Helgrind:

- Support for --xtree-memory and 'xtmemory [<filename>]>'.

- addition of client request VALGRIND_HG_GNAT_DEPENDENT_MASTER_JOIN, useful
for Ada gnat compiled applications.

* ==================== OTHER CHANGES ====================

* For Valgrind developers: in an outer/inner setup, the outer Valgrind will
append the inner guest stacktrace to the inner host stacktrace. This helps
to investigate the errors reported by the outer, when they are caused by the
inner guest program (such as an inner regtest). See README_DEVELOPERS for
more info.

* To allow fast detection of callgrind files by desktop environments and file
managers, the format was extended to have an optional first line that
uniquely identifies the format ("# callgrind format"). Callgrind creates
this line now, as does the new xtree functionality.

* File name template arguments (such as --log-file, --xtree-memory-file, ...)
have a new %n format letter that is replaced by a sequence number.

* "--version -v" now shows the SVN revision numbers from which Valgrind was
built.

* ==================== FIXED BUGS ====================

The following bugs have been fixed or resolved. Note that "n-i-bz"
stands for "not in bugzilla" -- that is, a bug that was reported to us
but never got a bugzilla entry. We encourage you to file bugs in
bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
than mailing the developers (or mailing lists) directly -- bugs that
are not entered into bugzilla tend to get forgotten about or ignored.

To see details of a given bug, visit
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
where XXXXXX is the bug number as listed below.

162848 --log-file output isn't split when a program forks
340777 Illegal instruction on mips (ar71xx)
341481 MIPS64: Iop_CmpNE32 triggers false warning on MIPS64 platforms
342040 Valgrind mishandles clone with CLONE_VFORK | CLONE_VM that clones
to a different stack.
344139 x86 stack-seg overrides, needed by the Wine people
344524 store conditional of guest applications always fail - observed on
Octeon3(MIPS)
348616 Wine/valgrind: noted but unhandled ioctl 0x5390 [..] (DVD_READ_STRUCT)
352395 Please provide SVN revision info in --version -v
352767 Wine/valgrind: noted but unhandled ioctl 0x5307 [..] (CDROMSTOP)
356374 Assertion 'DRD_(g_threadinfo)[tid].pt_threadid !=
INVALID_POSIX_THREADID' failed
358213 helgrind/drd bar_bad testcase hangs or crashes with new glibc pthread
barrier implementation
358697 valgrind.h: Some code remains even when defining NVALGRIND
359202 Add musl libc configure/compile
360415 amd64 instructions ADCX and ADOX are not implemented in VEX
== 372828 (vex amd64->IR: 0x66 0xF 0x3A 0x62 0x4A 0x10)
360429 unhandled ioctl 0x530d with no size/direction hints (CDROMREADMODE1)
362223 assertion failed when .valgrindrc is a directory instead of a file
367543 bt/btc/btr/bts x86/x86_64 instructions are poorly-handled wrt flags
367942 Segfault vgPlain_do_sys_sigaction (m_signals.c:1138)
368507 can't malloc chunks larger than about 34GB
368529 Android arm target link error, missing atexit and pthread_atfork
368863 WARNING: unhandled arm64-linux syscall: 100 (get_robust_list)
368865 WARNING: unhandled arm64-linux syscall: 272 (kcmp)
368868 disInstr(arm64): unhandled instruction 0xD53BE000 = cntfrq_el0 (ARMv8)
368917 WARNING: unhandled arm64-linux syscall: 218 (request_key)
368918 WARNING: unhandled arm64-linux syscall: 127 (sched_rr_get_interval)
368922 WARNING: unhandled arm64-linux syscall: 161 (sethostname)
368924 WARNING: unhandled arm64-linux syscall: 84 (sync_file_range)
368925 WARNING: unhandled arm64-linux syscall: 130 (tkill)
368926 WARNING: unhandled arm64-linux syscall: 97 (unshare)
369459 valgrind on arm64 violates the ARMv8 spec (ldxr/stxr)
370028 Reduce the number of compiler warnings on MIPS platforms
370635 arm64 missing syscall getcpu
371225 Fix order of timer_{gettime,getoverrun,settime} syscalls on arm64
371227 Clean AArch64 syscall table
371412 Rename wrap_sys_shmat to sys_shmat like other wrappers
371471 Valgrind complains about non legit memory leaks on placement new (C++)
371491 handleAddrOverrides() is [incorrect] when ASO prefix is used
371503 disInstr(arm64): unhandled instruction 0xF89F0000
371869 support '%' in symbol Z-encoding
371916 execution tree xtree concept
372120 c++ demangler demangles symbols which are not c++
372185 Support of valgrind on ARMv8 with 32 bit executable
372188 vex amd64->IR: 0x66 0xF 0x3A 0x62 0x4A 0x10 0x10 0x48 (PCMPxSTRx $0x10)
372195 Power PC, xxsel instruction is not always recognized.
372504 Hanging on exit_group
372600 process loops forever when fatal signals are arriving quickly
372794 LibVEX (arm32 front end): 'Assertion szBlg2 <= 3' failed
373046 Stacks registered by core are never deregistered
373069 memcheck/tests/leak_cpp_interior fails with GCC 5.1+
373086 Implement additional Xen hypercalls
373192 Calling posix_spawn in glibc 2.24 completely broken
373488 Support for fanotify API on ARM64 architecture
== 368864 WARNING: unhandled arm64-linux syscall: 262 (fanotify_init)
373555 Rename BBPTR to GSPTR as it denotes guest state pointer only
373938 const IRExpr arguments for matchIRExpr()
374719 some spelling fixes
374963 increase valgrind's load address to prevent mmap failure
375514 valgrind_get_tls_addr() does not work in case of static TLS
375772 +1 error in get_elf_symbol_info() when computing value of 'hi' address
for ML_(find_rx_mapping)()
375806 Test helgrind/tests/tc22_exit_w_lock fails with glibc 2.24
375839 Temporary storage exhausted, with long sequence of vfmadd231ps insns
== 377159 "vex: the `impossible' happened" still present
== 375150 Assertion 'tres.status == VexTransOK' failed
== 378068 valgrind crashes on AVX2 function in FFmpeg
376142 Segfaults on MIPS Cavium Octeon boards
376279 disInstr(arm64): unhandled instruction 0xD50320FF
376455 Solaris: unhandled syscall lgrpsys(180)
376518 Solaris: unhandled fast trap getlgrp(6)
376611 ppc64 and arm64 don't know about prlimit64 syscall
376729 PPC64, remove R2 from the clobber list
== 371668
376956 syswrap of SNDDRV and DRM_IOCTL_VERSION causing some addresses
to be wrongly marked as addressable
377066 Some Valgrind unit tests fail to compile on Ubuntu 16.10 with
PIE enabled by default
377376 memcheck/tests/linux/getregset fails with glibc2.24
377427 PPC64, lxv instruction failing on odd destination register
377478 PPC64: ISA 3.0 setup fixes
377698 Missing memory check for futex() uaddr arg for FUTEX_WAKE
and FUTEX_WAKE_BITSET, check only 4 args for FUTEX_WAKE_BITSET,
and 2 args for FUTEX_TRYLOCK_PI
377717 Fix massive space leak when reading compressed debuginfo sections
377891 Update Xen 4.6 domctl wrappers
377930 fcntl syscall wrapper is missing flock structure check
378524 libvexmultiarch_test regression on s390x and ppc64
378535 Valgrind reports INTERNAL ERROR in execve syscall wrapper
378673 Update libiberty demangler
378931 Add ISA 3.0B additional isnstructions, add OV32, CA32 setting support
379039 syscall wrapper for prctl(PR_SET_NAME) must not check more than 16 bytes
379094 Valgrind reports INTERNAL ERROR in rt_sigsuspend syscall wrapper
379371 UNKNOWN task message [id 3444, to mach_task_self(), reply 0x603]
(task_register_dyld_image_infos)
379372 UNKNOWN task message [id 3447, to mach_task_self(), reply 0x603]
(task_register_dyld_shared_cache_image_info)
379390 unhandled syscall: mach:70 (host_create_mach_voucher_trap)
379473 MIPS: add support for rdhwr cycle counter register
379504 remove TileGX/Linux port
379525 Support more x86 nop opcodes
379838 disAMode(x86): not an addr!
379703 PC ISA 3.0 fixes: stxvx, stxv, xscmpexpdp instructions
379890 arm: unhandled instruction: 0xEBAD 0x1B05 (sub.w fp, sp, r5, lsl #4)
379895 clock_gettime does not execute POST syscall wrapper
379925 PPC64, mtffs does not set the FPCC and C bits in the FPSCR correctly
379966 WARNING: unhandled amd64-linux syscall: 313 (finit_module)
380200 xtree generated callgrind files refer to files without directory name
380202 Assertion failure for cache line size (cls == 64) on aarch64.
380397 s390x: __GI_strcspn() replacement needed
n-i-bz Fix pub_tool_basics.h build issue with g++ 4.4.7.

(3.13.0.RC1: 2 June 2017, vex r3386, valgrind r16434)
(3.13.0.RC2: 9 June 2017, vex r3389, valgrind r16443)
(3.13.0: 14 June 2017, vex r3396, valgrind r16446)

Bug: N/A
Test: manual
Change-Id: Id4498a49f462c3689cbcb35c15f96a8c7e3cea17
/external/valgrind/include/vki/vki-linux.h
a0664b9ca67b594bd6f570a61d3301167a24750c 19-Apr-2017 Elliott Hughes <enh@google.com> Upgrade to valgrind 3.12.0.

Release 3.12.0 (20 October 2016)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

3.12.0 is a feature release with many improvements and the usual
collection of bug fixes.

This release supports X86/Linux, AMD64/Linux, ARM32/Linux,
ARM64/Linux, PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux,
MIPS32/Linux, MIPS64/Linux, ARM/Android, ARM64/Android,
MIPS32/Android, X86/Android, X86/Solaris, AMD64/Solaris, X86/MacOSX
10.10 and AMD64/MacOSX 10.10. There is also preliminary support for
X86/MacOSX 10.11/12, AMD64/MacOSX 10.11/12 and TILEGX/Linux.

* ================== PLATFORM CHANGES =================

* POWER: Support for ISA 3.0 has been added

* mips: support for O32 FPXX ABI has been added.
* mips: improved recognition of different processors
* mips: determination of page size now done at run time

* amd64: Partial support for AMD FMA4 instructions.

* arm, arm64: Support for v8 crypto and CRC instructions.

* Improvements and robustification of the Solaris port.

* Preliminary support for MacOS 10.12 (Sierra) has been added.

Whilst 3.12.0 continues to support the 32-bit x86 instruction set, we
would prefer users to migrate to 64-bit x86 (a.k.a amd64 or x86_64)
where possible. Valgrind's support for 32-bit x86 has stagnated in
recent years and has fallen far behind that for 64-bit x86
instructions. By contrast 64-bit x86 is well supported, up to and
including AVX2.

* ==================== TOOL CHANGES ====================

* Memcheck:

- Added meta mempool support for describing a custom allocator which:
- Auto-frees all chunks assuming that destroying a pool destroys all
objects in the pool
- Uses itself to allocate other memory blocks

- New flag --ignore-range-below-sp to ignore memory accesses below
the stack pointer, if you really have to. The related flag
--workaround-gcc296-bugs=yes is now deprecated. Use
--ignore-range-below-sp=1024-1 as a replacement.

* DRD:

- Improved thread startup time significantly on non-Linux platforms.

* DHAT

- Added collection of the metric "tot-blocks-allocd"

* ==================== OTHER CHANGES ====================

* Replacement/wrapping of malloc/new related functions is now done not just
for system libraries by default, but for any globally defined malloc/new
related function (both in shared libraries and statically linked alternative
malloc implementations). The dynamic (runtime) linker is excluded, though.
To only intercept malloc/new related functions in
system libraries use --soname-synonyms=somalloc=nouserintercepts (where
"nouserintercepts" can be any non-existing library name).
This new functionality is not implemented for MacOS X.

* The maximum number of callers in a suppression entry is now equal to
the maximum size for --num-callers (500).
Note that --gen-suppressions=yes|all similarly generates suppressions
containing up to --num-callers frames.

* New and modified GDB server monitor features:

- Valgrind's gdbserver now accepts the command 'catch syscall'.
Note that you must have GDB >= 7.11 to use 'catch syscall' with
gdbserver.

* New option --run-cxx-freeres=<yes|no> can be used to change whether
__gnu_cxx::__freeres() cleanup function is called or not. Default is
'yes'.

* Valgrind is able to read compressed debuginfo sections in two formats:
- zlib ELF gABI format with SHF_COMPRESSED flag (gcc option -gz=zlib)
- zlib GNU format with .zdebug sections (gcc option -gz=zlib-gnu)

* Modest JIT-cost improvements: the cost of instrumenting code blocks
for the most common use case (x86_64-linux, Memcheck) has been
reduced by 10%-15%.

* Improved performance for programs that do a lot of discarding of
instruction address ranges of 8KB or less.

* The C++ symbol demangler has been updated.

* More robustness against invalid syscall parameters on Linux.

* ==================== FIXED BUGS ====================

The following bugs have been fixed or resolved. Note that "n-i-bz"
stands for "not in bugzilla" -- that is, a bug that was reported to us
but never got a bugzilla entry. We encourage you to file bugs in
bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
than mailing the developers (or mailing lists) directly -- bugs that
are not entered into bugzilla tend to get forgotten about or ignored.

To see details of a given bug, visit
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
where XXXXXX is the bug number as listed below.

191069 Exiting due to signal not reported in XML output
199468 Suppressions: stack size limited to 25
while --num-callers allows more frames
212352 vex amd64 unhandled opc_aux = 0x 2, first_opcode == 0xDC (FCOM)
278744 cvtps2pd with redundant RexW
303877 valgrind doesn't support compressed debuginfo sections.
345307 Warning about "still reachable" memory when using libstdc++ from gcc 5
348345 Assertion fails for negative lineno
351282 V 3.10.1 MIPS softfloat build broken with GCC 4.9.3 / binutils 2.25.1
351692 Dumps created by valgrind are not readable by gdb (mips32 specific)
351804 Crash on generating suppressions for "printf" call on OS X 10.10
352197 mips: mmap2() not wrapped correctly for page size > 4096
353083 arm64 doesn't implement various xattr system calls
353084 arm64 doesn't support sigpending system call
353137 www: update info for Supported Platforms
353138 www: update "The Valgrind Developers" page
353370 don't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine
== 365325
== 357873
353384 amd64->IR: 0x66 0xF 0x3A 0x62 0xD1 0x62 (pcmpXstrX $0x62)
353398 WARNING: unhandled amd64-solaris syscall: 207
353660 XML in auxwhat tag not escaping reserved symbols properly
353680 s390x: Crash with certain glibc versions due to non-implemented TBEGIN
353727 amd64->IR: 0x66 0xF 0x3A 0x62 0xD1 0x72 (pcmpXstrX $0x72)
353802 ELF debug info reader confused with multiple .rodata sections
353891 Assert 'bad_scanned_addr < VG_ROUNDDN(start+len, sizeof(Addr))' failed
353917 unhandled amd64-solaris syscall fchdir(120)
353920 unhandled amd64-solaris syscall: 170
354274 arm: unhandled instruction: 0xEBAD 0x0AC1 (sub.w sl, sp, r1, lsl #3)
354392 unhandled amd64-solaris syscall: 171
354797 Vbit test does not include Iops for Power 8 instruction support
354883 tst->os_state.pthread - magic_delta assertion failure on OSX 10.11
== 361351
== 362920
== 366222
354933 Fix documentation of --kernel-variant=android-no-hw-tls option
355188 valgrind should intercept all malloc related global functions
355454 do not intercept malloc related symbols from the runtime linker
355455 stderr.exp of test cases wrapmalloc and wrapmallocstatic overconstrained
356044 Dwarf line info reader misinterprets is_stmt register
356112 mips: replace addi with addiu
356393 valgrind (vex) crashes because isZeroU happened
== 363497
== 364497
356676 arm64-linux: unhandled syscalls 125, 126 (sched_get_priority_max/min)
356678 arm64-linux: unhandled syscall 232 (mincore)
356817 valgrind.h triggers compiler errors on MSVC when defining NVALGRIND
356823 Unsupported ARM instruction: stlex
357059 x86/amd64: SSE cvtpi2ps with memory source does transition to MMX state
357338 Unhandled instruction for SHA instructions libcrypto Boring SSL
357673 crash if I try to run valgrind with a binary link with libcurl
357833 Setting RLIMIT_DATA to zero breaks with linux 4.5+
357871 pthread_spin_destroy not properly wrapped
357887 Calls to VG_(fclose) do not close the file descriptor
357932 amd64->IR: accept redundant REX prefixes for {minsd,maxsd} m128, xmm.
358030 support direct socket calls on x86 32bit (new in linux 4.3)
358478 drd/tests/std_thread.cpp doesn't build with GCC6
359133 Assertion 'eltSzB <= ddpa->poolSzB' failed
359181 Buffer Overflow during Demangling
359201 futex syscall "skips" argument 5 if op is FUTEX_WAIT_BITSET
359289 s390x: popcnt (B9E1) not implemented
359472 The Power PC vsubuqm instruction doesn't always give the correct result
359503 Add missing syscalls for aarch64 (arm64)
359645 "You need libc6-dbg" help message could be more helpful
359703 s390: wire up separate socketcalls system calls
359724 getsockname might crash - deref_UInt should call safe_to_deref
359733 amd64 implement ld.so strchr/index override like x86
359767 Valgrind does not support the IBM POWER ISA 3.0 instructions, part 1/5
359829 Power PC test suite none/tests/ppc64/test_isa_2_07.c uses
uninitialized data
359838 arm64: Unhandled instruction 0xD5033F5F (clrex)
359871 Incorrect mask handling in ppoll
359952 Unrecognised PCMPESTRM variants (0x70, 0x19)
360008 Contents of Power vr registers contents is not printed correctly when
the --vgdb-shadow-registers=yes option is used
360035 POWER PC instruction bcdadd and bcdsubtract generate result with
non-zero shadow bits
360378 arm64: Unhandled instruction 0x5E280844 (sha1h s4, s2)
360425 arm64 unsupported instruction ldpsw
== 364435
360519 none/tests/arm64/memory.vgtest might fail with newer gcc
360571 Error about the Android Runtime reading below the stack pointer on ARM
360574 Wrong parameter type for an ashmem ioctl() call on Android and ARM64
360749 kludge for multiple .rodata sections on Solaris no longer needed
360752 raise the number of reserved fds in m_main.c from 10 to 12
361207 Valgrind does not support the IBM POWER ISA 3.0 instructions, part 2/5
361226 s390x: risbgn (EC59) not implemented
361253 [s390x] ex_clone.c:42: undefined reference to `pthread_create'
361354 ppc64[le]: wire up separate socketcalls system calls
361615 Inconsistent termination for multithreaded process terminated by signal
361926 Unhandled Solaris syscall: sysfs(84)
362009 V dumps core on unimplemented functionality before threads are created
362329 Valgrind does not support the IBM POWER ISA 3.0 instructions, part 3/5
362894 missing (broken) support for wbit field on mtfsfi instruction (ppc64)
362935 [AsusWRT] Assertion 'sizeof(TTEntryC) <= 88' failed
362953 Request for an update to the Valgrind Developers page
363680 add renameat2() support
363705 arm64 missing syscall name_to_handle_at and open_by_handle_at
363714 ppc64 missing syscalls sync, waitid and name_to/open_by_handle_at
363858 Valgrind does not support the IBM POWER ISA 3.0 instructions, part 4/5
364058 clarify in manual limitations of array overruns detections
364413 pselect sycallwrapper mishandles NULL sigmask
364728 Power PC, missing support for several HW registers in
get_otrack_shadow_offset_wrk()
364948 Valgrind does not support the IBM POWER ISA 3.0 instructions, part 5/5
365273 Invalid write to stack location reported after signal handler runs
365912 ppc64BE segfault during jm-insns test (RELRO)
366079 FPXX Support for MIPS32 Valgrind
366138 Fix configure errors out when using Xcode 8 (clang 8.0.0)
366344 Multiple unhandled instruction for Aarch64
(0x0EE0E020, 0x1AC15800, 0x4E284801, 0x5E040023, 0x5E056060)
367995 Integration of memcheck with custom memory allocator
368120 x86_linux asm _start functions do not keep 16-byte aligned stack pointer
368412 False positive result for altivec capability check
368416 Add tc06_two_races_xml.exp output for ppc64
368419 Perf Events ioctls not implemented
368461 mmapunmap test fails on ppc64
368823 run_a_thread_NORETURN assembly code typo for VGP_arm64_linux target
369000 AMD64 fma4 instructions unsupported.
369169 ppc64 fails jm_int_isa_2_07 test
369175 jm_vec_isa_2_07 test crashes on ppc64
369209 valgrind loops and eats up all memory if cwd doesn't exist.
369356 pre_mem_read_sockaddr syscall wrapper can crash with bad sockaddr
369359 msghdr_foreachfield can crash when handling bad iovec
369360 Bad sigprocmask old or new sets can crash valgrind
369361 vmsplice syscall wrapper crashes on bad iovec
369362 Bad sigaction arguments crash valgrind
369383 x86 sys_modify_ldt wrapper crashes on bad ptr
369402 Bad set/get_thread_area pointer crashes valgrind
369441 bad lvec argument crashes process_vm_readv/writev syscall wrappers
369446 valgrind crashes on unknown fcntl command
369439 S390x: Unhandled insns RISBLG/RISBHG and LDE/LDER
369468 Remove quadratic metapool algorithm using VG_(HT_remove_at_Iter)
370265 ISA 3.0 HW cap stuff needs updating
371128 BCD add and subtract instructions on Power BE in 32-bit mode do not work
n-i-bz Fix incorrect (or infinite loop) unwind on RHEL7 x86 and amd64
n-i-bz massif --pages-as-heap=yes does not report peak caused by mmap+munmap
n-i-bz false positive leaks due to aspacemgr merging heap & non heap segments
n-i-bz Fix ppoll_alarm exclusion on OS X
n-i-bz Document brk segment limitation, reference manual in limit reached msg.
n-i-bz Fix clobber list in none/tests/amd64/xacq_xrel.c [valgrind r15737]
n-i-bz Bump allowed shift value for "add.w reg, sp, reg, lsl #N" [vex r3206]
n-i-bz amd64: memcheck false positive with shr %edx
n-i-bz arm3: Allow early writeback of SP base register in "strd rD, [sp, #-16]"
n-i-bz ppc: Fix two cases of PPCAvFpOp vs PPCFpOp enum confusion
n-i-bz arm: Fix incorrect register-number constraint check for LDAEX{,B,H,D}
n-i-bz DHAT: added collection of the metric "tot-blocks-allocd"

(3.12.0.RC1: 20 October 2016, vex r3282, valgrind r16094)
(3.12.0.RC2: 20 October 2016, vex r3282, valgrind r16096)
(3.12.0: 21 October 2016, vex r3282, valgrind r16098)

Bug: http://b/37470713
Bug: http://b/29251682
Test: ran runtests-arm(64)?.sh and the bug reporter's specific binary (32- and 64-bit)
Change-Id: I43ccbea946d89fc4ae9f355181ac5061d6ce4453
/external/valgrind/include/vki/vki-linux.h
28d542d30a4d3a5c7166084294214f0a7e9c0dcf 19-Oct-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix inconsistent use of vki_ prefixes for struct vki_ifreq.
No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15713 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b3a1e4bffbdbbf38304f216af405009868f43628 21-Aug-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates, to include 2015. No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15577 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
55895379b090d4db5d39013e1a9859714ac3e0d8 14-Aug-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> 345338 - TIOCGSERIAL and TIOCSSERIAL ioctl support on Linux
Patch from Martin Ling (martin-kdebugs@earth.li)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15542 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a0107d6bc77bc91a31d5b6292adc41566aec16f7 14-Aug-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Bug 349034 - Add Lustre ioctls LL_IOC_GROUP_LOCK and LL_IOC_GROUP_UNLOCK
Patch from Frank Zago (fzago@cray.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15541 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
f18210b2964e153d5e1c30310599d186e3963670 13-Aug-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Bug 339563 - The DVB demux DMX_STOP ioctl doesn't have a wrapper.
Patch from mchehab@infradead.org (Mauro Carvalho Chehab).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15537 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
6796d9ea157eaf06d44eafa000e2afabf1329e6c 28-Jun-2015 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> xen: Drop bogus port field from vki_xen_ioctl_evtchn_bind_virq

This ioctl argument struct has never had such a member.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15386 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
1a6714bc63f3b088b5f42121d0583e985e9dcf0b 12-Jun-2015 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> add KVM_S390_MEMOP ioctl handling


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15334 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
629fd92f98f4dc6db008fa7b573eb67e921bc7d7 05-Jun-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Bug 348102 - Patch updating v4l2 API support (edit)
Patch from Hans Verkuil (hverkuil@xs4all.nl)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15313 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
2010b1547947c36b93e96fdad03518b95c376103 21-Apr-2015 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for LL_IOC_PATH2FID and LL_IOC_GETPARENT Lustre ioctls

From: Frank Zago <fzago@cray.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15123 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
112711afefcfcd43680c7c4aa8d38ef180e8811e 10-Apr-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add a port to Linux/TileGx. Zhi-Gang Liu (zliu@tilera.com)
Valgrind aspects, to match vex r3124.

See bug 339778 - Linux/TileGx platform support to Valgrind



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15080 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
695dde81fe9ba126d9a1a57cb38dcccf95426e3e 06-Apr-2015 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> The linux launcher showed some odd behaviour. When given a shell script
named 'now' with this contents:

#!
/bin/date

the platform selection logic does this:

--11196:1:launcher no tool requested, defaulting to 'memcheck'
--11196:2:launcher selecting platform for './now'
--11196:2:launcher selecting platform for './now'
--11196:2:launcher opened './now'
--11196:2:launcher read 13 bytes from './now'
--11196:2:launcher selecting platform for ''
--11196:2:launcher selecting platform for '/home/florian/bin/'
--11196:2:launcher opened '/home/florian/bin/'
--11196:2:launcher selected platform 'unknown'
--11196:1:launcher no platform detected, defaulting platform to 'amd64-linux'

That is not quite right. Instead the platform should be determined by
examining the default shell.
Additionally, define VKI_BINPRM_BUF_SIZE because on linux only that many
characters are considered on a #! line. C.f. <linux>/fs/binfmt_script.c
m_ume/* needs to be adapted as well but that is a different patch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15068 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b97e44b130eb2e038747ba61489d0cb67cbfa020 10-Mar-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> PRE(sys_prctl): handle PR_SET_SECCOMP.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14994 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
e3e61c5357ab7f89520e9b19c63618478a0fb33c 25-Feb-2015 mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9> Bug #344318 socketcall should wrap recvmmsg and sendmmsg

Some architectures, e.g. s390, don't have dedicated recvmmsg and sendmmsg
system calls, but use the socketcall multiplexing system call with
SYS_RECVMMSG or SYS_SENDMMSG (just like the accept4 systemcall can also
be called through socketcall). Create separate helpers for recvmmsg and
sendmmsg helpers that can be used by either the direct syscall or the
socket call.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14964 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
79896d2c6ab80eed8197a122d53c4e3a23ce3e13 18-Feb-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Correctly handle prctl(VKI_PR_SET_PTRACER, ..) so as to avoid false
positives (eg when running Wine).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14946 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
ccc9bb803ef73bf409402ef8faa6b3d299e8d89d 05-Feb-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update to track v4l2 API for kernel version 3.19 changes. Patch from
Hans Verkuil (hverkuil@xs4all.nl). Fixes #343069.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14909 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
f6f25a5aae66908dd26375c8d6a0715988cb6406 05-Feb-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add wrapper support for I2C_SMBUS ioctls. Patch from
super.firetwister@gmail.com. Fixes #342603.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14908 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
98a400718840916b43dbe95efaf74957dd0c3604 23-Jan-2015 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Write proper wrappers for ioctls ION_IOC_ALLOC, ION_IOC_MAP and
ION_IOC_IMPORT, and add a wrapper for SYNC_IOC_MERGE.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14883 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
1399481803e6031ceff0324641b4c52aab0ff23f 01-Nov-2014 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> fix 338995 shmat with hugepages (SHM_HUGETLB) fails with EINVAL

Bug is not really fixed, instead the SHM_HUGETLB flag is ignored.
Note that it is not straightforward to properly fix this,
as this implies either to learn aspacemgr what huge pages are.
Also, the trick used in the fix for 333051 cannot be used easily,
because the SHM_HUGETLB flag is given in shmget, while the mmap
is done in shmat.

So, the easiest is to just ignore the SHM_HUGETLB flag.

SHM_HUGETLB is supposed to only give a performance impact.
Ignoring it should be benign.
Theoretically, the caller might expect a sucessful shmget(SHM_HUGETLB)+shmat
to give pages aligned on e.g. 1MB.
In this case, bad luck, the program will misbehave under valgrind.
To warn of this, a warning is given (once) when SHM_HUGETLB is seen.

The map_unmap.c test has been restructured somewaht to allow
TEST_SHM_HUGETLB to be tested independently (or not) of the TEST_MAP_HUGETLB.

Note also that by default, testing MAP_HUGETLB and SHM_HUGETLB
is disabled as usually, huge pages are not enabled.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14683 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a9ccca307500096b081f7da02f0c9892ed4edaa0 21-Oct-2014 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for ioctl(fd, TIOCSIG, signal_number) which used
to issue a false complaint. Fixes BZ #339706
Source patch by David Herrmann (dh.herrmann@gmail.com).
Testcase by myself.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14646 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9e431f067b686814d984cddbd9b0f379083ae5b2 26-Sep-2014 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> implement KVM_KVMCLOCK_CTRL. Interestingly, the kernel does not check
the parameter. QEMU does pass 0 nevertheless as parameter.

bugzilla: [Bug 339424] Full support of KVM ioctl


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14569 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
01385054ce93f05c0c027f331b6bcfc9e82c1a05 05-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Improved argument checking for sys_kcmp. Derived from patch from
Christian Borntraeger. Followup to r14451. Pertains to #338106.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14473 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
66fbb2171b82d5c793cef27144ea559e613583fc 04-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Patch adding support for V4L2/media ioctls. Patch from Hans Verkuil
(hverkuil@xs4all.nl). Fixes #338023.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14455 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
12d5abcd25f466876adff2d50139571a284d1181 04-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add Xen 4.4 evtchn ioctl wrappers. Patch from Antony Saba
(antony.saba@fireeye.com). Second of two patches from #337740.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14454 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
4450a0efab6e08dc7e40a4dfb5dda7214edb557d 03-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Improvements for Android:

* All Linux targets: add minimal ioctl support for the ION_IOC family

* Android targets: change proprietary-ioctl support for GPUs from
being a build-time #define kludge to being controlled by --kernel-variant,
as it should be. Update documentation accordingly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14440 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
5a5031e5a0124f504c8e284ff9e591a55314ce07 02-Sep-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for some more tun/tap ioctls. BZ#315952.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14432 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
424385e9a37ece59a49c102d65c043b58b260469 01-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add a missing VKI_ prefix. No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14417 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
7b634085c095fbb2c9d2c2470d81aa3bd684a115 01-Sep-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Rename a bunch of __unused fields to __unused0, since some Android
NDK's appear to #define __unused to __attribute__((__unused__)),
causing the build to fail in bizarre ways.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14412 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
495c6563114d60a67caa5824a03dc4892cc86adb 29-Aug-2014 mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9> Use getdents64 syscall on linux.

getdents has been deprecated since linux 2.4 and newer arches (arm64)
might no longer provide the getdents syscall. Use getdents64 for reading
the /proc/self/fd/ dir so --track-fds=yes works reliable on all arches.
Without this the none/tests/fdleak*vgtest might fail.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14384 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
cae0cc22b83ffb260ee8379e92099c5a701944cb 08-Aug-2014 carll <carll@a5019735-40e9-0310-863c-91ae7b9d1cf9> This commit is for Bugzilla 334384. The Bugzilla contains patch 1 of 3
to add PPC64 LE support. The other two patches can be found in Bugzillas
334834 and 334836. The commit does not have a VEX commit associated with it.

POWER PC, add initial Little Endian support

The IBM POWER processor now supports both Big Endian and Little Endian.
This patch renames the #defines with the name ppc64 to ppc64be for the BE
specific code. This patch adds the Little Endian #define ppc64le to the

Additionally, a few functions are renamed to remove BE from the name if the
function is used by BE and LE. Functions that are BE specific have BE put
in the name.

The goals of this patch is to make sure #defines, function names and
variables consistently use PPC64/ppc64 if it refers to BE and LE,
PPC64BE/ppc64be if it is specific to BE, PPC64LE/ppc64le if it is LE
specific. The patch does not break the code for PPC64 Big Endian.

The test files memcheck/tests/atomic_incs.c, tests/power_insn_available.c
and tests/power_insn_available.c are also updated to the new #define
definition for PPC64 BE.

Signed-off-by: Carl Love <carll@us.ibm.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14238 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
19ce5d572999bbccb6e380cf8bafb50d880c91f4 06-Aug-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> pre_mem_read_sockaddr: properly handle the NETLINK address family
rather than throwing to the default case. This stops Memcheck
reporting false positives for the NETLINK case.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14237 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
c6097323a02cbe877271d952e13d1819a4658eb3 05-Aug-2014 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> add support for VKI_BLKDISCARDZEROES

this is used in some newer QEMU versions and other tools


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14235 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
1fa9ee82d22ad4f1e9d156b61ebd8c25ffcf57e9 05-Aug-2014 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Linux: Add support for Lustre FID2PATH ioctl (#331829)

This is a modified version of a patch provided by Frank Zago (fzago@cray.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14233 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
abc1111b51c4241de88b00f0a3eb3413310e92c5 27-Jun-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for various SIOCETHTOOL operations. BZ#303536.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14114 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9b15043445d4c42486e2e14be27bade594f9d89d 26-Jun-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Implement various SNDRV_CTL_xxx ioctls.

Patch from Ivan Sorokin via BZ#334936.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14111 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
5cc73ec07a598c29179121d27284e68f3c7b070a 26-Jun-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle the HCIGETDEVLIST ioctl.

Based on patch from Tomasz Nowak via BZ#335034.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14109 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
55d05386398b4664b771ff249142eea52cba9538 26-Jun-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the SG_IO ioctl.

Patch from Daniel Kamil Kozar via BZ#333817.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14107 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
96fb2c5561e2c09205118eb06324e1e754072e3a 26-Jun-2014 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle the CDROM_DISC_STATUS ioctl.

Patch from Daniel Kamil Kozar via BZ#333788.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14106 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0c0793c2f74526a0fd8e25db28149a5eb94fd62a 04-Mar-2014 dejanj <dejanj@a5019735-40e9-0310-863c-91ae7b9d1cf9> mips32/mips64: Fix the problem with VKI_ENOSYS and VKI_EOVERFLOW for mips32/64.

VKI_ENOSYS and VKI_EOVERFLOW don't have the same generic values for mips32/64.
We need to define these values for every Linux arch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13852 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
40bb783f26be487ef1ba1abe60eed500abb204ce 24-Feb-2014 mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9> BZ#331380 Syscall param timer_create(evp) points to uninitialised byte(s)

Only check struct sigevent actually used by the kernel. If SIGEV_THREAD_ID
is set check sigev_notify_thread_id, otherwise don't.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13835 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
f0c1250e324f6684757c6a15545366447ef1d64f 12-Jan-2014 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for ARMv8 AArch64 (the 64 bit ARM instruction set).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13770 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9c6b05db45362b1afb981aa8298ab12ab4027b1a 27-Dec-2013 dejanj <dejanj@a5019735-40e9-0310-863c-91ae7b9d1cf9> mips32: Adding mips32/Android support to Valgrind.

Necessary changes to Valgrind to support mips32 on Android.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13767 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0f157ddb404bcde7815a1c5bf2d7e41c114f3d73 18-Oct-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates (20XY-2012 ==> 20XY-2013)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a52c83526a1bb0a4e3223e56ddb096258fc5e422 18-Jul-2013 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> The FIOCLEX and FIONCLEX ioctls are architecture specific.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13464 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
8f420f1a5d392c461def7e5578d84fc39029dbc6 18-Jul-2013 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Socket option constants are architecture specific.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13463 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0c7ff33fc280d3ad38c1930d0fee742bf0eec75e 17-Jul-2013 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle FIOCLEX and FIONCLEX ioctls. Patch from Ben Noordhuis. BZ#305170.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13462 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
70f71aa602f34712765a4b97c16dae42e0f32d1b 17-Jul-2013 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle setsockopt(SOL_SOCKET, SO_ATTACH_FILTER) better. Based
on patch from Guy Harris on BZ#318203.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13461 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
5d616dfbb8439dfd51a40ddf1dba970938baa1eb 02-Jul-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge r13421:HEAD from branches/DISRV. This merges the debuginfo-server
stuff into the trunk.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13440 a5019735-40e9-0310-863c-91ae7b9d1cf9
ada5ad79e5d8ecf47838319a46ea4671079e6291 22-May-2013 mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9> Support Linux kernel AF_BLUETOOTH for bind().

Bug #320116. sockaddr_rc might contain some padding which might not be
initialized. Explicitly check the sockaddr_rc fields are set. That also
produces better diagnostics about which field is unitialized.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13404 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
e52a8abd9924556c77b918fee96ace12ff905830 04-Apr-2013 petarj <petarj@a5019735-40e9-0310-863c-91ae7b9d1cf9> mips: add different value for SOCK_STREAM

MIPS uses different values for socket types.
This is protected by ARCH_HAS_SOCKET_TYPES in Linux kernel and we introduce
it here too. This is important for log-socket feature, and it resolves the
issue reported in https://bugs.kde.org/show_bug.cgi?id=313267#c21.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13359 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
f9e5b5e2833d5a24224f54485e7b06bdc01b42e6 03-Mar-2013 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Implement the name_to_handle_at system call for x86 and amd64.
Based on patch from Asmadeus to fix BZ#308930.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13304 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
e5a61e1b5f54862bb32c91aa71c002efe2edbf10 01-Mar-2013 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> wire up 2 vhost ioctls. The kernel does not use any parameter


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13298 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
dfe0dae2072bdcc2122414880fcd4102a89feac1 01-Mar-2013 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> initial tun/tap ioctls.
TUNSETIFF/TUNGETIFF/TUNSETOFFLOAD. See 315952.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13297 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
4df0bfc0614379192c780c944415dc420d9cfe8e 28-Feb-2013 petarj <petarj@a5019735-40e9-0310-863c-91ae7b9d1cf9> mips: adding MIPS64LE support to Valgrind

Necessary changes to Valgrind to support MIPS64LE on Linux.
Minor cleanup/style changes embedded in the patch as well.
The change corresponds to r2687 in VEX.
Patch written by Dejan Jevtic and Petar Jovanovic.

More information about this issue:
https://bugs.kde.org/show_bug.cgi?id=313267


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13292 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9f2a339eb4e959a5f0cda160e2187dc93b337874 14-Feb-2013 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the Linux ioctl IB_USER_MAD_ENABLE_PKEY

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13287 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0e6d05e1f8a1d5db8a4e2a67095b235d832f00f2 09-Nov-2012 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> add BLKPBSZGET ioctl


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13117 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
e48a444c9dfdf8083da562e87521c54876f8edc3 08-Nov-2012 cborntra <cborntra@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
/external/valgrind/include/vki/vki-linux.h
51e61da70d98443ae4008c2e3bb82add77d9c15c 23-Oct-2012 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Remove build dependency on Xen header files - closes #308495

From: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13081 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0ab84fe82d1e25c2e0544d08826df42caa44ded1 09-Sep-2012 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> valgrind: Support Xen toolstack process ioctls

From: Ian Campbell <Ian.Campbell@citrix.com>

Under Xen the toolstack is responsible for managing the domains in
the system, e.g. creating, destroying, and otherwise manipulating
them.

To do this it uses a number of ioctls on the /proc/xen/privcmd
device. Most of these (the MMAPBATCH ones) simply set things up such
that a subsequenct mmap call will map the desired guest memory. Since
valgrind has no way of knowing what the memory contains we assume
that it is all initialised (to do otherwise would require valgrind to
be observing the complete state of the system and not just the given
process).

The most interesting ioctl is XEN_IOCTL_PRIVCMD_HYPERCALL which
allows the toolstack to make arbitrary hypercalls. Although the
mechanism here is specific to the OS of the guest running the
toolstack the hypercalls themselves are defined solely by the
hypervisor. Therefore I have split support for this ioctl into a part
in syswrap-linux.c which handles the ioctl itself and passes things
onto a new syswrap-xen.c which handles the specifics of the
hypercalls themselves. Porting this to another OS should just be a
matter of wiring up syswrap-$OS.c to decode the ioctl and call into
syswrap-xen.c. In the future we may want to split this into
syswrap-$ARCH-xen.c but for now this is x86 only.

The hypercall coverage here is pretty small but is enough to get
reasonable(-ish) results out of the xl toolstack when listing,
creating and destroying domains.

One issue is that the hypercalls which are exlusively used by the
toolstacks (as opposed to those used by guest operating systems) are
not considered a stable ABI, since the hypervisor and the lowlevel
tools are considered a matched pair. This covers the sysctl and
domctl hypercalls which are a fairly large chunk of the support
here. I'm not sure how to solve this without invoking a massive
amount of duplication. Right now this targets the Xen unstable
interface (which will shortly be released as Xen 4.2), perhaps I can
get away with deferring this problem until the first change .

On the plus side the vast majority of hypercalls are not of interest
to the toolstack (they are used by guests) so we can get away without
implementing them.

Note: a hypercall only reads as many words from the ioctl arg
struct as there are actual arguments to that hypercall and the
toolstack only initialises the arguments which are used. However
there is no space in the DEFN_PRE_TEMPLATE prototype to allow this to
be communicated from syswrap-xen.c back to syswrap-linux.c. Since a
hypercall can have at most 5 arguments I have hackily stolen ARG8 for
this purpose.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12963 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
03f8d3fc25f5a45c5826259d1b33b7f310117279 05-Aug-2012 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates to include 2012.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
5d5dd8e6b7ff782fc89f5b96cecf04839742882b 05-Aug-2012 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> 301265 - add x86 support to Android build

Patch by Dragos Tatulea.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12835 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b6bf12c058e1036a4f938f8a0281c3a918835b22 13-Jul-2012 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add ioctl wrappers for "Linux user input device". Fixes #296229.
(Chase Douglas, chase.douglas@canonical.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12737 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a7b9dfccad4200b28766af22e976980c06370430 11-Jul-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the SIOCSHWTSTAMP ioctl, based on a patch
from Arseny Solokha. Fixes BZ#296792.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12730 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
3fc992932858b87669c2588a327d397e276f72ca 11-Jul-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the CDROM_GET_CAPABILITY ioctl based on patch
from Nick Black. Fixes BZ#302827.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12726 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
5db15403e889d4db339b342bc2a824ef0bfaa654 07-Jun-2012 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
mips-valgrind@rt-rk.com, Bug 270777.

Valgrind: changes to existing files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12616 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
65bdbe43c02a3eb95a9bda4f82a5a5b61e64b296 23-May-2012 cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9> add some intial kvm ioctls (low hanging fruits). This gets rid of some valgrind
warnings regarding KVM ioctl without a length/direction specifier.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12578 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
8236fe6f256ea0e078a1a458a4690eec10b9a2c7 07-Mar-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the HCIINQUIRY ioctl.
Patch from Andrew Brampton to fix BZ#283961.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12421 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
d543d742b81199f0a633f872a64d122cc2cd2427 07-Mar-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the I2C_RDWR ioctl.
Patch from arnaud mouiche to fix BZ#286261.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12420 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a4991237861dd834a58620b6a9eeca0e6e843f24 10-Feb-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the sendmmsg and recvmmsg system calls. Fixes BZ#277779.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12376 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
8758e70558926c9fa640de885df57c5cbbbbefec 10-Feb-2012 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for some SCSI ioctls. Patch from Jakub Jelinek on BZ#292627.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12375 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
59451647ad0829e0ffae02db4d20baeeff2e3239 24-Dec-2011 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Beef up VG_(strerror) to provide correct messages for the
errno codes in asm-generic/errno-base.h (on linux).
The error strings were obtained by calling strerror natively in
Linux.
Extend vki-linux.h accordingly. vki-darwin.h already had
those errno codes.
Add testcase. This fixes #287858.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12316 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
ec062e8d96a361af9905b5447027819dfbfee01a 23-Oct-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update all copyright dates, from 20xy-2010 to 20xy-2011.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
d42e873c77b3b42a0c2b464569b6513836c565c9 07-Oct-2011 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> include/vki/vki-linux.h: Remove __attribute_const__ definition since it
isn't used anywhere inside the Valgrind project.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12111 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a3e7a48d5767431328115ee6fa05ce7855830aa9 27-Sep-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Android: add wrappers for ashmem and binder ioctls. From the AOSP
port of Valgrind.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12059 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
fca8f5fadcbecf5f69e268f9c7393d27944fcd7a 15-Aug-2011 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for FBIOPUT_VSCREENINFO and FBIOPAN_DISPLAY ioctls.

Patch from Pauli Nieminen <ext-pauli.nieminen@nokia.com> on #263648.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11980 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
6bf71ef1f168feb8e014ce2d7c63594eb4a4bc1b 10-Aug-2011 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the FIOQSIZE ioctl. Fixes #270320.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11963 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
46d02abf94a41586ef84aebf974db51a470e10da 08-Jun-2011 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for prlimit64 on x86 and amd64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11806 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
c8232f94b88c0b9ea62399fa5abe5a5a34d35c40 08-Jun-2011 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> It seems that the perf_counter_open system call was renamed to
perf_event_open some time after we added it, so correct the name
wherever it appears to match the current kernel source.

Also fixup the PRE handler to do the check correctly, using the
size field of the structure to work out how much data there is.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11804 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
551fe9342240a22f66f91cd10d9a73c6c590bece 18-Apr-2011 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Linux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards <bradh@frogmouth.net>).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11702 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b5b87408c0c99f9f6938d8cd921e2a5f420577c4 07-Mar-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add a port to IBM z/Architecture (s390x) running Linux -- Valgrind
side components. (Florian Krohm <britzel@acm.org> and Christian
Borntraeger <borntraeger@de.ibm.com>). Fixes #243404.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11604 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
60457093d30b23ac2531682205ab0bd9a5aae2ed 06-Oct-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Make client sys_shmat work properly on arm-linux by taking into
account rounding requirements to SHMLBA. Modified version of a patch
by Kirill Batuzov, batuzovk@ispras.ru. This fixes the main bug in
#222545. Temporarily breaks the build on all other platforms though.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11399 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b23d50521d681aac7a104cc2abb37efcc4e96ccd 02-Sep-2010 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for F_DUPFD_CLOEXEC. Fixes #238696.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11316 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
07b168da387c8cf6e250fa042fc93dcc80e32752 15-Jun-2010 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Reimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
compiler warning on PPC when it shouldn't.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11180 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0ee313efc43e3e6ed6bfedbf211769b07dffbc65 07-May-2010 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for some EVIO ioctls. These are a bit abnormal because
the length part of the ioctl is not fixed so they are essentially
families of ioctls.

Based on patch from Peter Korsgaard. Fixes #235642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11124 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9eecbbb9a9cbbd30b903c09a9e04d8efc20bda33 03-May-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates to 2010.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
472a34b16c3703e8d3adcb12abd194e20a021963 23-Feb-2010 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the getcpu system call on x86, ppc32 and ppc64. There
is no support for amd64 because there is no getcpu system call on that
platform - it is always done as a vsyscall in user space.

Based on patch from Aleksander Salwa. Closes #223758.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11054 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
55703dfaee1f046e2f038b65592387afb0187967 18-Feb-2010 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix up a few issues with OSS ioctls. Fixes #227325.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11050 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
59570ffbe31930ab4d678754daaeec0715117a3d 01-Jan-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge from branches/ARM, all parts of the ARM-Linux port except for
the changes to do with reading and using ELF and DWARF3 info.
This breaks all targets except amd64-linux and x86-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10982 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
e1c1a24e738b2a1d13f397e9501043914c1643f1 21-Dec-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle adjtimex being called in adjtime mode correctly. Closes #219538.
Validate the constant field with ADJ_TAI is used in an adjtimex call.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10969 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
710f7cb43578a9b23a11aa7f9cfaea0311bc5ad9 25-Nov-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for accept4 system call based on patch
from Dodji Seketeli. Part fix for #215973.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10955 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9ceaa9781f4886e8f6a4309e19d0cbaeb7616714 24-Nov-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Re-enable old support for adjtimex system call based on patch
from Dodji Seketeli. Part fix for #215973.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10948 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9c85af75f40edc77bc6492e08f0fd2567147fd14 28-Oct-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle some extra aio opcodes in io_submit and io_getevents.
Based on patch from Gabor Gomas. Fixes #209807.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10918 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
3fbcceef22610e2b0b7eec05b5f612c9b22b2cdc 27-Oct-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for the perf_counter_open system call. Fixes #211498.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10907 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
aedcc7aa6015debd6ca554971f2e65488397661a 29-Jul-2009 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Improve futex system call support. Patch from BZ#201757 which I have
attempted to cross check against current kernel code. Reading the
futex system call code mostly just made my head hurt however...


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10656 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
cf3bd97b427b5de4cf7e02d3ae52e53537eb4a7f 14-Jul-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Some ioctls don't look at ARG3 at all. Based on patches from Clemens
Ladisch. Fixes bug 159501.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10441 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
6e10c6c7c1e2153aa41e9ae8f14f2ef68b969f7b 10-Jun-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix URB ioctl handling. Patch from Hector Martin (bug 191095).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10286 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
0660567477bcf5b7e323de8d2e68dc5a9cd7334f 10-Jun-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle another Linux ioctl. Patch from Jay Foad.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10284 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9f207460d70d38c46c9e81996a3dcdf90961c6db 10-Mar-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Updated copyright years.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9344 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9b27b82dac450baac59c4f8d1cd3589bedead53c 05-Nov-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add ioctl wrappers for Linux wireless extensions version 22.
Patch from Gwenael Lambrouin. Fixes #159452.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8734 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
85b1ac7d3ba74ad66e975a0bfd8b1cb9a9d06bb9 14-May-2008 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Added CLOCK_* definitions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8071 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
4d474d086188fd1f29fa97dbd84d8ea2e589a9b8 11-Feb-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates ("200X-2007" --> "200X-2008").


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
497c69e7365352c91422a41583cf3bb5cacc1de1 17-Nov-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for private futexes (whatever they might be). Patch from
Eric Dumazet. Fixes #146781.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7169 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
7f4d7e42a880cd0872f93f5178a723beb56941a4 07-Mar-2007 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for linux key management system calls.
Based on patch from Ezra Peisach <epeisach@bu.edu>.
Fixes bug #139300.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6632 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
d5df125b895c5d5f31857c52dafa3cdea79ea05d 07-Mar-2007 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for some I2C ioctls.
Based on patch from Jean Delvare <khali@linux-fr.org>.
Fixes bug #142186.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6631 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
b807a78ac64d06eb04977044035d665d8a3c4f68 07-Mar-2007 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Handle some additional ptrace reason codes. Based on a patch
from Magnus Vesterlund <magnus_vesterlund@hotmail.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6630 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
9ebd6e0c607fa30301b1325874eb8de871c21cc5 08-Jan-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6488 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
d7cf487123e934a38c6f3e22a40aebf5f00d55ff 18-Dec-2006 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add support for some USB ioctls. Based on patches from Jon Burgess and
Marcus Meissner in bugs #136059 and #138896.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6411 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
a39ebc8e9f7e1b2cdee6c263a3898677a3296e56 18-Dec-2006 tom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9> Improve prctl support - based on patch from Eric Pouech in bug #138627.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6410 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h
4cfea4f9480393ed6799db463b2e0fb8865a1a2f 14-Oct-2006 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Create a new module, m_vki, and move all knowledge about the kernel
interface, except for the syscall numbers, into that. Mostly this
means moving include/vki-*.h to include/vki/vki-*.h.

include/pub_tool_basics.h previously dragged in the entire kernel
interface. I've done away with that, so that modules which need to
see the kernel interface now have to include pub_{core,tool}_vki.h
explicitly. This is why there are many modified .c files -- they have
all acquired an extra #include line.

This certainly breaks all platforms except x86. Will fix shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6225 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/include/vki/vki-linux.h