aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-07-01Add some more functions to the default --alloc-fns list. Had to tweak hownjn
verbose output is printed so that the tests would be ok, now that different platforms have different alloc-fns lists. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10389 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-07-01Just whitespace and comment changes.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10388 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-30Fix a problem with r10384: it was failing to read the ELF header if thenjn
executable was less than 4096 bytes. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10387 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-29Fix statistics with multiple changes of instrumentation stateweidendo
This fixeds bug 150606. When switching on instrumentation, the current function got the wrong (too large) inclusive cost when instrumentation ever was on before. The reason was that the global (ever increasing) event counters where not reset on toggling instrumentation state. The global counters are used to calculate inclusive cost of a function by getting the difference of the global counters at leaving minus their value at enter time. When leaving a function which was not encountered to be entered before (a stack underrun of the shadow stack), it is assumed that this function was entered with instrumentation switched off. Then, the absolute value of global counters is used to calculate the inclusive cost. Thus, these global counters have to be zeroed at instrumentation change to allow for senseable inclusive costs of functions which were not observed to be entered. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10386 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-29Change demangler to not use excessive space from stackweidendo
Replaces alloca with xmalloc calls. This should fix bug 197988. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10385 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-29Make the Linux launcher more like the Darwin one in how it reads thenjn
executable headers. This means it no longer crashes on an empty executable. Fixes bug 156065. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10384 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-29Add a comment.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10383 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-27Suppression wasn't general enough. Caught by Jeroen Witmond.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10382 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-26Applied the patch attached to http://bugs.kde.org/show_bug.cgi?id=165468: ↵bart
fixed some formatting inconsistencies. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10381 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-26Suppress a leak in setenv(). Fixes bug 188572.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10380 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-26An fd in the Darwin launcher wasn't being closed.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10379 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-25Fix 'make check' for automake-1.7. Fixes bugs 197898 and 197901.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10378 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Use the value set in the environment variable DRD_SEGMENT_MERGING_INTERVAL ↵bart
if the segment merging interval has not been specified as a command-line option. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10377 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Changed default segment merging interval from 64 to 10.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10376 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Added tool option --drd-stats=yes.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10375 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24In VG_(get_changed_segments) use dynamic memory allocation rather thannjn
static memory allocation to avoid hardwiring an upper limit on CSS_SIZE. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10374 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Remove some unnecessary tests.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10373 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24The previous commit broke the 32-bit build, which is now fixed.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10372 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Add support for various aio_*() syscalls on Darwin. With them, Quicktimenjn
runs, albeit incredibly slowly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10371 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Suppress a Cond error in pthread_rwlock_init(). Fixes bug 196528.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10370 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Add a comment.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10369 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Support and test mincore() on Darwin.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10368 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Enable mincore() on AMD64/Linux. Hopefully fixes bug 197591.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10367 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24Abort if a dir is given to --suppressions. Fixes bug 197456.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10366 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-24This commit merges the BUILD_TWEAKS branch onto the trunk. It has thenjn
following improvements: - Arch/OS/platform-specific files are now included/excluded via the preprocessor, rather than via the build system. This is more consistent (we use the pre-processor for small arch/OS/platform-specific chunks within files) and makes the build system much simpler, as the sources for all programs are the same on all platforms. - Vast amounts of cut+paste Makefile.am code has been factored out. If a new platform is implemented, you need to add 11 extra Makefile.am lines. Previously it was over 100 lines. - Vex has been autotoolised. Dependency checking now works in Vex (no more incomplete builds). Parallel builds now also work. --with-vex no longer works; it's little use and a pain to support. VEX/Makefile is still in the Vex repository and gets overwritten at configure-time; it should probably be renamed Makefile-gcc to avoid possible problems, such as accidentally committing a generated Makefile. There's a bunch of hacky copying to deal with the fact that autotools don't handle same-named files in different directories. Julian plans to rename the files to avoid this problem. - Various small Makefile.am things have been made more standard automake style, eg. the use of pkginclude/pkglib prefixes instead of rolling our own. - The existing five top-level Makefile.am include files have been consolidated into three. - Most Makefile.am files now are structured more clearly, with comment headers separating sections, declarations relating to the same things next to each other, better spacing and layout, etc. - Removed the unused exp-ptrcheck/tests/x86 directory. - Renamed some XML files. - Factored out some duplicated dSYM handling code. - Split auxprogs/ into auxprogs/ and mpi/, which allowed the resulting Makefile.am files to be much more standard. - Cleaned up m_coredump by merging a bunch of files that had been overzealously separated. The net result is 630 fewer lines of Makefile.am code, or 897 if you exclude the added Makefile.vex.am, or 997 once the hacky file copying for Vex is removed. And the build system is much simpler. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10364 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-22Fixed typo.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10360 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Statistics: fixed bug introduced in r10356.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10359 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() ↵bart
calls as level one bitmap creation events. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10358 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Combined DRD_(thread_new_segment)() and DRD_(thread_combine_vc_sync)()bart
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 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Made --drd-stats=yes output even more verbose.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10356 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Merged revisions 10129:10130 from the DRDDEV branch to the trunk.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10355 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-21Updated code for statistics printed by --drd-stats=yes.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10354 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-20Generalized a suppression pattern.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10353 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-20Updated test plan.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10352 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-20Reran SPLASH-2 benchmark.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10351 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-15Make the sys_newlstat wrapper more like those of similar *stat() syscalls.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10339 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-15Callgrind: fix instrumentation for arbitrary events per guest instructionweidendo
(should fix bug 169505) This uses the same event queue scheme as cachegrind and lackey, and same kind of helpers (1/2/3 Ir events, Ir+Dr, Dr, Ir+Dw, Dw). Note that in contrast to Cachegrind, Callgrind interpretes a modify event as Dw (otherwise the cache model generating write back events would not work). Callgrind uses per-(guest)instruction event sets for cost counters. An per-instruction eventset is incrementally extended as events for the same guest instruction are flushed. Event sets always start with Ir counters, but depending on Dr/Dw order afterwards, there exist IrDr(Dw) and IrDw(Dr). Per-instruction event sets now are consistently named according to event ordering. Event set "sim" is a subset of "full", was never used and was removed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10321 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-15Avoid variable name "new", use more concrete name insteadweidendo
Also confusing for syntax highlighter/indexer of some editors/IDEs git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10320 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-14Added #include <stdint.h>.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10319 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-13Skip the pth_create_chain test on ppc.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10318 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-12Tweak the README -- make its text match the website, get rid of some of thenjn
more detailed explanation (if they're reading the README, we probably don't need to convince them about Valgrind's wonderfulness). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10313 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-12Get rid of ACKNOWLEDGEMENTS, because it overlaps hugely with AUTHORS.njn
Improve AUTHORS a bit at the same time. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10309 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-11Add some cases to darwin/scalar.c, and tweak the macros used a little.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10298 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Add wrappers for shmat() and shmdt() on Darwin. Fixes bug 191271.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10297 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Move the Darwin _nocancel tests to a different file so they can be testednjn
properly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10296 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Added a wrapper and test for exchangedata() on Darwin. Fixes bug 195860.njn
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10295 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10- Added more comments in DRD's malloc wrappers.bart
- Fixed memory allocation counters. - Client memory is now freed in the realloc() wrapper in all cases where it should be freed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10294 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Updated ignore list.bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10293 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Added test code for realloc().bart
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10292 a5019735-40e9-0310-863c-91ae7b9d1cf9
2009-06-10Implement and test wrappers for lstat_extended, stat64_extended,njn
lstat64_extended, and improve the existing wrapper for stat_extended. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10291 a5019735-40e9-0310-863c-91ae7b9d1cf9