Bart Van Assche
6eb83dfd22
Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls as level one bitmap creation events.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10358
2009-06-21 18:08:31 +00:00
Bart Van Assche
6b937d7d95
Combined DRD_(thread_new_segment)() and DRD_(thread_combine_vc_sync)()
...
into the function DRD_(thread_new_segment_and_combine_vc)() because
before DRD_(thread_combine_vc_sync)() was called the function
DRD_(thread_new_segment)() was always called.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10357
2009-06-21 18:07:35 +00:00
Bart Van Assche
2a99145bc2
Made --drd-stats=yes output even more verbose.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10356
2009-06-21 11:51:23 +00:00
Bart Van Assche
7c518a0c3f
Merged revisions 10129:10130 from the DRDDEV branch to the trunk.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10355
2009-06-21 10:11:15 +00:00
Bart Van Assche
725df5fb50
Updated code for statistics printed by --drd-stats=yes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10354
2009-06-21 09:26:27 +00:00
Bart Van Assche
94e061bf37
Updated test plan.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10352
2009-06-20 10:56:45 +00:00
Bart Van Assche
08df3938ab
Reran SPLASH-2 benchmark.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10351
2009-06-20 10:55:12 +00:00
Bart Van Assche
3d7dbdb790
Added #include <stdint.h>.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10319
2009-06-14 08:18:44 +00:00
Bart Van Assche
462e24e5ff
Skip the pth_create_chain test on ppc.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10318
2009-06-13 08:58:20 +00:00
Bart Van Assche
64ffae8a11
- Added more comments in DRD's malloc wrappers.
...
- Fixed memory allocation counters.
- Client memory is now freed in the realloc() wrapper in all cases where
it should be freed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10294
2009-06-10 19:24:20 +00:00
Bart Van Assche
31fd94279e
Added test code for realloc().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10292
2009-06-10 17:51:52 +00:00
Bart Van Assche
b4443ebc0a
Fixed bug in DRD's realloc() wrapper.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10282
2009-06-09 11:12:07 +00:00
Bart Van Assche
e34229bd49
svn merge -r9818:10278 svn://svn.valgrind.org/valgrind/branches/DRDDEV
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10279
2009-06-08 18:20:42 +00:00
Bart Van Assche
a0820d3b95
Updated test plan.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10268
2009-06-06 16:58:58 +00:00
Bart Van Assche
c61d88f7c0
Robustness improvement: print an error message instead of triggering an assertion failure upon semaphore reinitialization during sem_wait().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10266
2009-06-06 12:28:20 +00:00
Bart Van Assche
f6d9317997
Consistency improvement: made sure that for all synchronization operations vector clocks are combined after having created a new segment instead of before.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10265
2009-06-06 12:26:05 +00:00
Bart Van Assche
7933a6c4d5
- Robustness improvement: do not trigger an assertion failure if one
...
thread destroys and reinitializes a semaphore another thread is
waiting on but print an error message instead.
- Behavior change: always decrement 'value', even if this makes value
negative.
- Updated expected output files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10262
2009-06-06 10:56:40 +00:00
Bart Van Assche
4f60b7c79e
Disabled libgomp intercepts. Since libgomp support was added to DRD, the
...
libgomp ABI has changed. Two new functions have been added, namely
gomp_team_barrier_wait() and gomp_team_barrier_wake(). The simplest way
to support all libgomp functions is by disabling the libgomp intercepts.
This fixes bug #195169 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10261
2009-06-06 09:28:28 +00:00
Bart Van Assche
b1d8c9d5fa
Updated test plan.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10259
2009-06-06 08:51:13 +00:00
Bart Van Assche
9ad73a71b2
Increased gcc version from 4.3.2 to 4.4.0.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10258
2009-06-06 08:50:14 +00:00
Bart Van Assche
17d61fb86d
Fixed argument types and names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10242
2009-06-04 09:57:54 +00:00
Bart Van Assche
130b0328d5
tsan_unittest.cpp does now compile cleanly even with -Wshadown enabled.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10241
2009-06-04 09:11:28 +00:00
Bart Van Assche
ffc036b223
Compiles now cleanly without -Wno-empty-body.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10234
2009-06-03 20:02:29 +00:00
Bart Van Assche
f0d322c5fc
Updated documentation of PCQ annotations.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10233
2009-06-03 20:01:44 +00:00
Bart Van Assche
d7d6e4cf74
Fixed a memory leak.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10228
2009-06-03 12:44:50 +00:00
Bart Van Assche
61301f1618
Unified two expected output files.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10225
2009-06-03 09:47:16 +00:00
Bart Van Assche
c8043d6068
Updated EXTRA_DIST.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10224
2009-06-03 09:30:19 +00:00
Bart Van Assche
0017799cd4
Fixed a few typo's in comments.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10223
2009-06-03 08:54:37 +00:00
Bart Van Assche
74f17b9faf
DRD's regression tests pass again on PowerPC.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10221
2009-06-03 08:26:12 +00:00
Bart Van Assche
85a0aea8c7
Updated ANNOTATE_*() macro's as discussed on the valgrind-developers mailing list. Merged drt/unittest r1007:1014. Updated to do list.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10220
2009-06-03 08:11:02 +00:00
Bart Van Assche
ee8e69ab60
Temporarily disabled building tsan_unittest on Darwin.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10217
2009-06-03 06:25:04 +00:00
Bart Van Assche
f6c2ff5905
Some source code modifications that should help getting tsan_unittest.cpp compiled on Darwin.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10214
2009-06-02 15:11:42 +00:00
Bart Van Assche
84ca389dd6
- Portability improvement: switched from __gnu_cxx::hash_map<> (a gcc
...
extension) to std::map<> (standard C++).
- Replaced tempnam() by mkdtemp() / mkstemp() because gcc emits a warning
about the former.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10213
2009-06-02 15:03:44 +00:00
Bart Van Assche
17f3b66bed
Fixes for systems without built-in functions for atomic memory access.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10211
2009-06-02 11:12:29 +00:00
Nicholas Nethercote
8c3b7ff600
Back out r10197--r10200 and r10202--r10203. I'm going to put them, and
...
further, related changes, on a branch instead.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10204
2009-06-02 06:54:57 +00:00
Nicholas Nethercote
d92ff5d4d5
drd/tests/tsan_unittest is broken on Darwin. For one, OS_MACOSX isn't the
...
right #define to test for, _APPLE_ is, but defined(VGO_darwin) is better
again. But even if that is fixed, there are still other problems.
So this commit just disables building of that test for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10201
2009-06-02 05:19:21 +00:00
Bart Van Assche
9e8b78dbad
Made the call stack printed by DRD for reading the variable GLOB independent of the Linux distribution the test is run on.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10192
2009-06-01 18:50:27 +00:00
Bart Van Assche
1b2e2a13b4
Fixed a bug in DRD's malloc wrappers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10191
2009-06-01 18:36:59 +00:00
Bart Van Assche
c37aacc7e9
Added API warning for the recently added ANNOTATE_*() macro's.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10190
2009-06-01 10:49:38 +00:00
Bart Van Assche
3318079448
Filter out vector clock information from DRD's regression test output.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10189
2009-06-01 10:48:53 +00:00
Bart Van Assche
10ec95c559
Filter out absolute paths.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10187
2009-05-31 19:11:16 +00:00
Bart Van Assche
e73284e37f
- Added support for most of the ANNOTATE_...() macro's supported by
...
ThreadSanitizer.
- Modified DRD's error reporting code such that it does no longer let
the Valgrind core print the Valgrind thread ID but that it now prints
the DRD thread ID and name. Updated expected output files where
necessary.
- Modified drd/test/Makefile.am such that the tests using gcc's built-in
functions for atomic memory access such that these are only compiled when
the gcc version in use supports these built-in functions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10186
2009-05-31 18:53:54 +00:00
Bart Van Assche
a83d6eb896
Reverted some of the DRD customizations.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10185
2009-05-31 18:00:39 +00:00
Bart Van Assche
afe9eeac3b
Added more DRD customizations.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10184
2009-05-31 18:00:12 +00:00
Bart Van Assche
1e71b3e1bd
Fixed a compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10178
2009-05-31 11:54:14 +00:00
Bart Van Assche
c1e725f6b0
Customized for DRD.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10177
2009-05-31 11:53:39 +00:00
Bart Van Assche
d5b67eb9b1
Filter line numbers for functions defined in header files too.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10175
2009-05-31 11:21:54 +00:00
Bart Van Assche
c6f796f5ae
Added a copy of r1007 of the files racecheck_unittest.cc and thread_wrappers_pthread.h. These files have been obtained from the SVN repository http://data-race-test.googlecode.com/svn/trunk/unittest .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10170
2009-05-30 16:33:10 +00:00
Nicholas Nethercote
07045477ca
Merge the DARWIN branch onto the trunk.
...
I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts. So instead I just took the diff between
the branch and trunk at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156
2009-05-28 01:53:07 +00:00
Bart Van Assche
0005f062e0
Sorted EXTRA_DIST alphabetically.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9986
2009-05-19 17:26:20 +00:00