Commit Graph

7208 Commits

Author SHA1 Message Date
Bart Van Assche
6eb83dfd22 Statistics: do not only count DRD_(bm_new)() calls but also DRD_(bm_init)() calls as level one bitmap creation events.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10358
2009-06-21 18:08:31 +00:00
Bart Van Assche
6b937d7d95 Combined DRD_(thread_new_segment)() and DRD_(thread_combine_vc_sync)()
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
2009-06-21 18:07:35 +00:00
Bart Van Assche
2a99145bc2 Made --drd-stats=yes output even more verbose.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10356
2009-06-21 11:51:23 +00:00
Bart Van Assche
7c518a0c3f Merged revisions 10129:10130 from the DRDDEV branch to the trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10355
2009-06-21 10:11:15 +00:00
Bart Van Assche
725df5fb50 Updated code for statistics printed by --drd-stats=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10354
2009-06-21 09:26:27 +00:00
Bart Van Assche
ba31c5a104 Generalized a suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10353
2009-06-20 17:42:59 +00:00
Bart Van Assche
94e061bf37 Updated test plan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10352
2009-06-20 10:56:45 +00:00
Bart Van Assche
08df3938ab Reran SPLASH-2 benchmark.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10351
2009-06-20 10:55:12 +00:00
Nicholas Nethercote
e4cbc57ed9 Make the sys_newlstat wrapper more like those of similar *stat() syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10339
2009-06-15 07:43:50 +00:00
Josef Weidendorfer
4c45289dca Callgrind: fix instrumentation for arbitrary events per guest instruction
(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
2009-06-15 00:16:36 +00:00
Josef Weidendorfer
7f5d884fe9 Avoid variable name "new", use more concrete name instead
Also confusing for syntax highlighter/indexer of some editors/IDEs

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10320
2009-06-15 00:16:32 +00:00
Bart Van Assche
3d7dbdb790 Added #include <stdint.h>.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10319
2009-06-14 08:18:44 +00:00
Bart Van Assche
462e24e5ff Skip the pth_create_chain test on ppc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10318
2009-06-13 08:58:20 +00:00
Nicholas Nethercote
fb0ebe0dfe Tweak the README -- make its text match the website, get rid of some of the
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
2009-06-12 23:40:04 +00:00
Nicholas Nethercote
c019d97d9d Get rid of ACKNOWLEDGEMENTS, because it overlaps hugely with AUTHORS.
Improve AUTHORS a bit at the same time.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10309
2009-06-12 07:38:24 +00:00
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
Bart Van Assche
64ffae8a11 - Added more comments in DRD's malloc wrappers.
- 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
2009-06-10 19:24:20 +00:00
Bart Van Assche
39be00f029 Updated ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10293
2009-06-10 17:52:10 +00:00
Bart Van Assche
31fd94279e Added test code for realloc().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10292
2009-06-10 17:51:52 +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
4ddfee7723 Fix URB ioctl handling. Patch from Hector Martin (bug 191095).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10286
2009-06-09 23:03:02 +00:00
Nicholas Nethercote
17ae73a356 Avoid recursion in VG_(exit).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10285
2009-06-09 22:46:32 +00:00
Nicholas Nethercote
a01f086879 Handle another Linux ioctl. Patch from Jay Foad.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10284
2009-06-09 22:31:00 +00:00
Nicholas Nethercote
2913b0fa2d Remove callgrind/docs/index.xml, which is a relic from when Callgrind was
distributed by itself.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10283
2009-06-09 22:25:00 +00:00
Bart Van Assche
b4443ebc0a Fixed bug in DRD's realloc() wrapper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10282
2009-06-09 11:12:07 +00:00
Nicholas Nethercote
a4a24f0c4f Abort if a --log-file filename begins with a '~'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10281
2009-06-09 00:50:45 +00:00
Nicholas Nethercote
8d3c0137a2 Suppress some still-reachable warnings that come up for "Hello World" on
Darwin.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10280
2009-06-09 00:10:20 +00:00
Bart Van Assche
e34229bd49 svn merge -r9818:10278 svn://svn.valgrind.org/valgrind/branches/DRDDEV
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10279
2009-06-08 18:20:42 +00:00
Robert Walsh
fccc723135 More ignore updates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10273
2009-06-06 22:29:38 +00:00
Robert Walsh
83d4125cc3 Update ignores.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10272
2009-06-06 22:13:25 +00:00
Nicholas Nethercote
99f13531ec Remove references to the now-defunct INSTALL file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10271
2009-06-06 21:54:59 +00:00
Bart Van Assche
db567690f9 Generalized a libgomp suppression pattern.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10269
2009-06-06 18:09:09 +00:00
Bart Van Assche
a0820d3b95 Updated test plan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10268
2009-06-06 16:58:58 +00:00
Bart Van Assche
ffba4efbe9 Updated list of bugs fixed in 3.5.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10267
2009-06-06 16:58:36 +00:00
Bart Van Assche
c61d88f7c0 Robustness improvement: print an error message instead of triggering an assertion failure upon semaphore reinitialization during sem_wait().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10266
2009-06-06 12:28:20 +00:00
Bart Van Assche
f6d9317997 Consistency improvement: made sure that for all synchronization operations vector clocks are combined after having created a new segment instead of before.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10265
2009-06-06 12:26:05 +00:00
Bart Van Assche
7933a6c4d5 - Robustness improvement: do not trigger an assertion failure if one
thread destroys and reinitializes a semaphore another thread is
  waiting on but print an error message instead.
- Behavior change: always decrement 'value', even if this makes value
  negative.
- Updated expected output files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10262
2009-06-06 10:56:40 +00:00
Bart Van Assche
4f60b7c79e Disabled libgomp intercepts. Since libgomp support was added to DRD, the
libgomp ABI has changed. Two new functions have been added, namely
gomp_team_barrier_wait() and gomp_team_barrier_wake(). The simplest way
to support all libgomp functions is by disabling the libgomp intercepts.
This fixes bug #195169.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10261
2009-06-06 09:28:28 +00:00
Bart Van Assche
b1d8c9d5fa Updated test plan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10259
2009-06-06 08:51:13 +00:00
Bart Van Assche
9ad73a71b2 Increased gcc version from 4.3.2 to 4.4.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10258
2009-06-06 08:50:14 +00:00
Julian Seward
4ece7c2449 x86-linux: sys_set_thread_area: don't allocate GDT entry number zero,
and reject attempts to use it.  This is because the hardware does not
allow entry zero to be used, and apparently doing so confuses some
code (perhaps Windows apps running on Wine).  Derived from a patch by
John Reiser.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10251
2009-06-05 13:17:31 +00:00
Nicholas Nethercote
3829cffbcf Increase a hard limit that was reached in the wild.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10250
2009-06-05 05:28:17 +00:00
Nicholas Nethercote
2314fe1acc For no apparent reason, the machine-dependent syscall
thread_fast_set_cthread_self was being called pthread_set_self.  This commit
fixes this.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10249
2009-06-05 01:33:16 +00:00