valgrind:mainlinemirror.git
8 years agoCallgrind: add branch prediction from Cachegrind master
weidendo [Fri, 2 Jul 2010 19:56:23 +0000 (19:56 +0000)]
Callgrind: add branch prediction from Cachegrind

Callgrind now uses Cachegrind's command line option to switch
on simulation: "--branch-sim=yes/no" for branch prediction,
and "--cache-sim=yes/no" for cache simulation (for more
consistency and to avoid confusion). However, the previously
used "--simulate-cache=yes/no" still is supported but deprecated.

Included: according documentation and tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11207 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoGive prototypes for the 64-bit integer division replacements, so
sewardj [Thu, 1 Jul 2010 14:50:30 +0000 (14:50 +0000)]
Give prototypes for the 64-bit integer division replacements, so
gcc doesn't complain about the lack thereof.  (x86-darwin only).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11206 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoGet rid of a whole bunch of format string warnings, by the probably
sewardj [Thu, 1 Jul 2010 14:17:32 +0000 (14:17 +0000)]
Get rid of a whole bunch of format string warnings, by the probably
excessively blunt-instrument approach of casting all offending values
to 64-bits.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11205 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix \n placement in Darwin sync-check-failure messages.
sewardj [Thu, 1 Jul 2010 11:42:22 +0000 (11:42 +0000)]
Fix \n placement in Darwin sync-check-failure messages.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11204 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoDon't assert when trying to show a Darwin syscall number in an unknown
sewardj [Thu, 1 Jul 2010 11:15:32 +0000 (11:15 +0000)]
Don't assert when trying to show a Darwin syscall number in an unknown
syscall class.  This stops Valgrind asserting when doing
--trace-syscalls=yes and a sys_syscall is encountered, in 64-bit mode.
I don't know if this is a correct fix or whether it merely hides
symptoms of logic handling problems for sys_syscall on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11203 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd a handler for syscall proc_info, 64-bit Darwin only atm.
sewardj [Thu, 1 Jul 2010 10:47:23 +0000 (10:47 +0000)]
Add a handler for syscall proc_info, 64-bit Darwin only atm.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11202 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd some suppressions reported by Jesse Ruderman.
njn [Thu, 1 Jul 2010 02:37:23 +0000 (02:37 +0000)]
Add some suppressions reported by Jesse Ruderman.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11201 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd --pages-as-heap option to Massif. Bug 203256.
njn [Thu, 1 Jul 2010 02:35:03 +0000 (02:35 +0000)]
Add --pages-as-heap option to Massif.  Bug 203256.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11200 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix various bits of regtest breakage on amd64-linux caused by the MACOSX106
njn [Thu, 1 Jul 2010 01:09:42 +0000 (01:09 +0000)]
Fix various bits of regtest breakage on amd64-linux caused by the MACOSX106
merge.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11199 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRemove a bogus header file listing.
njn [Thu, 1 Jul 2010 00:37:46 +0000 (00:37 +0000)]
Remove a bogus header file listing.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11197 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd a missing filter_stderr file.
njn [Thu, 1 Jul 2010 00:34:54 +0000 (00:34 +0000)]
Add a missing filter_stderr file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11196 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd missing darwin10 .supp files.
njn [Thu, 1 Jul 2010 00:28:09 +0000 (00:28 +0000)]
Add missing darwin10 .supp files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11195 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMerged the MACOSX106 branch to the trunk. Merge command:
njn [Thu, 1 Jul 2010 00:20:20 +0000 (00:20 +0000)]
Merged the MACOSX106 branch to the trunk.  Merge command:

  svn merge -r11143:HEAD svn://svn.valgrind.org/valgrind/branches/MACOSX106

There were some easy-to-resolve conflicts.

Then I had to fix up coregrind/link_tool_exe*.in -- those files had been
added independently on both the trunk and the branch, AFAICT.  I just
overwrote the trunk versions with the branch versions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11194 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded cg_diff.
njn [Wed, 30 Jun 2010 05:23:34 +0000 (05:23 +0000)]
Added cg_diff.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11193 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the...
bart [Tue, 29 Jun 2010 06:16:52 +0000 (06:16 +0000)]
Fix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the first argument of the mount() system call is NULL.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11191 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd tests for ROUNDSS and ROUNDSD -- partial coverage, for the cases
sewardj [Mon, 28 Jun 2010 08:15:48 +0000 (08:15 +0000)]
Add tests for ROUNDSS and ROUNDSD -- partial coverage, for the cases
where the rounding mode is encoded in the instruction itself.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11190 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoHandle new primop Iop_RoundF32toInt, needed by SSE4 ROUNDSS (vex
sewardj [Sun, 27 Jun 2010 09:08:54 +0000 (09:08 +0000)]
Handle new primop Iop_RoundF32toInt, needed by SSE4 ROUNDSS (vex
r1986).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11189 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoDon't need to have special handling for link_tool_exe now that it's
njn [Tue, 22 Jun 2010 06:46:15 +0000 (06:46 +0000)]
Don't need to have special handling for link_tool_exe now that it's
implemented via perl scripts instead of an executable.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11187 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoDon't print the linking command, it's too noisy with "make --quiet" builds.
njn [Tue, 22 Jun 2010 06:45:44 +0000 (06:45 +0000)]
Don't print the linking command, it's too noisy with "make --quiet" builds.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11186 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix bug in the previous commit.
njn [Tue, 22 Jun 2010 03:50:08 +0000 (03:50 +0000)]
Fix bug in the previous commit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11185 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAllow negative numbers in the cachegrind.out.* file. Also protect against
njn [Tue, 22 Jun 2010 03:40:04 +0000 (03:40 +0000)]
Allow negative numbers in the cachegrind.out.* file.  Also protect against
division-by-zero.  Both are required for cg_diff (not yet committed) to work
properly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11184 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMake better use of references, allowing data structure updates to be more
njn [Tue, 22 Jun 2010 03:34:54 +0000 (03:34 +0000)]
Make better use of references, allowing data structure updates to be more
localised.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11183 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoValgrind-side changes needed to go with vex r1984 (Implement SSE4
sewardj [Fri, 18 Jun 2010 08:18:38 +0000 (08:18 +0000)]
Valgrind-side changes needed to go with vex r1984 (Implement SSE4
insns: CMPGTQ PMAXUD PMINUD PMAXSB PMINSB PMULLD)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11181 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoReimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
bart [Tue, 15 Jun 2010 14:55:28 +0000 (14:55 +0000)]
Reimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
compiler warning on PPC when it shouldn't.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11180 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdated Subversion ignore list.
bart [Tue, 15 Jun 2010 13:02:48 +0000 (13:02 +0000)]
Updated Subversion ignore list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11179 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAvoid reading beyond the end of the environment variable when
tom [Tue, 15 Jun 2010 12:49:07 +0000 (12:49 +0000)]
Avoid reading beyond the end of the environment variable when
using mash_colon_env to remove paths. Should fix #215914.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11178 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd a test program for SSE4 instructions. Currently not integrated
sewardj [Tue, 15 Jun 2010 08:16:00 +0000 (08:16 +0000)]
Add a test program for SSE4 instructions.  Currently not integrated
into the build/regtest system.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11177 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFixed compiler warnings about casting from const char * to char *.
bart [Mon, 14 Jun 2010 18:12:56 +0000 (18:12 +0000)]
Fixed compiler warnings about casting from const char * to char *.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11176 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRemove link_tool_exe.c and replace it with perl scripts that do the
sewardj [Sun, 13 Jun 2010 22:13:58 +0000 (22:13 +0000)]
Remove link_tool_exe.c and replace it with perl scripts that do the
same thing.  A .c file doesn't work for cross compilation.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11174 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoPowerPC: only compile Altivec instructions when the CPU supports these. Fixes bug...
bart [Sun, 13 Jun 2010 14:49:04 +0000 (14:49 +0000)]
PowerPC: only compile Altivec instructions when the CPU supports these. Fixes bug #238745.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11173 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMade the abort() function available on PPC too.
bart [Sun, 13 Jun 2010 13:46:24 +0000 (13:46 +0000)]
Made the abort() function available on PPC too.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11172 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFixed bogus check of RES in the ioctl PRE handler introduced
tom [Thu, 10 Jun 2010 15:01:02 +0000 (15:01 +0000)]
Fixed bogus check of RES in the ioctl PRE handler introduced
in r11124 while fixing #235642.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11171 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix typo introduced with r11165, include "Ge" in regtests
weidendo [Thu, 10 Jun 2010 12:50:22 +0000 (12:50 +0000)]
Fix typo introduced with r11165, include "Ge" in regtests

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11170 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFollow-up for r11164: made sure that the --build-id=none configure test works (was...
bart [Thu, 10 Jun 2010 06:26:21 +0000 (06:26 +0000)]
Follow-up for r11164: made sure that the --build-id=none configure test works (was reported by Dave Goodell).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11169 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoCallgrind new feature: count global bus lock events "Ge"
weidendo [Wed, 9 Jun 2010 22:33:02 +0000 (22:33 +0000)]
Callgrind new feature: count global bus lock events "Ge"

To count global bus lock events, use "--collect-bus=yes".
For x86, this will count the number of executed instructions
with a lock prefix; for architectures with LL/SC, this will
count the number of executed SC instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11167 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoCallgrind: make globals for log_* helpers visible outside sim.c
weidendo [Wed, 9 Jun 2010 22:32:58 +0000 (22:32 +0000)]
Callgrind: make globals for log_* helpers visible outside sim.c

At beginning of each BB, Callgrind inserts a call to setup_bbcc,
which (among a lot other things), sets global vars needed for
the log_* helpers called afterwards in this BB.

These globals, bb_base and cost_base, previously we static declared
and only visible in sim.c. Make them visible also in the rest of
callgrind to allow for log_* handlers outside sim.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11166 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoCallgrind: event sets now consist of event groups
weidendo [Wed, 9 Jun 2010 22:32:53 +0000 (22:32 +0000)]
Callgrind: event sets now consist of event groups

Offsets of groups within event sets are now
stored in a offset table as part of the event set, and
can be accessed directly. Before, offsets were hardcoded
all over the place. This should make addition of further
event groups much simpler.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11165 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded a configure test for the linker flag --build-id=none.
bart [Tue, 8 Jun 2010 18:23:59 +0000 (18:23 +0000)]
Added a configure test for the linker flag --build-id=none.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11164 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded a suppression pattern for __nptl_deallocate_tsd().
bart [Tue, 8 Jun 2010 15:00:18 +0000 (15:00 +0000)]
Added a suppression pattern for __nptl_deallocate_tsd().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11163 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded a suppression pattern for the boost thread library.
bart [Sat, 5 Jun 2010 11:57:57 +0000 (11:57 +0000)]
Added a suppression pattern for the boost thread library.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11152 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdated Subversion ignore list.
bart [Sat, 5 Jun 2010 11:56:51 +0000 (11:56 +0000)]
Updated Subversion ignore list.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11151 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoon MacOSX, correctly propagate failure code of system() call.
sewardj [Thu, 3 Jun 2010 20:27:19 +0000 (20:27 +0000)]
on MacOSX, correctly propagate failure code of system() call.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11147 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years ago(for linux):
sewardj [Thu, 3 Jun 2010 08:19:59 +0000 (08:19 +0000)]
(for linux):

* pass --build-id=none to ld to stop it creating a.note.gnu.build-id
  exactly where we don't want it

* propagate error code from system() properly

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11146 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoReplaced dynamic initialization of DRD_(pthread_cond_initializer) by static initializ...
bart [Wed, 2 Jun 2010 19:32:51 +0000 (19:32 +0000)]
Replaced dynamic initialization of DRD_(pthread_cond_initializer) by static initialization.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11145 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMake link_tool_exe.c work for MacOSX. This un-breaks the MacOS build
sewardj [Wed, 2 Jun 2010 00:46:58 +0000 (00:46 +0000)]
Make link_tool_exe.c work for MacOSX.  This un-breaks the MacOS build
following r11141.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11142 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd a new program (link_tool_exe.c) and use this to link the tool
sewardj [Wed, 2 Jun 2010 00:31:34 +0000 (00:31 +0000)]
Add a new program (link_tool_exe.c) and use this to link the tool
executables.  Gets rid of the linker script kludgery and uniformly
uses -Ttext=0x38000000 (or whatever) on Linux, so as to accomodate
both traditional ld and gold.  Should fix #193413 although I have
been unable to test it.  Using a whole new program seems like
overkill, but this is infrastructure to support static linking of
the tool executables on MacOS too.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11141 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdated Subversion ignore lists.
bart [Sat, 29 May 2010 18:43:43 +0000 (18:43 +0000)]
Updated Subversion ignore lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11140 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoHandle statically initialized condition variables properly.
bart [Sat, 29 May 2010 18:43:21 +0000 (18:43 +0000)]
Handle statically initialized condition variables properly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11139 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded a regression test.
bart [Sat, 29 May 2010 18:42:14 +0000 (18:42 +0000)]
Added a regression test.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11138 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoCan be processed again with autoconf 2.59 and before, which does not have AC_PROG_SED.
bart [Sat, 29 May 2010 06:44:28 +0000 (06:44 +0000)]
Can be processed again with autoconf 2.59 and before, which does not have AC_PROG_SED.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11137 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agolibhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure
sewardj [Fri, 28 May 2010 20:09:59 +0000 (20:09 +0000)]
libhb_so_recv(): don't pass a NULL filter to Filter__clear.  Not sure
why thr->filter can be NULL here, though.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11136 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdated e-mail address.
bart [Thu, 27 May 2010 10:43:21 +0000 (10:43 +0000)]
Updated e-mail address.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11135 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoSet VG_(args_the_exename) to the full path to the script when
tom [Tue, 25 May 2010 08:45:44 +0000 (08:45 +0000)]
Set VG_(args_the_exename) to the full path to the script when
loading a script as client. Closes #238345.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11134 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix amd64 and ppc64 to correctly mark mq_timedreceive as LINXY so that
tom [Mon, 24 May 2010 13:40:10 +0000 (13:40 +0000)]
Fix amd64 and ppc64 to correctly mark mq_timedreceive as LINXY so that
the post handler is run to mark the retrieved message as correct.

Also change the post handler to only mark the number of bytes actually
returned as defined, rather than the whole buffer.

Fixes #238679.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11133 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoChanges:
bart [Sat, 15 May 2010 08:37:24 +0000 (08:37 +0000)]
Changes:
- Made glibc version detection test shorter and faster.
- Made unsupported glibc version error message more detailed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11132 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd missing backslash.
sewardj [Fri, 14 May 2010 11:18:52 +0000 (11:18 +0000)]
Add missing backslash.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11131 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded an additional tl_assert() statement.
bart [Thu, 13 May 2010 08:10:52 +0000 (08:10 +0000)]
Added an additional tl_assert() statement.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11130 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded support for glibc 2.12.
bart [Thu, 13 May 2010 06:32:36 +0000 (06:32 +0000)]
Added support for glibc 2.12.
Note: many Helgrind and DRD regression tests still fail on Fedora 13 because
of differences in the call stacks of error reports compared to earlier
glibc/gcc combinations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11129 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoDRD: added a suppression pattern for the libstdc++ included with gcc 4.4.4.
bart [Wed, 12 May 2010 10:01:32 +0000 (10:01 +0000)]
DRD: added a suppression pattern for the libstdc++ included with gcc 4.4.4.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11128 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd test cases for XADD reg,reg. (Nicolas Sauzede, nicolas.sauzede@st.com).
sewardj [Mon, 10 May 2010 20:53:28 +0000 (20:53 +0000)]
Add test cases for XADD reg,reg.  (Nicolas Sauzede, nicolas.sauzede@st.com).
See #195662.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11127 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoEnable testing of FISTS and FISTPS on amd64.
sewardj [Mon, 10 May 2010 20:06:08 +0000 (20:06 +0000)]
Enable testing of FISTS and FISTPS on amd64.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11126 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoNew flag --require-text-symbol=:sopatt:fnpatt, to be used to check
sewardj [Sun, 9 May 2010 22:30:43 +0000 (22:30 +0000)]
New flag --require-text-symbol=:sopatt:fnpatt, to be used to check
that specified shared objects contain specified symbols.  Along with a
couple of regtests that unfortunately will fail on MacOSX.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11125 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd support for some EVIO ioctls. These are a bit abnormal because
tom [Fri, 7 May 2010 15:32:04 +0000 (15:32 +0000)]
Add support for some EVIO ioctls. These are a bit abnormal because
the length part of the ioctl is not fixed so they are essentially
families of ioctls.

Based on patch from Peter Korsgaard. Fixes #235642.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11124 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRollup changes for Helgrind:
sewardj [Wed, 5 May 2010 09:34:42 +0000 (09:34 +0000)]
Rollup changes for Helgrind:

* Add new client request VALGRIND_HG_CLEAN_MEMORY_HEAPBLOCK.  This is
  like VALGRIND_HG_CLEAN_MEMORY but doesn't take an address range.
  Instead it takes a single argument which is supposed to be a pointer
  to the start of, or anywhere within, a heap allocated block.
  Helgrind then finds the block and paints it as belonging to the
  calling thread.  This is needed for correctly describing the
  behaviour of threadsafe reference counting when applied to classes
  involving inheritance of release methods or involving multiple
  inheritance.

* Add statistics counters for all basic VTS operations (tick, join,
  cmpLEQ, cmp_structural).

* Rewrite VTS__cmp_structural to be much faster.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11123 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd a method to get the contents of an XArray so we can index in
sewardj [Wed, 5 May 2010 09:23:41 +0000 (09:23 +0000)]
Add a method to get the contents of an XArray so we can index in
it really fast, or iterate over it.  This is dangerous and breaks
the nice abstraction (sigh).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11122 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdate copyright dates to 2010.
sewardj [Mon, 3 May 2010 21:37:12 +0000 (21:37 +0000)]
Update copyright dates to 2010.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFilter tuning such that the annotate_barrier test does now pass on Darwin too.
bart [Thu, 29 Apr 2010 17:44:23 +0000 (17:44 +0000)]
Filter tuning such that the annotate_barrier test does now pass on Darwin too.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11120 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRefactoring: replaced two AC_TRY_COMPILE() occurrences by AC_CHECK_MEMBER().
bart [Thu, 29 Apr 2010 16:37:26 +0000 (16:37 +0000)]
Refactoring: replaced two AC_TRY_COMPILE() occurrences by AC_CHECK_MEMBER().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11119 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoImproved portability of the annotate_barrier regression test.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMade these two tests pass again on Darwin.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRemoved sem_init() test again.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoInclude fcntl.h to get O_CREAT on Fedora 13.
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoLink the tls test against tls2.so as it references symbols in it
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoInclude valgrind headers before system headers to avoid problems
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoSuppressed a (harmless) compiler warning that was only reported on Darwin.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoMade test results independent of thread scheduling.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoReplaced most platform-test macros by HAVE_... macros.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded configure test for pthread_yield() and sem_init().
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded yet another regression test.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoChanged gcc version from 4.4.3 to 4.5.0.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdd some basic DWARF4 support. Based on patch from Jakub Jelinek
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRename preprocessor macro __VALGRIND__ to __VALGRIND_MAJOR__ and add
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agosearch_all_symtabs: when mapping addresses to text symbols, consider
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

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

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11103 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoChange the method used in hg_intercepts.c to hide from the user, the
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoTake account the ABI-mandated stack redzone when changing stack
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoShould now really compile on Darwin.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoShould now build on Darwin too.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoSyscall numbers (on amd64 at least) are in unistd_{32,64}.h now so
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoThe help text printed by command-line option -h does now show the default
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoResynchronized client requests with the latest version of TSan's header file
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoAdded two additional regression tests.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoFix stupid bug in VG_(bzero_inline), as spotted by Bart.
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoInline most functions in VG_(use_CF_info). May or may not give a
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoEnabled getsid in ptrcheck. Fixe #230593.
tom [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoImprove performance of the fallback path when a translation is not
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoUpdate expected outputs following r11089.
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoIf a race error is detected, check to see whether the raced-on address
sewardj [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoGeneralized the DRD regression test stderr filter.
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9

8 years agoRemoved --read-var-info=yes in order to obtain the same output (hopefully)
bart [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 a5019735-40e9-0310-863c-91ae7b9d1cf9