Commit Graph

14 Commits

Author SHA1 Message Date
Bart Van Assche
a35427a0e4 Trace lines enabled by --trace-segment=yes now include the thread ID of the created thread instead of the creator thread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7852
2008-04-06 13:07:45 +00:00
Bart Van Assche
470b405e7d Added more tl_assert() statements.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7754
2008-03-22 17:09:04 +00:00
Bart Van Assche
fd57d8b1f8 Implemented segment merging.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7750
2008-03-22 09:38:48 +00:00
Bart Van Assche
4bc9d8c635 Added reference counting to segments. Synchronization objects (mutex, semaphore, barrier, rwlock) now keep a pointer to a segment instead of copying a vector clock for modeling causal relationships.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7727
2008-03-17 18:32:39 +00:00
Bart Van Assche
6966bc8a44 Renamed functions for querying segment creation counters. Added the function sg_get_alive_segments_count(). Removed sg_init() and sg_cleanup() from the public segment interface.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7726
2008-03-17 17:37:53 +00:00
Bart Van Assche
8a980611eb All error and trace messages now show both Valgrind's and DRD's thread ID.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7716
2008-03-16 17:57:01 +00:00
Bart Van Assche
f43006ea78 Made indentation in the DRD source code uniform: indentation size is now two spaces in all soure files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7684
2008-03-15 08:11:03 +00:00
Bart Van Assche
4351f63f4a Converted type of trace messages from Vg_DebugMsg to Vg_UserMsg.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7509
2008-02-29 19:17:28 +00:00
Bart Van Assche
e33a9f9046 Added more debugging output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7440
2008-02-24 18:21:12 +00:00
Julian Seward
22b3fe2a3e DRD updates (Bart Van Assche):
- Updated copyright statement: replaced 2006-2007 by 2006-2008.
- Added copyright statement in the files where it was missing
(drd_track.h and drd_clientreq.c)
- Eliminated dependencies on core header files -- there are no more
#include "pub_core....h" directives in the exp-drd source code.
- Added semaphore support.
- Added barrier support.
- Added pthread_mutex_timedlock() support.
- Stack depth of stack traces printed by exp-drd can now be set via
--num-callers=...
- Added command-line option --trace-barrier=[yes|no].
- Added regression test for pthread_barrier() (matinv, a program that
performs matrix inversion).
- Added regression test sem_as_mutex, which tests whether race
detection works correctly when a semaphore is used to ensure mutual
exclusion of critical sections.
- Some of helgrind's regression tests are now used to test both
helgrind and exp-drd: tc17_sembar and tc18_semabuse.
- Cleaned up bitmap implementation code now that the const keyword has
been added to the declarations of the OSet functions.
- Cleaned up exp-drd/Makefile.am
- Updated exp-drd/TODO.txt




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7346
2008-01-14 11:54:56 +00:00
Tom Hughes
0ee51fd825 Add missing include to fix compiler warning.
Patch from Bart Van Assche <bart.vanassche@gmail.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7315
2008-01-04 23:57:15 +00:00
Tom Hughes
94286fd840 Stop drd trying to get a backtrace when there is no stack pointer.
Patch from Bart Van Assche <bart.vanassche@gmail.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7309
2008-01-02 10:07:44 +00:00
Julian Seward
9fbe42bfca Only pass valid ThreadIDs to VG_(record_ExeContext). (Bart Van Assche)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7261
2007-12-01 02:09:50 +00:00
Julian Seward
dc1dbea937 Add DRD as an experimental tool. Bart Van Assche is the maintainer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7211
2007-11-25 14:01:38 +00:00