]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoFix VALGRIND_MINOR/VALGRIND_MAJOR symbols. This got forgotten about
Julian Seward [Mon, 21 May 2012 21:57:05 +0000 (21:57 +0000)] 
Fix VALGRIND_MINOR/VALGRIND_MAJOR symbols.  This got forgotten about
in 3.7.0 (oops).

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

13 years agoAdd -fomit-frame-pointer for s390. The GCC maintainer was telling me that
Florian Krohm [Mon, 21 May 2012 16:18:23 +0000 (16:18 +0000)] 
Add -fomit-frame-pointer for s390. The GCC maintainer was telling me that
this has been the preferred way to compile for quite a while. So let's follow
suit. The perf bucket did not reveal any measurable difference.

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

13 years agoHandle 32-byte loads/stores, as created by recently added AVX support.
Julian Seward [Mon, 21 May 2012 13:44:54 +0000 (13:44 +0000)] 
Handle 32-byte loads/stores, as created by recently added AVX support.

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

13 years agoHandle increase in ppc64 guest state size resulting from r2331.
Julian Seward [Mon, 21 May 2012 11:01:35 +0000 (11:01 +0000)] 
Handle increase in ppc64 guest state size resulting from r2331.

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

13 years agoAdd initial support for Intel AVX instructions (Valgrind side).
Julian Seward [Mon, 21 May 2012 10:18:10 +0000 (10:18 +0000)] 
Add initial support for Intel AVX instructions (Valgrind side).
Tracker bug is #273475.

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

13 years agodefine AM_COND_IF if not yet defined (needed to build with automake 1.10)
Philippe Waroquiers [Fri, 18 May 2012 16:48:20 +0000 (16:48 +0000)] 
define AM_COND_IF if not yet defined (needed to build with automake 1.10)

Patch from Dave Goodell

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

13 years agoFix 274078 improved configure logic for mpicc
Philippe Waroquiers [Thu, 17 May 2012 15:32:54 +0000 (15:32 +0000)] 
Fix 274078  improved configure logic for mpicc

Patch from Dave Goodell.
See bug 274078 for detailed patch description.

Tested on deb6/amd64 with a static MPI (now it will be ignored
rather than make the Valgrind build failing), with a shared MPI,
and with no MPI.

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

13 years agoname_of_sched_event was missing some values and returning "??UNKNOWN??" instead.
Philippe Waroquiers [Thu, 17 May 2012 14:31:13 +0000 (14:31 +0000)] 
name_of_sched_event was missing some values and returning "??UNKNOWN??" instead.
* re-ordered the values to match the declaration order in
  libvex_trc_values.h and pub_core_dispatch_asm.h
* added missing values

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

13 years agoNEWS entry for revision 12564 (bypass gcc 4.4/gcc 4.5 bug)
Philippe Waroquiers [Tue, 15 May 2012 21:16:28 +0000 (21:16 +0000)] 
NEWS entry for revision 12564 (bypass gcc 4.4/gcc 4.5 bug)

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

13 years agoBypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
Philippe Waroquiers [Tue, 15 May 2012 21:04:31 +0000 (21:04 +0000)] 
Bypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
gcc 4.4 and 4.5 has a bug which causes miscompilation of mc_main.c:
 args are not correctly given to VG_(am_munmap_valgrind).
This causes the secondary map entries to not be unmapped
(which can cause unlimited memory growth)
and/or causes the assert on VG_(am_munmap_valgrind) result to fail.

Removing the pragma optimize from mc_main.c and inserting it instead
in Makefile.all.am for x86 solves the gcc bug.

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

13 years agoAdd assertion that the munmap of the secmap succeeds.
Philippe Waroquiers [Sun, 13 May 2012 22:58:09 +0000 (22:58 +0000)] 
Add assertion that the munmap of the secmap succeeds.
It is suspected that there is a bug in the call to VG_(am_munmap_valgrind).

At first sight, it looks like a bug in gcc version 4.4.5 (Debian 4.4.5-8)
which seems to pass wrong arguments from mc_main.c to aspace mgr function.
Some tests are failing on gcc20 with this assert a.o.
  ./vg-in-place ./perf/bz2 x
gives an assert.
The bug does not happen if Valgrind is compiled with gcc 4.7.0.

On gcc20, the new tests failing with this assert are:
memcheck/tests/linux/lsframe1            (stderr)
memcheck/tests/linux/lsframe2            (stderr)
memcheck/tests/linux/stack_switch        (stderr)
memcheck/tests/origin5-bz2               (stdout)
memcheck/tests/vcpu_bz2                  (stdout)
memcheck/tests/vcpu_bz2                  (stderr)

The assert is committed so as to see other platforms
where this is failing.

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

13 years agoMove registration of mc_pre_reg_read to mc_post_clo_init.
Florian Krohm [Sat, 12 May 2012 18:06:35 +0000 (18:06 +0000)] 
Move registration of mc_pre_reg_read to mc_post_clo_init.
This fixes the regtest failure for memcheck/tests/clireq_nofill on s390x.

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

13 years agoAdd a few testcases that exercise the s390_calculate_icc helper.
Florian Krohm [Sat, 12 May 2012 00:05:14 +0000 (00:05 +0000)] 
Add a few testcases that exercise the s390_calculate_icc helper.

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

13 years agofix 299756 (for symmetry, --free-fill must be ignored for MEMPOOL_FREE and FREELIKE...
Philippe Waroquiers [Fri, 11 May 2012 22:10:39 +0000 (22:10 +0000)] 
fix 299756 (for symmetry, --free-fill must be ignored for MEMPOOL_FREE and FREELIKE client requests).

Test program from goodell@mcs.anl.gov

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

13 years agofix 219156 support static malloc or alternate malloc lib (e.g. tcmalloc) with new...
Philippe Waroquiers [Fri, 11 May 2012 19:33:46 +0000 (19:33 +0000)] 
fix 219156 support static malloc or alternate malloc lib (e.g. tcmalloc) with new option --soname-synonyms

* pub_tool_redir.h : define the prefix to be used for "soname synonym"
  place holder
* vg_replace_malloc.c : define synonym place holder for malloc related
  functions
* m_redir.c : when detecting a soname synonym place holder redir spec, search
  in clo_soname_synonyms if there is a synonym pattern.
  If yes, replace the soname pattern. If not, ignore the redir spec.
* various files: implement or document the new clo --soname-synonyms
* new test memcheck/tests/static_malloc.vgtest

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

13 years agoSupport DWARF version 4 DW_AT_high_pc constant form. #299053.
Julian Seward [Wed, 9 May 2012 23:09:05 +0000 (23:09 +0000)] 
Support DWARF version 4 DW_AT_high_pc constant form.  #299053.
(Mark Wielaard, mjw@redhat.com)

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

13 years agofix typo in README_DEVELOPERS
Philippe Waroquiers [Sun, 6 May 2012 21:29:59 +0000 (21:29 +0000)] 
fix typo in README_DEVELOPERS

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

13 years agoAvoid regtest failures on x86_64 and ppc64 when toolchains for the
Florian Krohm [Sun, 6 May 2012 03:51:00 +0000 (03:51 +0000)] 
Avoid regtest failures on x86_64 and ppc64 when toolchains for the
seconday platform (x86 and ppc32, respectively) is not available.
Add -DVGA_SEC_xxxxx and -DVGP_SEC_... to the GCC command line
indicating that a seconday platform is supported. Make arch_test.c
recognise those flags.
Fixes bugzilla #296983.

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

13 years agoRequire automake-1.10 for proper handling of include file dependencies
Florian Krohm [Sun, 6 May 2012 03:37:25 +0000 (03:37 +0000)] 
Require automake-1.10 for proper handling of include file dependencies
in .S files. Also included here is some cleanup, including a reversion
of r10378. Fixes bugzilla #197914.

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

13 years agoAvoid duplicate primary names when merging identical symbol table entries.
Philippe Waroquiers [Sat, 5 May 2012 22:18:24 +0000 (22:18 +0000)] 
Avoid duplicate primary names when merging identical symbol table entries.
--trace-redir=yes shows that there are duplicated redir entries e.g.
--32537--    TOPSPECS of soname NONE filename /home/philippe/valgrind/m_redir_trace/memcheck/vgpreload_memcheck-amd64-linux.so
--32537--      libc.so*                  strcasecmp_l                   R-> (2014.0) 0x04c28bf0
--32537--      libc.so*                  strcasecmp_l                   R-> (2014.0) 0x04c28bf0
--32537--      libc.so*                  __GI_strcasecmp_l              R-> (2014.0) 0x04c28b70
--32537--      libc.so*                  __GI_strcasecmp_l              R-> (2014.0) 0x04c28b70

These are caused by the merging of identical debug entries always
adding the two primary names, even if the entries are exactly the same.

This patch avoids duplicated names in debug info if the entry to merge
has only one name identical to the entry name to which we are merging.

This avoids the useless duplicated redir entries, and slightly decreases
the "dinfo" memory usage.

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

13 years agoFix svn:ignore on ppc test buckets
Florian Krohm [Sat, 5 May 2012 19:22:41 +0000 (19:22 +0000)] 
Fix svn:ignore on ppc test buckets

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

13 years agoImprove m_redir.c debug trace by adding filename.
Philippe Waroquiers [Thu, 3 May 2012 21:09:51 +0000 (21:09 +0000)] 
Improve m_redir.c debug trace by adding filename.
Many objects (shared or non shared) have no soname.
In such case, showing the filename clarifies where the
redir spec is coming from.

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

13 years agoUpdated for s390.
Florian Krohm [Thu, 3 May 2012 01:39:45 +0000 (01:39 +0000)] 
Updated for s390.

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

13 years agoAdd ETF3 facility (valgrind bits). Part of fixing Bugzilla #289839.
Florian Krohm [Thu, 3 May 2012 01:31:24 +0000 (01:31 +0000)] 
Add ETF3 facility (valgrind bits). Part of fixing Bugzilla #289839.
Patch by Divya Vyas (divyvyas@linux.vnet.ibm.com)

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

13 years agoRemove unused variable in massif/tests/pages_as_heap.c (revision 12548)
Philippe Waroquiers [Tue, 1 May 2012 20:21:30 +0000 (20:21 +0000)] 
Remove unused variable in massif/tests/pages_as_heap.c (revision 12548)

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

13 years agofix 298943 massif asserts with --pages-as-heap=yes when brk is changing by value...
Philippe Waroquiers [Tue, 1 May 2012 20:02:30 +0000 (20:02 +0000)] 
fix 298943  massif asserts with --pages-as-heap=yes when brk is changing by value different of page size

* add a massif test to (somewhat) validate --pages-as-heap=yes
  with calls to brk not being a multiple of a page size

* fix the assert:
   only record new pages or unrecord old pages if at least one new
   full page (or one full old page) is added/removed.

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

13 years agoAdd DFP test cases that accidentally missed in r12546.
Julian Seward [Tue, 1 May 2012 19:51:07 +0000 (19:51 +0000)] 
Add DFP test cases that accidentally missed in r12546.

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

13 years agoTest cases for POWER Power Decimal Floating Point (DFP) test class,
Julian Seward [Sun, 29 Apr 2012 20:20:16 +0000 (20:20 +0000)] 
Test cases for POWER Power Decimal Floating Point (DFP) test class,
test group and test exponent instructions dtstdc, dtstdcq, dtstdg,
dtstdgq, dtstex and dtstexq.  Bug #298862.  (Carl Love,
carll@us.ibm.com and Maynard Johnson, maynardj@us.ibm.com)

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

13 years agoCorrectly parse DW_FORM_ref_addr -- its format is different in Dwarf2
Julian Seward [Sun, 29 Apr 2012 11:35:37 +0000 (11:35 +0000)] 
Correctly parse DW_FORM_ref_addr -- its format is different in Dwarf2
vs Dwarf3 and later.  Fixes #298864.  (Tom Tromey, tromey@redhat.com)

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

13 years agoadd optional arg [aspacemgr] to v.info memory to show aspacemgr segments.
Philippe Waroquiers [Fri, 27 Apr 2012 22:59:43 +0000 (22:59 +0000)] 
add optional arg [aspacemgr] to v.info memory to show aspacemgr segments.

When investigating Valgrind out of memory situation,
it is useful to be able to output the list of segments of the
aspacemgr at any moment.
The GDB monitor command "v.info memory" has now an optional
argument allowing to output this list of segments

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

13 years agoAdd feature detection for amd64.avx, and (potentially) FMA.
Julian Seward [Thu, 26 Apr 2012 14:17:50 +0000 (14:17 +0000)] 
Add feature detection for amd64.avx, and (potentially) FMA.

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

13 years agoFor --profile-flags=, weight the counts by the number of guest insns
Julian Seward [Tue, 24 Apr 2012 11:50:49 +0000 (11:50 +0000)] 
For --profile-flags=, weight the counts by the number of guest insns
in each IRSB, rather than considering each IRSB to have a weight of 1.
This probably gives more representative profiles, especially post
t-chain merge, which made inter-SB transitions more or less free
compared to what they were before.

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

13 years agoPOWER Processor decimal floating point instruction support, part 3 --
Julian Seward [Mon, 23 Apr 2012 11:22:05 +0000 (11:22 +0000)] 
POWER Processor decimal floating point instruction support, part 3 --
test cases.  (Carl Love, carll@us.ibm.com).  Bug 298080.

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

13 years agoUpdate.
Julian Seward [Mon, 23 Apr 2012 09:53:36 +0000 (09:53 +0000)] 
Update.

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

13 years agoDisable debug printing w.r.t. sector unlinking.
Julian Seward [Mon, 23 Apr 2012 09:53:20 +0000 (09:53 +0000)] 
Disable debug printing w.r.t. sector unlinking.

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

13 years agoFix makefile to allow compilation with gcc -g3.
Florian Krohm [Sun, 22 Apr 2012 19:27:44 +0000 (19:27 +0000)] 
Fix makefile to allow compilation with gcc -g3.
Fixes bugzilla #297993 (together with VEX r2310).
Patch by  Daniel Richard G. (skunk@iskunk.org).

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

13 years agotchain optimisation for s390 (valgrind bits)
Florian Krohm [Sun, 22 Apr 2012 17:39:37 +0000 (17:39 +0000)] 
tchain optimisation for s390 (valgrind bits)
Companion of VEX r2308
Move address arithmetic to recover place to patch into VEX.

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

13 years agoFollowup to r12527. Use 32-bit arithmetic to increment xindir
Florian Krohm [Sun, 22 Apr 2012 15:37:15 +0000 (15:37 +0000)] 
Followup to r12527. Use 32-bit arithmetic to increment xindir
performance counters. Remove #ifdef'ery.

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

13 years agoAnnounce fix.
Florian Krohm [Sun, 22 Apr 2012 03:53:40 +0000 (03:53 +0000)] 
Announce fix.

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

13 years agoBe lenient if the machine model could not be determined. Assume it's
Florian Krohm [Sun, 22 Apr 2012 03:50:20 +0000 (03:50 +0000)] 
Be lenient if the machine model could not be determined. Assume it's
a new machine as opposed to a too old machine.
Patch by Christian Borntraeger (borntraeger@de.ibm.com) with additional
commentary. Fixes 298394.

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

13 years agoUpdate s390 status
Florian Krohm [Sun, 22 Apr 2012 02:58:49 +0000 (02:58 +0000)] 
Update s390 status

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

13 years agoConsolidate and update information about dependencies of
Florian Krohm [Sun, 22 Apr 2012 02:48:20 +0000 (02:48 +0000)] 
Consolidate and update information about dependencies of
VG_(machine_get_hwcaps) for all architectures in pub_core_machine.h
and avoid double maintenance.

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

13 years agoUpdate.
Julian Seward [Sat, 21 Apr 2012 23:53:07 +0000 (23:53 +0000)] 
Update.

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

13 years agoUse 32-bit XIndir counter incs, instead of 64-bit, as per r12527.
Julian Seward [Sat, 21 Apr 2012 23:37:16 +0000 (23:37 +0000)] 
Use 32-bit XIndir counter incs, instead of 64-bit, as per r12527.

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

13 years agoUse 32-bit XIndir counter incs, instead of 64-bit, as per r12527.
Julian Seward [Sat, 21 Apr 2012 23:28:34 +0000 (23:28 +0000)] 
Use 32-bit XIndir counter incs, instead of 64-bit, as per r12527.

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

13 years agoUse 32-bit XIndir counter incs, instead of 64-bit, as per r12527.
Julian Seward [Sat, 21 Apr 2012 23:12:07 +0000 (23:12 +0000)] 
Use 32-bit XIndir counter incs, instead of 64-bit, as per r12527.

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

13 years agoLast optimisation for the day: change VG_(stats__n_xindirs) in such a
Julian Seward [Sat, 21 Apr 2012 23:05:57 +0000 (23:05 +0000)] 
Last optimisation for the day: change VG_(stats__n_xindirs) in such a
way that the fast-path through VG_(disp_cp_xindir) only has to
increment a 32 bit counter, saving memory bandwidth on 32 bit
platforms compared to a 64-bit inc.  The overall numbers of XIndirs
can still be 64 bit though.

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

13 years agoKludge around a compiler warning, and add explanatory comment.
Julian Seward [Sat, 21 Apr 2012 22:33:44 +0000 (22:33 +0000)] 
Kludge around a compiler warning, and add explanatory comment.

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

13 years agoSet VEX_HWCAPS_S390X_STFLE if available.
Florian Krohm [Sat, 21 Apr 2012 15:43:25 +0000 (15:43 +0000)] 
Set VEX_HWCAPS_S390X_STFLE if available.
This should have been part of r12335.

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

13 years ago(post-tchain-merge cleanup): fix call to handle_syscall on x86-darwin.
Julian Seward [Sat, 21 Apr 2012 15:35:12 +0000 (15:35 +0000)] 
(post-tchain-merge cleanup): fix call to handle_syscall on x86-darwin.

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

13 years agoFix assertion failure on x86-darwin following r12504 (pread fix)
Julian Seward [Sat, 21 Apr 2012 15:33:26 +0000 (15:33 +0000)] 
Fix assertion failure on x86-darwin following r12504 (pread fix)

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

13 years ago(post-tchain-merge cleanup): un-break the build on OSX by fixing up
Julian Seward [Sat, 21 Apr 2012 13:55:28 +0000 (13:55 +0000)] 
(post-tchain-merge cleanup): un-break the build on OSX by fixing up
the dispatcher code accordingly.

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

13 years agoUpdate.
Julian Seward [Sat, 21 Apr 2012 08:18:33 +0000 (08:18 +0000)] 
Update.

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

13 years agoComment update (was moved to t-chaining-notes.txt)
Julian Seward [Sat, 21 Apr 2012 07:37:21 +0000 (07:37 +0000)] 
Comment update (was moved to t-chaining-notes.txt)

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

13 years agoUpdate, post-merge.
Julian Seward [Sat, 21 Apr 2012 00:27:56 +0000 (00:27 +0000)] 
Update, post-merge.

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

13 years agoMerge branches/TCHAIN from r12476 (its creation point) into trunk.
Julian Seward [Fri, 20 Apr 2012 23:58:55 +0000 (23:58 +0000)] 
Merge branches/TCHAIN from r12476 (its creation point) into trunk.

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

13 years agoAdd a missing included, needed for ppc targets.
Julian Seward [Fri, 20 Apr 2012 15:42:12 +0000 (15:42 +0000)] 
Add a missing included, needed for ppc targets.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12516

13 years agoImplement accept4 on ARM systems.
Tom Hughes [Fri, 20 Apr 2012 14:07:34 +0000 (14:07 +0000)] 
Implement accept4 on ARM systems.

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

13 years agoChanges needed to make t-chaining work on ppc64-linux (valgrind side).
Julian Seward [Fri, 20 Apr 2012 10:43:08 +0000 (10:43 +0000)] 
Changes needed to make t-chaining work on ppc64-linux (valgrind side).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12514

13 years agoFill in some more bits to do with t-chaining for ppc64
Julian Seward [Fri, 20 Apr 2012 02:19:35 +0000 (02:19 +0000)] 
Fill in some more bits to do with t-chaining for ppc64
(still doesn't work) (Valgrind side)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12513

13 years agoAdd translation chaining support for ppc32 (tested) and to
Julian Seward [Fri, 20 Apr 2012 00:14:02 +0000 (00:14 +0000)] 
Add translation chaining support for ppc32 (tested) and to
a large extent for ppc64 (incomplete, untested) (Valgrind side)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12512

13 years agoMention running with --profile-flags.
Florian Krohm [Thu, 19 Apr 2012 22:38:24 +0000 (22:38 +0000)] 
Mention running with --profile-flags.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12511

13 years agoWire up epoll_create1 on ARM systems.
Tom Hughes [Thu, 19 Apr 2012 14:54:30 +0000 (14:54 +0000)] 
Wire up epoll_create1 on ARM systems.

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

13 years agoscheduler, ticket lock: Add memory barriers necessary to avoid a deadlock on PowerPC...
Bart Van Assche [Thu, 19 Apr 2012 11:00:32 +0000 (11:00 +0000)] 
scheduler, ticket lock: Add memory barriers necessary to avoid a deadlock on PowerPC systems

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

13 years ago... and set $(BOOST_LIBS) properly again.
Bart Van Assche [Wed, 18 Apr 2012 18:42:34 +0000 (18:42 +0000)] 
... and set $(BOOST_LIBS) properly again.

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

13 years agoconfigure.in: Fix detection of Boost libraries. Reported by <plug.gulp@gmail.com>.
Bart Van Assche [Wed, 18 Apr 2012 18:34:22 +0000 (18:34 +0000)] 
configure.in: Fix detection of Boost libraries. Reported by <plug.gulp@gmail.com>.

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

13 years agoadd some .globl or used attribute to avoid link failures with gold linker + LTO
Philippe Waroquiers [Mon, 16 Apr 2012 22:06:47 +0000 (22:06 +0000)] 
add some .globl or used attribute to avoid link failures with gold linker + LTO

When doing experiment with gcc 4.7.0 and link time optimisation,
encountered link failures on amd64 which were solved by adding
.globl and used attribute.
=> added .globl in similar places for arm/x86/ppc32/s390.
Did not touch darwin (which asm seems somewhat different).

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

13 years agoChange permission mask for FIFOs and shared memory to 0600 instead of 0666
Philippe Waroquiers [Sun, 15 Apr 2012 21:20:52 +0000 (21:20 +0000)] 
Change permission mask for FIFOs and shared memory to 0600 instead of 0666
Following a discussion about which user can debug which VAlgrind gdbserver:
The default umask will remove the "other" and "group" write bits.
Without the w bits, nothing works in any case.
Moreover, if the vgdb process does not belong to the user running the
V gdbserver, connections are also not possible.
=> remove useless/confusing bits.

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

13 years agopatch fixing 297991: mmap changing a file descriptor current position
Philippe Waroquiers [Fri, 13 Apr 2012 23:07:29 +0000 (23:07 +0000)] 
patch fixing 297991: mmap changing a file descriptor current position

Bug caused by the following problem:
for each mmap, Valgrind reads the 1st 1024 bytes to detect
if this is an mmap-ed file containing debug info to decode.

Reading this 1Kb is done with VG_(pread). VG_(pread) should be
the equivalent of syscall pread but on linux, it is implemented as
a seek+read.

The patch implements VG_(pread) in terms of the underlying pread syscall.

Test mmap_fcntl_bug.c completed to also verify the fd current position
before and after the mmap.

tested on linux x86/amd64/ppc32/ppc64/s390.
(not tested on Darwin)
(manually tested on arm-android)

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

13 years agoFix 297992 Support systems missing WIFCONTINUED (e.g. pre-2.6.10 Linux)
Philippe Waroquiers [Fri, 13 Apr 2012 17:27:40 +0000 (17:27 +0000)] 
Fix 297992  Support systems missing WIFCONTINUED (e.g. pre-2.6.10 Linux)

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

13 years agoTranslation chaining for s390. To be debugged.
Florian Krohm [Fri, 13 Apr 2012 04:04:44 +0000 (04:04 +0000)] 
Translation chaining for s390. To be debugged.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12502

13 years agoAdd symlinks that were missed out from r12500 due to last-minute SVN
Julian Seward [Thu, 12 Apr 2012 17:35:15 +0000 (17:35 +0000)] 
Add symlinks that were missed out from r12500 due to last-minute SVN
snafus.

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

13 years agoPOWER Processor decimal floating point instruction support: part 2
Julian Seward [Thu, 12 Apr 2012 17:28:57 +0000 (17:28 +0000)] 
POWER Processor decimal floating point instruction support: part 2
(bug #297497) (Carl Love, carll@us.ibm.com) (Valgrind side, mostly
tests)

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

13 years agoTCHAIN: avoid calls to search_transtab and return to scheduer by first using tt_fast
Philippe Waroquiers [Wed, 11 Apr 2012 21:25:37 +0000 (21:25 +0000)] 
TCHAIN: avoid calls to search_transtab and return to scheduer by first using tt_fast
This slightly improves some perf tests (e.g. heap).
Some not explained "real time" slow down of bz2 between trunk/svn tchain
and this patch analyzed with callgrind/cachegrind.
realtime slowdown attributed to Pentium 4 self modifying code unfriendly cache.

(callgrind/cachegrind cache simulation do not understand self modifying
code).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12499

13 years agoAndroid's libc includes advertise a "malloc_usable_size", but the
Julian Seward [Wed, 11 Apr 2012 08:46:53 +0000 (08:46 +0000)] 
Android's libc includes advertise a "malloc_usable_size", but the
libc.so contains no such symbol; rather a "dlmalloc_usable_size"
(great, huh :-) So intercept that too, on Android.

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

13 years agoAdd a test re conversions of QNaNs between 64- and 80-bit FP
Julian Seward [Wed, 11 Apr 2012 07:12:32 +0000 (07:12 +0000)] 
Add a test re conversions of QNaNs between 64- and 80-bit FP
formats.  Related to Mozilla bug #738117.

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

13 years agoouter/inner setup: new perf/vg_perf options to run perf tests + support translation...
Philippe Waroquiers [Sun, 8 Apr 2012 19:52:38 +0000 (19:52 +0000)] 
outer/inner setup: new perf/vg_perf options to run perf tests  + support translation chaining in inner.

* perf/vg_perf:
Similarly to tests/vg_regtest, perf/vg_perf now accepts the 3
optional arguments:
    --outer-valgrind
    --outer-tool
    --outer-args

This allows easy analysis or comparison of performance between
different Valgrind versions (e.g. using callgrind, or cachegrind/cg_diff).

* See README_DEVELOPERS for more details.

* vg_regtest modified so as to use the 'in-place' build of inner, rather
  than the installed version.

* added option --smc-check=all-non-file to vg_perf and vg_regtest
  outer default arguments (needed when evaluating a Valgrind which does
  translation chaining).

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

13 years agoDisable test on big-endian platforms.
Florian Krohm [Fri, 6 Apr 2012 14:50:52 +0000 (14:50 +0000)] 
Disable test on big-endian platforms.

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

13 years agoSkip the test if it was not compiled, i.e. dwarf4 is not supported.
Florian Krohm [Fri, 6 Apr 2012 13:54:53 +0000 (13:54 +0000)] 
Skip the test if it was not compiled, i.e. dwarf4 is not supported.

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

13 years agofix off by one in string
Philippe Waroquiers [Fri, 6 Apr 2012 11:51:04 +0000 (11:51 +0000)] 
fix off by one in string

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

13 years agoTCHAIN: remove caused_discard* argument to VG_(translate)
Philippe Waroquiers [Thu, 5 Apr 2012 22:44:36 +0000 (22:44 +0000)] 
TCHAIN: remove caused_discard* argument to VG_(translate)
This is the followup to rev 12488.
With this revision, translation chaining is not done
if the translation with 'from address' is not existing
anymore (discarded or erased).
The assumption documented in 12488 comment has been checked by:
  * first reproduce a crash in Firefox when always setting
    caused discard to False
  * then upgrade to rev 12488
  * with this upgrade, no crash anymore.
=> this verifies that the caused discard logic is properly
replaced by revision 12488.

So, the caused discard logic can be removed.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12492

13 years agoAdd support for reading DWARF4 .debug_types sections. Fixes #284124.
Julian Seward [Thu, 5 Apr 2012 07:55:47 +0000 (07:55 +0000)] 
Add support for reading DWARF4 .debug_types sections.  Fixes #284124.
(Tom Tromey, tromey@redhat.com)

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

13 years agoFix incorrect use of VG_(addToXA). (Tom Tromey <tromey@redhat.com>)
Julian Seward [Thu, 5 Apr 2012 07:15:22 +0000 (07:15 +0000)] 
Fix incorrect use of VG_(addToXA).  (Tom Tromey <tromey@redhat.com>)

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

13 years agoSwitch back optimisation flag back to -O2 by removing the -O
Philippe Waroquiers [Wed, 4 Apr 2012 22:49:27 +0000 (22:49 +0000)] 
Switch back optimisation flag back to -O2 by removing the -O

Note that I believe it is possible to avoid Makefile.all.am
edition for this by using:
   ./configure CFLAGS="-O0 -g"

I think with this, make will mostly compile everything with the given CFLAGS
except the main programs (valgrind, vgdb, ...).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12489

13 years agoFix assert due to gdbserver discarding translation
Philippe Waroquiers [Wed, 4 Apr 2012 22:44:18 +0000 (22:44 +0000)] 
Fix assert due to gdbserver discarding translation
The fix consists in checking if the translation
of the 'from' address is still existing.

Patch also contains a big comment explaining why it is
safe to discard/erase the current translation being
executed.

In a follow-up patch, the Bool in VG_(translate) will
be removed :
  Bool VG_(translate) ( /*OUT*/Bool* caused_discardP,
(if experiment confirms the hypothesis that it is
safe to discard current translation).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12488

13 years agoComment-only fix. (Tom Tromey <tromey@redhat.com>)
Julian Seward [Wed, 4 Apr 2012 17:42:02 +0000 (17:42 +0000)] 
Comment-only fix.  (Tom Tromey <tromey@redhat.com>)

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

13 years agoMake the return type of VG_(disp_run_translations) be void, rather
Julian Seward [Wed, 4 Apr 2012 12:23:23 +0000 (12:23 +0000)] 
Make the return type of VG_(disp_run_translations) be void, rather
than the HWord it was claimed to be.  Inconsistency spotted by
Philippe Waroquiers.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12486

13 years agoAdd support for the move_pages system call. BZ#282790.
Tom Hughes [Tue, 3 Apr 2012 10:51:27 +0000 (10:51 +0000)] 
Add support for the move_pages system call. BZ#282790.

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

13 years agoAdd translation chaining support for amd64, x86 and ARM
Julian Seward [Mon, 2 Apr 2012 21:56:03 +0000 (21:56 +0000)] 
Add translation chaining support for amd64, x86 and ARM
(Valgrind side).  See #296422.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12484

13 years agoFixes for capabilities checking w.r.t. Power DFP instructions
Julian Seward [Mon, 2 Apr 2012 21:25:14 +0000 (21:25 +0000)] 
Fixes for capabilities checking w.r.t. Power DFP instructions
(Valgrind side).  Fixes #297329.
(Maynard Johnson, maynardj@us.ibm.com)

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

13 years agodrd, realloc() intercept: Swap freeing and cleaning memory.
Bart Van Assche [Mon, 2 Apr 2012 15:46:51 +0000 (15:46 +0000)] 
drd, realloc() intercept: Swap freeing and cleaning memory.

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

13 years agoconfigure.in: Avoid that configure complains about "-----: command not found".
Bart Van Assche [Mon, 2 Apr 2012 15:45:51 +0000 (15:45 +0000)] 
configure.in: Avoid that configure complains about "-----: command not found".

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

13 years agoFix track-origin instrumentation for ppc32 following r2270/r12476
Julian Seward [Mon, 2 Apr 2012 15:10:37 +0000 (15:10 +0000)] 
Fix track-origin instrumentation for ppc32 following r2270/r12476
(initial DFP support).  Maynard Johnson (maynardj@us.ibm.com).

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

13 years agoSwizzle external.
Julian Seward [Mon, 2 Apr 2012 14:52:23 +0000 (14:52 +0000)] 
Swizzle external.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12479

13 years agodrd, free() intercept: Swap freeing and cleaning memory.
Bart Van Assche [Mon, 2 Apr 2012 14:36:22 +0000 (14:36 +0000)] 
drd, free() intercept: Swap freeing and cleaning memory.

Note: since the big lock is held while the malloc() and free() intercepts are
running, and since mmap() is treated by Valgrind as a non-blocking system call,
this code change is not expected to result in a behavior change of drd.

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

13 years agoMake a copy of r2270/r12476 for work on translation chaining.
Julian Seward [Mon, 2 Apr 2012 14:26:30 +0000 (14:26 +0000)] 
Make a copy of r2270/r12476 for work on translation chaining.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12477

13 years agoInitial support for POWER Processor decimal floating point
Julian Seward [Mon, 2 Apr 2012 10:22:05 +0000 (10:22 +0000)] 
Initial support for POWER Processor decimal floating point
instruction support -- VEX side changes.  See #295221.

This patch adds test cases.  Also adds some minor Memcheck
instrumentation tweaks necessitated by the IR changes.

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

13 years agodrd: Reenable reporting races on stack variables that are shared over threads for...
Bart Van Assche [Sun, 1 Apr 2012 15:06:57 +0000 (15:06 +0000)] 
drd: Reenable reporting races on stack variables that are shared over threads for --check-stack-var=yes.

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

13 years agodrd: Don't complain about stack variables that are shared over threads. Closes #297147
Bart Van Assche [Sun, 1 Apr 2012 14:40:16 +0000 (14:40 +0000)] 
drd: Don't complain about stack variables that are shared over threads. Closes #297147

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

13 years agogcc-4.7.0 complains about some __attribute__((always_inline)) here,
Julian Seward [Sat, 31 Mar 2012 00:06:04 +0000 (00:06 +0000)] 
gcc-4.7.0 complains about some __attribute__((always_inline)) here,
so change them back to vanilla ones.

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