]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
15 years agoImplement rex.W/FXSAVE and also both variants of FXRSTOR.
Julian Seward [Fri, 21 Jan 2011 18:05:19 +0000 (18:05 +0000)] 
Implement rex.W/FXSAVE and also both variants of FXRSTOR.
Ick.  I knew there was a reason I'd been putting this off.
Fixes #194402.

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

15 years agoAdd alignment checking for FXSAVE/FXRSTOR.
Julian Seward [Fri, 21 Jan 2011 18:02:54 +0000 (18:02 +0000)] 
Add alignment checking for FXSAVE/FXRSTOR.

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

15 years agoAdd support for SSE4.2 CRC32{B,W,L,Q}. Fixes #261966.
Julian Seward [Fri, 21 Jan 2011 17:51:44 +0000 (17:51 +0000)] 
Add support for SSE4.2 CRC32{B,W,L,Q}.  Fixes #261966.

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

15 years agoAccept redundant REX.W for EXTRACTPS. See #258870 comment 5.
Julian Seward [Wed, 19 Jan 2011 12:21:51 +0000 (12:21 +0000)] 
Accept redundant REX.W for EXTRACTPS.  See #258870 comment 5.

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

15 years agoPrint a stack trace as part of the "unhandled instruction bytes" warning.
Nicholas Nethercote [Tue, 18 Jan 2011 05:16:21 +0000 (05:16 +0000)] 
Print a stack trace as part of the "unhandled instruction bytes" warning.
Useful if the program in question catches signals, in which case the usual
"Process terminating..." stack trace isn't shown.  Requested by Jesse
Ruderman.

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

15 years agoAdd test cases for PCMPxSTRx $0x00.
Julian Seward [Mon, 17 Jan 2011 23:10:39 +0000 (23:10 +0000)] 
Add test cases for PCMPxSTRx $0x00.

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

15 years agoHandle PCMPxSTRx $0x00. Fixes #262995.
Julian Seward [Mon, 17 Jan 2011 23:06:16 +0000 (23:06 +0000)] 
Handle PCMPxSTRx $0x00.  Fixes #262995.

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

15 years agoTolerate redundant REX.W in POPQ m64. (#256669).
Julian Seward [Mon, 17 Jan 2011 13:11:37 +0000 (13:11 +0000)] 
Tolerate redundant REX.W in POPQ m64.  (#256669).

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

15 years agoAdd tests for AAD and AAM (base 10 only).
Julian Seward [Mon, 17 Jan 2011 12:34:33 +0000 (12:34 +0000)] 
Add tests for AAD and AAM (base 10 only).
(Vince Weaver, vince@csl.cornell.edu)

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

15 years agoAdd support for AAD and AAM (base 10 only). Fixes #256387.
Julian Seward [Mon, 17 Jan 2011 12:32:25 +0000 (12:32 +0000)] 
Add support for AAD and AAM (base 10 only).  Fixes #256387.
(Vince Weaver, vince@csl.cornell.edu)

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

15 years agoPrint 8 insn bytes when failing, not 6.
Julian Seward [Mon, 17 Jan 2011 11:58:47 +0000 (11:58 +0000)] 
Print 8 insn bytes when failing, not 6.

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

15 years agoConnect up tests for PCMPxSTRx to the build system.
Julian Seward [Mon, 17 Jan 2011 11:42:19 +0000 (11:42 +0000)] 
Connect up tests for PCMPxSTRx to the build system.

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

15 years agoConnect up sse4 tests to the build system.
Julian Seward [Mon, 17 Jan 2011 11:17:33 +0000 (11:17 +0000)] 
Connect up sse4 tests to the build system.

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

15 years agoAdd build system goop for testing SSE4.2 instructions.
Julian Seward [Mon, 17 Jan 2011 11:15:48 +0000 (11:15 +0000)] 
Add build system goop for testing SSE4.2 instructions.

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

15 years agoAdd test cases for EXTRACTPS, BLENDVPD, BLENDVPS, PBLENDVB.
Julian Seward [Mon, 17 Jan 2011 10:40:53 +0000 (10:40 +0000)] 
Add test cases for EXTRACTPS, BLENDVPD, BLENDVPS, PBLENDVB.

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

15 years agoImplement SSE4.x EXTRACTPS. Fixes #258870.
Julian Seward [Mon, 17 Jan 2011 10:32:18 +0000 (10:32 +0000)] 
Implement SSE4.x EXTRACTPS.  Fixes #258870.
Implement SSE4.x BLENDVPD, BLENDVPS, PBLENDVB.  Fixes #256968 + dup #263376.

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

15 years agoFix bug 263099
Josef Weidendorfer [Fri, 14 Jan 2011 18:48:43 +0000 (18:48 +0000)] 
Fix bug 263099

Correct a beginners PERL bug ;-)
Need to create new arrays, not just copying references to ARRAYs
around, which are modified later on...

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

15 years agoImplement SSE4.1 PBLENDW. Fixes #257011 (comment 1, at least).
Julian Seward [Tue, 11 Jan 2011 19:55:39 +0000 (19:55 +0000)] 
Implement SSE4.1 PBLENDW.  Fixes #257011 (comment 1, at least).

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

15 years agoAdd tests for non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.
Julian Seward [Tue, 11 Jan 2011 18:26:16 +0000 (18:26 +0000)] 
Add tests for non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.

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

15 years agoHandle non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.
Julian Seward [Tue, 11 Jan 2011 18:22:53 +0000 (18:22 +0000)] 
Handle non-immediate-rounding-mode versions of ROUND{P,S}{S,D}.
Fixes #255418.

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

15 years agoFix bug in ppc64g_dirtyhelper_LVS (well, elsewhere, really) causing
Julian Seward [Mon, 10 Jan 2011 17:44:30 +0000 (17:44 +0000)] 
Fix bug in ppc64g_dirtyhelper_LVS (well, elsewhere, really) causing
incorrect Altivec lvsl/lvsr handling on ppc64. (bug 250038)

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

15 years agoImplement ROUNDPD and ROUNDPS (imm rounding mode only).
Julian Seward [Mon, 10 Jan 2011 15:16:38 +0000 (15:16 +0000)] 
Implement ROUNDPD and ROUNDPS (imm rounding mode only).
Fixes #257063 (roundps) and #255963 (roundpd).

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

15 years agoSave an instruction on the normal idiom generated for smc-checks.
Julian Seward [Mon, 10 Jan 2011 15:10:48 +0000 (15:10 +0000)] 
Save an instruction on the normal idiom generated for smc-checks.

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

15 years agoImprove performance of smc-checks substantially, by:
Julian Seward [Mon, 10 Jan 2011 15:09:23 +0000 (15:09 +0000)] 
Improve performance of smc-checks substantially, by:

(1) allowing translations to chase across BB boundaries, as in the
    non-smc-check case

(2) on 64-bit targets, do the checksumming with 64-bit loads
    instead of 32-bit ones.

(valgrind-side change, to match vex r2070)

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

15 years agoImprove performance of smc-checks substantially, by:
Julian Seward [Mon, 10 Jan 2011 15:08:41 +0000 (15:08 +0000)] 
Improve performance of smc-checks substantially, by:

(1) allowing translations to chase across BB boundaries, as in the
    non-smc-check case

(2) on 64-bit targets, do the checksumming with 64-bit loads
    instead of 32-bit ones.

(vex-side change)

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

15 years agoMemcheck, None: update avg translation size to be more realistic.
Julian Seward [Mon, 10 Jan 2011 15:01:03 +0000 (15:01 +0000)] 
Memcheck, None: update avg translation size to be more realistic.
Massif: specify avg translation size at all, so as to avoid excessive
retranslations caused by the fact that the default value is far below
reality for Massif.

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

15 years agoOnly show per-offset access counts for allocations up to 1024 bytes,
Julian Seward [Mon, 10 Jan 2011 14:56:59 +0000 (14:56 +0000)] 
Only show per-offset access counts for allocations up to 1024 bytes,
to avoid producing ridiculous amounts of output.

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

15 years agoClarify some details about "possibly lost" heap blocks.
Nicholas Nethercote [Tue, 4 Jan 2011 23:46:07 +0000 (23:46 +0000)] 
Clarify some details about "possibly lost" heap blocks.

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

15 years agoFix typo
Josef Weidendorfer [Tue, 4 Jan 2011 21:09:14 +0000 (21:09 +0000)] 
Fix typo

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

15 years agoUn-break the trunk build on OSX (broken by r11483 on 6 Dec '10).
Julian Seward [Tue, 4 Jan 2011 14:18:35 +0000 (14:18 +0000)] 
Un-break the trunk build on OSX (broken by r11483 on 6 Dec '10).
Fixes #261654.

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

15 years agoAdded a --mod-funcname option to cg_diff.
Nicholas Nethercote [Fri, 17 Dec 2010 00:45:19 +0000 (00:45 +0000)] 
Added a --mod-funcname option to cg_diff.

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

15 years agoWhen a shmat() size is passed to the tool, round it up to a page size. This
Nicholas Nethercote [Wed, 8 Dec 2010 02:51:43 +0000 (02:51 +0000)] 
When a shmat() size is passed to the tool, round it up to a page size.  This
is how mmap() sizes are treated.  It fixes an assertion failure in Massif
with --pages-as-heap=yes.

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

15 years agoRaise Massif's maximum --detailed-freq value from 10,000 to 1,000,000.
Nicholas Nethercote [Wed, 8 Dec 2010 02:42:38 +0000 (02:42 +0000)] 
Raise Massif's maximum --detailed-freq value from 10,000 to 1,000,000.

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

15 years agoNew command line option: --trace-children-skip-by-arg, which allows
Julian Seward [Mon, 6 Dec 2010 11:40:04 +0000 (11:40 +0000)] 
New command line option: --trace-children-skip-by-arg, which allows
chase/nochase decisions for child processes to be made on the basis
of their argv[] entries rather than on the name of their executables.

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

15 years agoMinor improvements to PDB reading:
Julian Seward [Mon, 6 Dec 2010 11:11:29 +0000 (11:11 +0000)] 
Minor improvements to PDB reading:

* better progress messages, to make it clear that reading of a
  PDB is finished, and how much stuff was read from it

* don't mmap PDB files to read them -- instead use VG_(read).
  This is because CIFS filesystem mounting only works reliably on
  Linux when mounted with option '-o directio', and that
  disallows mmap-ing files.

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

15 years agoAdd tests for ROUNDPD and ROUNDPS.
Julian Seward [Mon, 6 Dec 2010 11:05:29 +0000 (11:05 +0000)] 
Add tests for ROUNDPD and ROUNDPS.

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

15 years agoSpeedups and fixes:
Julian Seward [Mon, 6 Dec 2010 10:56:09 +0000 (10:56 +0000)] 
Speedups and fixes:

* (speedup) addMemEvent: generate inline code to check whether a
  memory access is within 16k of the stack pointer, and if so
  don't bother to call the helper

* (speedup) find_Block_containing: cache the most recently seen 2
  blocks, and check new references in them first.  This gives a
  worthwhile speedup.

* (fix) at the end of the run, merge stats from un-freed blocks
  back into APs.  This fixes misleading stats that cause un-freed
  blocks to appear to not have been accessed at all.

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

15 years agoRework the strcasecmp stuff a little, based on Jakub Jelinek's patch
Tom Hughes [Fri, 12 Nov 2010 10:40:20 +0000 (10:40 +0000)] 
Rework the strcasecmp stuff a little, based on Jakub Jelinek's patch
on bug #256600 because the original version turned out to somewhat
fragile across different glibc versions.

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

15 years agoAdd replacements for strcasecmp and related functions which have
Tom Hughes [Fri, 12 Nov 2010 10:03:13 +0000 (10:03 +0000)] 
Add replacements for strcasecmp and related functions which have
hyper-optimised versions which defeat valgrind in recent versions
of glibc.

Fixes #256600 based on patch from Dmitry Djachenko.

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

15 years agoDRD: the help text does now indicate that lock contention detection is off by default...
Bart Van Assche [Mon, 25 Oct 2010 18:18:54 +0000 (18:18 +0000)] 
DRD: the help text does now indicate that lock contention detection is off by default / changed default value of the exclusive mutex threshold from 1000s to off. See also #255247.

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

15 years agoRemoved superfluous semicolon.
Bart Van Assche [Fri, 22 Oct 2010 15:09:38 +0000 (15:09 +0000)] 
Removed superfluous semicolon.

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

15 years agoMerge from 3_6_BRANCH, r11471 (final change to NEWS for 3.6.0)
Julian Seward [Fri, 22 Oct 2010 06:44:59 +0000 (06:44 +0000)] 
Merge from 3_6_BRANCH, r11471 (final change to NEWS for 3.6.0)

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

15 years agoFinalise doc stuff for 3.6.0.
Julian Seward [Wed, 20 Oct 2010 17:07:01 +0000 (17:07 +0000)] 
Finalise doc stuff for 3.6.0.

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

15 years agoPreserve the stack's 16-alignment in x86 and amd64 wrappers.
Julian Seward [Wed, 20 Oct 2010 15:58:09 +0000 (15:58 +0000)] 
Preserve the stack's 16-alignment in x86 and amd64 wrappers.
Fixes #254646.

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

15 years agoSize the ARM_LINUX_FAKE_COMMPAGE correctly and add explanatory
Julian Seward [Wed, 20 Oct 2010 15:43:09 +0000 (15:43 +0000)] 
Size the ARM_LINUX_FAKE_COMMPAGE correctly and add explanatory
comments.  Fixes #254556.  (Peter Maydell, peter.maydell@linaro.org)

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

15 years agoUpdated Subversion ignore lists.
Bart Van Assche [Wed, 20 Oct 2010 13:20:15 +0000 (13:20 +0000)] 
Updated Subversion ignore lists.

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

15 years agoAvoid a double free when a binary has a build-id and no debuglink section.
Tom Hughes [Tue, 19 Oct 2010 13:12:59 +0000 (13:12 +0000)] 
Avoid a double free when a binary has a build-id and no debuglink section.

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

15 years agoMake sure all the handwritten assembly files for arm-linux are compiled with -marm.
Julian Seward [Mon, 18 Oct 2010 18:11:42 +0000 (18:11 +0000)] 
Make sure all the handwritten assembly files for arm-linux are compiled with -marm.

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

15 years agoDRD: Removed section about Qt from the manual.
Bart Van Assche [Mon, 18 Oct 2010 16:44:08 +0000 (16:44 +0000)] 
DRD: Removed section about Qt from the manual.

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

15 years agoAdd test cases for SMSAD{X}, SMLSD{X}, USAD{A}8, added in vex r2067.
Julian Seward [Mon, 18 Oct 2010 16:35:38 +0000 (16:35 +0000)] 
Add test cases for SMSAD{X}, SMLSD{X}, USAD{A}8, added in vex r2067.

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

15 years agoRemoved the Qt4 configure tests because these are no longer necessary.
Bart Van Assche [Mon, 18 Oct 2010 16:32:11 +0000 (16:32 +0000)] 
Removed the Qt4 configure tests because these are no longer necessary.

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

15 years agoDRD: Disabled the Qt4 regression tests because these are too hard to maintain.
Bart Van Assche [Mon, 18 Oct 2010 16:31:34 +0000 (16:31 +0000)] 
DRD: Disabled the Qt4 regression tests because these are too hard to maintain.

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

15 years agoHandle new Iop_Sad8Ux4 introduced in vex r2067.
Julian Seward [Mon, 18 Oct 2010 16:31:14 +0000 (16:31 +0000)] 
Handle new Iop_Sad8Ux4 introduced in vex r2067.

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

15 years agoAvoid that using VALGRIND_GET_VBITS() / VALGRIND_SET_VBITS() triggers warnings about...
Bart Van Assche [Mon, 18 Oct 2010 16:30:50 +0000 (16:30 +0000)] 
Avoid that using VALGRIND_GET_VBITS() / VALGRIND_SET_VBITS() triggers warnings about casting away constness.

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

15 years agoAdd support for SMSAD{X}, SMLSD{X}, USAD{A}8.
Julian Seward [Mon, 18 Oct 2010 16:29:40 +0000 (16:29 +0000)] 
Add support for SMSAD{X}, SMLSD{X}, USAD{A}8.

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

15 years agoAdd support for DW_ATE_UTF from DWARF4 which is needed for char16_t
Tom Hughes [Mon, 18 Oct 2010 14:57:58 +0000 (14:57 +0000)] 
Add support for DW_ATE_UTF from DWARF4 which is needed for char16_t
support in C++0X.

Patch from Christian Borntraeger on bug #254550.

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

15 years agoDon't look for build-id notes if NT_GNU_BUILD_ID is not defined.
Tom Hughes [Mon, 18 Oct 2010 13:04:13 +0000 (13:04 +0000)] 
Don't look for build-id notes if NT_GNU_BUILD_ID is not defined.

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

15 years agoAdd support for using build-id to find debugging information as
Tom Hughes [Mon, 18 Oct 2010 12:38:22 +0000 (12:38 +0000)] 
Add support for using build-id to find debugging information as
some distributions are starting to drop the old debuglink support
now. Fixes #254257.

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

15 years agoBump version number on the trunk.
Julian Seward [Fri, 15 Oct 2010 08:52:43 +0000 (08:52 +0000)] 
Bump version number on the trunk.

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

15 years agoUpdate filter for Ubuntu 10.04.
Julian Seward [Thu, 14 Oct 2010 10:46:56 +0000 (10:46 +0000)] 
Update filter for Ubuntu 10.04.

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

15 years agoUpdate expected outputs following recent amd64-unwind improvements (??)
Julian Seward [Thu, 14 Oct 2010 10:46:22 +0000 (10:46 +0000)] 
Update expected outputs following recent amd64-unwind improvements (??)

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

15 years agoUpdate expected output.
Julian Seward [Thu, 14 Oct 2010 10:45:20 +0000 (10:45 +0000)] 
Update expected output.

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

15 years agoUpdates for 3.6.0.
Julian Seward [Thu, 14 Oct 2010 00:26:42 +0000 (00:26 +0000)] 
Updates for 3.6.0.

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

15 years agoDocumentation update for 3.6.0 (not including NEWS).
Julian Seward [Wed, 13 Oct 2010 21:47:29 +0000 (21:47 +0000)] 
Documentation update for 3.6.0 (not including NEWS).

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

15 years agoIncrease default size of the freed blocks queue from 10MB to 20MB.
Julian Seward [Wed, 13 Oct 2010 21:19:54 +0000 (21:19 +0000)] 
Increase default size of the freed blocks queue from 10MB to 20MB.

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

15 years agoAdd documentation for exp-dhat.
Julian Seward [Wed, 13 Oct 2010 14:06:00 +0000 (14:06 +0000)] 
Add documentation for exp-dhat.

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

15 years agoAdd heading items.
Julian Seward [Wed, 13 Oct 2010 14:05:30 +0000 (14:05 +0000)] 
Add heading items.

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

15 years ago* cosmetic output changes
Julian Seward [Wed, 13 Oct 2010 14:04:25 +0000 (14:04 +0000)] 
* cosmetic output changes
* add an assertion that the core block lookup routine works sanely

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

15 years agoChanges to make exp-ptrcheck work reasonable on Fedora 14 x86:
Julian Seward [Tue, 12 Oct 2010 22:47:09 +0000 (22:47 +0000)] 
Changes to make exp-ptrcheck work reasonable on Fedora 14 x86:

* looks_like_a_pointer: x86-linux: halve lower threshold value
  to take account of evident address space randomisation done
  by Fedora 14 on x86

* handle __NR_lgetxattr

* move __NR_mq_* entries to the correct place (tidyup only)

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

15 years agoMinimal fixes needed to make this tool actually usable:
Julian Seward [Tue, 12 Oct 2010 18:08:33 +0000 (18:08 +0000)] 
Minimal fixes needed to make this tool actually usable:

* change the per-block-byte freq count type from 8- to 16-bit
  so as to reduce the misleadingness of eventual numbers for
  frequently accessed blocks

* disable debug printing

* add command line parameters to control the number of APs shown
  in the final output, and to control the sorting order

* show average block size for each AP

* avoid possible problems when retiring a block and merging its
  per-byte access counts into the AP's counts

* add a trailer message giving some important hints to the user

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

15 years agoFix up printing of the can't-autodetect-params message and the
Julian Seward [Tue, 12 Oct 2010 10:14:43 +0000 (10:14 +0000)] 
Fix up printing of the can't-autodetect-params message and the
filtering out thereof, so as to make Cachegrind and Callgrind
pass their regressiont tests on ARM-Linux.

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

15 years agoDefine VG_CLREQ_SZB correctly on ARM, so Cachegrind and Callgrind
Julian Seward [Tue, 12 Oct 2010 10:13:17 +0000 (10:13 +0000)] 
Define VG_CLREQ_SZB correctly on ARM, so Cachegrind and Callgrind
don't assert in their regtests on ARM.  (Value is the same in both
ARM and Thumb mode, fortunately.)

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

15 years agoUpdate copyright notices.
Julian Seward [Tue, 12 Oct 2010 10:10:46 +0000 (10:10 +0000)] 
Update copyright notices.

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

15 years agoAdd DHAT as an experimental tool. DHAT (a Dynamic Heap Analysis Tool)
Julian Seward [Tue, 12 Oct 2010 10:09:15 +0000 (10:09 +0000)] 
Add DHAT as an experimental tool.  DHAT (a Dynamic Heap Analysis Tool)
is a heap profiler that is complementary to Massif.  DHAT tracks heap
allocations, and connects which memory accesses are to which blocks.
It can find the following information:

* total allocation and max liveness

* average block lifetime (# instructions between allocation and
  freeing)

* average number of reads and writes to each byte in the block
  ("access ratios")

* average of longest interval of non-access to a block, also
  measured in instructions

* which fields of blocks are used a lot, and which aren't
  (hot-field profiling)

Using these stats it is possible to identify allocation points with
the following characteristics:

* potential process-lifetime leaks (blocks allocated by the point just
  accumulate, and are freed only at the end of the run)

* excessive turnover: points which chew through a lot of heap, even if
  it is not held onto for very long

* excessively transient: points which allocate very short lived blocks

* useless or underused allocations: blocks which are allocated but not
  completely filled in, or are filled in but not subsequently read.

* blocks which see extended periods of inactivity.  Could these
  perhaps be allocated later or freed sooner?

* blocks with inefficient layout (hot fields spread out over
  multiple cache lines), or with alignment holes

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

15 years agoMake the --prefix-to-strip=... command-line option added in r11312
Julian Seward [Tue, 12 Oct 2010 00:44:05 +0000 (00:44 +0000)] 
Make the --prefix-to-strip=... command-line option added in r11312
behave more like the original proposal in #245535.  This makes it
more flexible and general.  Also rename it.

* new name is --fullpath-after=

* allow multiple instances of --fullpath-after=

* don't require the specified strings to be prefixes, only substrings

But retain the elegant backwards-compatibility trick in Bart's r11312
commit: if --fullpath-after= is not specified at all, then behave
exactly as before.

Fixes #245535.  A mixture of patches from Bart Van Assche
(bart.vanassche@gmail.com), Alexander Potapenko (glider@google.com),
and me (integration and documentation).

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

15 years agoRemove some fluff detected by llvm-2.8 (clang):
Julian Seward [Mon, 11 Oct 2010 19:15:33 +0000 (19:15 +0000)] 
Remove some fluff detected by llvm-2.8 (clang):

- "*(int *)0 = " is apparently ignored by LLVM for who-knows-why
  reason.  Cast the zero to a volatile int * instead.

- remove an unused function that gcc failed to mention was unused
  (why?  because it was marked __attribute__((noreturn)) ?)

As an aside, clang/llvm-2.8 seemed to be able to successfully
compile Valgrind.

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

15 years agoEnable support for sys_ppoll on arm-linux (Rodrigo Belem, rodrigo.belem@openbossa...
Julian Seward [Mon, 11 Oct 2010 19:09:53 +0000 (19:09 +0000)] 
Enable support for sys_ppoll on arm-linux (Rodrigo Belem, rodrigo.belem@openbossa.org).
See #253636.

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

15 years agoHandle NOP.W (Thumb) and NOP (ARM). Partial fix for #253636.
Julian Seward [Mon, 11 Oct 2010 18:57:10 +0000 (18:57 +0000)] 
Handle NOP.W (Thumb) and NOP (ARM).  Partial fix for #253636.
Add a comment re conditionalisation of Thumb memory barrier insns.

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

15 years agoAdd tests for NOP cases.
Julian Seward [Mon, 11 Oct 2010 18:55:24 +0000 (18:55 +0000)] 
Add tests for NOP cases.

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

15 years agoFix bogus register constraints for ARM mode LDREX and STREX.
Julian Seward [Mon, 11 Oct 2010 18:03:13 +0000 (18:03 +0000)] 
Fix bogus register constraints for ARM mode LDREX and STREX.
Derived from a patch by Rodrigo Belem <rodrigo.belem@openbossa.org>
Partially fixes #253636.

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

15 years agoImprove NEON instruction set tests, so as to run tests with
Julian Seward [Mon, 11 Oct 2010 17:41:46 +0000 (17:41 +0000)] 
Improve NEON instruction set tests, so as to run tests with
different data in high and low d-register halves.
(Dmitry Zhurikhin, zhur@ispras.ru)

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

15 years agonone/tests/ppc*/jm-insns.c: Minor simplification.
Bart Van Assche [Mon, 11 Oct 2010 07:04:07 +0000 (07:04 +0000)] 
none/tests/ppc*/jm-insns.c: Minor simplification.

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

15 years agoUpdated Subversion ignore list.
Bart Van Assche [Sun, 10 Oct 2010 18:59:07 +0000 (18:59 +0000)] 
Updated Subversion ignore list.

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

15 years agoUpdated DRD manual.
Bart Van Assche [Sun, 10 Oct 2010 18:57:53 +0000 (18:57 +0000)] 
Updated DRD manual.

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

15 years agoUpdated the NEWS file.
Bart Van Assche [Sun, 10 Oct 2010 18:54:44 +0000 (18:54 +0000)] 
Updated the NEWS file.

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

15 years agoLet the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro...
Bart Van Assche [Sun, 10 Oct 2010 18:53:00 +0000 (18:53 +0000)] 
Let the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro says what it does.

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

15 years agoE-mail address update.
Bart Van Assche [Sun, 10 Oct 2010 18:07:31 +0000 (18:07 +0000)] 
E-mail address update.

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

15 years agoRemoved an outdated document.
Bart Van Assche [Sun, 10 Oct 2010 17:24:29 +0000 (17:24 +0000)] 
Removed an outdated document.

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

15 years agoDwarf3 reader: handle Dwarf3 created by gcc-4.5.1. In other words,
Julian Seward [Fri, 8 Oct 2010 23:57:25 +0000 (23:57 +0000)] 
Dwarf3 reader: handle Dwarf3 created by gcc-4.5.1.  In other words,
work around the all-new-buggy-Dwarf3 created by gcc-4.5.1.

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

15 years agoRemoved the configure test for __builtin_frame_address() again because it is no longe...
Bart Van Assche [Fri, 8 Oct 2010 18:58:44 +0000 (18:58 +0000)] 
Removed the configure test for __builtin_frame_address() again because it is no longer necessary.

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

15 years agoMore unwind fixes for the amd64-linux CALL_FN_*_* macros, as per
Julian Seward [Fri, 8 Oct 2010 17:43:26 +0000 (17:43 +0000)] 
More unwind fixes for the amd64-linux CALL_FN_*_* macros, as per
bug 243270 comments 47 and 48:
* use __builtin_dwarf_cfa(), not __builtin_frame_address(0), to get the CFA
* use correct register specifier in VALGRIND_CFI_PROLOGUE

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

15 years agoOnly enable CFI annotations when __GCC_HAVE_DWARF2_CFI_ASM is defined. This should...
Bart Van Assche [Fri, 8 Oct 2010 15:54:57 +0000 (15:54 +0000)] 
Only enable CFI annotations when __GCC_HAVE_DWARF2_CFI_ASM is defined. This should work for all platforms, all gcc versions and with and without -fno-dwarf2-cfi-asm / -fno-asynchronous-unwind-tables. Thanks to Jakub Jelinek for the hint.

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

15 years agovalgrind.h is again independent of config.h. Note: __builtin_frame_address()
Bart Van Assche [Fri, 8 Oct 2010 06:58:25 +0000 (06:58 +0000)] 
valgrind.h is again independent of config.h. Note: __builtin_frame_address()
is available since at least gcc 2.95.3.

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

15 years agoAdd a couple of OSX 10.6 specific supps.
Julian Seward [Thu, 7 Oct 2010 15:45:59 +0000 (15:45 +0000)] 
Add a couple of OSX 10.6 specific supps.

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

15 years agochmod_extended and fchmod_extended: handle NULL xsecurity argument correctly.
Julian Seward [Thu, 7 Oct 2010 15:38:51 +0000 (15:38 +0000)] 
chmod_extended and fchmod_extended: handle NULL xsecurity argument correctly.
Fixes #247510.

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

15 years agoUpdate stderr filters so that regtests pass on machines with 3-level caches.
Julian Seward [Thu, 7 Oct 2010 13:33:28 +0000 (13:33 +0000)] 
Update stderr filters so that regtests pass on machines with 3-level caches.

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

15 years agoFix build failure I introduced in r11408, duh.
Julian Seward [Thu, 7 Oct 2010 10:46:15 +0000 (10:46 +0000)] 
Fix build failure I introduced in r11408, duh.

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

15 years agoLocal-ise some variables that don't need to be visible outside this file.
Julian Seward [Thu, 7 Oct 2010 10:01:40 +0000 (10:01 +0000)] 
Local-ise some variables that don't need to be visible outside this file.

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

15 years agoTidy up ifdeffery a bit. (non-functional change)
Julian Seward [Thu, 7 Oct 2010 10:00:56 +0000 (10:00 +0000)] 
Tidy up ifdeffery a bit.  (non-functional change)

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

15 years agoFix build breakage on Darwin resulting from r11402 (see #243270),
Julian Seward [Thu, 7 Oct 2010 10:00:04 +0000 (10:00 +0000)] 
Fix build breakage on Darwin resulting from r11402 (see #243270),
by disabling creation of .cfi directives on Darwin, until such time
as someone can figure out how to do this.

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