11986 Commits

Author SHA1 Message Date
Julian Seward
396f02357d 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
2015-08-14 08:05:35 +00:00
Philippe Waroquiers
b6876b9917 Fix 350202 - Add limited param to 'monitor block_list'
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15540
2015-08-13 22:49:32 +00:00
Philippe Waroquiers
aaa87fa0eb Remove 343173 helgrind crash during stack unwind from 3_10_BUGSTATUS.txt
as it was fixed some time ago (and announced in NEWS)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15539
2015-08-13 22:42:34 +00:00
Florian Krohm
cdf7f871da Improve mmap MAP_HUGETLB support.
This is a follow up to r14682:

When an mmap retry is done without any constraints, the kernel can
place it into free or reservation segments (i.e. anywhere there is no
mapping yet).
In r14682 a sanity check made the hypothesis that the new mapping was
in a free segment, but it does not hold at least on Linux 3.12 and 3.16
on amd64 (tested under Debian).
There is no risk in allowing the mapping to end up in (what was
previously) a reservation at this point, because it is also allowed.

Patch by Guillaume Knispel <xilun0@gmail.com>. Fixes BZ #348269.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15538
2015-08-13 20:35:03 +00:00
Julian Seward
a2df7642ef 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
2015-08-13 14:53:17 +00:00
Julian Seward
bda73f5b54 do_cmpxchg8b(): fix incorrect inline assembly (wrong register name)
and updated expected result.  n-i-bz.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15536
2015-08-13 14:46:10 +00:00
Julian Seward
19a7577acd Add test cases for PCMPxSTRx case 0x18.
Pertains to #348574, vex r3172.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15535
2015-08-13 14:19:48 +00:00
Julian Seward
1172cbc47a Add test cases for PCMPxSTRx case 0x42.
Pertains to #339820, vex r3171.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15534
2015-08-13 13:47:02 +00:00
Julian Seward
a34651d40c Update following amd64 AVX front end fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15533
2015-08-13 12:55:09 +00:00
Julian Seward
a6af6dabd9 Add test cases for missing AVX VCMPPD/VCMPPS cases.
Pertains to vex r3170.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15532
2015-08-13 12:42:28 +00:00
Florian Krohm
673a4411f0 Write a SysRes value as an unsigned number.
Previously, whether the bitpattern was interpreted as a 
signed or unsigned value depended on the platform.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15531
2015-08-13 12:27:48 +00:00
Ivo Raisr
166c052df4 Fix the regression from r15518 which broke builds
on older Solaris releases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15530
2015-08-12 16:03:16 +00:00
Julian Seward
4decfe3ed5 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15529
2015-08-12 14:47:26 +00:00
Rhys Kidd
59e930ed5e Properly guard memcheck/tests/amd64/xsave-avx. This test relies on memalign(), which is not present on OS X. Along with a few other avx tests needs refactoring to use posix_memalign() down the track. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15528
2015-08-12 14:19:09 +00:00
Rhys Kidd
b5663503f4 Fix svn propset for memcheck/tests/amd64/xsave-avx since r15524. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15527
2015-08-12 13:42:42 +00:00
Bart Van Assche
ade9e09dfb valgrind.h: Suppress client request code generation on x32
Ensure that no code is generated for client requests on x32.

From: Matthias Schwarzott <zzam@gentoo.org>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15526
2015-08-12 13:29:10 +00:00
Florian Krohm
b637aed262 Fix clobber.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15525
2015-08-12 13:24:33 +00:00
Julian Seward
859a4a3f3c Add test cases for AVX XSAVE and XRSTOR instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15524
2015-08-12 11:35:27 +00:00
Julian Seward
34f275eb14 Enhance VG_(machine_get_hwcaps) to check enough stuff to ensure
that VEX's XSAVE/XRSTOR implementation will work correctly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15523
2015-08-12 11:16:47 +00:00
Julian Seward
85484303b1 Handle new ILGop_IdentV128 introduced by vex r3169.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15522
2015-08-12 11:16:23 +00:00
Julian Seward
a2965b750c Remove extraneous "-x" which I suspect is debugging support that got
acidentally left in by r15291.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15521
2015-08-12 10:59:52 +00:00
Florian Krohm
c39a983920 For those testcases that crash one way or another
remove any core files after running the test.
Patch by Matthias Schwarzott <zzam@gentoo.org>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15520
2015-08-11 20:58:15 +00:00
Florian Krohm
75381eec6e In filter_stderr_basic do not remove lines beginning with
--pid:
i.e. debug output. Asserts originating from the address space
manager look exactly like that and we do not want to filter those
out by default.
Remove some specialised filter scripts that are no longer needed
and update a few .vgtest files accordingly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15519
2015-08-11 20:37:28 +00:00
Ivo Raisr
cb0b01d098 Add support for repository cache protocol version 26.
Patch contributed by Tomas Jedlicka <jedlickat@gmail.com>.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15518
2015-08-11 09:12:40 +00:00
Mark Wielaard
a398bfb863 Bug #351140 arm64 syscalls setuid (146) and setresgid (149) not implemented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15517
2015-08-09 22:37:52 +00:00
Florian Krohm
70bfaf9c9f When profiling memory events in memcheck, event counts larget
than INT_MAX have been observed in practice. Make counters
64 bit entities.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15516
2015-08-09 20:55:39 +00:00
Florian Krohm
5685245df0 Consistently use exit code 1 (== POSIX's EXIT_FAILURE) if things
go wrong. As we can tell from the error messages what whent wrong 
there is no need to have different exit codes to distinguish.
Spotted by Matthias Schwarzott.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15515
2015-08-09 20:29:18 +00:00
Florian Krohm
aefb16463d Fix a few function declarations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15514
2015-08-09 16:27:44 +00:00
Philippe Waroquiers
b7380c7e2d Remove duplicate definition ofVALGRIND_HG_ENABLE_CHECKING , wrongly introduced in rev 15207
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15513
2015-08-09 14:43:33 +00:00
Florian Krohm
249171e15c Fix another GCC 5.1 warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15512
2015-08-09 08:54:27 +00:00
Florian Krohm
f583a9bbf9 Fix build breakage introduced in r15510.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15511
2015-08-09 08:16:54 +00:00
Florian Krohm
9a3883bf3d Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15510
2015-08-08 21:45:33 +00:00
Florian Krohm
40f17fdf7e Simplify the build script a lot by using the download_prerequisites
script and build prerequisites in tree. Suggested by Dimitry <dimhen@gmail.com>
Also add --disable-bootstrap and some verbiage as to how to speed
up the GCC build even further.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15509
2015-08-08 21:22:55 +00:00
Florian Krohm
3ea69c8ce3 Fix two more format inconsistencies found on s390. The one
in m_stacktrace.c also existed for other architectures. Fixed
as well.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15508
2015-08-08 21:08:31 +00:00
Florian Krohm
296a862b5e Initial checkin
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15507
2015-08-08 14:07:07 +00:00
Ivo Raisr
528149b78f Document another limitation of the Solaris port
regarding to AT_SUN_SYSSTAT_ADDR and AT_SUN_SYSSTAT_ZONE_ADDR.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15506
2015-08-08 00:21:26 +00:00
Zhi-Gang Liu
1f410da917 Disable gdb XML file for TileGX
There will be no support --vgdb-shadow-registers=yes
for TileGX platform.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15505
2015-08-07 13:25:24 +00:00
Philippe Waroquiers
a57a053032 Ensure gdbserver_tests/mcbreak.vgtest works with gcc 4.9
At least on x86+gcc4.9, the test fails because step+finish
makes the program stop on the breakme call line (after the call)
instead of reaching line 120.
So; change the gdb commands so as to ensure we reach line 120



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15504
2015-08-06 16:42:12 +00:00
Florian Krohm
78b86dbbfc Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15503
2015-08-06 12:11:33 +00:00
Florian Krohm
68ff2e7a64 As per discussion with Julian comment out some dead assignments.
Now matches what is done for arm64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15502
2015-08-06 09:34:20 +00:00
Florian Krohm
4b555b5a54 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15501
2015-08-06 09:00:48 +00:00
Florian Krohm
01ea732633 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15500
2015-08-05 22:27:24 +00:00
Florian Krohm
e56a4a50df Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15499
2015-08-05 21:16:09 +00:00
Florian Krohm
84a68aadcc Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15498
2015-08-05 19:04:51 +00:00
Philippe Waroquiers
7844f70805 (try to) avoid tc09_bad_unlock random failure
tc09_bad_unlock fails randomly for the following reason:
Thread 1 is creating a lock in a stack variable and locks it.
It then clones a Thread 2 that will unlock this lock.
The test fails if the Thread 2 unlocks the lock while the
main thread is still just after the clone syscall:
There is no unwind info in this area, and so doing a stacktrace
implies a nasty hack (see hg_main.c evh__pre_thread_ll_create).

There is no such hack when describing the address of the lock
(as there is no logic in the 'normal' stack trace to detect we are
in the clone syscall code).
In such a case, the unwind fail, and the lock address description
lacks the frame nr derived from the captured stack trace.

Adding --fair-sched=yes seems to make a more reproducible test.

Note that the proper solution to all these 'racy helgrind regtests'
would be to add some synchronisations operations between threads
that helgrind does not observe (e.g. using a technique similar to
the pipe big lock) and have correct (but invisible to helgrind) synchronisation
between the threads actions needed for a reproducible regtest.

Not very cheap to develop, --fair-sched=try is cheap and easy
so use that till someone courageous implements non visible synchronisation



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15497
2015-08-05 17:43:11 +00:00
Philippe Waroquiers
1a772817f0 Fix typo: add missing space between $(AM_CFLAGS) and @FLAG_FSANITIZE@
(spotted by Bart and Florian).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15496
2015-08-05 16:34:41 +00:00
Florian Krohm
b790e08474 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15495
2015-08-05 14:38:57 +00:00
Florian Krohm
811c94dd19 Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15494
2015-08-05 13:46:58 +00:00
Florian Krohm
038bb9a321 Add a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15493
2015-08-05 13:25:58 +00:00
Florian Krohm
130cf6ffca The number of elements in a RangeMap cannot be negative.
Let the return type of VG_(sizeRangeMap) reflect that.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15492
2015-08-05 13:23:11 +00:00