Commit Graph

7019 Commits

Author SHA1 Message Date
Nicholas Nethercote
8532d7599a DARWIN sync: include m_ume/*.c in COMMON_SOURCES.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9941
2009-05-19 04:55:00 +00:00
Nicholas Nethercote
3cef49d2df DARWIN sync: use AM_CFLAGS_PIC in more places.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9940
2009-05-19 04:48:52 +00:00
Nicholas Nethercote
f36c723487 DARWIN sync wibble.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9939
2009-05-19 04:37:03 +00:00
Nicholas Nethercote
f9b023b7d7 DARWIN sync wibble.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9937
2009-05-19 04:31:53 +00:00
Nicholas Nethercote
8a5a9a139d Sync m_initimg with the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9935
2009-05-19 04:23:49 +00:00
Nicholas Nethercote
8c62b7fd36 DARWIN sync wibble.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9929
2009-05-19 02:10:26 +00:00
Nicholas Nethercote
6311a67c7e DARWIN sync wibble.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9926
2009-05-19 02:08:25 +00:00
Nicholas Nethercote
0e89be2147 DARWIN sync wibble.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9923
2009-05-19 01:53:30 +00:00
Nicholas Nethercote
33e238d8bc Add comment to sync with DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9922
2009-05-19 01:49:50 +00:00
Nicholas Nethercote
c2c6d7407e Minor sync with the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9920
2009-05-19 01:32:52 +00:00
Nicholas Nethercote
338d03ec6c Add some extra CALL_FN_V_* macros. Copied from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9919
2009-05-19 01:24:50 +00:00
Nicholas Nethercote
0ebee25c3e Merge r9324 (bug152022 portability fix) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9917
2009-05-19 01:17:09 +00:00
Nicholas Nethercote
ff46ba2a27 Sync trunk with DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9915
2009-05-19 01:10:31 +00:00
Nicholas Nethercote
6b7f22a5d7 Merge part of r9140 (filter_xml tweak) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9913
2009-05-19 01:00:59 +00:00
Nicholas Nethercote
9551ec33fa Minor trunk/DARWIN sync.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9911
2009-05-19 00:54:19 +00:00
Nicholas Nethercote
55bc428656 Fix a make dist problem with default.supp -- it was being included in the
tarball, and thus its contents depended on the machine 'make dist' was run
on, not the install machine.  This commit excludes it from the tarball,
so it will be built at compile-time.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9909
2009-05-19 00:32:20 +00:00
Nicholas Nethercote
86ccf0ca56 Add some missing 'make dist' files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9907
2009-05-19 00:05:29 +00:00
Nicholas Nethercote
8795795b55 Merge r9900 (make dist fixes) from the MESSAGING_TIDYUP branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9905
2009-05-18 23:24:26 +00:00
Nicholas Nethercote
585caf2169 Add some info about building the docs on Ubuntu 9.04.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9903
2009-05-18 23:11:49 +00:00
Nicholas Nethercote
7f0f76c228 Fix some broken XML tags.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9901
2009-05-18 23:03:52 +00:00
Nicholas Nethercote
5e249a1ba4 Merge r9897 (x86_amd64_features.c simplifcation) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9898
2009-05-18 06:23:25 +00:00
Nicholas Nethercote
529175bce4 Remove a dead declaration.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9895
2009-05-18 05:33:21 +00:00
Nicholas Nethercote
4150356821 Merge part (filter tweaks) of 8943 from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9893
2009-05-18 05:29:41 +00:00
Nicholas Nethercote
96f50631ef Merged r8977 (callgrind filter_stderr portability tweak) from the DARWIN
branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9892
2009-05-18 05:13:22 +00:00
Nicholas Nethercote
ae3a1adb2d Whitespace tweak.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9891
2009-05-18 05:10:56 +00:00
Nicholas Nethercote
274ff89dbf Merge part of r9250 (add unused attribute to callgrind/fn.c:check_code()
from the DARWIN branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9890
2009-05-18 05:10:00 +00:00
Nicholas Nethercote
4adc4a29b5 This should have gone in with r9884.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9885
2009-05-18 04:49:56 +00:00
Nicholas Nethercote
5d8bc7cd83 Merge part of r9229 (Helgrind test build tweak) from the DARWIN branch to
the trunk.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9884
2009-05-18 04:49:20 +00:00
Nicholas Nethercote
612322bbbd Merge parts of r9775, r9777, r9789, r9794 from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9883
2009-05-18 04:41:48 +00:00
Nicholas Nethercote
131ab00744 Merged non-Darwin-specific parts of r9397,r9423,r9490, 9461, 9462 from the
DARWIN branch.  A big ugly DARWIN/trunk sync commit, mostly to do with
changing the representation of SysRes and vki_sigset_t.  Functionality of
the trunk shouldn't be changed by it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9876
2009-05-18 02:12:08 +00:00
Bart Van Assche
0e6a621ac0 Added pth_mutex_reinit regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9852
2009-05-16 06:24:40 +00:00
Bart Van Assche
5a4e0404ce Update mutex type upon mutex reinitialization such that DRD does not trigger an assertion failure when a reinitialized mutex is used.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9851
2009-05-16 06:22:46 +00:00
Nicholas Nethercote
a3dfa6672b Factor out the name of the libpthread library. Also fix a minor stack trace
bogon.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9832
2009-05-11 08:01:09 +00:00
Nicholas Nethercote
3b87b28ca4 Merge r9828 (fix aspacem layering violation) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9831
2009-05-10 22:42:19 +00:00
Bart Van Assche
a6c61c3f3e Let the pthread_create@GLIBC_2.0() detection test fail on PowerPC.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9823
2009-05-10 15:41:45 +00:00
Bart Van Assche
9e987a04f8 Updated ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9822
2009-05-10 11:51:09 +00:00
Bart Van Assche
ef176a2da6 Updated ignore lists.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9819
2009-05-10 11:08:10 +00:00
Bart Van Assche
b011b7b06a Merged all revisions up to and including 9814 from the DRDDEV branch to the trunk for the script run-splash2. Updated performance results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9817
2009-05-10 10:36:18 +00:00
Bart Van Assche
6243bc76ec Merged all revisions up to and including 9814 from the DRDDEV branch to the trunk for the files pub_drd_bitmap.h, drd_bitmap.h, drd_bitmap.c and tests/drd_bitmap_test.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9816
2009-05-10 06:55:39 +00:00
Bart Van Assche
b2415b8e67 Cleanup.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9814
2009-05-10 06:39:37 +00:00
Bart Van Assche
f936bd356e Removed commented-out tracing statements.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9813
2009-05-10 06:37:05 +00:00
Nicholas Nethercote
6378dfe575 Created a new module, m_aspacehl. Factored out three(!) copies of
get_seg_starts() into it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9796
2009-05-08 00:39:31 +00:00
Nicholas Nethercote
98386a7102 Fix up some stack trace inconsistencies:
- When printing suppressions, never print more entries than there are in the
  stack.  This avoids bogus suppressions in some cases!  (I haven't seen
  them on Linux, but I have seen them on Darwin.)

- When getting a stack trace, stop if we get an IP of zero or one;  that
  means we've hit the end of the stack.  And don't include that entry in the
  stack trace, because it's a guaranteed "???" if it's ever printed which is
  useless.

- In VG_(apply_StackTrace), we can now rely entirely on the n_ip parameter
  rather than looking for 0 or -1, because that check is done when the stack
  trace is first obtained.  In other words, stack traces all use an n_ip
  parameter to record their size, whereas previously they used an odd
  mixture of n_ip and null-termination.

- Rename 'n_ips' variables as 'max_n_ips' where appropriate;  those left as
  'n_ips' truly describe how many IPs there are in the stack trace.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9793
2009-05-07 23:08:10 +00:00
Nicholas Nethercote
d5dbc02648 Add a missing rwlock initialisation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9786
2009-05-06 07:28:38 +00:00
Nicholas Nethercote
1f2db66545 Make loss record ordering more deterministic, so that regtests are reliable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9784
2009-05-06 06:52:47 +00:00
Nicholas Nethercote
8d8380acb9 Change a #include to make the test more portable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9782
2009-05-06 06:27:19 +00:00
Nicholas Nethercote
fbe37d96a8 Fix bug #191182, where printing the leak checker results was really slow if
there were a lot of loss records.

The fix was:
- Avoid the O(m * n) looping over the chunks when creating the loss
  records, by putting loss records into an OSet instead of a list, which
  makes duplicate detection for each chunk an O(log n) operation instead of
  an O(n) operation.
- Avoid the looping over loss records which was used to do a poor
  man's sort, but was O(n^2).  Instead copy pointers to the loss records
  from the OSet into an array and sort it normally with VG_(ssort) (n log n,
  usually) before printing.

This approach was similar to that used in the patch Philippe attached to the
bug report.

Other changes:
- Added Philippe's test programs in the new memcheck/perf directory.  It
  used to take 57s on my machine, now it takes 1.6s.
- Cleaned up massif/perf/Makefile.am to be consistent with other Makefiles.
- Improved some comments relating to VgHashTable and OSet.
- Avoided a redundant traversal of the hash table in VG_(HT_to_array), also
  identified by Philippe..
- Made memcheck/tests/mempool's results independent of the pointer size, and
  thus was able to remove its .stderr.exp64 file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9781
2009-05-06 06:15:55 +00:00
Nicholas Nethercote
7c51693e2b Don't store the frames hash in .frames[0] and the actual frames in
.frames[1..N_FRAMES].  Instead store the hash in a separate .frames_hash
field, and the actual frames in .frames[0..N_FRAMES-1].



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9778
2009-05-05 23:46:24 +00:00
Nicholas Nethercote
e816275a44 Add some comments about signals, from Julian.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9764
2009-05-04 06:54:04 +00:00
Nicholas Nethercote
62444884d4 Merge r9761 (fix a comment) from the trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9763
2009-05-04 06:46:31 +00:00