]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
16 years agoImproved portability of the annotate_barrier regression test.
Bart Van Assche [Thu, 29 Apr 2010 16:05:54 +0000 (16:05 +0000)] 
Improved portability of the annotate_barrier regression test.

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

16 years agoMade these two tests pass again on Darwin.
Bart Van Assche [Thu, 29 Apr 2010 15:50:02 +0000 (15:50 +0000)] 
Made these two tests pass again on Darwin.

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

16 years agoRemoved sem_init() test again.
Bart Van Assche [Thu, 29 Apr 2010 15:49:32 +0000 (15:49 +0000)] 
Removed sem_init() test again.

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

16 years agoInclude fcntl.h to get O_CREAT on Fedora 13.
Tom Hughes [Thu, 29 Apr 2010 09:36:35 +0000 (09:36 +0000)] 
Include fcntl.h to get O_CREAT on Fedora 13.

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

16 years agoLink the tls test against tls2.so as it references symbols in it
Tom Hughes [Thu, 29 Apr 2010 09:22:25 +0000 (09:22 +0000)] 
Link the tls test against tls2.so as it references symbols in it
and Fedora 13 no longer allows so's to be required indirectly (via
tls.so in this case).

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

16 years agoInclude valgrind headers before system headers to avoid problems
Tom Hughes [Thu, 29 Apr 2010 09:01:21 +0000 (09:01 +0000)] 
Include valgrind headers before system headers to avoid problems
with the system headers #defining things which are used as names
of structure members in vki headers.

This is needed to allow valgrind to build on Fedora 13 and Rawhide.

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

16 years ago(re-commit r1976):
Julian Seward [Thu, 29 Apr 2010 08:52:00 +0000 (08:52 +0000)] 
(re-commit r1976):
Added new SSE4.1 instruction:
  PMAXUD

git-svn-id: svn://svn.valgrind.org/vex/trunk@1976

16 years ago(re-commit r1975):
Julian Seward [Thu, 29 Apr 2010 08:50:09 +0000 (08:50 +0000)] 
(re-commit r1975):
Added new SSE4.1 instruction:
  PINSRQ

git-svn-id: svn://svn.valgrind.org/vex/trunk@1975

16 years ago(re-commit r1974):
Julian Seward [Thu, 29 Apr 2010 08:48:09 +0000 (08:48 +0000)] 
(re-commit r1974):
Fix up printing for some of the SSE4.1 insns.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1974

16 years ago(re-commit r1973):
Julian Seward [Thu, 29 Apr 2010 08:46:38 +0000 (08:46 +0000)] 
(re-commit r1973):
Added new SSE4.1 instructions:
  PEXTRW, PEXTRQ, PEXTRD, PEXTRB

git-svn-id: svn://svn.valgrind.org/vex/trunk@1973

16 years ago(re-commit r1972):
Julian Seward [Thu, 29 Apr 2010 08:44:13 +0000 (08:44 +0000)] 
(re-commit r1972):
Fixed copy+paste error in R1971

git-svn-id: svn://svn.valgrind.org/vex/trunk@1972

16 years ago(re-commit r1971)
Julian Seward [Thu, 29 Apr 2010 08:42:37 +0000 (08:42 +0000)] 
(re-commit r1971)
Added new SSE4 instructions PMINSD, PMAXSD.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1971

16 years ago(re-commit r1970):
Julian Seward [Thu, 29 Apr 2010 08:39:18 +0000 (08:39 +0000)] 
(re-commit r1970):
Tested BLENDPS
Added new SSE4 instructions DPPD and DPPS

git-svn-id: svn://svn.valgrind.org/vex/trunk@1970

16 years agoSuppressed a (harmless) compiler warning that was only reported on Darwin.
Bart Van Assche [Thu, 29 Apr 2010 07:11:46 +0000 (07:11 +0000)] 
Suppressed a (harmless) compiler warning that was only reported on Darwin.

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

16 years agoMade test results independent of thread scheduling.
Bart Van Assche [Thu, 29 Apr 2010 07:11:19 +0000 (07:11 +0000)] 
Made test results independent of thread scheduling.

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

16 years agoReplaced most platform-test macros by HAVE_... macros.
Bart Van Assche [Thu, 29 Apr 2010 06:28:43 +0000 (06:28 +0000)] 
Replaced most platform-test macros by HAVE_... macros.

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

16 years agoAdded configure test for pthread_yield() and sem_init().
Bart Van Assche [Thu, 29 Apr 2010 06:22:17 +0000 (06:22 +0000)] 
Added configure test for pthread_yield() and sem_init().

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

16 years agoAdded yet another regression test.
Bart Van Assche [Thu, 29 Apr 2010 06:06:29 +0000 (06:06 +0000)] 
Added yet another regression test.

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

16 years agoChanged gcc version from 4.4.3 to 4.5.0.
Bart Van Assche [Thu, 29 Apr 2010 05:53:22 +0000 (05:53 +0000)] 
Changed gcc version from 4.4.3 to 4.5.0.

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

16 years agoAdd some basic DWARF4 support. Based on patch from Jakub Jelinek
Tom Hughes [Wed, 28 Apr 2010 08:09:30 +0000 (08:09 +0000)] 
Add some basic DWARF4 support. Based on patch from Jakub Jelinek
but with support for VLIW architectures with multiple opcodes per
instruction removed. Fixes #233595.

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

16 years agoRename preprocessor macro __VALGRIND__ to __VALGRIND_MAJOR__ and add
Julian Seward [Mon, 19 Apr 2010 08:43:26 +0000 (08:43 +0000)] 
Rename preprocessor macro __VALGRIND__ to __VALGRIND_MAJOR__ and add
comments.

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

16 years agosearch_all_symtabs: when mapping addresses to text symbols, consider
Julian Seward [Mon, 12 Apr 2010 20:56:56 +0000 (20:56 +0000)] 
search_all_symtabs: when mapping addresses to text symbols, consider
any symbol in the r-x mapped segment to be a valid candidate.  This
relaxes the filtering criterion slightly, makes it consistent with
other is-it-text? checks.  Some addresses which before didn't get
mapped to anything are now correctly mapped to "vtable for Foo"
symbols.

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

16 years agoComment-only change.
Julian Seward [Mon, 12 Apr 2010 20:05:24 +0000 (20:05 +0000)] 
Comment-only change.

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

16 years agoChange the method used in hg_intercepts.c to hide from the user, the
Julian Seward [Mon, 12 Apr 2010 19:53:05 +0000 (19:53 +0000)] 
Change the method used in hg_intercepts.c to hide from the user, the
race between mythread_wrapper and the wrapper for pthread_create.  The
previous scheme could lead to false race reports in obscure cases.

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

16 years agoTake account the ABI-mandated stack redzone when changing stack
Julian Seward [Mon, 12 Apr 2010 19:51:04 +0000 (19:51 +0000)] 
Take account the ABI-mandated stack redzone when changing stack
shvals.  AFAIR this has never been handled correctly by Helgrind.

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

16 years agoiselVecExpr_wrk: 128-bit constants: handle all 16 cases
Donna Robinson [Fri, 2 Apr 2010 14:15:58 +0000 (14:15 +0000)] 
iselVecExpr_wrk: 128-bit constants: handle all 16 cases
                 of the form 0x0000 .. 0xFFFF.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1969

16 years agoAdded new SSE4 instruction BLENDPS (backend needs a fix before testing)
Donna Robinson [Fri, 2 Apr 2010 13:17:50 +0000 (13:17 +0000)] 
Added new SSE4 instruction BLENDPS (backend needs a fix before testing)
Tested PMOVSXBW
Tested INSERTPS
Tested BLENDPD and fixed typo

git-svn-id: svn://svn.valgrind.org/vex/trunk@1968

16 years agoEnable PMOVSXBW and fix lane shift widths.
Julian Seward [Fri, 2 Apr 2010 11:31:22 +0000 (11:31 +0000)] 
Enable PMOVSXBW and fix lane shift widths.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1967

16 years agoHandle a few more cases in 128-bit constant generation, needed by
Julian Seward [Fri, 2 Apr 2010 11:29:23 +0000 (11:29 +0000)] 
Handle a few more cases in 128-bit constant generation, needed by
front end changes in r1965.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1966

16 years agoShould now really compile on Darwin.
Bart Van Assche [Fri, 2 Apr 2010 10:27:35 +0000 (10:27 +0000)] 
Should now really compile on Darwin.

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

16 years agoAdded new SSE4 instructions:
Donna Robinson [Thu, 1 Apr 2010 23:08:59 +0000 (23:08 +0000)] 
Added new SSE4 instructions:
  BLENDPD, INSERTPS (closes Bug #232069), PMOVSX, PMOVZX.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1965

16 years agoShould now build on Darwin too.
Bart Van Assche [Thu, 1 Apr 2010 10:20:02 +0000 (10:20 +0000)] 
Should now build on Darwin too.

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

16 years agoSyscall numbers (on amd64 at least) are in unistd_{32,64}.h now so
Tom Hughes [Wed, 31 Mar 2010 07:34:30 +0000 (07:34 +0000)] 
Syscall numbers (on amd64 at least) are in unistd_{32,64}.h now so
update the recommended grep command to reflect that.

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

16 years agoThe help text printed by command-line option -h does now show the default
Bart Van Assche [Sat, 27 Mar 2010 07:38:39 +0000 (07:38 +0000)] 
The help text printed by command-line option -h does now show the default
value for option --read-var-info. Fixes bug #231458.

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

16 years agoResynchronized client requests with the latest version of TSan's header file
Bart Van Assche [Sun, 21 Mar 2010 17:28:10 +0000 (17:28 +0000)] 
Resynchronized client requests with the latest version of TSan's header file
<dynamic_annotations.h>.

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

16 years agoAdded two additional regression tests.
Bart Van Assche [Sun, 21 Mar 2010 17:24:47 +0000 (17:24 +0000)] 
Added two additional regression tests.

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

16 years agoFix stupid bug in VG_(bzero_inline), as spotted by Bart.
Julian Seward [Mon, 15 Mar 2010 09:03:25 +0000 (09:03 +0000)] 
Fix stupid bug in VG_(bzero_inline), as spotted by Bart.

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

16 years agoInline most functions in VG_(use_CF_info). May or may not give a
Julian Seward [Sun, 14 Mar 2010 17:19:02 +0000 (17:19 +0000)] 
Inline most functions in VG_(use_CF_info).  May or may not give a
3% performance increase for Helgrind in default (detailed-history)
mode.

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

16 years agoEnabled getsid in ptrcheck. Fixe #230593.
Tom Hughes [Sun, 14 Mar 2010 15:53:53 +0000 (15:53 +0000)] 
Enabled getsid in ptrcheck. Fixe #230593.

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

16 years agoImprove performance of the fallback path when a translation is not
Julian Seward [Sun, 14 Mar 2010 15:09:27 +0000 (15:09 +0000)] 
Improve performance of the fallback path when a translation is not
found in the fast-cache.

* reduce max loading of the per-sector TT hash tables from 80% to 65%.
  This reduces the number of required probes by a factor of 3.

* when searching for a translation, don't visit the sectors in a fixed
  order.  Instead, use an MTF array in which the most popular sectors
  (in terms of most likely to hold the translation we're looking for)
  are visited first.  This reduces the number of required probes by
  another factor of 2.

These improvements have no effect on small programs, but improve
scalability on big apps.  For an application comprising 300k
translations, runtime on Memcheck is reduced by 3% and on None by
about 20%.  The average number of probes per fast-cache miss is
reduced from around 22 to less than 5.

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

16 years agoUpdate expected outputs following r11089.
Julian Seward [Thu, 11 Mar 2010 13:58:50 +0000 (13:58 +0000)] 
Update expected outputs following r11089.

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

16 years agoIf a race error is detected, check to see whether the raced-on address
Julian Seward [Thu, 11 Mar 2010 13:43:18 +0000 (13:43 +0000)] 
If a race error is detected, check to see whether the raced-on address
is inside a heap block, and if so, print the allocation point of the
heap block.  It's stupid not to do this considering that the
implementation already keeps track of all mallocs and frees.

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

16 years agoGeneralized the DRD regression test stderr filter.
Bart Van Assche [Wed, 10 Mar 2010 07:05:17 +0000 (07:05 +0000)] 
Generalized the DRD regression test stderr filter.

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

16 years agoRemoved --read-var-info=yes in order to obtain the same output (hopefully)
Bart Van Assche [Tue, 9 Mar 2010 15:45:42 +0000 (15:45 +0000)] 
Removed --read-var-info=yes in order to obtain the same output (hopefully)
on Linux and on Mac OS/X systems.

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

16 years agoAdd mlockall support to ptrcheck. Closes #230020.
Tom Hughes [Tue, 9 Mar 2010 11:23:19 +0000 (11:23 +0000)] 
Add mlockall support to ptrcheck. Closes #230020.

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

16 years agoRemoved ANNOTATE_HAPPENS_DONE() again.
Bart Van Assche [Mon, 8 Mar 2010 18:41:38 +0000 (18:41 +0000)] 
Removed ANNOTATE_HAPPENS_DONE() again.

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

16 years agoAdd tests for UXTAB and SXTAH.
Julian Seward [Mon, 8 Mar 2010 15:09:06 +0000 (15:09 +0000)] 
Add tests for UXTAB and SXTAH.

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

16 years agoSupport FTOUIS, UXTAB, SXTAH.
Julian Seward [Mon, 8 Mar 2010 14:49:03 +0000 (14:49 +0000)] 
Support FTOUIS, UXTAB, SXTAH.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1964

16 years agoFix the definedness handling of the last argument of sys_socketpair.
Julian Seward [Mon, 8 Mar 2010 14:45:26 +0000 (14:45 +0000)] 
Fix the definedness handling of the last argument of sys_socketpair.
The last argument is really a pointer to an array of two ints and so
we need to say it is an int* and not an int [2].  This just happens to
work on amd64-linux because sizeof(int [2]) == 8 == sizeof(int*).  On
arm-linux it duly craps out w/ an assertion because sizeof(int [2]) !=
sizeof(UWord).

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

16 years agoMarked the annotations ANNOTATE_MUTEX_IS_USED_AS_CONDVAR,
Bart Van Assche [Mon, 8 Mar 2010 07:55:23 +0000 (07:55 +0000)] 
Marked the annotations ANNOTATE_MUTEX_IS_USED_AS_CONDVAR,
ANNOTATE_UNPUBLISH_MEMORY_RANGE and ANNOTATE_SWAP_MEMORY_RANGE as deprecated.

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

16 years agoDocument the default value of --stacks correctly.
Nicholas Nethercote [Sun, 7 Mar 2010 22:15:48 +0000 (22:15 +0000)] 
Document the default value of --stacks correctly.

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

16 years agoDo not suppress data races on user-annotated addresses.
Bart Van Assche [Sun, 7 Mar 2010 20:07:15 +0000 (20:07 +0000)] 
Do not suppress data races on user-annotated addresses.

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

16 years agoAdded missing newlines in debug tracing statements.
Bart Van Assche [Sun, 7 Mar 2010 20:05:58 +0000 (20:05 +0000)] 
Added missing newlines in debug tracing statements.

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

16 years agoAdded support for marking happens-before annotated addresses in another way
Bart Van Assche [Sun, 7 Mar 2010 20:05:23 +0000 (20:05 +0000)] 
Added support for marking happens-before annotated addresses in another way
than other client objects.

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

16 years agoSource code cleanup - no functionality has been changed.
Bart Van Assche [Sun, 7 Mar 2010 20:00:18 +0000 (20:00 +0000)] 
Source code cleanup - no functionality has been changed.

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

16 years agoAdded yet another regression test.
Bart Van Assche [Sun, 7 Mar 2010 19:59:35 +0000 (19:59 +0000)] 
Added yet another regression test.

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

16 years agoFollow-up for r11073: added missing segment creation statement.
Bart Van Assche [Sun, 7 Mar 2010 18:39:33 +0000 (18:39 +0000)] 
Follow-up for r11073: added missing segment creation statement.

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

16 years agoUpdated gcc version.
Bart Van Assche [Sun, 7 Mar 2010 12:21:56 +0000 (12:21 +0000)] 
Updated gcc version.

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

16 years agoChanges:
Bart Van Assche [Sun, 7 Mar 2010 10:54:21 +0000 (10:54 +0000)] 
Changes:
- Generalized the behavior of happens-before / happens-after annotations such
  that not only 1:1 but also n:m patterns are supported.
- Dropped support for invoking happens-before / happens-after annotations on
  POSIX condition variables (pthread_cond_t).
- Report the details about the offending synchronization object in generic
  errors.
- Converted a few tl_assert() statements into error messages.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 7 Mar 2010 10:48:34 +0000 (10:48 +0000)] 
Updated Subversion ignore list.

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

16 years agoUpdated Makefile.am.
Bart Van Assche [Sun, 7 Mar 2010 10:47:59 +0000 (10:47 +0000)] 
Updated Makefile.am.

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

16 years agoAdded the necessary files to run the smart pointer test program as a
Bart Van Assche [Sun, 7 Mar 2010 10:47:32 +0000 (10:47 +0000)] 
Added the necessary files to run the smart pointer test program as a
regression test.

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

16 years agoAdded a test program that triggers several happens-before usage errors.
Bart Van Assche [Sun, 7 Mar 2010 10:46:43 +0000 (10:46 +0000)] 
Added a test program that triggers several happens-before usage errors.

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

16 years agoAdded a definition for a new annotation: ANNOTATE_HAPPENS_DONE().
Bart Van Assche [Sun, 7 Mar 2010 10:44:46 +0000 (10:44 +0000)] 
Added a definition for a new annotation: ANNOTATE_HAPPENS_DONE().

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

16 years agoMade the behavior of the annotate_smart_pointer test program configurable
Bart Van Assche [Sun, 7 Mar 2010 10:42:15 +0000 (10:42 +0000)] 
Made the behavior of the annotate_smart_pointer test program configurable
through command-line arguments, and made sure that the annotations present
in the source code are recognized by all Valgrind-based data race detection
tools.

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

16 years agoUpdated Subversion ignore list.
Bart Van Assche [Sat, 6 Mar 2010 19:38:56 +0000 (19:38 +0000)] 
Updated Subversion ignore list.

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

16 years agoChanges:
Bart Van Assche [Sat, 6 Mar 2010 10:54:36 +0000 (10:54 +0000)] 
Changes:
- Annotated the smart pointer implementation.
- Explained the purpose of the test via source code comments.
- Removed class Semaphore.
- Made it possible to specify the number of threads to be created via the
  command line.

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

16 years agoOn amd64 all IPC calls behave as if the IPC_64 flag is set in the
Tom Hughes [Fri, 5 Mar 2010 10:11:41 +0000 (10:11 +0000)] 
On amd64 all IPC calls behave as if the IPC_64 flag is set in the
command, so pretend that it is set when calling the generic wrapper
functions in pre and post handlers. Fixes #229509.

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

16 years agoBuilds now on Win32 too.
Bart Van Assche [Thu, 4 Mar 2010 08:51:30 +0000 (08:51 +0000)] 
Builds now on Win32 too.

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

16 years agoRollup fixes for Helgrind:
Julian Seward [Wed, 3 Mar 2010 23:03:40 +0000 (23:03 +0000)] 
Rollup fixes for Helgrind:

* tracking of barriers: add support for resizable barriers

* resync TSan-compatible client requests with latest changes

* add direct access to the client requests used in hg_intercepts.c

* add a client request pair to disable and re-enable tracking
  of arbitrary address ranges

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

16 years agoMake the version number available in the valgrind.h headers, so
Julian Seward [Wed, 3 Mar 2010 22:57:47 +0000 (22:57 +0000)] 
Make the version number available in the valgrind.h headers, so
clients can do version-specific client requests.  This is something we
should have done long ago.  Still needs a way to regtest this, to
check that the embedded version matches what's stated in configure.in.

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

16 years agoShow the requesting thread (tid) for each translation.
Julian Seward [Wed, 3 Mar 2010 22:55:42 +0000 (22:55 +0000)] 
Show the requesting thread (tid) for each translation.

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

16 years agoAdded the source code of one more unit test.
Bart Van Assche [Tue, 2 Mar 2010 08:57:50 +0000 (08:57 +0000)] 
Added the source code of one more unit test.

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

16 years agoFix out-of-date comment.
Julian Seward [Mon, 1 Mar 2010 16:42:56 +0000 (16:42 +0000)] 
Fix out-of-date comment.

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

16 years agosome updates for NEWS
Nicholas Nethercote [Sun, 28 Feb 2010 23:41:07 +0000 (23:41 +0000)] 
some updates for NEWS

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

16 years agoUpdated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind
Bart Van Assche [Sun, 28 Feb 2010 09:51:00 +0000 (09:51 +0000)] 
Updated the semantics of ANNOTATE_BENIGN_RACE() as discussed on the Valgrind
developers mailing list (on February 15, 2010).

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

16 years agoHandle SBB Eb,Gb.
Julian Seward [Sun, 28 Feb 2010 04:53:07 +0000 (04:53 +0000)] 
Handle SBB Eb,Gb.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1963

16 years agoFix incorrect spec rule for LE after INCB, for end-of range cases (arg = 0x7F).
Julian Seward [Sun, 28 Feb 2010 04:51:02 +0000 (04:51 +0000)] 
Fix incorrect spec rule for LE after INCB, for end-of range cases (arg = 0x7F).

git-svn-id: svn://svn.valgrind.org/vex/trunk@1962

16 years agoAdd a wrapper for the splice system call and wire it up on
Tom Hughes [Tue, 23 Feb 2010 10:49:48 +0000 (10:49 +0000)] 
Add a wrapper for the splice system call and wire it up on
x86 and amd64 systems. Closes #205788.

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

16 years agoAdd support for the getcpu system call on x86, ppc32 and ppc64. There
Tom Hughes [Tue, 23 Feb 2010 10:02:55 +0000 (10:02 +0000)] 
Add support for the getcpu system call on x86, ppc32 and ppc64. There
is no support for amd64 because there is no getcpu system call on that
platform - it is always done as a vsyscall in user space.

Based on patch from Aleksander Salwa. Closes #223758.

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

16 years agoWhen creating a child thread, initially set its os_state.threadgroup
Julian Seward [Mon, 22 Feb 2010 11:03:10 +0000 (11:03 +0000)] 
When creating a child thread, initially set its os_state.threadgroup
to have the same value as the parent.  This avoids exit races leading
to hangs and strange behaviour in heavily multithreaded apps, in the
situation where threads are rapidly being created, and at the same
time an existing thread does sys_exit_group so as to terminate the
entire process.  Thanks to Konstantin S for chasing this down to a
small test case.  Fixes #226116.

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

16 years agoCVTPI2PD (which converts 2 x I32 in M64 or MMX to 2 x F64 in XMM):
Julian Seward [Sun, 21 Feb 2010 20:40:53 +0000 (20:40 +0000)] 
CVTPI2PD (which converts 2 x I32 in M64 or MMX to 2 x F64 in XMM):
only switch the x87 FPU to MMX mode in the case where the source
operand is in memory, not in an MMX register.  This fixes #210264.

This is all very fishy.

* it's inconsistent with all other instructions which convert between
  values in (MMX or M64) and XMM, in that they put the FPU in MMX mode
  even if the source is memory, not MMX.  (for example, CVTPI2PS).
  At least, that's what the Intel docs appear to say.

* the AMD documentation makes no mention at all of this.  For example
  it makes no differentiation in this matter between CVTPI2PD and
  CVTPI2PS.

I wonder if Intel surreptitiously changed the behaviour of CVTPI2PD
since this code was written circa 5 years ago.  Or, whether the Intel
and AMD implementations differ in this respect.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1961

16 years agoRemoved trailing whitespace in C source and header files.
Bart Van Assche [Sun, 21 Feb 2010 14:52:59 +0000 (14:52 +0000)] 
Removed trailing whitespace in C source and header files.

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

16 years agoAdd parentheses round the "zzarg" macro argument when using it as it
Tom Hughes [Fri, 19 Feb 2010 16:50:45 +0000 (16:50 +0000)] 
Add parentheses round the "zzarg" macro argument when using it as it
may expand to an expression which may mean we wind up doing the cast
before evaluating the expression... Closes #227570.

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

16 years agoMajorly improved implementation of self-checking for translations.
Julian Seward [Thu, 18 Feb 2010 23:01:26 +0000 (23:01 +0000)] 
Majorly improved implementation of self-checking for translations.
This reduces the overhead of --smc-check=all by a factor of between 2
and 3.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1960

16 years agoFix up a few issues with OSS ioctls. Fixes #227325.
Tom Hughes [Thu, 18 Feb 2010 15:54:45 +0000 (15:54 +0000)] 
Fix up a few issues with OSS ioctls. Fixes #227325.

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

16 years agoIncrease number of supported threads to 500. Fixes #227328.
Julian Seward [Wed, 17 Feb 2010 16:20:04 +0000 (16:20 +0000)] 
Increase number of supported threads to 500.  Fixes #227328.

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

16 years agoNeither FUTEX_WAKE or FUTEX_WAKE_BITSET actually dereference the
Tom Hughes [Tue, 16 Feb 2010 15:05:55 +0000 (15:05 +0000)] 
Neither FUTEX_WAKE or FUTEX_WAKE_BITSET actually dereference the
futex at all (they just use the address) so we shouldn't insist on
it's contents being define. Fixes #224723.

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

16 years agoGuard new debug print statement in r11045 correctly (at all!)
Julian Seward [Mon, 15 Feb 2010 12:00:28 +0000 (12:00 +0000)] 
Guard new debug print statement in r11045 correctly (at all!)

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

16 years agoGet rid of kludgey and non-functional PID caching in the printing
Julian Seward [Mon, 15 Feb 2010 10:07:05 +0000 (10:07 +0000)] 
Get rid of kludgey and non-functional PID caching in the printing
mechanism.

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

16 years agoMake -v messages w.r.t. finding of auxiliary debuginfo files less confusing.
Julian Seward [Mon, 15 Feb 2010 10:05:40 +0000 (10:05 +0000)] 
Make -v messages w.r.t. finding of auxiliary debuginfo files less confusing.

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

16 years agoMake this usable on Ubuntu by explicitly specifying bash rather than dash.
Julian Seward [Mon, 15 Feb 2010 10:04:46 +0000 (10:04 +0000)] 
Make this usable on Ubuntu by explicitly specifying bash rather than dash.

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

16 years agoHandle sys_inotify_init1.
Julian Seward [Mon, 15 Feb 2010 09:58:10 +0000 (09:58 +0000)] 
Handle sys_inotify_init1.

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

16 years agoAdd some intercepts to make Ptrcheck usable-ish on Ubuntu 9.10 (amd64).
Julian Seward [Mon, 15 Feb 2010 09:57:49 +0000 (09:57 +0000)] 
Add some intercepts to make Ptrcheck usable-ish on Ubuntu 9.10 (amd64).

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

16 years agoAdd debug printing for the env-mashing machinery, to help investigate
Julian Seward [Mon, 15 Feb 2010 09:54:37 +0000 (09:54 +0000)] 
Add debug printing for the env-mashing machinery, to help investigate
#215914 ("Valgrind inserts bogus empty environment variable").

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

16 years agoReduce verbosity of the PDB reader a bit. Original verbosity is still
Julian Seward [Fri, 12 Feb 2010 12:19:36 +0000 (12:19 +0000)] 
Reduce verbosity of the PDB reader a bit.  Original verbosity is still
available using "-v".

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

16 years agoTry to find the PDB file for a given PE file by the totally kludgey
Julian Seward [Fri, 12 Feb 2010 12:12:39 +0000 (12:12 +0000)] 
Try to find the PDB file for a given PE file by the totally kludgey
method of doing "strings file.dll | egrep '\.pdb|\.PDB'".

Distantly derived from a patch by leiz@ucla.edu.  Fixes #222902,
although I still would prefer to do this the proper way, by parsing
the PE file properly.

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

16 years agoFix bogus comparisons of PDB vs PE timestamps, so as to avoid
Julian Seward [Wed, 10 Feb 2010 13:37:37 +0000 (13:37 +0000)] 
Fix bogus comparisons of PDB vs PE timestamps, so as to avoid
signed vs unsigned confusion.

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

16 years agoGeneralise a suppression w.r.t. __setenv on Darwin.
Julian Seward [Thu, 4 Feb 2010 12:04:14 +0000 (12:04 +0000)] 
Generalise a suppression w.r.t. __setenv on Darwin.

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

16 years agoThe client request VG_USERREQ__LOAD_PDB_DEBUGINFO that we get from
Julian Seward [Sat, 30 Jan 2010 13:40:27 +0000 (13:40 +0000)] 
The client request VG_USERREQ__LOAD_PDB_DEBUGINFO that we get from
Wine as a notification to read PDB/PE debug info, contains a parameter
'reloc' whose purpose is unknown, and which is unused.  Rename it
accordingly, to 'unknown_purpose__reloc'.  (a non-functional change)

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