Commit Graph

11833 Commits

Author SHA1 Message Date
Bart Van Assche
04c609b998 xen: implement VKI_XEN_DOMCTL_irq_permission
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15375
2015-06-28 16:42:38 +00:00
Bart Van Assche
278a3d1df5 xen: support for XEN_DOMCTL_iomem_permission
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15374
2015-06-28 16:42:05 +00:00
Bart Van Assche
e93aa3706d xen: Handle XEN_DOMCTL_{test_assign,assign,deassign}_device
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15373
2015-06-28 16:41:06 +00:00
Bart Van Assche
3fc699dda3 xen: Handle XEN_DOMCTL_SHADOW_OP_{GET,SET}_ALLOCATION
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15372
2015-06-28 16:39:47 +00:00
Bart Van Assche
8269099b13 xen: syswrap XEN_DOMCTL_pin_mem_cacheattr
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15371
2015-06-28 16:38:40 +00:00
Bart Van Assche
10d6d0a7ad xen: syswrap XEN_DOMCTL_[gs]et_vcpu_msrs
The XEN_DOMCTL_[gs]et_vcpu_msrs work simiarly to the other get/set pairs,
taking a vcpu, buffer and size.  A query with a buffer of NULL is a request
for the maximum size.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15370
2015-06-28 16:37:54 +00:00
Bart Van Assche
7806d251be xen: syswrap XEN_DOMCTL_[gs]et_ext_vcpustate
The VKI_XEN_DOMCTL_[gs]et_ext_vcpucontext hypercalls have had interface
changes, but are largly just extentions of the existing structure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15369
2015-06-28 16:36:30 +00:00
Bart Van Assche
26c53cda38 xen: syswrap XEN_DOMCTL_setvcpuextstate
XEN_DOMCTL_setvcpuextstate reads a vcpu, size and buffer pointer, and reads
size bytes from the buffer.  It has no outputs.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15368
2015-06-28 16:35:13 +00:00
Bart Van Assche
1b6ca5d030 xen: Fix XEN_DOMCTL_getvcpuextstate
Xen only writes into the provided buffer if the guest handle was not NULL.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15367
2015-06-28 16:34:20 +00:00
Bart Van Assche
b1e2a3e6a1 xen: Add domctl interface version 0x0000000a
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15366
2015-06-28 16:33:04 +00:00
Bart Van Assche
c35715d20a xen: Add support for new sysctl and domctl interface versions
The change causing the sysctl bump is not in an implemented subop yet, so no
change is required.  The change causing the domctl bump is in an implemented
subop, but has also been reverted in favor of a different way of performing
the same actions.  Therefore, there is no net difference.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15365
2015-06-28 16:31:54 +00:00
Bart Van Assche
4e84ded15a xen: refactor the various "version not supported" messages into a single helper
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15364
2015-06-28 16:30:36 +00:00
Rhys Kidd
fb704a2663 Partial update of OS X related 3_10_BUGSTATUS, due to resolved bug reports.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15363
2015-06-28 04:22:34 +00:00
Rhys Kidd
2ef1b068d0 Set svn ignore on map_32bits regression test, added in r15341.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15362
2015-06-28 04:13:16 +00:00
Rhys Kidd
9b3e7344ca Fix incorrect sizeof expression in syswrap-xen.c, reported by Coverity (#1233786)
n-i-bz

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


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15361
2015-06-28 04:06:30 +00:00
Josef Weidendorfer
5b74bd2aee Minor shuffling in Callgrind format doc
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15360
2015-06-26 15:44:01 +00:00
Josef Weidendorfer
9cd0f4e211 Complete/Fix Callgrind format specification.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15358
2015-06-26 14:05:33 +00:00
Florian Krohm
0b6735e2ed Fix a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15355
2015-06-25 21:12:44 +00:00
Florian Krohm
c35a95ac9c Beef up configury for the undefined behaviour sanitiser.
If the compiler supports -fno-sanitize=alignment use it.
Otherwise, there will be complaints about misaligned
memory accesses. This is needed for GCC 5.1.
If that flag is not supported simply pass in -fsantize=undefined
and assume that it won't check for alignment violations (which
is true for GCC 4.9).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15351
2015-06-23 20:31:52 +00:00
Florian Krohm
90e41758ff Fix two testcase builds so they work when linked against a VEX
that was compiled with -fsanitize=undefined


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15348
2015-06-21 17:54:27 +00:00
Philippe Waroquiers
17aedeeb8c Filter 'New thread' lines
gdb 7.9 reports new threads at different moment than the previous versions.
Filter these new threads lines so as to not be dependent on this
gdb aspect.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15347
2015-06-20 22:22:56 +00:00
Florian Krohm
4eeecae9b7 fbit_mask needs to be unsigned because it sometimes shifts a '1'
into the MSB. Found by ubsan.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15346
2015-06-19 12:01:07 +00:00
Philippe Waroquiers
33e302f428 Announce change in NEWS
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15343
2015-06-18 21:31:51 +00:00
Philippe Waroquiers
8c8cd6c9fc 324181 mmap does not handle MAP_32BIT (handle it now, rather than fail it)
324181 was previously closed with a solution to always make
MAP_32BIT fail. This is technically correct/according to the doc,
but is not very usable.
This patch ensures that MAP_32BIT mmap is succesful, as long as
aspacemgr gives a range in the first 2GB
(so, compared to a native run, MAP_32BIT will fail much more quickly
as aspacemgr does not reserve the address space below 2GB on a 64 bits).

Far to be perfect, but this is better than nothing.

Added a regression test that test succesful mmap 32 bits till
the 2GB limit is reached.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15341
2015-06-17 19:57:09 +00:00
Petar Jovanovic
9f3495d2a1 mips64: modify load_indexed_instructions test
A little style improvement for load_indexed_instructions test including
addition of new instruction to be tested - lhx (supported as of VEX r3152).

Related issue - BZ #345987.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15340
2015-06-16 23:49:30 +00:00
Rhys Kidd
700aa31d8d Fix UNKNOWN task message [id 3410, to mach_task_self(), reply 0x........] (task_set_special_port)
bz#349087

On OS X 10.10

Before:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15339
2015-06-13 22:59:47 +00:00
Philippe Waroquiers
0f68fc4797 Waiting for the release, the doc should better indicate it is a SVN version
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15338
2015-06-13 15:54:22 +00:00
Rhys Kidd
e35b06fbb8 Fix UNKNOWN task message [id 3406, to mach_task_self(), reply 0x........] (task_set_info)
bz#349086

On OS X 10.10

Before:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 592 tests, 222 stderr failures, 14 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15336
2015-06-13 06:16:10 +00:00
Rhys Kidd
aa423cfd03 Update svn ignore propset on the folder none/tests/scripts. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15335
2015-06-13 02:49:44 +00:00
Christian Borntraeger
c2baee9b7b add KVM_S390_MEMOP ioctl handling
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15334
2015-06-12 10:54:12 +00:00
Philippe Waroquiers
d6438d2c05 Fix 348949 Bogus "ERROR: --ignore-ranges: suspiciously large range"
Patch from Mark Harris 



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15333
2015-06-11 19:57:42 +00:00
Florian Krohm
d771b5cb1d Stick in -Werror when attempting to detect whether a compiler
option is available. This is needed for clang. See also r15323.
Fixes BZ #348890


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15332
2015-06-09 21:53:48 +00:00
Florian Krohm
0ef5cbd9af Followup to r15323. Cannot use AC_GCC_WARNING_SUBST to detect
whether -Wformat-security is supported. Special handling is needed.

gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2  accepts -Wformat-security
without -Wformat being present on the command line. Other GCC
versions will issue a warning if -Wformat is missing. r15323
adds -Werror to AC_GCC_WARNING_SUBST and therefore turns that
warning into an error.  With the consequence that
-Wformat-security appears to be unsupported -- a false conclusion.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15331
2015-06-09 21:44:58 +00:00
Julian Seward
337e580745 Fix up a few not-in-alphabetical-order file names in file lists.
No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15330
2015-06-08 11:20:22 +00:00
Rhys Kidd
0f1f6e7bdc Memcheck on multithreaded program fails with Assertion 'sizeof(UWord) == sizeof(UInt)' failed in m_syscall.c
bz#302630
== bz#326797

On OS X 10.7 and OS X 10.8

Before:

== 598 tests, 201 stderr failures, 12 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 598 tests, 200 stderr failures, 12 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15329
2015-06-08 11:07:48 +00:00
Rhys Kidd
8c4149b404 Fix undefined symbols for architecture x86_64: _global, referenced from: _test_so_global in tls_so-tls_so.o. bz#347982.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15328
2015-06-08 08:56:33 +00:00
Philippe Waroquiers
8f30180df2 Inline ensure_valid. This improves reading the debug info of big executables
by 1 to 2%



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15327
2015-06-07 10:38:39 +00:00
Philippe Waroquiers
4f10542405 Announce fix for 345928 (amd64: callstack only contains current function for
small stacks)
(was fixed by rev 15309)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15326
2015-06-06 08:11:37 +00:00
Rhys Kidd
e4d96677ef Resolve remaining clang warning on OS X. Should be possible to build Valgrind on modern OS X without any warnings (note: does not hold for regression test suite).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15325
2015-06-06 04:18:49 +00:00
Rhys Kidd
d2e68860c9 Resolve clang warning on OS X: m_stacktrace.c:542:7: warning: implicit declaration of function 'vgPlain_is_in_syscall' is invalid in C99 [-Wimplicit-function-declaration]
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15324
2015-06-06 03:57:34 +00:00
Florian Krohm
b6c5130bdc clang, as opposed to gcc, does not terminate with a non-zero return code
in case an unrecognised command line option is encountered. configure.ac
however was assuming just that which led to compile time warnings later on.
Add -Werror to the configure bits to make clang behave like gcc in this
regard. Fixes BZ #348565.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15323
2015-06-05 21:19:06 +00:00
Florian Krohm
a424add6e9 Fix a condition that was always true. Found by cppcheck.
See BZ #348565.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15322
2015-06-05 19:34:59 +00:00
Florian Krohm
6009f4d5f9 Remove configure bits for -Wno-format-zero-length. The option is
not used.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15321
2015-06-05 17:40:53 +00:00
Florian Krohm
4880368c8d Simplify configury and eliminate AC_GCC_WARNING_COND which was only used
in one place and can be replaced with AC_GCC_WARNING_SUBST_NEW. Adjust
perf/Makefile.am.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15320
2015-06-05 17:09:57 +00:00
Florian Krohm
2de98199b0 Add -Wempty-body to the list of compile flags.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15319
2015-06-05 16:26:14 +00:00
Florian Krohm
a727bec9cb Remove configury bits for -Wno-empty-body. It is not needed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15318
2015-06-05 16:03:31 +00:00
Julian Seward
91ca5a0233 arm32-linux only: add handwritten assembly helpers for
MC_(helperc_LOADV32le), MC_(helperc_LOADV16le) and
MC_(helperc_LOADV8).  This improves performance by around 5% to 7% in
the best case, for run-of-the-mill integer code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15317
2015-06-05 13:33:46 +00:00
Julian Seward
d99ae1b60f Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15316
2015-06-05 12:08:10 +00:00
Julian Seward
eccf4508a8 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15315
2015-06-05 11:27:27 +00:00
Julian Seward
a4d69434b8 Bug 348728 - Fix broken check for VIDIOC_G_ENC_INDEX
Patch from Hans Verkuil (hverkuil@xs4all.nl)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15314
2015-06-05 11:25:32 +00:00