Commit Graph

7621 Commits

Author SHA1 Message Date
Bart Van Assche
6a68dfd48d Added regression test for ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() and
ANNOTATE_IGNORE_READS_AND_WRITES_END().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10779
2009-08-11 15:00:54 +00:00
Josef Weidendorfer
f75771cc8f Fix bug 199338: callgrind_annotate sorting/thresholds are broken
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10778
2009-08-11 14:45:03 +00:00
Josef Weidendorfer
e247747cc5 Misc fixes for callgrind_annotate
* Patch from bug 198649 (callgrind_annotate doesn't cumulate counters)
  When there were multiple call sites in one line, the aggregated
  call count/cost numbers in the source annotation were wrong
* Callgrind often produces absolute file names.
  Make it work with relative file names requested for annotation from
  the command lines.
* More in sync with parser in KCachegrind: make summary line optional.
  We can also use the "totals:" line for this.
* Count of numbers in summary can be smaller then number of events given

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10777
2009-08-11 14:45:00 +00:00
Julian Seward
abf37ff2dc Move printing of EvM-gc and VTS-gc stats from -v to --stats=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10776
2009-08-11 10:39:25 +00:00
Julian Seward
e0cf1a903c Add pthread spinlock support.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10775
2009-08-11 10:35:58 +00:00
Nicholas Nethercote
bb38e1bb9b add missing scripts
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10774
2009-08-11 01:03:55 +00:00
Nicholas Nethercote
9d2e0f9cbe Count error contexts properly in VG_(unique_error). Avoids the problem seen
of "5 errors from 0 contexts" with leak errors.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10773
2009-08-11 00:52:40 +00:00
Nicholas Nethercote
643cc753ae add a missing script
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10772
2009-08-11 00:18:31 +00:00
Julian Seward
6f3ce096ad Fix some const stuff that gcc-4.4.0 complains about.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10771
2009-08-10 19:39:02 +00:00
Julian Seward
8379ad7f3b parse_type_DIE: push incomplete structure tyents on the type stack,
since gcc-4.4 on Fedora 11 will create DW_TAG_member entries within
it, and we need to have a plausible parent type on the stack.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10770
2009-08-10 18:59:54 +00:00
Bart Van Assche
7ae907a088 Added suppression patterns for the most recent libglib and libQtCore versions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10769
2009-08-10 14:13:12 +00:00
Nicholas Nethercote
675914e025 Try to fix error_counts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10768
2009-08-10 08:25:39 +00:00
Nicholas Nethercote
49d480e3ca Count leak as errors. Fixes bug 152393.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10767
2009-08-10 07:50:00 +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
Nicholas Nethercote
6fd1b000e4 Allow custom blocks to overlap with malloc blocks. Fixes bug 100628.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10765
2009-08-10 07:36:54 +00:00
Nicholas Nethercote
15773b3fbe augment a comment
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10764
2009-08-10 06:47:00 +00:00
Nicholas Nethercote
c90e6fb664 add an item
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10763
2009-08-10 05:11:43 +00:00
Nicholas Nethercote
794810cd02 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10762
2009-08-10 04:07:54 +00:00
Nicholas Nethercote
4ff6260a88 Remove bad explanations of mempool requests from the core manual, just point
to the Memcheck chapter.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10761
2009-08-10 01:43:20 +00:00
Nicholas Nethercote
aeae3a302c wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10760
2009-08-10 01:34:27 +00:00
Nicholas Nethercote
4e495edf4a Make "option" terminology consistent some more. Also tweaked the mempool
Memcheck section a little.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10759
2009-08-10 01:29:14 +00:00
Nicholas Nethercote
0ea383e6b3 Be consistent in the naming of sections describing command-line options.
Also, use "option" rather than "flag" where possible, for consistency.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10758
2009-08-10 01:15:30 +00:00
Nicholas Nethercote
0db63a66bf Remove some cross-references that are broken in the man pages because they
only include a subset of the User Manual.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10757
2009-08-10 00:42:43 +00:00
Nicholas Nethercote
c149a17389 Make usage messages given by -h and man pages consistent for the scripts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10756
2009-08-09 23:27:00 +00:00
Nicholas Nethercote
e3fc6742cd Add an alternative output for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10755
2009-08-08 07:38:25 +00:00
Josef Weidendorfer
e9c296ba6d callgrind_control: be strict on parsing options
Get rid of "-v" as short form of "--version".
Also, help text for dumps/instrumentation shows only the long
versions now. However, '-i on' or '-d dump now!' is still possible.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10754
2009-08-07 23:19:09 +00:00
Nicholas Nethercote
128610128f Remove commas, for consistency with other parts of the manual.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10753
2009-08-07 22:01:49 +00:00
Vince Weaver
f974a1a2f5 Add some clarifications to the exp-bbv manual.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10752
2009-08-07 21:00:05 +00:00
Julian Seward
2c168a6128 Resync after {wq,p}thread_hijack rather than merely doing a check.
Believed to help with, although not fix, the underlying problem in
#192634.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10751
2009-08-07 20:28:58 +00:00
Josef Weidendorfer
aa85156872 callgrind_control: sync manual/man page and script help output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10750
2009-08-07 20:20:41 +00:00
Julian Seward
a5a0b4db75 Update Memcheck expected outputs following r10746 (Darwin variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10749
2009-08-07 19:47:29 +00:00
Julian Seward
428918f88e Update Memcheck expected outputs following r10746 (32-bit variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10748
2009-08-07 19:26:41 +00:00
Julian Seward
2fcd38d5f2 Update Memcheck expected outputs following r10746 (64-bit variants only).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10747
2009-08-07 17:47:42 +00:00
Julian Seward
8ffe2fdefa Tidy up of messaging:
* For all tools and the core, don't show statistics when -v is in
  effect.  Instead, try to restrict -v to mostly user-useful
  stuff.

* A new flag --stats=no|yes [no] produces statistics output instead.

* Fix longstanding problem in that Memcheck's leak checker ran after
  the core's error manager module shut down, thereby not showing use
  counts of leak suppressions.  This fixes #186790.

* As a consequence, the leak checker text output of Memcheck has
  changed a bit -- leak check is done before the final error
  summary is done (much more logical), and the output has been
  tidied up a bit.

* Helgrind, Drd and Ptrcheck now also print "For counts of
  detected and suppressed errors, rerun with: -v", which makes
  them consistent with Memcheck in this regard.  These are
  filtered out by the regtest filter scripts.

For all tools except Memcheck, the regtests are unchanged.  On
Memcheck regtests still fail due to rearrangements of the leak
checker output.  This will be fixed by a followup commit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10746
2009-08-07 15:46:56 +00:00
Nicholas Nethercote
7c5dac3dcf Install all the new man pages. Include them in 'make dist' too (even if
BUILD_ALL_DOCS is false;  we've built them anyway).  Delete them with 'make
distclean' too (and FAQ.txt).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10745
2009-08-07 08:31:58 +00:00
Nicholas Nethercote
6fcbcab519 Add a manpage for cg_annotate. Now only valgrind-listener and cg_merge lack
a manpage, and they're so simple I can't be bothered doing ones for them
(they don't even have sections in the manual).

Also fixed a few minor things relating to manpages.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10744
2009-08-07 07:56:20 +00:00
Bart Van Assche
dc6bc62d13 Updated DRD's to do list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10743
2009-08-07 07:49:36 +00:00
Nicholas Nethercote
a5bcb4c0dd - Documented callgrind_{annotate,control} in the Callgrind manual chapter
and created man pages for them.  Renamed the XML files in the process for
  consistency.

- Inlined cg-entities.xml into vg-entities.xml.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10742
2009-08-07 07:44:31 +00:00
Nicholas Nethercote
3334850c3c Update. Fortunately it's gotten a little simpler.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10741
2009-08-07 07:31:15 +00:00
Nicholas Nethercote
e06f6f7164 Manpage improvements:
- Added a manpage for ms_print.

- Added docs/xml/manpages-index.xml, which is just used as a convenient
  single file to hang all the man pages off so they can be generated in a
  single command.

- Added facility whereby manpage generation will attempt to find the
  stylesheet in multiple places.  This means I don't have to constantly edit
  XSL_MAN_STYLE to build manpages on my machine.

- Changed vg-docs-path to start with $INSTALL instead of /usr/, because we
  can't assume that's the installation dir.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10740
2009-08-07 06:54:44 +00:00
Bart Van Assche
b4ae217683 Updated after r10688.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10739
2009-08-07 06:47:52 +00:00
Nicholas Nethercote
53ad023160 Remove a broken Cachegrind link, and include some extra DRD options.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10738
2009-08-07 06:08:51 +00:00
Nicholas Nethercote
2169d23e04 Remove some text that shouldn't be there.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10737
2009-08-07 05:58:00 +00:00
Nicholas Nethercote
0278a4c81a Minor changes to Callgrind file format docs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10736
2009-08-07 05:40:26 +00:00
Nicholas Nethercote
ec5c7aa4e5 Minor formatting and grammar changes to the DRD manual chapter, to make it
consistent with the rest of the documentation.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10735
2009-08-07 05:23:31 +00:00
Nicholas Nethercote
56c2654c04 Overhauled the how-to-write-a-new-tool chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10734
2009-08-07 04:55:15 +00:00
Nicholas Nethercote
c1a82c95fb Overhaul design+implementation chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10733
2009-08-07 04:07:20 +00:00
Nicholas Nethercote
41876dfd59 Went over the FAQ. Also tweaked vg-entities.xml a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10732
2009-08-07 02:58:11 +00:00
Nicholas Nethercote
789339fe6f Overhaul Helgrind's manual chapter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10731
2009-08-07 02:18:00 +00:00
Nicholas Nethercote
88a2f8bed1 Thoroughly overhauled the Cachegrind manual chapter, mostly by putting
things in a more sensible order.  Also tweaked the Massif chapter a bit
more.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10730
2009-08-07 00:18:25 +00:00