]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
19 years agoReplace bcmp in ld.so.1.
Julian Seward [Sat, 6 Jan 2007 06:30:48 +0000 (06:30 +0000)] 
Replace bcmp in ld.so.1.

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

19 years agoFixes for MPICH on amd64-linux.
Julian Seward [Sat, 6 Jan 2007 05:28:27 +0000 (05:28 +0000)] 
Fixes for MPICH on amd64-linux.

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

19 years agoPass CC and AR to vex's Makefile here too.
Julian Seward [Fri, 5 Jan 2007 23:50:45 +0000 (23:50 +0000)] 
Pass CC and AR to vex's Makefile here too.

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

19 years agoSupps for MVL 4.0.1 on ppc32 (Bart Van Assche)
Julian Seward [Fri, 5 Jan 2007 15:09:53 +0000 (15:09 +0000)] 
Supps for MVL 4.0.1 on ppc32 (Bart Van Assche)

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

19 years agoUse 'ifndef' in the makefile correctly.
Julian Seward [Thu, 4 Jan 2007 16:13:14 +0000 (16:13 +0000)] 
Use 'ifndef' in the makefile correctly.

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

19 years agoAvoid printf in the recursive routines, so that the intercept of
Julian Seward [Mon, 1 Jan 2007 22:07:58 +0000 (22:07 +0000)] 
Avoid printf in the recursive routines, so that the intercept of
mempcpy which is called from printf does not mess up the
carefully-balanced call-stack overflow checks that this test does on
ppc64-linux.

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

19 years agoProvide a replacement for mempcpy.
Julian Seward [Sun, 31 Dec 2006 18:55:56 +0000 (18:55 +0000)] 
Provide a replacement for mempcpy.

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

19 years agoApparently needed on Red Hat 7.3.
Julian Seward [Sun, 31 Dec 2006 15:26:48 +0000 (15:26 +0000)] 
Apparently needed on Red Hat 7.3.

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

19 years agoUpdate
Julian Seward [Sun, 31 Dec 2006 02:32:00 +0000 (02:32 +0000)] 
Update

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

19 years agoRedo a suppression in X.org style.
Julian Seward [Sun, 31 Dec 2006 01:05:19 +0000 (01:05 +0000)] 
Redo a suppression in X.org style.

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

19 years agoIntercept/replace glibc-2.5's __strcpy_chk function for the usual
Julian Seward [Sun, 31 Dec 2006 00:22:30 +0000 (00:22 +0000)] 
Intercept/replace glibc-2.5's __strcpy_chk function for the usual
reasons: it reads word-sized chunks from memory and so produces lots
of errors in SuSE 10.2 (amd64).

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

19 years agoRemove redundant \n
Julian Seward [Sat, 30 Dec 2006 17:56:32 +0000 (17:56 +0000)] 
Remove redundant \n

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

19 years agoMerge (from 3_2_BRANCH) r6457/8 (Support 64k pages on ppc32/64-linux
Julian Seward [Sat, 30 Dec 2006 17:45:08 +0000 (17:45 +0000)] 
Merge (from 3_2_BRANCH) r6457/8 (Support 64k pages on ppc32/64-linux
(Jakub Jelink, Dave Nomura) )

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

19 years agoTidy up flags spec fn, and add a rule for INCW-CondZ.
Julian Seward [Fri, 29 Dec 2006 01:54:36 +0000 (01:54 +0000)] 
Tidy up flags spec fn, and add a rule for INCW-CondZ.

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

19 years agoGet rid of the core-tool events pre_mutex_lock, post_mutex_lock and
Julian Seward [Thu, 28 Dec 2006 20:26:08 +0000 (20:26 +0000)] 
Get rid of the core-tool events pre_mutex_lock, post_mutex_lock and
post_mutex_unlock.  The core can't detect them anyway any more, so
there's no point in having them.

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

19 years agoUpdate expected output following r6447 (Test lvxl and stvxl.)
Julian Seward [Thu, 28 Dec 2006 06:52:27 +0000 (06:52 +0000)] 
Update expected output following r6447 (Test lvxl and stvxl.)

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

19 years agoAvoid name clash on ppc64-linux.
Julian Seward [Thu, 28 Dec 2006 06:50:50 +0000 (06:50 +0000)] 
Avoid name clash on ppc64-linux.

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

19 years agoTidy up and finalise x86/amd64 flag spec rules for 3.2.2.
Julian Seward [Thu, 28 Dec 2006 04:40:12 +0000 (04:40 +0000)] 
Tidy up and finalise x86/amd64 flag spec rules for 3.2.2.
x86 COPY-CondP/NP needs re-verification.

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

19 years agoUpdate
Julian Seward [Thu, 28 Dec 2006 02:07:52 +0000 (02:07 +0000)] 
Update

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

19 years agoHandle recent binutils padding "nopw %cs:0x0(%eax,%eax,1)"
Julian Seward [Thu, 28 Dec 2006 01:49:29 +0000 (01:49 +0000)] 
Handle recent binutils padding "nopw %cs:0x0(%eax,%eax,1)"

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

19 years agoAdd regtest for bug129390 (altivec cache hint insns)
Julian Seward [Thu, 28 Dec 2006 00:16:51 +0000 (00:16 +0000)] 
Add regtest for bug129390 (altivec cache hint insns)

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

19 years agoEnable support for altivec prefetches: dss, dst, dstt, dstst, dststt.
Julian Seward [Wed, 27 Dec 2006 23:59:31 +0000 (23:59 +0000)] 
Enable support for altivec prefetches: dss, dst, dstt, dstst, dststt.

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

19 years agoRemove dead code.
Nicholas Nethercote [Wed, 27 Dec 2006 23:19:10 +0000 (23:19 +0000)] 
Remove dead code.

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

19 years agoTest lvxl and stvxl.
Julian Seward [Wed, 27 Dec 2006 21:22:18 +0000 (21:22 +0000)] 
Test lvxl and stvxl.

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

19 years agoEnable lvxl and stvxl.
Julian Seward [Wed, 27 Dec 2006 21:21:14 +0000 (21:21 +0000)] 
Enable lvxl and stvxl.

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

19 years agoAdd regtest for #139050.
Julian Seward [Wed, 27 Dec 2006 18:40:47 +0000 (18:40 +0000)] 
Add regtest for #139050.

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

19 years agoImplement mfspr 268 and 269. Fixes #139050.
Julian Seward [Wed, 27 Dec 2006 18:39:46 +0000 (18:39 +0000)] 
Implement mfspr 268 and 269.  Fixes #139050.

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

19 years agoPrint a marginally more helpful error message if UME (ELF loading) fails.
Julian Seward [Wed, 27 Dec 2006 05:18:33 +0000 (05:18 +0000)] 
Print a marginally more helpful error message if UME (ELF loading) fails.

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

19 years agoRegtest for bug 137714 (x86 MASKMOVQ/MASKMOVDQU insns)
Julian Seward [Wed, 27 Dec 2006 04:35:52 +0000 (04:35 +0000)] 
Regtest for bug 137714 (x86 MASKMOVQ/MASKMOVDQU insns)

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

19 years agoHandle new primop Iop_SarN8x8 introduced in vex r1702.
Julian Seward [Wed, 27 Dec 2006 01:16:58 +0000 (01:16 +0000)] 
Handle new primop Iop_SarN8x8 introduced in vex r1702.

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

19 years agox86 front end: Implement MASKMOVQ (MMX class insn, introduced in SSE1)
Julian Seward [Wed, 27 Dec 2006 01:15:29 +0000 (01:15 +0000)] 
x86 front end: Implement MASKMOVQ (MMX class insn, introduced in SSE1)
and MASKMOVDQU (SSE class insn, introduced in SSE2).

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

19 years agoFix #134207 (pkg-config output contains @VG_PLATFORM@).
Julian Seward [Tue, 26 Dec 2006 04:50:12 +0000 (04:50 +0000)] 
Fix #134207 (pkg-config output contains @VG_PLATFORM@).

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

19 years agoUpdate
Julian Seward [Tue, 26 Dec 2006 04:09:33 +0000 (04:09 +0000)] 
Update

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

19 years agoUpdate, and make first attempt at deciding which bugs to fix for 3.2.2.
Julian Seward [Mon, 25 Dec 2006 23:32:41 +0000 (23:32 +0000)] 
Update, and make first attempt at deciding which bugs to fix for 3.2.2.

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

19 years agoAdd a NEWS item about Vex type/function name changes.
Nicholas Nethercote [Sun, 24 Dec 2006 07:54:19 +0000 (07:54 +0000)] 
Add a NEWS item about Vex type/function name changes.

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

19 years agoSplit the thread_runstate event into two, start_client_code and
Nicholas Nethercote [Sun, 24 Dec 2006 07:51:17 +0000 (07:51 +0000)] 
Split the thread_runstate event into two, start_client_code and
stop_client_code, which is a bit clearer and easier to work with.

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

19 years agoAlways ensure that the output buffer is zero-terminated, even if it is
Julian Seward [Sun, 24 Dec 2006 03:02:18 +0000 (03:02 +0000)] 
Always ensure that the output buffer is zero-terminated, even if it is
already full.  (Nick N)

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

19 years agoNon-functional commit: track IR renaming in vex r1689.
Julian Seward [Sun, 24 Dec 2006 02:24:11 +0000 (02:24 +0000)] 
Non-functional commit: track IR renaming in vex r1689.

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

19 years agoUpdate.
Julian Seward [Sun, 24 Dec 2006 02:21:49 +0000 (02:21 +0000)] 
Update.

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

19 years agoA large but non-functional commit: as suggested by Nick, rename some
Julian Seward [Sun, 24 Dec 2006 02:20:24 +0000 (02:20 +0000)] 
A large but non-functional commit: as suggested by Nick, rename some
IR types, structure fields and functions to make IR a bit easier to
understand.  Specifically:

  dopyIR* -> deepCopyIR*

  sopyIR* -> shallowCopyIR*

  The presence of a .Tmp union in both IRExpr and IRStmt is
  confusing.  It has been renamed to RdTmp in IRExpr, reflecting
  the fact that here we are getting the value of an IRTemp, and to
  WrTmp in IRStmt, reflecting the fact that here we are assigning
  to an IRTemp.

  IRBB (IR Basic Block) is renamed to IRSB (IR SuperBlock),
  reflecting the reality that Vex does not really operate in terms
  of basic blocks, but in terms of superblocks - single entry,
  multiple exit sequences.

  IRArray is renamed to IRRegArray, to make it clearer it refers
  to arrays of guest registers and not arrays in memory.

  VexMiscInfo is renamed to VexAbiInfo, since that's what it is
  -- relevant facts about the ABI (calling conventions, etc) for
  both the guest and host platforms.

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

19 years agoCallgrind: Throttle calls CLG_(run_thread) after r6413
Josef Weidendorfer [Sat, 23 Dec 2006 23:11:20 +0000 (23:11 +0000)] 
Callgrind: Throttle calls CLG_(run_thread) after r6413

After the change in r6413, CLG_(run_thread) is called a
lot more often, increasing the polling overhead to check
for a callgrind command file (created by callgrind_control
for controlling a callgrind run in an interactive way).
This reduces the calls to only be done every 5000 BBs,
which gives a similar polling frequency as before.

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

19 years agoChange the core-tool interface 'thread_run' event to be more useful:
Julian Seward [Sat, 23 Dec 2006 01:21:12 +0000 (01:21 +0000)] 
Change the core-tool interface 'thread_run' event to be more useful:

- Rename the event to 'thread_runstate'.

- Add arguments: pass also a boolean indicating whether the thread
  is running or stopping, and a 64-bit int showing how many blocks
  overall have run, so tools can make a rough estimate of workload.

  The boolean allows tools to see threads starting and stopping.
  Prior to this, de-schedule events were invisible to tools.

- Call the callback (hand the event to tools) just before client
  code is run, and again immediately after it stops running.  This
  should give correct sequencing w.r.t posting of thread creation/
  destruction events.

In order to make callgrind work without complex changes, I added a
simple impedance-matching function 'clg_thread_runstate_callback'
which hands thread-run events onwards to CLG_(thread_run).

Use this new 'thread_runstate' with care: it will be called before
and after every translation, which means it will be called ~500k
times in a startup of firefox.  So the callback needs to be fast.

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

19 years agoUse standard pthread mutexes instead of spinlocks. Not all distros
Julian Seward [Mon, 18 Dec 2006 17:53:13 +0000 (17:53 +0000)] 
Use standard pthread mutexes instead of spinlocks.  Not all distros
support spinlocks, it appears.

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

19 years agoAdd support for some USB ioctls. Based on patches from Jon Burgess and
Tom Hughes [Mon, 18 Dec 2006 16:48:10 +0000 (16:48 +0000)] 
Add support for some USB ioctls. Based on patches from Jon Burgess and
Marcus Meissner in bugs #136059 and #138896.

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

19 years agoImprove prctl support - based on patch from Eric Pouech in bug #138627.
Tom Hughes [Mon, 18 Dec 2006 15:22:46 +0000 (15:22 +0000)] 
Improve prctl support - based on patch from Eric Pouech in bug #138627.

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

19 years agoRename VG_(get_lwp_tid) to VG_(lwpid_to_vgtid).
Julian Seward [Sun, 17 Dec 2006 19:36:06 +0000 (19:36 +0000)] 
Rename VG_(get_lwp_tid) to VG_(lwpid_to_vgtid).

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

19 years agoA naming-only change: rename VG_(set_running) to VG_(acquire_BigLock)
Julian Seward [Sun, 17 Dec 2006 18:58:55 +0000 (18:58 +0000)] 
A naming-only change: rename VG_(set_running) to VG_(acquire_BigLock)
and VG_(set_sleeping) to VG_(release_BigLock).  And some other minor
renamings to the thread locking stuff, to make it easier to follow.

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

19 years agoMake compilable again.
Julian Seward [Sun, 17 Dec 2006 17:40:36 +0000 (17:40 +0000)] 
Make compilable again.

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

19 years agoAdd locking so this produces repeatable results (Bart Van Assche).
Julian Seward [Sun, 17 Dec 2006 17:40:06 +0000 (17:40 +0000)] 
Add locking so this produces repeatable results (Bart Van Assche).

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

19 years agoMake this compilable again.
Julian Seward [Sun, 17 Dec 2006 14:24:05 +0000 (14:24 +0000)] 
Make this compilable again.

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

19 years agoAdd missing case, apparently not very popular :-)
Julian Seward [Sun, 17 Dec 2006 14:20:31 +0000 (14:20 +0000)] 
Add missing case, apparently not very popular :-)

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

19 years ago64-bit followup to r6404: fix and simplify the inline assembly, so it
Julian Seward [Sat, 16 Dec 2006 14:25:04 +0000 (14:25 +0000)] 
64-bit followup to r6404: fix and simplify the inline assembly, so it
works right when compiled by gcc-4.1.0.  Also add a new flag, -A, to
test all available instructions.

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

19 years agoFix and simplify the inline assembly, so it works right when compiled
Julian Seward [Sat, 16 Dec 2006 05:00:38 +0000 (05:00 +0000)] 
Fix and simplify the inline assembly, so it works right when compiled
by gcc-4.1.0.

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

19 years agoFix version.
Julian Seward [Sat, 16 Dec 2006 04:58:59 +0000 (04:58 +0000)] 
Fix version.

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

19 years agoCompletely overhauled the internals of Memcheck's error handling. All the
Nicholas Nethercote [Sat, 16 Dec 2006 00:54:12 +0000 (00:54 +0000)] 
Completely overhauled the internals of Memcheck's error handling.  All the
different error kinds were reusing the same struct for storing their
details.  Each one used some but not all the fields, and the AddrInfo was
similar, and it was very confusing.

So I changed MC_Error and AddrInfo to be tagged unions, like Vex's IRExpr and
IRStmt types.  The resulting code is a little more verbose but much easier
to understand.  I also split up several error kinds, which also made things
simpler.  The user-visible behaviour is identical except for a couple of
very minor things that I've documented in the NEWS file for the 3.3.0
release.

Ideally I'd get rid of the Addr and Char* fields in the core Error type,
which are not always used, and do them similarly within tools.  But that
would require changing the core/tool interface, so I'm leaving it for the
moment.

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

19 years agoRemove defunct constant.
Nicholas Nethercote [Fri, 15 Dec 2006 04:37:25 +0000 (04:37 +0000)] 
Remove defunct constant.

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

19 years agoMake VG_STREQ return True or False, rather than any integer.
Nicholas Nethercote [Thu, 14 Dec 2006 03:29:18 +0000 (03:29 +0000)] 
Make VG_STREQ return True or False, rather than any integer.

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

19 years agoRemoved the unused pthread_model and thread_model modules.
Nicholas Nethercote [Thu, 14 Dec 2006 02:55:58 +0000 (02:55 +0000)] 
Removed the unused pthread_model and thread_model modules.

Mostly commented out the unused stuff relating to ThreadErrs and MutexErrs,
which no longer exist.

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

19 years agoRemove some very old and incorrect info in the headers.
Nicholas Nethercote [Thu, 14 Dec 2006 00:28:50 +0000 (00:28 +0000)] 
Remove some very old and incorrect info in the headers.

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

19 years agoInclude missing files in tarball.
Julian Seward [Wed, 13 Dec 2006 14:35:03 +0000 (14:35 +0000)] 
Include missing files in tarball.

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

19 years agoFix error in aix zeropage handling.
Julian Seward [Wed, 13 Dec 2006 03:16:40 +0000 (03:16 +0000)] 
Fix error in aix zeropage handling.

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

19 years agoMinor tidying for regtests on AIX.
Julian Seward [Tue, 12 Dec 2006 01:38:15 +0000 (01:38 +0000)] 
Minor tidying for regtests on AIX.

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

19 years agoFix various regtests, mostly by adding 64-bit outputs.
Julian Seward [Mon, 11 Dec 2006 03:23:41 +0000 (03:23 +0000)] 
Fix various regtests, mostly by adding 64-bit outputs.

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

19 years agoUpdate expected output.
Julian Seward [Mon, 11 Dec 2006 02:19:16 +0000 (02:19 +0000)] 
Update expected output.

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

19 years agoOn SuSE 10.1 (amd64) fd 4 seems to be open at process start. Close it
Julian Seward [Mon, 11 Dec 2006 01:12:18 +0000 (01:12 +0000)] 
On SuSE 10.1 (amd64) fd 4 seems to be open at process start.  Close it
so as to get consistent test results.

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

19 years agoTidy fd-leak stuff a bit.
Julian Seward [Mon, 11 Dec 2006 01:11:02 +0000 (01:11 +0000)] 
Tidy fd-leak stuff a bit.

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

19 years agoUpdate a couple of expected outputs.
Julian Seward [Mon, 11 Dec 2006 00:19:28 +0000 (00:19 +0000)] 
Update a couple of expected outputs.

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

19 years agoFix 'make html-docs' and 'make print-docs'.
Julian Seward [Sun, 10 Dec 2006 02:59:16 +0000 (02:59 +0000)] 
Fix 'make html-docs' and 'make print-docs'.

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

19 years agoUpdate.
Julian Seward [Sun, 10 Dec 2006 02:58:27 +0000 (02:58 +0000)] 
Update.

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

19 years agoFix installation of libmpiwrap.so on the primary platform.
Julian Seward [Sun, 10 Dec 2006 02:26:50 +0000 (02:26 +0000)] 
Fix installation of libmpiwrap.so on the primary platform.

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

19 years agoGet rid of the use of explicit register variables in the ppc32-linux
Julian Seward [Fri, 8 Dec 2006 21:29:46 +0000 (21:29 +0000)] 
Get rid of the use of explicit register variables in the ppc32-linux
magic macros.

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

19 years agorename as _SOURCES is a reserved keywoard and breaks with newer
Dirk Mueller [Thu, 7 Dec 2006 15:31:57 +0000 (15:31 +0000)] 
rename as _SOURCES is a reserved keywoard and breaks with newer
auto*foo:
Makefile.am:110: variable `VEX_PRIMARY_SOURCES' is defined but no
program or
Makefile.am:110: library has `VEX_PRIMARY' as canonic name (possible
typo)

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

19 years agoUpdate some expected outputs following r6382. There may be more ..
Julian Seward [Wed, 6 Dec 2006 18:53:07 +0000 (18:53 +0000)] 
Update some expected outputs following r6382.  There may be more ..

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

19 years agoFix confusing and contradictory "Rerun with ..." messages printed at
Julian Seward [Wed, 6 Dec 2006 18:05:54 +0000 (18:05 +0000)] 
Fix confusing and contradictory "Rerun with ..." messages printed at
the end of MC_(do_detect_memory_leaks).  This causes various leak
regression tests to fail; will fix shortly.

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

19 years agoUpdate.
Julian Seward [Wed, 6 Dec 2006 17:39:16 +0000 (17:39 +0000)] 
Update.

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

19 years agoOnly read $HOME/.valgrindrc if HOME is actually set.
Julian Seward [Wed, 6 Dec 2006 17:38:32 +0000 (17:38 +0000)] 
Only read $HOME/.valgrindrc if HOME is actually set.

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

19 years agoAdd a regression test, courtesy of Bart Van Assche.
Nicholas Nethercote [Wed, 6 Dec 2006 06:32:37 +0000 (06:32 +0000)] 
Add a regression test, courtesy of Bart Van Assche.

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

19 years agoFix suppression-matching bogon (Paul Floyd).
Julian Seward [Wed, 6 Dec 2006 03:36:24 +0000 (03:36 +0000)] 
Fix suppression-matching bogon (Paul Floyd).

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

19 years agoWhen generating suppressions, remember to Z-demangle function names,
Julian Seward [Wed, 6 Dec 2006 03:35:38 +0000 (03:35 +0000)] 
When generating suppressions, remember to Z-demangle function names,
since the suppression-matching machinery does the same.  Not doing so
causes auto-generated suppressions involving Z-mangled fn names to not
work.

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

19 years agoWhen failing, fail a bit more informatively.
Julian Seward [Fri, 1 Dec 2006 18:48:56 +0000 (18:48 +0000)] 
When failing, fail a bit more informatively.

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

19 years agoChange a stupid algorithm that deals with real register live
Julian Seward [Fri, 1 Dec 2006 02:59:17 +0000 (02:59 +0000)] 
Change a stupid algorithm that deals with real register live
ranges into a less stupid one.  Prior to this change, the complexity
of reg-alloc included an expensive term

O(#instrs in code sequence x #real-register live ranges in code sequence)

This commit changes that term to essentially

O(#instrs in code sequence) + O(time to sort real-reg-L-R array)

On amd64 this nearly halves the cost of register allocation and means
Valgrind performs better in translation-intensive situations (a.k.a
starting programs).  Eg, firefox start/exit falls from 119 to 113
seconds.  The effect will be larger on ppc32/64 as there are more real
registers and hence real-reg live ranges to consider, and will be
smaller on x86 for the same reason.

The actual code the JIT produces should be unchanged.  This commit
merely modifies how the register allocator handles one of its
important data structures.

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

19 years agoWhen being an 'inner valgrind' on 64-bit platforms, ensure the stack
Julian Seward [Fri, 1 Dec 2006 02:35:02 +0000 (02:35 +0000)] 
When being an 'inner valgrind' on 64-bit platforms, ensure the stack
is allocated below the magic 32G mark as it would be normally.

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

19 years agoMake it possible to suppress, and auto-generate suppressions for,
Julian Seward [Tue, 28 Nov 2006 00:15:35 +0000 (00:15 +0000)] 
Make it possible to suppress, and auto-generate suppressions for,
"User" errors; that is, errors resulting from client requests (check
memory range is addressible / defined).

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

19 years agoAdd a couple of %rflags spec rules which improve performance of amd64
Julian Seward [Mon, 27 Nov 2006 04:09:52 +0000 (04:09 +0000)] 
Add a couple of %rflags spec rules which improve performance of amd64
FP comparisons.

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

19 years agoUpdate a comment.
Nicholas Nethercote [Sun, 26 Nov 2006 22:49:58 +0000 (22:49 +0000)] 
Update a comment.

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

19 years agoUse the newly-added dopyIRBBExceptStmts() in tools.
Nicholas Nethercote [Sat, 25 Nov 2006 22:38:11 +0000 (22:38 +0000)] 
Use the newly-added dopyIRBBExceptStmts() in tools.

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

19 years agoNew function dopyIRBBExceptStmts which makes it a bit easier to write
Julian Seward [Fri, 24 Nov 2006 23:32:55 +0000 (23:32 +0000)] 
New function dopyIRBBExceptStmts which makes it a bit easier to write
tools.

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

19 years ago- remove some 'inline' directives so as to make stack backtraces
Julian Seward [Fri, 24 Nov 2006 15:18:15 +0000 (15:18 +0000)] 
- remove some 'inline' directives so as to make stack backtraces
  involving this library easier to make sense of

- try to handle 'long double' better.  The problem is that the
  library needs to know how many bytes are written when a 'long double'
  is stored, which is sometimes not the same as what sizeof(long double)
  says.

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

19 years agoFix compilation warning, and partially de-leak.
Julian Seward [Thu, 23 Nov 2006 15:14:18 +0000 (15:14 +0000)] 
Fix compilation warning, and partially de-leak.

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

19 years agoCachegrind/Callgrind: Fix cache parameter detection
Josef Weidendorfer [Thu, 23 Nov 2006 13:04:30 +0000 (13:04 +0000)] 
Cachegrind/Callgrind: Fix cache parameter detection

On Intel processors, CPUIDs cache parameter code 0x49 is
reused both for L2 and L3 parameters.
Thanks to Ulrich Drepper.

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

19 years agoSpecialise computation of carry flag after ADDL.
Julian Seward [Wed, 22 Nov 2006 23:31:37 +0000 (23:31 +0000)] 
Specialise computation of carry flag after ADDL.

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

19 years agoUpdate
Josef Weidendorfer [Wed, 22 Nov 2006 21:07:10 +0000 (21:07 +0000)] 
Update

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

19 years agoFix same cache simulation bug in callgrind as fixed
Josef Weidendorfer [Wed, 22 Nov 2006 21:00:53 +0000 (21:00 +0000)] 
Fix same cache simulation bug in callgrind as fixed
in r6365 for cachegrind.

This needs 3 fixes (the 4th is ifdef'd out) for the
3 versions of the simulator in callgrind.

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

19 years agoEven more flag-spec rules: SUBL-CondNL, SUBL-CondNBE, SUBL-NB and redo
Julian Seward [Wed, 22 Nov 2006 17:39:51 +0000 (17:39 +0000)] 
Even more flag-spec rules: SUBL-CondNL, SUBL-CondNBE, SUBL-NB and redo
SUBL-CondNS.

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

19 years agoA couple more x86 spec rules: COPY-CondNZ and SUBL-CondNS.
Julian Seward [Wed, 22 Nov 2006 16:01:45 +0000 (16:01 +0000)] 
A couple more x86 spec rules: COPY-CondNZ and SUBL-CondNS.

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

19 years agoUpdate.
Nicholas Nethercote [Wed, 22 Nov 2006 11:41:07 +0000 (11:41 +0000)] 
Update.

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

19 years agoFix obscure bug in cache simulation, found by Ulrich Drepper.
Nicholas Nethercote [Wed, 22 Nov 2006 11:38:07 +0000 (11:38 +0000)] 
Fix obscure bug in cache simulation, found by Ulrich Drepper.

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

19 years agoAn extension of the previous commit: the vg_perf --tools option is so useful
Nicholas Nethercote [Wed, 22 Nov 2006 00:52:00 +0000 (00:52 +0000)] 
An extension of the previous commit:  the vg_perf --tools option is so useful
that I got rid of the "tools:" line in the .vg_perf files.

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

19 years agoAdd a useful --tools option to vg_perf, which lets you override the "tools"
Nicholas Nethercote [Wed, 22 Nov 2006 00:39:08 +0000 (00:39 +0000)] 
Add a useful --tools option to vg_perf, which lets you override the "tools"
line in the .vgperf files from the command line.

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

19 years agoClarify NON_SIMD_CALL instructions.
Nicholas Nethercote [Mon, 20 Nov 2006 22:02:40 +0000 (22:02 +0000)] 
Clarify NON_SIMD_CALL instructions.

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