]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
14 years agoSomewhat reduce the amount of mempool sanity checking, so as to avoid
Julian Seward [Thu, 27 Jan 2011 23:56:36 +0000 (23:56 +0000)] 
Somewhat reduce the amount of mempool sanity checking, so as to avoid
rendering the mempool machinery impossibly slow for pools containing
many blocks.  Fixes #255966.

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

14 years agoIf Massif's --threshold value was less than 1.0, in lines like this:
Nicholas Nethercote [Thu, 27 Jan 2011 23:07:56 +0000 (23:07 +0000)] 
If Massif's --threshold value was less than 1.0, in lines like this:

  ->00.00% (0B) in 11 places, all below massif's threshold (00.00%)

the threshold would always be incorrectly printed as 00.00%.  This was
because the percentage printing was broken for percentages less than 1.0.
This change fixes this problem, and modifies a test to check for it.

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

14 years agoAdd a new mempool test resulting from work on #254420, and update
Julian Seward [Sun, 23 Jan 2011 20:47:26 +0000 (20:47 +0000)] 
Add a new mempool test resulting from work on #254420, and update
expected output for an existing test.

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

14 years agoImprove error reports for addressing errors in the presence of
Julian Seward [Sun, 23 Jan 2011 20:45:53 +0000 (20:45 +0000)] 
Improve error reports for addressing errors in the presence of
mempools: try and relate an invalid address to known mempool
allocated blocks, and if that fails, to malloc'd blocks that
back the mempool.  See #254420.

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

14 years agoFix up out of date documentation for VALGRIND_CREATE_BLOCK and
Julian Seward [Sat, 22 Jan 2011 11:21:58 +0000 (11:21 +0000)] 
Fix up out of date documentation for VALGRIND_CREATE_BLOCK and
VALGRIND_DISCARD.

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

14 years agoAdd a test for LOOPNEL. See #256669.
Julian Seward [Fri, 21 Jan 2011 20:59:52 +0000 (20:59 +0000)] 
Add a test for LOOPNEL.  See #256669.
(Jakub Jelinek <jakub@redhat.com>)

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

14 years agoExpand this test so as to cover FXSAVE and FXRSTOR, both REX.W and
Julian Seward [Fri, 21 Jan 2011 18:14:32 +0000 (18:14 +0000)] 
Expand this test so as to cover FXSAVE and FXRSTOR, both REX.W and
non-REX.W variants.

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

14 years agoAdd tests for SSE4.2 CRC32{B,W,L,Q} insns.
Julian Seward [Fri, 21 Jan 2011 18:13:02 +0000 (18:13 +0000)] 
Add tests for SSE4.2 CRC32{B,W,L,Q} insns.

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 years agoOnly use VKI_O_LARGEFILE on platforms where it exists. This
Julian Seward [Thu, 7 Oct 2010 09:56:19 +0000 (09:56 +0000)] 
Only use VKI_O_LARGEFILE on platforms where it exists.  This
unbreaks the build breakage on Darwin introduced in r11397, which
was a fix for #234064.  The breakage was subsequently reported
in #253420 and #253452, which this commit fixes.

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

14 years agoDefine VKI_SHMLBA on Darwin, so as to un-break build breakage caused by
Julian Seward [Thu, 7 Oct 2010 09:53:02 +0000 (09:53 +0000)] 
Define VKI_SHMLBA on Darwin, so as to un-break build breakage caused by
r11399.  See #222545.

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

14 years agoChange Cachegrind/Callgrind to talk about the LL (last-level) cache instead
Nicholas Nethercote [Wed, 6 Oct 2010 22:46:31 +0000 (22:46 +0000)] 
Change Cachegrind/Callgrind to talk about the LL (last-level) cache instead
of the L2 cache.  This is to accommodate machines with three levels of
cache.  We still only simulate two levels, the first and the last.

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

14 years agoThe amd64-linux unwinder rejects stacks of smaller than 512 bytes as
Julian Seward [Wed, 6 Oct 2010 22:45:18 +0000 (22:45 +0000)] 
The amd64-linux unwinder rejects stacks of smaller than 512 bytes as
bogus, and produces essentially useless traces from them.  With
gcc-4.4 and later, some valid thread stacks really are smaller than
this.  Hence change the limit down to 256 bytes.  Investigated by
Evgeniy Stepanov, eugeni.stepanov@gmail.com.
See bug 243270 comment 21.

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

14 years agoamd64-linux: add suitable CFI annotations so that unwinding through
Julian Seward [Wed, 6 Oct 2010 22:07:06 +0000 (22:07 +0000)] 
amd64-linux: add suitable CFI annotations so that unwinding through
the CALL_FN_*_* macros works more reliably.  This is all very fiddly
and is described in a large comment in valgrind.h.  Fixes #243270.
(Evgeniy Stepanov, eugeni.stepanov@gmail.com)

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

14 years agoppc/jm-insns.c: Use proper integer types.
Bart Van Assche [Wed, 6 Oct 2010 16:13:17 +0000 (16:13 +0000)] 
ppc/jm-insns.c: Use proper integer types.

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

14 years agoDefine VKI_SHMLBA for all supported Linux targets, thereby unbreaking
Julian Seward [Wed, 6 Oct 2010 15:55:59 +0000 (15:55 +0000)] 
Define VKI_SHMLBA for all supported Linux targets, thereby unbreaking
the breakage created by r11399.  Part of #222545.

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

14 years agoMake client sys_shmat work properly on arm-linux by taking into
Julian Seward [Wed, 6 Oct 2010 15:24:39 +0000 (15:24 +0000)] 
Make client sys_shmat work properly on arm-linux by taking into
account rounding requirements to SHMLBA.  Modified version of a patch
by Kirill Batuzov, batuzovk@ispras.ru.  This fixes the main bug in
#222545.  Temporarily breaks the build on all other platforms though.

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

14 years agoget_shm_size(): pass VKI_IPC_64 to our shmctl call if it is available,
Julian Seward [Wed, 6 Oct 2010 12:59:44 +0000 (12:59 +0000)] 
get_shm_size(): pass VKI_IPC_64 to our shmctl call if it is available,
except on amd64-linux.  This fixes a secondary problem discussed
in bug 222545.  (Kirill Batuzov, batuzovk@ispras.ru)

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

14 years agoWhen opening an mmaped file to see if it's an ELF file that we should
Julian Seward [Wed, 6 Oct 2010 11:38:01 +0000 (11:38 +0000)] 
When opening an mmaped file to see if it's an ELF file that we should
read debuginfo from, use VKI_O_LARGEFILE, so as to ensure the open
succeeds for large files on 32-bit systems.  Fixes #234064.

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

14 years agoHandle mq_* syscalls. Fixes #243884. (David Fenger, dkfenger@gmail.com)
Julian Seward [Wed, 6 Oct 2010 11:25:29 +0000 (11:25 +0000)] 
Handle mq_* syscalls.  Fixes #243884.  (David Fenger, dkfenger@gmail.com)

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