Bart Van Assche
6dacd9c6ff
Cleaned up the source code of the atomic_var regression test, without changing the actual test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9161
2009-02-15 10:19:35 +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
05120707d2
Added a missing #include directive.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9152
2009-02-14 14:49:23 +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
Bart Van Assche
233320f614
Added DRD_(spinlock_init_or_unlock)().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9150
2009-02-14 12:14:50 +00:00
Bart Van Assche
0a804bd7c6
- Performance improvement: eliminated busy waiting from thread creation.
...
- Applied DRD_() prefix to all names of functions that are not
intercepts of client code.
- Removed superfluous include directive, namely #include <inttypes.h>.
- Removed hack for suppressing false positive reports on stdio / stderr
because recently a suppression pattern was added for these races.
- Removed unused code and declarations.
- Added more comments.
- Updated copyright statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9149
2009-02-14 12:12:57 +00:00
Bart Van Assche
99249d56d6
Renamed vg_thread_wrapper() into DRD_(thread_wrapper)().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9148
2009-02-14 11:54:42 +00:00
Bart Van Assche
393e10e13b
Updated copyright statement.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9147
2009-02-14 10:58:45 +00:00
Bart Van Assche
27f484bc70
Added file to repository.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9146
2009-02-14 10:14:09 +00:00
Nicholas Nethercote
f3240d6950
Filter out everything after "(below main)" in a line. This will help with
...
Darwin, for which such entries can occur within the executable, rather than
within libc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9142
2009-02-12 00:51:50 +00:00
Nicholas Nethercote
947f9faaba
Merge part of r9129 (factor out duplicated Z-encodings of names) from the
...
DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9130
2009-02-10 04:23:41 +00:00
Bart Van Assche
fc97849a4c
Switched from the Apache License to a BSD-style license in order to reduce the number of licences that applies to the source code of Valgrind.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9122
2009-02-08 17:42:12 +00:00
Bart Van Assche
f93d44456f
Do not only recognize .plt and .plt.got sections inside the mapped address range, but also outside the mapped address range (necessary for ppc).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9090
2009-01-30 17:52:21 +00:00
Nicholas Nethercote
ed322feb84
Rename all the arch/OS/platform-related variables in configure.in to make it
...
clearer what they mean:
- They all have VGCONF_ prefixes now, to indicate they come out of
configure.in (and are clearly distinguished from the VGA_/VGO_/VGP_
#defines passed in to C files).
- The ones that refer to the primary *or* secondary platform have _INCLUDES_
in them.
- The ones that are in all-caps have a _CAPS suffix.
So, for example, what was VGP_X86_LINUX is now
VGCONF_PLATFORMS_INCLUDE_X86_LINUX, which is more verbose but also a lot
clearer. The names of the #defines used in the C files (VGA_x86, VGO_linux,
etc) are unchanged.
cputest.c: changed to reflect the Valgrind installation's capabilities,
rather than the machine's capabilities. In particular, if
--enable-only32bit is used on a 64-bit machine, then this program will claim
to only support 32-bits. Also use the VGA/VGO/VGP macros which are clearer
than the __i386__ ones. (This is partially merged from the DARWIN branch.)
configure.in: clean up the comments, distinguish different sections more
clearly, and generally make it more readable.
valgrind.pc.in: try to make this more accurate. I doubt anyone's using it.
It doesn't appear to be set up to handle dual-architecture builds.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9031
2009-01-22 21:56:32 +00:00
Nicholas Nethercote
74e8c02cea
A couple more changes to fix the conditional building of DRD tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9002
2009-01-20 22:54:50 +00:00
Bart Van Assche
b10b90dd0d
Added yet another output variant.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9001
2009-01-20 14:29:52 +00:00
Bart Van Assche
ce5fd5bf82
Added yet another output variant.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9000
2009-01-20 14:25:22 +00:00
Bart Van Assche
4e7dcd66bc
Elaborated prereq clauses.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8999
2009-01-20 14:18:29 +00:00
Bart Van Assche
c50d8622b9
Made compilation of multiple tests conditional.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8998
2009-01-20 14:02:22 +00:00
Bart Van Assche
a20274fcb3
Only call pthread_rwlock_timedwrlock() or pthread_rwlock_timedrdlock() if supported.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8996
2009-01-20 13:57:50 +00:00
Bart Van Assche
8ba5aa108b
Removed superfluous dependency.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8983
2009-01-19 19:58:32 +00:00
Bart Van Assche
78c4a2893b
Make sure that sigalrm.c compiles correctly on systems that do not have the header file <asm/unistd.h>.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8969
2009-01-16 12:07:52 +00:00
Bart Van Assche
2dd0d7d87f
Obtain current time through time() instead of through clock_gettime(CLOCK_REALTIME), such that this test compiles on systems that do not support CLOCK_REALTIME.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8967
2009-01-16 11:57:50 +00:00
Nicholas Nethercote
5ad1dd61f9
Introduce a new type, PtrdiffT. Replace lots of uses of OffT (all those
...
that are memory offsets) with PtrdiffT; OffT should only be used for file
sizes and offsets.
Change Off64T from a ULong to a Long, as it should be. Replace some uses
of ULong in the address space manager with Off64T to match.
Also add a comment explaining the meanings of the basic types like Addr,
OffT, SizeT, etc.
Also fix the prototype for VG_(pread) -- the last arg is an OffT, not an
Int.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8959
2009-01-15 21:29:24 +00:00
Bart Van Assche
06ee727a0e
Added an additional expected output file.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8947
2009-01-13 08:22:05 +00:00
Bart Van Assche
9b07e92592
Runs now fine on systems for which PTHREAD_STACK_MIN > 32768.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8946
2009-01-13 08:18:59 +00:00
Bart Van Assche
fe6a1e5755
Made DRD regression pass when the glibc-debuginfo package is installed.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8923
2009-01-08 12:50:57 +00:00
Bart Van Assche
fad4bf3d27
Polished manual.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8892
2009-01-02 13:29:32 +00:00
Bart Van Assche
1a82965231
Updated to do list.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8887
2008-12-31 09:55:44 +00:00
Bart Van Assche
d69b1fc884
Moved two define's, such that the ABIWARNING appears immediately before the enum declaration it applies to.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8884
2008-12-25 09:31:40 +00:00
Bart Van Assche
2b296eff40
Made sure that the file bar_trivial.stdout.exp gets included in the distribution tarball.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8883
2008-12-25 09:09:59 +00:00
Bart Van Assche
fec153f2f1
Renamed a variable and removed two statements that were commented out.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8880
2008-12-24 09:45:41 +00:00
Julian Seward
7b43e1d6b0
Un-break 'make dist'.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8878
2008-12-23 20:46:12 +00:00
Julian Seward
5221680195
Comment out unused code so as to get a warning free build.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8868
2008-12-23 02:31:22 +00:00
Bart Van Assche
8e077fe8b1
Updated after merge of Helgrind from YARD branch to trunk.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8862
2008-12-22 07:10:44 +00:00
Bart Van Assche
975dd0de65
Added prereq clause.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8857
2008-12-21 17:44:32 +00:00
Bart Van Assche
9fc7c603a3
circular_buffer test now passes on systems with and without built-in support for atomic operations.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8856
2008-12-21 17:24:21 +00:00
Bart Van Assche
a040d2e7b4
Fixed bug in vector clock updating for semaphores with non-zero initial value.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8854
2008-12-21 17:20:22 +00:00
Bart Van Assche
a0b0f8bf1e
Added command-line option -n, which allows to disable locking.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8853
2008-12-21 17:19:05 +00:00
Bart Van Assche
7ee41e9982
Replaced regular increment by atomic increment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8852
2008-12-21 17:16:03 +00:00
Bart Van Assche
a7dbb0d915
Made config.h include path consistent with the other regression tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8851
2008-12-21 16:10:36 +00:00
Bart Van Assche
4a2635aaba
Finished renaming of boost_threads into boost_thread.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8849
2008-12-21 16:08:36 +00:00
Bart Van Assche
8ca92c847d
Added another regression test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8837
2008-12-17 19:21:17 +00:00
Bart Van Assche
66d69c2025
Fixed semaphore vector clock updating / simplified semaphore tracing.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8836
2008-12-17 19:20:13 +00:00
Bart Van Assche
56da8e035f
Fixed grammar / split a paragraph in two.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8835
2008-12-17 19:15:58 +00:00
Bart Van Assche
1d166694b6
Added a paragraph about the Boost.Thread library.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8833
2008-12-17 19:10:06 +00:00
Bart Van Assche
7535e7be94
Fixed regression test tc20_verifywrap2, which was broken through r8829.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8830
2008-12-17 07:32:09 +00:00