Josef Weidendorfer
af3e00ab6f
callgrind_annotate: Fix a warning
...
Port a fix for ""Possible precedence problem" from
cachegrind/cg_annotate, see r1713.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6749
2007-05-24 20:47:10 +00:00
Josef Weidendorfer
a09042a627
Callgrind manual: Fix typo
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6748
2007-05-24 20:42:41 +00:00
Josef Weidendorfer
833c095f5c
Callgrind manual: rewriting start of section about avoding cycles
...
This hopefully makes the whole issue with cycles easier to understand.
And no, this does not get rid of the description of cycles, carefully
crafted by Julian ;-)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6747
2007-05-24 19:24:23 +00:00
Josef Weidendorfer
6575e93f46
Callgrind format: Note about event names in the example
...
The added paragraph was triggered by a question on the mailing list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6746
2007-05-24 18:04:42 +00:00
Julian Seward
b91b51b42b
Merge (from 3.2 branch) r6743 (Edit the manual to bring it up to date
...
and make some of the wording a bit more professional sounding.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6745
2007-05-23 21:58:33 +00:00
Dirk Mueller
527df75cde
glibc 2.6 support
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6744
2007-05-23 17:39:08 +00:00
Nicholas Nethercote
dea2377dd9
Clarify --trace-children a little.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6741
2007-05-15 03:59:23 +00:00
Robert Walsh
31d177f747
Update svn:ignore properties.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6739
2007-05-14 01:55:34 +00:00
Josef Weidendorfer
e4e5c8487a
Update
...
Not really a bug, but the callgrind doc improvement is useful
on the 3.2 branch as well.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6735
2007-05-08 12:07:52 +00:00
Josef Weidendorfer
db1e230c31
Callgrind: improve documentation
...
* Looks a little bit more like the Cachegrind manual
(at least in front)
* Removed the out-of-place general section about profiling
and gprof. Perhaps something like this can be put at
another place
* Notes about Callgrinds problems with call tracing on PPC
* Include usage of callgrind_annotate, and note its lack of
cycle detection
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6734
2007-05-08 11:58:23 +00:00
Julian Seward
e16417ddf7
Add branch-misprediction profiling to Cachegrind. When the (new) flag
...
--branch-sim=yes is specified, Cachegrind simulates a simple indirect
branch predictor and a conditional branch predictor. The latter
considers both the branch instruction's address and the behaviour of
the last few conditional branches. Return stack prediction is not
modelled.
The new counted events are: conditional branches (Bc), mispredicted
conditional branches (Bcm), indirect branches (Bi) and mispredicted
indirect branches (Bim). Postprocessing tools (cg_annotate, cg_merge)
handle the new events as you would expect. Note that branch
simulation is not enabled by default as it gives a 20%-25% slowdown,
so you need to ask for it explicitly using --branch-sim=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6733
2007-05-08 09:20:25 +00:00
Julian Seward
f37ce26adb
Update.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6730
2007-05-06 11:28:18 +00:00
Julian Seward
696fb88c46
Fix stack overflow which lead to totally mysterious .bss corruption
...
and hence to segfaulting in vex on ppc32/64-linux in obscure
circumstances. VKI_MAX_PAGE_SIZE is 64k in recent Valgrinds.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6728
2007-05-05 11:40:35 +00:00
Julian Seward
7a6b2f9713
Older assemblers on amd64-linux don't do lahf/sahf; work around that.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6727
2007-05-03 21:25:37 +00:00
Julian Seward
504e19fb9d
Fix regression in new/new[]/delete/delete[] intercepts for gcc-2.96.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6726
2007-05-02 16:24:30 +00:00
Julian Seward
d18e63eb42
Avoid compilation warnings with gcc-4.2.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6722
2007-05-01 14:18:48 +00:00
Julian Seward
ecc35db60b
If gcc supports -fno-stack-protector, use it. This should fix
...
compilation failures on distros where -fstack-protector is enabled by
default. See #144112 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6721
2007-05-01 13:44:08 +00:00
Julian Seward
fed8fda1a5
Update.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6720
2007-05-01 09:19:29 +00:00
Julian Seward
984e45e88f
Add disclaimers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6709
2007-04-29 09:06:40 +00:00
Nicholas Nethercote
bb2eae844c
augment previous commit
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6708
2007-04-20 02:15:28 +00:00
Nicholas Nethercote
2005fbaa40
It's generally a good idea to set call-by-reference arguments, especially
...
when the function comments says that they always are set.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6707
2007-04-19 23:35:42 +00:00
Dirk Mueller
40de8b88ed
wrap env related functions to be able to track undefined
...
values better
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6706
2007-04-19 09:47:32 +00:00
Nicholas Nethercote
802b418634
Fix some copyright notices:
...
- extend some to 2007
- use njn@valgrind.org instead of njn25@cam.ac.uk
- use "tool" instead of "skin"
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6703
2007-04-15 22:15:57 +00:00
Julian Seward
7a897aa86d
When doing 'demo' translations for --profile-flags=, make at least
...
some attempt to discard existing translations first. Otherwise
Cachegrind (rightly) asserts on the basis that it is seeing duplicate
translation requests for the same entry point.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6698
2007-04-09 22:24:57 +00:00
Julian Seward
0c2bd9e01d
Update.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6697
2007-04-07 14:46:45 +00:00
Julian Seward
5c59b39513
Fix out of date comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6696
2007-04-07 14:46:13 +00:00
Julian Seward
09c2f81371
Test sahf/lahf on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6695
2007-04-07 12:15:44 +00:00
Julian Seward
2f94452db6
Handle some more types: {REAL,INTEGER}{4,8} and 2INT. Also a change
...
to reduce the number of error messages printed if there is an
unhandled type.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6692
2007-04-05 00:35:20 +00:00
Nicholas Nethercote
9dae2dbbdf
Explicitly zero CCs. It's already being done by VG_(OSet_AllocNode), but
...
that's more by chance than design.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6691
2007-04-02 03:11:41 +00:00
Julian Seward
2f05a25849
Test some Fortran types.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6688
2007-03-29 16:35:00 +00:00
Nicholas Nethercote
be45884d98
add a comment
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6682
2007-03-28 12:16:55 +00:00
Nicholas Nethercote
742ae56613
Remove duplicate code -- make XArray use VG_(ssort).
...
Had to change XArray's comparison function to return an Int rather than a
Word so it's consistent with the rest of the world.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6680
2007-03-28 01:27:05 +00:00
Nicholas Nethercote
d4f6424694
update
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6677
2007-03-27 07:43:51 +00:00
Nicholas Nethercote
5b3b070cf7
Augment a comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6676
2007-03-27 07:41:33 +00:00
Nicholas Nethercote
b89c81e048
clarify comment
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6674
2007-03-27 06:46:03 +00:00
Nicholas Nethercote
4004bd9e21
update
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6673
2007-03-26 23:53:25 +00:00
Nicholas Nethercote
904b84c436
Fix bug 142491: allow more --alloc-fn functions (128, up from 32).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6671
2007-03-26 23:51:29 +00:00
Nicholas Nethercote
57e89eb92e
update
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6670
2007-03-26 23:45:19 +00:00
Nicholas Nethercote
ab3351f6a9
Fix bug 142197: don't free --toolname:foo options after they've been munged,
...
because tools should be able to assume that they are never freed, just like
other options.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6668
2007-03-26 23:38:42 +00:00
Nicholas Nethercote
b47fe70df1
update
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6667
2007-03-26 22:12:58 +00:00
Nicholas Nethercote
39c78c7e8b
Fix 142488: don't read ./.valgrindrc if CWD==HOME.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6665
2007-03-26 22:05:30 +00:00
Julian Seward
839e8253e8
Add a variant of gsl16test which handles the newer gsl-1.9 package.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6664
2007-03-26 15:27:01 +00:00
Julian Seward
de95f78978
Add assertion + comment to a loop using VG_(getcwd).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6663
2007-03-26 15:23:20 +00:00
Julian Seward
37243a218c
Update slightly.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6659
2007-03-26 02:11:17 +00:00
Nicholas Nethercote
f79a3419f5
More info about the VEX changes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6658
2007-03-22 20:58:50 +00:00
Julian Seward
953e3c3059
Don't build SSE3 tests if the configure test determined that the assembler
...
does not know about SSE3 instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6657
2007-03-22 12:13:13 +00:00
Nicholas Nethercote
38fd939a14
Clarify the "out of memory" message.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6656
2007-03-22 03:36:55 +00:00
Julian Seward
bf1ed2f464
Older assemblers don't speak SSE3. Add a configure test for it.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6655
2007-03-22 00:24:21 +00:00
Julian Seward
63d002a2cd
Unbreak the build on ppc64-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6654
2007-03-21 02:27:38 +00:00
Julian Seward
14b9b8b8d2
Make ptrace-based launchers able to handle --help, --version etc.
...
Problem is that --help etc are handled by the tool exe. But a
ptrace-based launch scheme can't run "no program" if the user just
types "valgrind --help" because the launcher depends on starting the
client first and only then attaching valgrind to it using ptrace. So
instead provide a dummy do-nothing program to run when no program is
specified. m_main notices this and acts as if there really had been
no program specified.
This has no effect at all on Linux/ELF program launching.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6653
2007-03-19 18:38:55 +00:00