Julian Seward
32d0fc4be5
memset replacement: unroll vectorised loops.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15848
2016-04-04 12:33:35 +00:00
Mark Wielaard
8a8b65d1f2
Bug 359733 amd64 implement ld.so strchr/index override like x86
...
The suppression and redirection for ld.so strchr/index isn't needed for
x86. When testing a newer glibc or calling the ld.so through an alternative
path neither the suppression (doesn't match path/name) nor the redirection
(triggers too late) works. Since there is already an hardwire override for
strlen in amd64 ld.so anyway it makes sense to also hardware index (it is
always called when ld.so loads the preload images).
This was also explained in the easy hacks Fosdem session.
See https://bugs.kde.org/show_bug.cgi?id=359733 for a pointer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15812
2016-02-24 11:12:01 +00:00
Rhys Kidd
2c1bd53275
Intercept platform_memchr$VARIANT$Haswell on OS X
...
bz#351756
On OS X 10.10 (without Haswell hardware)
Before:
== 595 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==
After:
== 595 tests, 215 stderr failures, 9 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15596
2015-08-29 07:42:40 +00:00
Julian Seward
adc2dafee9
Update copyright dates, to include 2015. No functional change.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15577
2015-08-21 11:32:26 +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
Julian Seward
ac60633d65
Bug 345248 - add support for Solaris OS in valgrind
...
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00
Rhys Kidd
0fcd971d15
Preliminary support for OS X 10.11 (El Capitan). Refer BZ#348909 for ongoing work.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15403
2015-07-08 13:46:57 +00:00
Mark Wielaard
1aef4dc72c
349828 memcpy intercepts memmove causing src/dst overlap error (ppc64 ld.so)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15397
2015-07-07 13:01:39 +00:00
Rhys Kidd
a32cff8baf
bz#347233 - Fix memcheck/tests/strchr on OS X 10.10 (Haswell)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15229
2015-05-14 13:03:08 +00:00
Rhys Kidd
d442b97795
Further fixes for bz#345394 specifically for OS X 10.10
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15038
2015-03-26 10:14:25 +00:00
Julian Seward
55a7b396f1
Followup to r14901 (vectorising memcmp): use SizeT instead of Addr
...
where appropriate.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14903
2015-02-04 18:46:11 +00:00
Julian Seward
bc14b1eb52
Vectorise the memcmp template implementation. For scenarios requiring
...
a lot of memcmp-ing (firefox reftests) this is measurably faster.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14901
2015-02-04 17:52:42 +00:00
Mark Wielaard
7d07a3deaf
BZ #342795 Internal glibc __GI_mempcpy call should be intercepted.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14866
2015-01-13 16:10:20 +00:00
Julian Seward
df001848a7
OSX 10.10: intercept memchr in libsystem_platform.dylib.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14734
2014-11-19 09:14:07 +00:00
Julian Seward
fafcf8e893
Interceot _platform_strncmp also on OSX 10.10.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14712
2014-11-11 12:46:58 +00:00
Julian Seward
409c042298
Add some Mac OSX 10.10 specific wrappers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14703
2014-11-07 00:08:13 +00:00
Julian Seward
b519f73307
Adds initial support for AArch64 (arm64) on Android. Small programs
...
(/system/bin/ls, /system/bin/date) run. Still to do:
* enable more malloc/free intercepts
* enable wrappers for ashmem and binder syscalls
* check to see if any special ioctl support is required for ARM Mali GPUs
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14690
2014-11-04 17:44:21 +00:00
Florian Krohm
070ad41c3b
Enable -Wcast-qual when compiling the valgrind source.
...
Testcases are not compiled with -Wcast-qual.
Introduce CONST_CAST macro to work around in the few spots
where a cast that drops type qualifiers is needed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14652
2014-10-22 12:53:16 +00:00
Florian Krohm
c0869fe07c
Change the return type of the replacement function for rawmemchr
...
to match that of glibc's rawmemchr.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14651
2014-10-22 12:06:22 +00:00
Florian Krohm
361909e022
Rewritten to avoid cast that drops const qualification.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14647
2014-10-21 17:15:14 +00:00
Julian Seward
ccb4fc056b
Add intercepts on MacOS 10.9 for
...
libsystem_c.dylib:strrchr
libsystem_platform.dylib:_platform_memmove$VARIANT$Ivybridge
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14635
2014-10-17 15:07:37 +00:00
Philippe Waroquiers
44cc7cb053
Fix name of the file in the header comment
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14170
2014-07-16 21:16:10 +00:00
Julian Seward
9784fb846c
Intercept libsystem_platform.dylib:_platform_strncmp and dyld:memchr
...
on OSX 10.9.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14099
2014-06-25 11:17:46 +00:00
Julian Seward
3534b0f75d
OS X 10.9: Add redirections for strnlen, strcpy, strncpy,
...
platform_memchr, _platform_memcmp.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14086
2014-06-23 16:03:45 +00:00
Julian Seward
8f5dd4219c
OS X 10.9: add intercepts for
...
libsystem_platform.dylib : _platform_strchr
libsystem_c.dylib : strlen
libsystem_platform.dylib : _platform_strcmp
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14073
2014-06-21 09:40:19 +00:00
Bart Van Assche
ac9c8e1a37
strmem intercepts: Add mempcpy() intercepts for ld-linux on x86
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13874
2014-03-15 12:47:28 +00:00
Mark Wielaard
f68b1089a7
Make sure all files under the new shared dir are included in make dist.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13868
2014-03-11 19:30:32 +00:00
Dejan Jevtic
423d0643b9
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
2013-12-27 09:06:55 +00:00
Bart Van Assche
39c447e4a9
Merge mc_replace_strmem.c, hg_intercepts.c and drd_strmem_intercepts.c
...
Move memcheck/mc_replace_strmem.c to shared/vg_replace_strmem.c and
add several intercepts for SSE-variants. Include that source file from
drd/drd_strmem_intercepts.c, helgrind/hg_intercepts.c and
memcheck/mc_replace_strmem.c.
Merge memcheck/tests/filter_memcpy into tests/filter_stderr_basic.
Update tests/check_headers_and_includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13719
2013-11-24 17:48:13 +00:00