Bart Van Assche
12ec9d298a
Remove emacs modeline and/or local variables from DRD source files
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12279
2011-12-04 15:54:19 +00:00
Bart Van Assche
9df672f236
Add VALGRIND_RESIZEINPLACE_BLOCK() and hence close #267819 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11666
2011-03-25 20:07:25 +00:00
Bart Van Assche
e53eb1ec0c
Updated modeline and copyright statement in DRD source files.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11642
2011-03-13 12:02:44 +00:00
Bart Van Assche
40ece8a806
DRD: Report an error if --free-is-write=yes is used on a program invoking custom memory allocator client requests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11640
2011-03-13 09:08:10 +00:00
Bart Van Assche
3ced345153
DRD: Always invoke VG_(cli_free)() before the stop_using_mem callback.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11633
2011-03-12 12:43:39 +00:00
Bart Van Assche
8c2ede1182
DRD: Report an error if an invalid argument is passed to pthread_detach(). Do not assume that pthread_detach() returns an error code if its argument is invalid. Should fix #267968 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11614
2011-03-09 17:53:28 +00:00
Bart Van Assche
ad86d78a6c
E-mail address update.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11420
2010-10-10 18:07:31 +00:00
Bart Van Assche
89a212b4e4
DRD does now recognize Helgrind's start/stop tracking client requests too.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11306
2010-08-29 16:20:54 +00:00
Bart Van Assche
ebc0c2cb88
Handle statically initialized condition variables properly.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11139
2010-05-29 18:43:21 +00:00
Julian Seward
9b0574dff8
Update copyright dates to 2010.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121
2010-05-03 21:37:12 +00:00
Bart Van Assche
d14798e66e
Resynchronized client requests with the latest version of TSan's header file
...
<dynamic_annotations.h>.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11096
2010-03-21 17:28:10 +00:00
Bart Van Assche
ab4f4b241f
Removed ANNOTATE_HAPPENS_DONE() again.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11085
2010-03-08 18:41:38 +00:00
Bart Van Assche
e5f5573f88
Changes:
...
- Generalized the behavior of happens-before / happens-after annotations such
that not only 1:1 but also n:m patterns are supported.
- Dropped support for invoking happens-before / happens-after annotations on
POSIX condition variables (pthread_cond_t).
- Report the details about the offending synchronization object in generic
errors.
- Converted a few tl_assert() statements into error messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11073
2010-03-07 10:54:21 +00:00
Bart Van Assche
d0bb010178
Removed trailing whitespace in C source and header files.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11052
2010-02-21 14:52:59 +00:00
Bart Van Assche
80fdc5a9e9
- Made the ANNOTATE_RWLOCK_*() macros binary compatible with Helgrind.
...
- Added two additional regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10819
2009-08-15 10:50:35 +00:00
Bart Van Assche
fd574c0b25
Report an error message instead of triggering an assertion failure when a non-existing thread ID is passed to pthread_join() or pthread_cancel().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10674
2009-07-31 08:26:17 +00:00
Bart Van Assche
a0f1a0b56f
Removed code that has been commented out recently.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10606
2009-07-26 08:48:49 +00:00
Bart Van Assche
6529f12189
Replaced code for suppressing the stack memory in use at the time a
...
thread is being created by code for suppressing the memory allocated
from inside the pthread_create() call. The new implementation should be
a more portable solution for suppressing data races triggered by the
thread-local-storage implementation of a Pthreads library.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10584
2009-07-24 08:20:10 +00:00
Bart Van Assche
e2f8abc15d
Added support for sem_open() and sem_close().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10560
2009-07-23 16:31:39 +00:00
Bart Van Assche
c49fd480a1
Made debugging output for the code that computes the highest used stack address more detailed.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10506
2009-07-21 15:13:03 +00:00
Bart Van Assche
511096144e
DRD no longer prints the thread ID's assigned by the Valgrind core but only those assigned by DRD itself.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10488
2009-07-19 17:53:56 +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
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
aa99c54309
Simplified client request handling.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9713
2009-05-02 08:06:53 +00:00
Bart Van Assche
77ab93d6f2
Added support for the VG_USERREQ__MALLOCLIKE_BLOCK and VG_USERREQ__FREELIKE_BLOCK client requests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9712
2009-05-01 12:23:47 +00:00
Bart Van Assche
219e77b9bc
- Reindented code such that it uses three spaces for indentation instead
...
of two. The indentation of the DRD source code is now consistent with
the other Valgrind source files.
- Added emacs mode line with indentation settings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9496
2009-03-26 19:07:15 +00:00
Bart Van Assche
35dcaa5dbd
Removed cross-tool dependency on helgrind/helgrind.h.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9361
2009-03-11 18:51:22 +00:00
Bart Van Assche
d9d43c3032
Added support for the VG_USERREQ__HG_CLEAN_MEMORY client request.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9340
2009-03-10 09:26:07 +00:00
Bart Van Assche
aaef6d016e
Changes:
...
- pthread_barrier_wait() intercept now passes the information to the DRD
tool whether or not this function returned
PTHREAD_BARRIER_SERIAL_THREAD. This information is now displayed when
the command-line option --trace-barrier=yes has been specified.
- Changed the cleanup functions for client objects that are called just
before a thread stops into callback functions.
- Added DRD_(clientobj_delete_thread)().
- Removed DRD_(clientobj_resetiter)(void) and DRD_(clientobj_next)().
- Added test for race conditions between pthread_barrier_wait() and
pthread_barrier_destroy() calls. An error message is now printed if
this condition has been detected.
- Bug fix: pthread_barrier_delete() calls on barriers being waited upon
are now reported.
- Removed DRD_() wrapper from around the name of some static variables and
functions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9211
2009-02-21 15:27:04 +00:00
Bart Van Assche
b71a8e5966
- Updated copyright statements.
...
- Improved consistency of source file headers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9182
2009-02-16 19:43:56 +00:00
Bart Van Assche
cadc14611e
Wrapped DRD_() macro around even more function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9170
2009-02-15 14:18:02 +00:00
Bart Van Assche
8dd5b6ceb8
Wrapped DRD_() macro around thread-related function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9168
2009-02-15 13:11:14 +00:00
Bart Van Assche
1a06b087d8
Wrapped DRD_() macro around all barrier-related function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9165
2009-02-15 11:00:29 +00:00
Bart Van Assche
ce938fd90d
Changed the order of the function definitions.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9162
2009-02-15 10:36:32 +00:00
Bart Van Assche
498c9afeb5
Introduced more DRD_ prefixes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9158
2009-02-14 16:10:53 +00:00
Bart Van Assche
9353dd404e
- Moved several functions and variables from one source file to another.
...
- Created two new source files: drd_load_store.h and .c.
- Removed the header file drd_track.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9153
2009-02-14 15:13:31 +00:00
Bart Van Assche
57b4e9c50e
Added client requests related to pthread_cancel().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8639
2008-09-27 12:36:48 +00:00
Bart Van Assche
10c73ac342
Enabled support for nesting mutexes and condition variables in higher-level synchronization primitives. Changed mutex tracing output slightly.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8377
2008-07-07 16:53:07 +00:00
Bart Van Assche
def3aa6461
Made spinlocks work again.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8372
2008-07-07 08:10:56 +00:00
Bart Van Assche
6e368a9f37
Renamed exp-drd directory into drd. Moved drd from the experimental tool class to the class of regular tools.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8361
2008-07-04 15:14:35 +00:00