Julian Seward
b012d72856
Add a test for origin tracking through large floating point arrays.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8008
2008-05-06 08:14:57 +00:00
Julian Seward
79c14a0983
Add comments giving an overview of the origin tracking implementation.
...
Also, rename "ocache" to "ocacheL1" to be more consistent with the
comments and the rest of the otag cache code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8007
2008-05-05 09:48:56 +00:00
Julian Seward
edb789f73a
Add documentation on the new --track-origins=no|yes [no] flag.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8006
2008-05-04 23:06:28 +00:00
Bart Van Assche
97036e3ad9
Make sure that the return value of highest_used_stack_address() is a valid stack pointer.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8005
2008-05-04 11:59:01 +00:00
Bart Van Assche
6e2e200228
Fixed compiler warnings.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8004
2008-05-04 08:10:24 +00:00
Bart Van Assche
57478205c9
Disable gcc warnings about shadowed variables when compiling varinfo2.c.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8003
2008-05-04 08:09:44 +00:00
Bart Van Assche
eeb4e09fce
Suppressed most output while the regression test is run.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8002
2008-05-04 07:47:21 +00:00
Bart Van Assche
283d0d3d12
Renamed bm_compare() into bm_equal(). Fixed a bug in bm_equal().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8001
2008-05-04 07:46:20 +00:00
Bart Van Assche
a6c19077a8
Print name of Fedora package that contains /usr/bin/getconf in case /usr/bin/getconf is not found.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8000
2008-05-03 09:35:01 +00:00
Bart Van Assche
95a4f94211
Changed #if defined(platform) tests into #if defined(HAVE_...) tests.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7999
2008-05-03 09:15:25 +00:00
Bart Van Assche
27e6ce8d8c
Added configure tests for PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_RECURSIVE_NP and PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7998
2008-05-03 09:12:15 +00:00
Bart Van Assche
6e5ecf039e
Reverted last commit since it does not fix anything (unfortunately).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7997
2008-05-03 09:00:40 +00:00
Bart Van Assche
9977e2ee92
Print an error message if /usr/bin/getconf is not found.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7996
2008-05-03 08:34:52 +00:00
Julian Seward
39371c85a5
Remove a bit of unused code.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7995
2008-05-03 05:24:57 +00:00
Julian Seward
f9f7ad0a45
Make sure sp[0] and fp[0] are set in a rarely-taken path. Thanks to
...
Bart for spotting this.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7994
2008-05-02 22:27:07 +00:00
Bart Van Assche
502dbc9d0c
Refined assert statements.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7993
2008-05-02 19:21:02 +00:00
Bart Van Assche
903a3b320a
Added yet another assertion statement.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7992
2008-05-02 19:12:43 +00:00
Bart Van Assche
79247715a5
Postponed call of vg_set_main_thread_state() from /lib/ld-*.so:_start() to the call of main(), the program entry point.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7991
2008-05-02 18:53:33 +00:00
Bart Van Assche
675142af40
Added an assert statement to check the validity of the computed highest used stack address.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7990
2008-05-02 17:27:08 +00:00
Julian Seward
32a83b165a
Dynamically allocate the origin tracking cache as needed (only for
...
runs with --track-origins=yes), rather than having it statically
allocated. This is important because the cache is large (100MB) and
soaking up 100MB of address space for a non-tracking run is not good.
Unfortunately this slows down the origin tracker by 1 to 2 %.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7989
2008-05-02 13:35:29 +00:00
Julian Seward
8c61ca1c09
Re-check complex and fragile bit-twiddling pertaining to indexing into
...
the primary map on 64-bit systems. Add extensive comments and
startup-time assertions.
As a result of this, fix two off-by-one errors in
MC_(helperc_MAKE_STACK_UNINIT) (unlikely to be of much significance,
but still ..). No other errors were found.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7988
2008-05-02 12:35:48 +00:00
Julian Seward
0d5557aee9
Minor cleanups:
...
* remove 'extern' in all the headers, as that is irrelevant and wastes
horizontal space
* fix some 64-bit uncleanness in client(-defined) block handling
* remove unneeded #includes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7987
2008-05-02 11:25:17 +00:00
Julian Seward
4d1716321e
Move the error management code for Memcheck into a new file,
...
mc_errors.c, as it is relatively self contained. This reduces the
size of mc_main.c by about 1350 lines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7986
2008-05-02 10:33:15 +00:00
Julian Seward
f35eb37648
Update expected outputs following merge of branches/OTRACK_BY_INSTRUMENTATION.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7985
2008-05-01 22:34:16 +00:00
Julian Seward
a1289fb4ca
Bump the core/tool iface version number, since the just-merged-in
...
changes for Memcheck origin tracking change the interface (slightly).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7984
2008-05-01 21:43:17 +00:00
Julian Seward
3c25a48a0c
Temporarily work around compilation failures caused by non-definition
...
of __NR_timerfd, pending proper resolution. See
http://bugs.kde.org/show_bug.cgi?id=160907
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7983
2008-05-01 21:22:38 +00:00
Julian Seward
4cae5c3ed5
Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
...
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.
This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output. This
will be fixed.
The core-tool interface is slightly changed. The version number for
the interface needs to be incremented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00
Julian Seward
f3274344b6
Update (minor).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7981
2008-05-01 20:18:39 +00:00
Bart Van Assche
cbb9f8f884
Fixed compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7980
2008-05-01 15:39:18 +00:00
Bart Van Assche
a1f59b867e
Removed -Wextra since this option has another name in gcc 3.0 (-W).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7979
2008-05-01 15:38:05 +00:00
Bart Van Assche
23b39c80a6
Added #include <stdio.h>.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7978
2008-05-01 15:00:16 +00:00
Bart Van Assche
01c12607e5
Added prereq clause.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7977
2008-05-01 14:59:41 +00:00
Bart Van Assche
a5620a3d37
Added to repository.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7976
2008-05-01 14:58:39 +00:00
Bart Van Assche
0f3c0b9687
Fixed a compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7975
2008-05-01 14:36:39 +00:00
Bart Van Assche
0dcf086bad
Added -I$(top_srcdir)/VEX/pub to AM_CPPFLAGS.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7974
2008-05-01 14:11:45 +00:00
Bart Van Assche
7d77c54793
Moved bitmap test from drd_bitmap.c to tests/drd_bitmap_test.c
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7973
2008-05-01 13:50:20 +00:00
Bart Van Assche
eb70b584f2
Restored original bitmap test patterns.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7972
2008-05-01 13:06:04 +00:00
Bart Van Assche
bcb85a68fb
Make sure the test for kernel version 2.6.22 will work correctly for the future kernel versions 2.6.220 .. 2.6.229.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7971
2008-05-01 12:35:48 +00:00
Bart Van Assche
fd086f9ad2
Updated expected output according to glibc 2.8 changes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7970
2008-05-01 12:28:01 +00:00
Bart Van Assche
60210b24d7
Added documentation for PRINT() macro in syscall wrappers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7969
2008-05-01 12:23:48 +00:00
Bart Van Assche
829c08bedc
Updated Makefile.am after having renamed an output file.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7955
2008-04-28 16:51:24 +00:00
Bart Van Assche
8d32121aca
Compiles now on systems without definition of CLOCK_MONOTONIC.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7954
2008-04-28 16:26:49 +00:00
Bart Van Assche
0223f8f027
Added configure test for CLOCK_MONOTONIC.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7953
2008-04-28 16:22:53 +00:00
Dirk Mueller
ee4be14bf7
update suppression for glibc 2.8: the backtrace
...
points to ld-2.8.so here.. so just match for any
lib in /lib
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7951
2008-04-27 22:34:16 +00:00
Dirk Mueller
24a0637b71
fix typo
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7950
2008-04-27 20:38:47 +00:00
Bart Van Assche
8d8bef9644
Added reference to SPLASH-2.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7949
2008-04-27 16:18:44 +00:00
Bart Van Assche
74dfae7638
Updated to do list.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7948
2008-04-27 16:17:34 +00:00
Bart Van Assche
875643af71
Only run the timerfd_create()/timerfd_gettime()/timerfd_settime() test on kernel 2.6.25 and later.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7947
2008-04-27 13:21:01 +00:00
Bart Van Assche
3d8bff5131
Fixed typo.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7946
2008-04-27 13:20:22 +00:00
Bart Van Assche
2d8928196c
Fixed typo.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7945
2008-04-27 13:20:07 +00:00