]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agomemcheck/tests/linux/timerfd-syscall: Avoid failure on heavily loaded systems
Bart Van Assche [Sat, 20 Aug 2011 11:08:48 +0000 (11:08 +0000)] 
memcheck/tests/linux/timerfd-syscall: Avoid failure on heavily loaded systems

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11997

13 years agoAdd more info about cache sizes.
Florian Krohm [Fri, 19 Aug 2011 19:41:57 +0000 (19:41 +0000)] 
Add more info about cache sizes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11996

13 years agoMake callgrind report the detected cache configuration as well.
Tom Hughes [Fri, 19 Aug 2011 09:05:13 +0000 (09:05 +0000)] 
Make callgrind report the detected cache configuration as well.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11995

13 years agoReport the detected cache configuration with "-v -v" before we
Tom Hughes [Fri, 19 Aug 2011 09:01:22 +0000 (09:01 +0000)] 
Report the detected cache configuration with "-v -v" before we
validate it to make validation failures easier to diagnose.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11994

13 years agoAdd a new simulation hint, --sim-hints=fuse-compatible, which causes
Julian Seward [Thu, 18 Aug 2011 15:08:20 +0000 (15:08 +0000)] 
Add a new simulation hint, --sim-hints=fuse-compatible, which causes
a bunch of file-related syscalls to be handled on the might-block
syscall path rather than the fast syscall path.  This fixes deadlocks
when running some FUSE-specific filesystem codes.  Fixes #278057.
(Mike Shal, marfey@gmail.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11993

13 years agox86-linux: don't add redirections for strchr/index in ld.so since they
Julian Seward [Thu, 18 Aug 2011 13:49:48 +0000 (13:49 +0000)] 
x86-linux: don't add redirections for strchr/index in ld.so since they
are already hardwiredly-redirected at startup, and so these are
redundant.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11992

13 years agoExtend the behavioural-equivalence-class mechanism for redirection
Julian Seward [Thu, 18 Aug 2011 13:09:55 +0000 (13:09 +0000)] 
Extend the behavioural-equivalence-class mechanism for redirection
functions to include the ability to give a priority to each function,
as well as a tag indicating its behavioural class.  Add logic in
m_redir.c to resolve conflicting redirections with the same eclass but
different priorities by preferring the redirection with the higher
priority.  Use all of the above in mc_replace_strmem.c, to cause a
conflict between redirections for "memcpy" and "memcpy@GLIBC_2.2.5" to
be resolved in favour of the latter (the non-overlap-checking
version).

This is all related to the massive swamp that is #275284.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11991

13 years agoDon't compare src and dst to work out which direction to iterate
Tom Hughes [Thu, 18 Aug 2011 08:10:20 +0000 (08:10 +0000)] 
Don't compare src and dst to work out which direction to iterate
in for a memcpy/memmove if the length is zero. Fixes #268563.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11990

13 years agoTemporary partial backout of r11911 (fix for #250101) pending
Julian Seward [Wed, 17 Aug 2011 22:13:14 +0000 (22:13 +0000)] 
Temporary partial backout of r11911 (fix for #250101) pending
investigation of assertion failures listed at #250101 comment 12.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11989

13 years agoRedirect memcpy@@GLIBC_2.14 differently from memcpy@GLIBC_2.2.5, so as
Julian Seward [Wed, 17 Aug 2011 21:25:50 +0000 (21:25 +0000)] 
Redirect memcpy@@GLIBC_2.14 differently from memcpy@GLIBC_2.2.5, so as
to retain overlap checks for the former whilst skipping them for the
latter.  Pertains to #275284.  (Tom Hughes, tom@compton.nu)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11988

13 years agoImprovements to debug printing with -v -v. (Tom Hughes, tom@compton.nu)
Julian Seward [Wed, 17 Aug 2011 21:23:21 +0000 (21:23 +0000)] 
Improvements to debug printing with -v -v.  (Tom Hughes, tom@compton.nu)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11987

13 years agoUn-break the build on OSX following r11985.
Julian Seward [Tue, 16 Aug 2011 22:31:45 +0000 (22:31 +0000)] 
Un-break the build on OSX following r11985.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11986

13 years agoFix for #275284 (initial fix, at least). Will break OSX; fix
Julian Seward [Tue, 16 Aug 2011 21:45:28 +0000 (21:45 +0000)] 
Fix for #275284 (initial fix, at least).  Will break OSX; fix
to follow.

* add behavioural eclass tags for most functions in
  mc_replace_strmem.c and vg_replace_malloc.c.

* add a wrapper for strspn()  (see bug 270925)

* coregrind/m_redir.c: add logic to use eclass tags for
  resolving conflicting redirections.  Improve debug
  printing in that situation.

* mc_replace_strmem.c: add a wrapper for "__GI___strcasecmp_l".
  Gark.  Is this correct?  Does __GI___strcasecmp_l behave the
  same as __GI_strcasecmp_l and strcasecmp_l ?

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11985

13 years agoAdd more infrastructure to be used for fixing #275284 (Valgrind
Julian Seward [Tue, 16 Aug 2011 09:54:00 +0000 (09:54 +0000)] 
Add more infrastructure to be used for fixing #275284 (Valgrind
memcpy/memmove redirection stopped working in glibc 2.14/x86_64), but
don't fix the problem yet.  Should be no end-user visible change.

* in m_redir.c, when processing redirection specifications, consider
  all the names associated with an address, not just the primary name.

* add plumbing to support the notion of "behavioural equivalence class
  tags" of redirect/wrap functions.  These can be used by m_redir to
  resolve some situations in which the available set of redirect
  specifications causes some address to get redirected to two
  different functions.  (Framework is in place, but such resolution is
  not implemented yet.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11984

13 years agoAdd missing break statements to example code. Fix to #264644.
Tom Hughes [Mon, 15 Aug 2011 11:11:41 +0000 (11:11 +0000)] 
Add missing break statements to example code. Fix to #264644.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11983

13 years agoUn-break the build on OSX following r11981 (Remove the assumption, in
Julian Seward [Mon, 15 Aug 2011 10:07:56 +0000 (10:07 +0000)] 
Un-break the build on OSX following r11981 (Remove the assumption, in
m_debuginfo, that each address is associated with only one symbol.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11982

13 years agoRemove the assumption, in m_debuginfo, that each address is associated
Julian Seward [Mon, 15 Aug 2011 09:42:34 +0000 (09:42 +0000)] 
Remove the assumption, in m_debuginfo, that each address is associated
with only one symbol.  Instead, allow an address to have arbitrarily
many names.  This reflects reality better, particularly for systemy
libraries such as glibc and ld.so, and is background work needed for
fixing #275284.  This is not in itself a fix for #275284.  A followup
commit to un-break compilation on OSX will follow shortly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11981

13 years agoAdd support for FBIOPUT_VSCREENINFO and FBIOPAN_DISPLAY ioctls.
Tom Hughes [Mon, 15 Aug 2011 08:47:29 +0000 (08:47 +0000)] 
Add support for FBIOPUT_VSCREENINFO and FBIOPAN_DISPLAY ioctls.

Patch from Pauli Nieminen <ext-pauli.nieminen@nokia.com> on #263648.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11980

13 years agoMention the --tool option in the manual page. Fixes #249970.
Tom Hughes [Mon, 15 Aug 2011 08:20:53 +0000 (08:20 +0000)] 
Mention the --tool option in the manual page. Fixes #249970.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11979

13 years agoInclude the standard Fedora location in the list of places where
Tom Hughes [Mon, 15 Aug 2011 08:20:23 +0000 (08:20 +0000)] 
Include the standard Fedora location in the list of places where
we look for the docbook stylesheet for manual pages.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11978

13 years agoCorrect the calculation of the size of the node mask given to
Tom Hughes [Mon, 15 Aug 2011 07:52:26 +0000 (07:52 +0000)] 
Correct the calculation of the size of the node mask given to
the mbind, set_mempolicy and get_mempolicy system calls.

Patch from Brice Goglin <brice.goglin@ens-lyon.org> on #280083.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11977

13 years agomemcheck/tests/sbfragment: Make this test pass on Darwin
Bart Van Assche [Sun, 14 Aug 2011 06:41:15 +0000 (06:41 +0000)] 
memcheck/tests/sbfragment: Make this test pass on Darwin

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11976

13 years agoFollow-up for r11971
Bart Van Assche [Sun, 14 Aug 2011 06:16:17 +0000 (06:16 +0000)] 
Follow-up for r11971

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11975

13 years agoComplain if invoked from the wrong directory or if mandatory
Florian Krohm [Sat, 13 Aug 2011 15:35:21 +0000 (15:35 +0000)] 
Complain if invoked from the wrong directory or if mandatory
argument is missing.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11974

13 years agoFix VKI_FIOQSIZE definition on ppc platforms.
Tom Hughes [Sat, 13 Aug 2011 15:14:58 +0000 (15:14 +0000)] 
Fix VKI_FIOQSIZE definition on ppc platforms.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11973

13 years agovgdb: Unlink pipes and mapped file before (re)creating these.
Bart Van Assche [Sat, 13 Aug 2011 12:27:11 +0000 (12:27 +0000)] 
vgdb: Unlink pipes and mapped file before (re)creating these.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11972

13 years agoUpdate expected output
Bart Van Assche [Sat, 13 Aug 2011 05:57:51 +0000 (05:57 +0000)] 
Update expected output

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11971

13 years agomemcheck/tests/sbfragment.c: Only use mallinfo() if available.
Bart Van Assche [Sat, 13 Aug 2011 05:32:53 +0000 (05:32 +0000)] 
memcheck/tests/sbfragment.c: Only use mallinfo() if available.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11970

13 years agoAdd test for address size override prefixes for REP prefixed string
Tom Hughes [Fri, 12 Aug 2011 15:43:31 +0000 (15:43 +0000)] 
Add test for address size override prefixes for REP prefixed string
instructions on amd64. Fixes remaining issues from #211371.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11969

13 years agodrd/tests/pth_barrier: Reduce stack usage
Bart Van Assche [Fri, 12 Aug 2011 15:21:31 +0000 (15:21 +0000)] 
drd/tests/pth_barrier: Reduce stack usage

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11968

13 years agoCheck return code of pthread_create and bail out if
Florian Krohm [Fri, 12 Aug 2011 15:07:10 +0000 (15:07 +0000)] 
Check return code of pthread_create and bail out if
the function failed. This helps on systems which don't
have lots of memory.
Suggested by Christian Borntraeger.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11967

14 years agoNon-VEX changes to fix #275517.
Florian Krohm [Thu, 11 Aug 2011 17:00:15 +0000 (17:00 +0000)] 
Non-VEX changes to fix #275517.
Add testcase and announce fix in NEWS.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11966

14 years agoMake do_mremap only check new_addr for wraparound if MREMAP_FIXED was
Tom Hughes [Thu, 11 Aug 2011 14:51:47 +0000 (14:51 +0000)] 
Make do_mremap only check new_addr for wraparound if MREMAP_FIXED was
fixed, as new_addr may be meaningless otherwise. Fix to #204484.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11965

14 years agoDue to a kernel bug the siginfo struct was not filled in correctly.
Florian Krohm [Thu, 11 Aug 2011 02:23:54 +0000 (02:23 +0000)] 
Due to a kernel bug the siginfo struct was not filled in correctly.
The si_code was incorrect not matching any of the VKI_ILL_....
cases checked in m_signals.c function default_action.
So let's have two expected output files for buggy kernels and otherwise.
Also, add op00 to the list of files to be ignored.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11964

14 years agoAdd support for the FIOQSIZE ioctl. Fixes #270320.
Tom Hughes [Wed, 10 Aug 2011 14:25:06 +0000 (14:25 +0000)] 
Add support for the FIOQSIZE ioctl. Fixes #270320.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11963

14 years agoAdd tests for XCHG AX, reg16 on amd64. Fixes #252695.
Tom Hughes [Wed, 10 Aug 2011 12:58:23 +0000 (12:58 +0000)] 
Add tests for XCHG AX, reg16 on amd64. Fixes #252695.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11962

14 years agoWire up pselect6 on ppc32 and ppc64. Fixes #278078.
Tom Hughes [Wed, 10 Aug 2011 12:39:37 +0000 (12:39 +0000)] 
Wire up pselect6 on ppc32 and ppc64. Fixes #278078.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11961

14 years agoSupport the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl calls. Fixes #278349.
Tom Hughes [Wed, 10 Aug 2011 10:11:14 +0000 (10:11 +0000)] 
Support the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl calls. Fixes #278349.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11960

14 years agoMake sure the post handler for mincore is called in amd64 and s390 as
Tom Hughes [Wed, 10 Aug 2011 09:57:27 +0000 (09:57 +0000)] 
Make sure the post handler for mincore is called in amd64 and s390 as
it already was on other platforms. Fix to #279795.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11959

14 years agoFollowup to VEX r2189 -- handling invalid opcode 00 specially.
Florian Krohm [Mon, 8 Aug 2011 23:47:23 +0000 (23:47 +0000)] 
Followup to VEX r2189 -- handling invalid opcode 00 specially.
Update golden log for testcase op_exception which no longer
complains about invalid opcode 00.
Add testcase op00.c

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11958

14 years agoI am an idiot: remove the beginnings of an experimental tool that I
Nicholas Nethercote [Mon, 8 Aug 2011 02:27:20 +0000 (02:27 +0000)] 
I am an idiot: remove the beginnings of an experimental tool that I
accidentally committed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11957

14 years agoFix a Massif bug: when realloc'ing a block, any values in the part of the
Nicholas Nethercote [Mon, 8 Aug 2011 01:58:50 +0000 (01:58 +0000)] 
Fix a Massif bug:  when realloc'ing a block, any values in the part of the
block beyond the original request weren't copied.  They are now.  This is
important because a program could use malloc_usable_size to gain legitimate
access to those extra bytes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11956

14 years agoAnnounce fix for #279062
Florian Krohm [Mon, 1 Aug 2011 22:35:21 +0000 (22:35 +0000)] 
Announce fix for #279062

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11955

14 years agoFix prerequisite for memcheck/tests/linux/timerfd-syscall.
Florian Krohm [Sun, 31 Jul 2011 03:22:45 +0000 (03:22 +0000)] 
Fix prerequisite for memcheck/tests/linux/timerfd-syscall.
The testcase was executed despite uname -r being 2.6.9-42.EL
Extend tests/os_test.c to take an optional 2nd argument
which is a minimum version number. Use os_test in the
prerequisite expression.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11954

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Sat, 30 Jul 2011 16:50:33 +0000 (16:50 +0000)] 
Yet another thread test scheduler sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11953

14 years agoNightly build: Rename the attachment diffs into diffs.txt such that it can be viewed...
Bart Van Assche [Sat, 30 Jul 2011 11:26:57 +0000 (11:26 +0000)] 
Nightly build: Rename the attachment diffs into diffs.txt such that it can be viewed easily with an e-mail client.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11952

14 years agodrd: Make racing pthread_barrier_wait() calls trigger an error message instead
Bart Van Assche [Sat, 30 Jul 2011 09:35:56 +0000 (09:35 +0000)] 
drd: Make racing pthread_barrier_wait() calls trigger an error message instead
of an assertion failure. Also, make barrier tracing output more detailed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11951

14 years agodrd/tests/pth_barrier_thr_cr: Suppress pthread_barrier_wait() race reports since...
Bart Van Assche [Sat, 30 Jul 2011 09:29:20 +0000 (09:29 +0000)] 
drd/tests/pth_barrier_thr_cr: Suppress pthread_barrier_wait() race reports since these are triggered intentionally.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11950

14 years agodrd/tests/pth_barrier_thr_cr: Add more error checking.
Bart Van Assche [Sat, 30 Jul 2011 09:28:13 +0000 (09:28 +0000)] 
drd/tests/pth_barrier_thr_cr: Add more error checking.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11949

14 years agoAvoid that compiling memcheck on 32-bit systems triggers a compiler warning
Bart Van Assche [Fri, 29 Jul 2011 14:24:07 +0000 (14:24 +0000)] 
Avoid that compiling memcheck on 32-bit systems triggers a compiler warning

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11948

14 years agodrd/tests/tc21_pthonce: Eliminate output variation
Bart Van Assche [Fri, 29 Jul 2011 14:23:23 +0000 (14:23 +0000)] 
drd/tests/tc21_pthonce: Eliminate output variation

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11947

14 years agoUpdate Subversion ignore list
Bart Van Assche [Fri, 29 Jul 2011 12:40:46 +0000 (12:40 +0000)] 
Update Subversion ignore list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11946

14 years agodrd: Fix a race condition in the barrier implementation that could result in false...
Bart Van Assche [Fri, 29 Jul 2011 12:39:44 +0000 (12:39 +0000)] 
drd: Fix a race condition in the barrier implementation that could result in false positives.

What could occur before this fix is:
- The pthread_barrier() call in a first thread finishes.
- Another thread invokes pthread_join() on that thread, causing the information
  associated with that thread to be removed from the barrier object.
- The pthread_barrier() call in another thread finishes. Because some
  thread information has already been removed from the barrier object, the
  per-thread vector clock "last" won't be computed correctly by
  DRD_(barrier_post_wait)().
- Because of the above false positives could be reported.

This resulted in sporadic failure of the drd/tests/matinv regression test, and
should now be fixed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11945

14 years agodrd: Add a stress test for the barrier implementation
Bart Van Assche [Fri, 29 Jul 2011 12:32:53 +0000 (12:32 +0000)] 
drd: Add a stress test for the barrier implementation

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11944

14 years agodrd: Remove an unused member variable from the barrier implementation
Bart Van Assche [Fri, 29 Jul 2011 12:31:33 +0000 (12:31 +0000)] 
drd: Remove an unused member variable from the barrier implementation

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11943

14 years agodrd: drd_thread.c source code cleanup
Bart Van Assche [Fri, 29 Jul 2011 12:30:43 +0000 (12:30 +0000)] 
drd: drd_thread.c source code cleanup

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11942

14 years agodrd, bitmap node allocator: recognize root node size properly
Bart Van Assche [Fri, 29 Jul 2011 07:26:01 +0000 (07:26 +0000)] 
drd, bitmap node allocator: recognize root node size properly

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11941

14 years agodrd/tests/pth_barrier[23]: Filter output such that only the error count is kept
Bart Van Assche [Fri, 29 Jul 2011 07:22:29 +0000 (07:22 +0000)] 
drd/tests/pth_barrier[23]: Filter output such that only the error count is kept

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11940

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Fri, 29 Jul 2011 06:58:16 +0000 (06:58 +0000)] 
Yet another thread test scheduler sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11939

14 years agodrd/tests/pth_once: Restrict the number of callers to three.
Bart Van Assche [Fri, 29 Jul 2011 06:54:22 +0000 (06:54 +0000)] 
drd/tests/pth_once: Restrict the number of callers to three.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11938

14 years agodrd: Remove a too strict assert() statement
Bart Van Assche [Fri, 29 Jul 2011 06:30:23 +0000 (06:30 +0000)] 
drd: Remove a too strict assert() statement

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11937

14 years agoYet another thread test scheduler sensitivity fix
Bart Van Assche [Fri, 29 Jul 2011 06:12:51 +0000 (06:12 +0000)] 
Yet another thread test scheduler sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11936

14 years agodrd/tests/pth_detached_sem: Send regression test output to stderr instead of stdout
Bart Van Assche [Fri, 29 Jul 2011 05:44:38 +0000 (05:44 +0000)] 
drd/tests/pth_detached_sem: Send regression test output to stderr instead of stdout

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11935

14 years agoYet another threading tool regression test scheduler sensitivity fix
Bart Van Assche [Thu, 28 Jul 2011 18:46:38 +0000 (18:46 +0000)] 
Yet another threading tool regression test scheduler sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11934

14 years agoVerify drd/tests/pth_detached stderr output instead of the stdout output.
Bart Van Assche [Thu, 28 Jul 2011 18:06:44 +0000 (18:06 +0000)] 
Verify drd/tests/pth_detached stderr output instead of the stdout output.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11933

14 years agoYet another regression test scheduling sensitivity fix
Bart Van Assche [Thu, 28 Jul 2011 17:48:48 +0000 (17:48 +0000)] 
Yet another regression test scheduling sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11932

14 years agoTwo more scheduler sensitivity fixes for thread tool regression tests
Bart Van Assche [Thu, 28 Jul 2011 17:41:49 +0000 (17:41 +0000)] 
Two more scheduler sensitivity fixes for thread tool regression tests

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11931

14 years agoMicro-optimize the matinv regression test
Bart Van Assche [Thu, 28 Jul 2011 17:40:49 +0000 (17:40 +0000)] 
Micro-optimize the matinv regression test

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11930

14 years agodrd: Make drd_pthread_intercepts.c compile again on systems where
Bart Van Assche [Thu, 28 Jul 2011 15:04:08 +0000 (15:04 +0000)] 
drd: Make drd_pthread_intercepts.c compile again on systems where
FUTEX_PRIVATE_FLAG has not been defined in <linux/futex.h>, e.g. older System z
systems.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11929

14 years agoMake test 1 output independent of scheduler variations.
Bart Van Assche [Thu, 28 Jul 2011 15:01:01 +0000 (15:01 +0000)] 
Make test 1 output independent of scheduler variations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11928

14 years agoRevert r11916, r11917, r11918 and r11923.
Bart Van Assche [Thu, 28 Jul 2011 10:00:38 +0000 (10:00 +0000)] 
Revert r11916, r11917, r11918 and r11923.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11927

14 years agodrd: Delay deletion of memory access information of joined threads in order not
Bart Van Assche [Thu, 28 Jul 2011 09:54:37 +0000 (09:54 +0000)] 
drd: Delay deletion of memory access information of joined threads in order not
to miss any races caused by these threads.

To do: refine handling of pthread_once() again.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11926

14 years agoMore thread test scheduler sensitivity fixes
Bart Van Assche [Thu, 28 Jul 2011 09:33:55 +0000 (09:33 +0000)] 
More thread test scheduler sensitivity fixes

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11925

14 years agoEliminate a superfluous sleep() call and check the pthread_cond_wait() return value
Bart Van Assche [Wed, 27 Jul 2011 08:49:47 +0000 (08:49 +0000)] 
Eliminate a superfluous sleep() call and check the pthread_cond_wait() return value

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11924

14 years agoMore thread tool regression test scheduler sensitivity fixes
Bart Van Assche [Wed, 27 Jul 2011 08:49:12 +0000 (08:49 +0000)] 
More thread tool regression test scheduler sensitivity fixes

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11923

14 years agoRename some local variables 'signal' to 'zignal' since gcc complains they
Julian Seward [Tue, 26 Jul 2011 23:29:25 +0000 (23:29 +0000)] 
Rename some local variables 'signal' to 'zignal' since gcc complains they
shadow global function signal() on OSX 10.6.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11922

14 years agoUn-break the build on OSX following r11910.
Julian Seward [Tue, 26 Jul 2011 23:02:10 +0000 (23:02 +0000)] 
Un-break the build on OSX following r11910.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11921

14 years agodrd/Linux: eliminate busy waiting when starting a thread
Bart Van Assche [Tue, 26 Jul 2011 19:30:28 +0000 (19:30 +0000)] 
drd/Linux: eliminate busy waiting when starting a thread

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11920

14 years agodrd: Add a suppression pattern
Bart Van Assche [Tue, 26 Jul 2011 19:29:23 +0000 (19:29 +0000)] 
drd: Add a suppression pattern

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11919

14 years agodrd/tests/atomic_var: Reduce scheduler sensitivity
Bart Van Assche [Tue, 26 Jul 2011 19:28:52 +0000 (19:28 +0000)] 
drd/tests/atomic_var: Reduce scheduler sensitivity

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11918

14 years agoDisable drd/tests/tc19_shadowmem because too scheduler sensitive
Bart Van Assche [Tue, 26 Jul 2011 19:28:31 +0000 (19:28 +0000)] 
Disable drd/tests/tc19_shadowmem because too scheduler sensitive

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11917

14 years agohelgrind/tests/tc08_hbl2: Reduce scheduler sensitivity
Bart Van Assche [Tue, 26 Jul 2011 19:27:29 +0000 (19:27 +0000)] 
helgrind/tests/tc08_hbl2: Reduce scheduler sensitivity

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11916

14 years agoUnbreak lackey --detailed-counts=yes after r11604
Josef Weidendorfer [Tue, 26 Jul 2011 18:10:35 +0000 (18:10 +0000)] 
Unbreak lackey --detailed-counts=yes after r11604

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11915

14 years agoUpdate Subversion ignore list
Bart Van Assche [Mon, 25 Jul 2011 08:46:56 +0000 (08:46 +0000)] 
Update Subversion ignore list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11914

14 years agovalgrind.h: Remove a superfluous cast. See also #278454.
Bart Van Assche [Mon, 25 Jul 2011 08:45:45 +0000 (08:45 +0000)] 
valgrind.h: Remove a superfluous cast. See also #278454.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11913

14 years agoThe cmpxchg16b tests in this need to have 16-aligned addresses;
Julian Seward [Sun, 24 Jul 2011 21:41:41 +0000 (21:41 +0000)] 
The cmpxchg16b tests in this need to have 16-aligned addresses;
make it so.  Else they die with segfaults on F15.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11912

14 years agoAvoid excessive fragmentation in m_mallocfree facility by munmapping
Julian Seward [Sun, 24 Jul 2011 17:39:10 +0000 (17:39 +0000)] 
Avoid excessive fragmentation in m_mallocfree facility by munmapping
unused superblocks in some circumstances.  Bug 250101 (==269884,
==275852)
(Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11911

14 years agoAdd a new client request and pair of macros,
Julian Seward [Sun, 24 Jul 2011 16:02:33 +0000 (16:02 +0000)] 
Add a new client request and pair of macros,
VALGRIND_{DISABLE,ENABLE}_ERROR_REPORTING, which allow a thread to
temporarily disable reporting of errors it makes.  This is useful for
making Memcheck behave sanely in the presence of some MPI
implementations.  Also mark up libmpiwrap.c accordingly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11910

14 years agoChange this file to be a symlink to the identical version
Julian Seward [Sun, 24 Jul 2011 14:35:58 +0000 (14:35 +0000)] 
Change this file to be a symlink to the identical version
in the 32-bit equivalent directory
(none/tests/ppc32/test_isa_2_06_part1.c).  Bug #277199.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11909

14 years agoAdd support for IBM Power ISA 2.06 -- stage 2 (testcases).
Julian Seward [Sun, 24 Jul 2011 14:20:11 +0000 (14:20 +0000)] 
Add support for IBM Power ISA 2.06 -- stage 2 (testcases).
Bug 276784.  (Maynard Johnson, maynardj@us.ibm.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11908

14 years agoAdd support for IBM Power ISA 2.06 -- stage 2 (handle new
Julian Seward [Sun, 24 Jul 2011 14:15:54 +0000 (14:15 +0000)] 
Add support for IBM Power ISA 2.06 -- stage 2 (handle new
primops in Memcheck).  Bug 276784.
(Maynard Johnson, maynardj@us.ibm.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11907

14 years agoUpdate ugly Callgrind hack for supporting instrumentation modes
Josef Weidendorfer [Thu, 21 Jul 2011 20:24:54 +0000 (20:24 +0000)] 
Update ugly Callgrind hack for supporting instrumentation modes

To support different instrumentation modes, callgrind calls
VG_(discard_translations), which up to now does not belong to the
functions allowed to call from tools, as this is unsafe if
called from generated code.

Callgrind hacks around that by defining the prototype itself.
However, in r4789 (from Sep 27 2005!) a 3rd arg was added for
debugging output. Thus, callgrind could crash if called
with "-d -d".

As the "instrumentation off" feature seems to be used quite often,
it really would be nice to have VG_(discard_translations) callable
from tools...

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11906

14 years agocallgrind_control: fix parsing of vgdb -l
Josef Weidendorfer [Thu, 21 Jul 2011 18:58:37 +0000 (18:58 +0000)] 
callgrind_control: fix parsing of vgdb -l

If valgrind is called with absolute path (as qtcreator does),
callgrind_control found nothing, as it looked for
"... for valgrind ...", thus breaking qtcreator.

This also fixes expected behavior with client commands called with
absolute path. For "/usr/bin/valgrind --tool callgrind /usr/bin/foo",
running "callgrind_control foo" should catch this callgrind command.
Instead, you previously had to include the absolute path.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11905

14 years agoDWARF comparisons should be signed. Patch from Jakub Jelinek.
Tom Hughes [Thu, 21 Jul 2011 15:07:26 +0000 (15:07 +0000)] 
DWARF comparisons should be signed. Patch from Jakub Jelinek.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11904

14 years agoAdd test cases for bug 277780. (fix for VMOV.F32).
Julian Seward [Tue, 19 Jul 2011 15:49:55 +0000 (15:49 +0000)] 
Add test cases for bug 277780.  (fix for VMOV.F32).
Bug 277780.  (Mans Rullgard, mans@mansr.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11903

14 years agoFix regtest: the delta value printed by the VSTn with register
Julian Seward [Tue, 19 Jul 2011 08:10:38 +0000 (08:10 +0000)] 
Fix regtest: the delta value printed by the VSTn with register
post-index is bogus due to an accidental stringification in the macro.
Bug 277689.  (Mans Rullgard, mans@mansr.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11902

14 years agoAdd test cases for NEON VMUL by float scalar.
Julian Seward [Tue, 19 Jul 2011 07:39:18 +0000 (07:39 +0000)] 
Add test cases for NEON VMUL by float scalar.
Bug 277663.  (Mans Rullgard, mans@mansr.com)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11901

14 years agoUpdate list of files to be ignored by svn.
Florian Krohm [Mon, 18 Jul 2011 20:32:20 +0000 (20:32 +0000)] 
Update list of files to be ignored by svn.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11900

14 years agoEnable chasing of unconditional jumps/calls for s390x.
Florian Krohm [Sat, 16 Jul 2011 02:09:36 +0000 (02:09 +0000)] 
Enable chasing of unconditional jumps/calls for s390x.
Tune function chase_into_ok to not chase into EX/EXRL
insn.
Observed speedups on performance tests were:
none      -6% ... -12%
memcheck  -3% ... -8%

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11899

14 years agodrd/tests/annotate_smart_pointer2: Filter out offset
Bart Van Assche [Wed, 13 Jul 2011 16:46:18 +0000 (16:46 +0000)] 
drd/tests/annotate_smart_pointer2: Filter out offset

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11898