Bart Van Assche
f7fb5bb661
Remove trailing whitespace
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12293
2011-12-11 20:34:03 +00:00
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
45e4d0e7ee
drd, XML tracing: move newline generation into DRD_(trace_msg)() / change tracing output format slightly.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12146
2011-10-13 18:04:30 +00:00
Bart Van Assche
b7a5b789ef
drd: Enable XML output. See also #282949 . To do: document the output format.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12137
2011-10-11 19:08:39 +00:00
Bart Van Assche
9d1823dac9
DRD, refactoring: Introduce DRD_(trace_msg)()
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12120
2011-10-08 08:29:29 +00:00
Bart Van Assche
0230aa2ac2
drd: drd_thread.c source code cleanup
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11942
2011-07-29 12:30:43 +00:00
Bart Van Assche
6cf2bc2c34
drd: Delay deletion of memory access information of joined threads in order not
...
to miss any races caused by these threads.
To do: refine handling of pthread_once() again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11926
2011-07-28 09:54:37 +00:00
Bart Van Assche
98e2b90f54
drd: Source code cleanup - merge two blocks of tracing code
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11851
2011-07-03 11:43:45 +00:00
Bart Van Assche
32e94d5a60
drd: Source code cleanup - change two variables from int to bool and outdent one code block
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11848
2011-07-03 11:40:49 +00:00
Bart Van Assche
ea4cf7d848
drd: Add an assert statement
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11847
2011-07-03 11:39:30 +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
1997767aad
DRD: More source code cleanup (constant propagation).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11631
2011-03-12 12:34:44 +00:00
Bart Van Assche
ab798ee7e4
DRD: avoid triggering an assertion failure if a thread is canceled while waiting inside pthread_mutex_lock(). Fixes #267413 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11578
2011-03-03 19:59:20 +00:00
Bart Van Assche
2ca0b1b5d1
DRD: handle fork() in processes with detached threads correctly (see also #255355 ).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11532
2011-02-09 11:55:12 +00:00
Bart Van Assche
79f1b01520
DRD: do not assert() upon fork(). Fixes the DRD part of #255355 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11520
2011-02-03 17:47:50 +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
f9870efee2
Added the per-thread property 'on_alt_stack'.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11326
2010-09-02 14:43:18 +00:00
Bart Van Assche
a1d51679d9
Added command-line option --trace-alloc and disabled --free-is-write by default.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11301
2010-08-29 09:19:07 +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
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
Nicholas Nethercote
8ecd57ded4
Remove unnecessary #includes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10766
2009-08-10 07:47:43 +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
d6cc7becb2
Print an easy-to-understand message in case the client program tries to create more threads than what is currently supported by DRD.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10593
2009-07-24 11:11:30 +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
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
Julian Seward
c020a7e3b6
Merge drd/ changes from branches/MESSAGING_TIDYUP r10464.
...
See trunk r10465 commit message for details.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10466
2009-07-15 14:49:17 +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
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
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
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
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
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
9a196291ec
Made DRD_(thread_set_pthreadid)() idempotent.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9590
2009-04-23 17:12:39 +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
fa675bb534
Cleanup.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9384
2009-03-12 18:35:44 +00:00
Bart Van Assche
2e2af4c91c
- Added more comments.
...
- Removed DRD_() wrapper from around local functions and variables.
- Removed some obsolete code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9320
2009-03-04 19:26:47 +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
737b0449dc
Wrapped DRD_() macro around yet even more function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9172
2009-02-15 15:59:20 +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
ae7c8b899e
Wrapped DRD_() macro around global and static variables in drd_thread.[ch].
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9167
2009-02-15 12:14:52 +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
f2d278014e
Added more comments / rearranged function order.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9163
2009-02-15 10:38:37 +00:00
Bart Van Assche
a2f849972f
Wrapped DRD_() macro around all segment function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9160
2009-02-14 17:19:58 +00:00
Bart Van Assche
c5f4cc3cf1
Wrapped DRD_() macro around all vector clock function names.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9159
2009-02-14 16:55:19 +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
5a950f3e74
Relaxed an assert statement: a thread canceled by pthread_cancel() can really exit with synchr_nesting > 0.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9151
2009-02-14 14:46:16 +00:00