305 Commits

Author SHA1 Message Date
Bart Van Assche
71a7f50f90 Updated test instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10396
2009-07-01 18:43:11 +00:00
Bart Van Assche
7eade9466f Reran this script and updated the results table.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10395
2009-07-01 18:42:36 +00:00
Julian Seward
3109865279 Merge in branches/DCAS.
This branch adds proper support for atomic instructions, proper in the
sense that the atomicity is preserved through the compilation
pipeline, and thus in the instrumented code.

These changes track the IR changes added by vex r1901.  They primarily
update the instrumentation functions in all tools to handle the
changes, with the exception of exp-ptrcheck, which needs some further
work in order to be able to run threaded code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10392
2009-07-01 08:10:49 +00:00
Bart Van Assche
0e909781d4 Use the value set in the environment variable DRD_SEGMENT_MERGING_INTERVAL if the segment merging interval has not been specified as a command-line option.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10377
2009-06-24 18:35:02 +00:00
Bart Van Assche
45c852ee2e Changed default segment merging interval from 64 to 10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10376
2009-06-24 18:34:10 +00:00
Bart Van Assche
778094eadd Added tool option --drd-stats=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10375
2009-06-24 18:33:47 +00:00
Bart Van Assche
f020382a31 The previous commit broke the 32-bit build, which is now fixed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10372
2009-06-24 06:44:49 +00:00
Nicholas Nethercote
b05a2a18d7 This commit merges the BUILD_TWEAKS branch onto the trunk. It has the
following improvements:

- Arch/OS/platform-specific files are now included/excluded via the
  preprocessor, rather than via the build system.  This is more consistent
  (we use the pre-processor for small arch/OS/platform-specific chunks
  within files) and makes the build system much simpler, as the sources for
  all programs are the same on all platforms.

- Vast amounts of cut+paste Makefile.am code has been factored out.  If a
  new platform is implemented, you need to add 11 extra Makefile.am lines.
  Previously it was over 100 lines.

- Vex has been autotoolised.  Dependency checking now works in Vex (no more
  incomplete builds).  Parallel builds now also work.  --with-vex no longer
  works;  it's little use and a pain to support.  VEX/Makefile is still in
  the Vex repository and gets overwritten at configure-time;  it should
  probably be renamed Makefile-gcc to avoid possible problems, such as
  accidentally committing a generated Makefile.  There's a bunch of hacky
  copying to deal with the fact that autotools don't handle same-named files
  in different directories.  Julian plans to rename the files to avoid this
  problem.

- Various small Makefile.am things have been made more standard automake
  style, eg. the use of pkginclude/pkglib prefixes instead of rolling our
  own.

- The existing five top-level Makefile.am include files have been
  consolidated into three.

- Most Makefile.am files now are structured more clearly, with comment
  headers separating sections, declarations relating to the same things next
  to each other, better spacing and layout, etc.

- Removed the unused exp-ptrcheck/tests/x86 directory.

- Renamed some XML files.

- Factored out some duplicated dSYM handling code.

- Split auxprogs/ into auxprogs/ and mpi/, which allowed the resulting
  Makefile.am files to be much more standard.

- Cleaned up m_coredump by merging a bunch of files that had been
  overzealously separated.

The net result is 630 fewer lines of Makefile.am code, or 897 if you exclude
the added Makefile.vex.am, or 997 once the hacky file copying for Vex is
removed.  And the build system is much simpler.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10364
2009-06-24 00:37:09 +00:00
Bart Van Assche
e6ca73c74b Fixed typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10360
2009-06-22 18:06:29 +00:00
Bart Van Assche
2b7c54cfae Statistics: fixed bug introduced in r10356.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10359
2009-06-21 18:09:02 +00:00
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