Commit Graph

1140 Commits

Author SHA1 Message Date
Nicholas Nethercote
7f3bdeb30e Add some cases to darwin/scalar.c, and tweak the macros used a little.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10298
2009-06-11 00:59:06 +00:00
Nicholas Nethercote
d48af010b9 Add wrappers for shmat() and shmdt() on Darwin. Fixes bug 191271.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10297
2009-06-10 23:26:13 +00:00
Nicholas Nethercote
a391386bc6 Move the Darwin _nocancel tests to a different file so they can be tested
properly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10296
2009-06-10 23:09:40 +00:00
Nicholas Nethercote
7a095f31f3 Added a wrapper and test for exchangedata() on Darwin. Fixes bug 195860.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10295
2009-06-10 22:58:27 +00:00
Nicholas Nethercote
a048647a9a Implement and test wrappers for lstat_extended, stat64_extended,
lstat64_extended, and improve the existing wrapper for stat_extended.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10291
2009-06-10 06:13:34 +00:00
Nicholas Nethercote
aa21ae3de1 Darwin syscall wrapper cleanups:
- Put Darwin syscall DECL_TEMPLATEs in syscall order.
- Removed the "sys_" prefix from Darwin-specific wrappers, it's not
  necessary.  Renamed a couple of other wrappers similarly.
- Removed the sys_fcntl64 Darwin wrapper, it was unused.
- Improved some code layout.
Overall this removes 6 "DDD"/"GrP" fixme comments.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10290
2009-06-10 04:11:56 +00:00
Nicholas Nethercote
517e9ae831 Update scalar.stderr.exp; this should have gone in with r10288.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10289
2009-06-10 03:30:07 +00:00
Nicholas Nethercote
ae530719e6 Add wrappers for sem_wait and sem_trywait on Darwin. Also change the layout
of some Darwin syscall stuff.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10288
2009-06-10 01:23:26 +00:00
Nicholas Nethercote
2a9e26c733 Handle shmctl on Darwin. From bug 191271.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10287
2009-06-09 23:44:42 +00:00
Nicholas Nethercote
5f8f34f8c0 Don't print stack traces by default for unhandled syscalls -- it's not that
useful but screws up the 'scalar' tests.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10219
2009-06-03 07:17:07 +00:00
Nicholas Nethercote
2a7d944c27 A number of changes relating to syscall numbering:
- Introduced VG_SYSNUM_STRING and VG_SYSNUM_STRING_EXTRA which factor out
  differences in the way syscall numbers are printed on different platforms.
  This gets rid of seven "DDD" fixme-style comments.

- This also meant that Darwin syscall numbers are now printed in a
  non-ambiguous way -- previously Unix, machine-dependent and diagnostic
  syscalls were all printed the same way, even though their numbers overlap.
  Now each number is prefixed with "unix", "mdep", etc.  And Mach trap
  numbers aren't printed as negative numbers now that they have a "mach"
  prefix.

- Split each of pub_core_vkiscnums.h and pub_tool_vkiscnums.h into two
  parts, one suitable for inclusion in asm files, one suitable for inclusion
  in C files;  in both cases the latter includes the former.  This makes
  this module more like other modules that have asm-only components (eg.
  m_transtab);  it also allows the hacky VG_IN_ASSEMBLY_SOURCE macros and
  tests to be removed.

- Removed some of the VG_DARWIN_SYSNO_* macros that were no longer needed,
  and renamed some of the existing ones to make their meanings clearer.

- Added comments on the encoding of Darwin syscall numbers so it's
  possible for mortals to understand without reading the kernel code..



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10218
2009-06-03 06:50:06 +00:00
Nicholas Nethercote
995ca13ebd Add a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10166
2009-05-29 00:52:17 +00:00
Julian Seward
93058e37d1 Use --gen-suppressions=all rather than =yes, since the latter causes
the entire regtest system to hang if in fact a suppression does need
to be generated (since V stops to ask).  Not sure why this flag is
really in here, tho.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10162
2009-05-28 17:39:56 +00:00
Nicholas Nethercote
2172e4962f Make this file executable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10157
2009-05-28 02:20:59 +00:00
Nicholas Nethercote
07045477ca Merge the DARWIN branch onto the trunk.
I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts.  So instead I just took the diff between
the branch and trunk  at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156
2009-05-28 01:53:07 +00:00
Nicholas Nethercote
9633a4c11d DARWIN sync: all the timeval stuff
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10106
2009-05-22 08:12:46 +00:00
Nicholas Nethercote
9ab6c5f5a0 DARWIN sync: increase the limit before we complain about large regions being
changed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10011
2009-05-20 03:44:09 +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
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
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
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
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
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
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
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
Nicholas Nethercote
57a42692d9 Don't compile Linux-only redirects on non-Linux platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9745
2009-05-04 04:20:02 +00:00
Nicholas Nethercote
fe8a8345ee Remove unused .exp files for sigkill.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9743
2009-05-04 01:30:39 +00:00
Nicholas Nethercote
97e628e4be Merged r9741 (make post-syscall more portable) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9742
2009-05-04 01:17:56 +00:00
Bart Van Assche
5c2c273c6f Compiles now on RHEL 5.3 systems. In the RHEL 5.3 headers __NR_timerfd_create is defined but neither __NR_timerfd_settime nor __NR_timerfd_gettime.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9710
2009-05-01 11:54:07 +00:00
Nicholas Nethercote
5a682bb3cf Renamed various things for clarity. Added some comments. And fixed the
dubious find-minimum-loss-record loop in print_results(), which was using an
inconsistent mixture of szB and szB+indirect_szB.  

Two test results changed, just different sort orders for same-sized loss
records.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9704
2009-05-01 00:30:43 +00:00
Nicholas Nethercote
af09b2fa03 Fix test breakage caused by r9694.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9697
2009-04-30 05:09:09 +00:00
Nicholas Nethercote
ce4aed0d85 Use -q on varinfo tests to avoid platform-specific differences in number of
allocations.  This allowed two .stderr.exp files to be merged for varinfo6.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9681
2009-04-29 23:21:46 +00:00
Nicholas Nethercote
c601f8a1e4 Merged r9653..r9655 (fixed terminal signal handling in Darwin) from DARWIN
branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9656
2009-04-28 01:55:01 +00:00
Nicholas Nethercote
b46800c8b7 Merge r9614 (make more_x86_fp compile on darwin) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9651
2009-04-27 22:50:26 +00:00
Nicholas Nethercote
78a2b63b4c Merge r9621 (move int3-x86 into x86-linux/) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9623
2009-04-25 03:17:22 +00:00
Nicholas Nethercote
10ef1684d8 Merge r9619 (fix more_x86_fp on Darwin) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9620
2009-04-25 00:07:37 +00:00
Nicholas Nethercote
3faa928027 Unbreak pushfpopf on Linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9617
2009-04-24 23:49:58 +00:00
Nicholas Nethercote
8563ddc39b Merge r9612 (make pushfpopf work on Darwin) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9613
2009-04-24 21:49:11 +00:00
Nicholas Nethercote
32bd1a00c2 Merge r9610 (AM_CCASFLAGS tweaks for test Makefiles) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9611
2009-04-24 20:17:07 +00:00
Nicholas Nethercote
97a1106e27 Merge r9605 (make tronical work on Darwin) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9606
2009-04-24 07:24:05 +00:00
Nicholas Nethercote
3b383dab10 Merged r9602 and r9603 (make cpuid pass on Darwin, rename .s files to .S)
from the DARWIN branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9604
2009-04-24 07:12:39 +00:00
Nicholas Nethercote
4481c22c52 Move with-space to linux/, because it's hard to replicate on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9569
2009-04-17 06:52:10 +00:00
Nicholas Nethercote
7731625a92 Remove nanoleak.vgtest, it's a trivial test. nanoleak.c is used by
nanoleak_supp.vgtest, however, so rename it nanoleak_supp.c to make the
connection more obvious.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9562
2009-04-16 01:28:08 +00:00