]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
19 years agoMake this work on SSE1-only machines.
Julian Seward [Sun, 1 Jan 2006 18:26:40 +0000 (18:26 +0000)] 
Make this work on SSE1-only machines.

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

19 years agoUpdate.
Julian Seward [Sun, 1 Jan 2006 17:17:55 +0000 (17:17 +0000)] 
Update.

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

19 years agoAlso do sse memory overrun tests on x86.
Julian Seward [Sun, 1 Jan 2006 15:22:16 +0000 (15:22 +0000)] 
Also do sse memory overrun tests on x86.

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

19 years agoAdd a test program which checks for memory overruns in the SSE insn
Julian Seward [Sun, 1 Jan 2006 14:27:04 +0000 (14:27 +0000)] 
Add a test program which checks for memory overruns in the SSE insn
decoder.

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

19 years agoFinally fix the bug causing dynamic ppc64-linux executables not to
Julian Seward [Fri, 30 Dec 2005 22:52:20 +0000 (22:52 +0000)] 
Finally fix the bug causing dynamic ppc64-linux executables not to
work: start with with the correct toc pointer (r2), rather than some
nonsense value.

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

19 years agoFix typo
Julian Seward [Fri, 30 Dec 2005 22:50:01 +0000 (22:50 +0000)] 
Fix typo

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

19 years agoA couple more ppc64-linux syscalls.
Julian Seward [Fri, 30 Dec 2005 22:49:24 +0000 (22:49 +0000)] 
A couple more ppc64-linux syscalls.

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

19 years agoAdd a --trace-mem option to Lackey to print out a memory access trace, if
Nicholas Nethercote [Fri, 30 Dec 2005 22:39:58 +0000 (22:39 +0000)] 
Add a --trace-mem option to Lackey to print out a memory access trace, if
only so people will stop asking how to do it.

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

19 years agoMore ppc64-linux syscalls.
Julian Seward [Fri, 30 Dec 2005 15:02:49 +0000 (15:02 +0000)] 
More ppc64-linux syscalls.

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

19 years agoFix up ppc64 dispatcher following the changes made by r5441.
Julian Seward [Fri, 30 Dec 2005 04:16:37 +0000 (04:16 +0000)] 
Fix up ppc64 dispatcher following the changes made by r5441.

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

19 years agoTentative fix for #117332: No line numbers printed by Valgrind 3.1.0
Julian Seward [Wed, 28 Dec 2005 15:19:39 +0000 (15:19 +0000)] 
Tentative fix for #117332: No line numbers printed by Valgrind 3.1.0
for programs compiled with Intel compiler.

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

19 years agoIn fbench, compute sin/cos/sqrt from "first principles", so that the
Julian Seward [Wed, 28 Dec 2005 04:18:20 +0000 (04:18 +0000)] 
In fbench, compute sin/cos/sqrt from "first principles", so that the
program more uniformly measures the speed of FP +/-/* load/store
across different architectures.

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

19 years agoUpdate.
Julian Seward [Tue, 27 Dec 2005 15:02:50 +0000 (15:02 +0000)] 
Update.

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

19 years agoVG_(getgroups) fix (Shinichi Noda)
Julian Seward [Tue, 27 Dec 2005 02:08:03 +0000 (02:08 +0000)] 
VG_(getgroups) fix (Shinichi Noda)

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

19 years agoCheck that the two sigprocmasks haven't failed.
Julian Seward [Tue, 27 Dec 2005 01:44:33 +0000 (01:44 +0000)] 
Check that the two sigprocmasks haven't failed.

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

19 years agoMore dispatcher tuning for ppc32/64. Makes a big difference for
Julian Seward [Mon, 26 Dec 2005 17:58:58 +0000 (17:58 +0000)] 
More dispatcher tuning for ppc32/64.  Makes a big difference for
perf/tinycc.

- run_thread_for_a_while: just clear this thread's reservation when
  starting, not all of them.

- use a different fast-cache hashing function for ppc32/64 than for
  x86/amd64.  This allows the former to use all the fast-cache entries
  rather than just 1/4 of them.

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

19 years agocode layout wibbles only
Nicholas Nethercote [Mon, 26 Dec 2005 17:50:22 +0000 (17:50 +0000)] 
code layout wibbles only

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

19 years agoAttempt to make tinycc work on ppc32, by (1) getting rid of various
Julian Seward [Mon, 26 Dec 2005 03:54:49 +0000 (03:54 +0000)] 
Attempt to make tinycc work on ppc32, by (1) getting rid of various
x86 isms in tinycc.c, (2) giving it a fixed, preprocessed input file
to chew on, and (3) just compiling to a .o with no attempt to link.

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

19 years agoMerge in r5435 from COMPVBITS. Also added a note to
Nicholas Nethercote [Sun, 25 Dec 2005 06:34:04 +0000 (06:34 +0000)] 
Merge in r5435 from COMPVBITS.  Also added a note to
docs/internals/performance.txt about it.

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

19 years agoUpdate for recent change to OSet interface.
Nicholas Nethercote [Sun, 25 Dec 2005 06:30:34 +0000 (06:30 +0000)] 
Update for recent change to OSet interface.

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

19 years agoadd extra note about tinycc
Nicholas Nethercote [Sun, 25 Dec 2005 06:27:51 +0000 (06:27 +0000)] 
add extra note about tinycc

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

19 years agoupdate
Nicholas Nethercote [Sun, 25 Dec 2005 03:33:12 +0000 (03:33 +0000)] 
update

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

19 years agoA minor performance improvement -- make swizzle() faster.
Nicholas Nethercote [Sun, 25 Dec 2005 02:47:12 +0000 (02:47 +0000)] 
A minor performance improvement -- make swizzle() faster.

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

19 years agoFix read-after-free in VG_(HT_destruct). This fixes
Julian Seward [Sat, 24 Dec 2005 15:33:32 +0000 (15:33 +0000)] 
Fix read-after-free in VG_(HT_destruct).  This fixes
memcheck/tests/mempools.  Thanks to Jeroen Witmond for tracking it
down.

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

19 years agoTidy up ppc32 jm-insns test some more.
Cerion Armour-Brown [Sat, 24 Dec 2005 12:55:48 +0000 (12:55 +0000)] 
Tidy up ppc32 jm-insns test some more.
In particular, hide the function pointer setup stuff, for the test loops, in init_function()

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

19 years agoFix a nasty 64-bit-uncleanness bug in OSet spotted by Julian -- for fast
Nicholas Nethercote [Sat, 24 Dec 2005 03:10:56 +0000 (03:10 +0000)] 
Fix a nasty 64-bit-uncleanness bug in OSet spotted by Julian -- for fast
comparisons it was only considering the bottom 32-bits of the key.

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

19 years agoppc64 ELF allows the 288 bytes below the stack pointer to be accessed.
Julian Seward [Fri, 23 Dec 2005 23:34:51 +0000 (23:34 +0000)] 
ppc64 ELF allows the 288 bytes below the stack pointer to be accessed.

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

19 years agoMake ppc64-linux stack unwinding work.
Julian Seward [Fri, 23 Dec 2005 23:33:51 +0000 (23:33 +0000)] 
Make ppc64-linux stack unwinding work.

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

19 years agoChange default --reps value from 3 to 1.
Nicholas Nethercote [Fri, 23 Dec 2005 23:08:04 +0000 (23:08 +0000)] 
Change default --reps value from 3 to 1.

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

19 years agoppc64-linux fixes
Julian Seward [Fri, 23 Dec 2005 12:56:11 +0000 (12:56 +0000)] 
ppc64-linux fixes

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

19 years agoppc64-linux fixes.
Julian Seward [Fri, 23 Dec 2005 12:47:42 +0000 (12:47 +0000)] 
ppc64-linux fixes.

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

19 years agoHandle ppc64-related primops.
Julian Seward [Fri, 23 Dec 2005 12:47:16 +0000 (12:47 +0000)] 
Handle ppc64-related primops.

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

19 years agoTracking VEX r1507
Cerion Armour-Brown [Fri, 23 Dec 2005 11:44:40 +0000 (11:44 +0000)] 
Tracking VEX r1507
adjusted references to renamed VEX dirs guest-ppc/, host-ppc/

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

19 years agoDeal with function pointer vs function entry crazyness on ppc64-linux.
Julian Seward [Fri, 23 Dec 2005 02:29:58 +0000 (02:29 +0000)] 
Deal with function pointer vs function entry crazyness on ppc64-linux.
Memcheck is done, but any tool which generates IR helper calls will
need to be similarly adulterated.

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

19 years agoTidied up jm-insns.c test a little.
Cerion Armour-Brown [Fri, 23 Dec 2005 01:16:16 +0000 (01:16 +0000)] 
Tidied up jm-insns.c test a little.

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

19 years agoTrack changes to PPC naming convention - VEX r1504
Cerion Armour-Brown [Fri, 23 Dec 2005 00:57:03 +0000 (00:57 +0000)] 
Track changes to PPC naming convention - VEX r1504

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

19 years agoHandle CmpORD64{U,S} as ppc64 requires those.
Julian Seward [Fri, 23 Dec 2005 00:16:24 +0000 (00:16 +0000)] 
Handle CmpORD64{U,S} as ppc64 requires those.

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

19 years agoUse rt_sigprocmask, and check for errors correctly. (Not yet done: amd64-linux).
Julian Seward [Thu, 22 Dec 2005 23:13:27 +0000 (23:13 +0000)] 
Use rt_sigprocmask, and check for errors correctly.  (Not yet done: amd64-linux).

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

19 years agoAdd enough syscalls to run bzip2 on ppc64-linux.
Julian Seward [Thu, 22 Dec 2005 20:24:12 +0000 (20:24 +0000)] 
Add enough syscalls to run bzip2 on ppc64-linux.

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

19 years agoProperly return error codes resulting from sigprocmask failures.
Julian Seward [Thu, 22 Dec 2005 20:16:00 +0000 (20:16 +0000)] 
Properly return error codes resulting from sigprocmask failures.
Not yet done: amd64, ppc32.

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

19 years agoComment-only changes
Julian Seward [Thu, 22 Dec 2005 20:14:57 +0000 (20:14 +0000)] 
Comment-only changes

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

19 years agoAdd comment about log2().
Nicholas Nethercote [Thu, 22 Dec 2005 19:50:45 +0000 (19:50 +0000)] 
Add comment about log2().

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

19 years agoMake async-style syscalls work on ppc64, by using rt_sigprocmask
Julian Seward [Thu, 22 Dec 2005 19:28:37 +0000 (19:28 +0000)] 
Make async-style syscalls work on ppc64, by using rt_sigprocmask
instead of sigprocmask.

In the process, discover that error handling for
ML_(do_syscall_for_client_WRK) on all platforms has always been
broken, in the sense that the sigprocmasks (which are important) could
silently fail.  This commit fixes that up too (only on ppc64-linux at
the moment, so all other platforms are probably broken now).

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

19 years agoMore ppc64-linux syscalls.
Julian Seward [Thu, 22 Dec 2005 19:25:51 +0000 (19:25 +0000)] 
More ppc64-linux syscalls.

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

19 years agofixed up ppc64 assembly with .opd sections
Cerion Armour-Brown [Thu, 22 Dec 2005 15:53:12 +0000 (15:53 +0000)] 
fixed up ppc64 assembly with .opd sections

do_syscall_for_client_WRK() needed a bigger stack to avoid the linkage area.

always use dot_prefix for label calls

not wrapping assembly with
.section ".text"
...
.previous
 - ppc64 doesn't like it... seems we can't 'stack' more than one section to pop off with .previous ?

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

19 years agoWhen switching threads on ppc64, clear the reservation pseudo-reg, as on ppc32.
Julian Seward [Thu, 22 Dec 2005 15:16:43 +0000 (15:16 +0000)] 
When switching threads on ppc64, clear the reservation pseudo-reg, as on ppc32.

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

19 years agoAdd a destructor function to OSet_Destroy() which can be called for each
Nicholas Nethercote [Thu, 22 Dec 2005 06:20:59 +0000 (06:20 +0000)] 
Add a destructor function to OSet_Destroy() which can be called for each
node.

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

19 years agoAdd the name of the input file to cg_annotate's output.
Nicholas Nethercote [Thu, 22 Dec 2005 06:14:42 +0000 (06:14 +0000)] 
Add the name of the input file to cg_annotate's output.

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

19 years agoMake a start adding syscalls.
Julian Seward [Thu, 22 Dec 2005 03:35:12 +0000 (03:35 +0000)] 
Make a start adding syscalls.

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

19 years agoSave %CIA correctly (caused ppc64-linux to loop at the first syscall,
Julian Seward [Thu, 22 Dec 2005 03:33:16 +0000 (03:33 +0000)] 
Save %CIA correctly (caused ppc64-linux to loop at the first syscall,
entertainingly).

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

19 years agoRenamed coregrind.h to pub_core_clreq.h and introduced pub_tool_clreq.h to
Nicholas Nethercote [Wed, 21 Dec 2005 20:22:52 +0000 (20:22 +0000)] 
Renamed coregrind.h to pub_core_clreq.h and introduced pub_tool_clreq.h to
be consistent with the module naming scheme.

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

19 years agoupdate
Nicholas Nethercote [Wed, 21 Dec 2005 19:47:06 +0000 (19:47 +0000)] 
update

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

19 years agoFixed cg_annotate bug -- when using the --sort option the primary threshold
Nicholas Nethercote [Wed, 21 Dec 2005 19:45:29 +0000 (19:45 +0000)] 
Fixed cg_annotate bug -- when using the --sort option the primary threshold
was set to zero and so no annotation was done.

Also put the file format into this file, and some other tiny changes.

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

19 years agoAdd a new performance benchmark: tinycc.
Nicholas Nethercote [Tue, 20 Dec 2005 23:02:43 +0000 (23:02 +0000)] 
Add a new performance benchmark: tinycc.

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

19 years agoRewrite ppc64 dispatch loop to avoid profiling overhead, as per ppc32 rewrite (r5352).
Cerion Armour-Brown [Tue, 20 Dec 2005 20:48:50 +0000 (20:48 +0000)] 
Rewrite ppc64 dispatch loop to avoid profiling overhead, as per ppc32 rewrite (r5352).

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

19 years agoRemove all remaining profiling gunk.
Nicholas Nethercote [Mon, 19 Dec 2005 22:48:39 +0000 (22:48 +0000)] 
Remove all remaining profiling gunk.

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

19 years agoRemove remaining profiling gunk from Memcheck.
Nicholas Nethercote [Mon, 19 Dec 2005 22:48:06 +0000 (22:48 +0000)] 
Remove remaining profiling gunk from Memcheck.

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

19 years agoRemove the old profiling stuff from Memcheck.
Nicholas Nethercote [Mon, 19 Dec 2005 22:23:35 +0000 (22:23 +0000)] 
Remove the old profiling stuff from Memcheck.

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

19 years agoFix for bug #117096.
Nicholas Nethercote [Mon, 19 Dec 2005 21:27:58 +0000 (21:27 +0000)] 
Fix for bug #117096.

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

19 years agoBugfix update
Nicholas Nethercote [Mon, 19 Dec 2005 19:40:58 +0000 (19:40 +0000)] 
Bugfix update

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

19 years agoFix a minor --gen-suppressions output bug.
Nicholas Nethercote [Mon, 19 Dec 2005 19:40:12 +0000 (19:40 +0000)] 
Fix a minor --gen-suppressions output bug.

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

19 years agoupdate
Nicholas Nethercote [Mon, 19 Dec 2005 19:38:02 +0000 (19:38 +0000)] 
update

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

19 years agoClarify leak checker output.
Nicholas Nethercote [Mon, 19 Dec 2005 19:33:36 +0000 (19:33 +0000)] 
Clarify leak checker output.

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

19 years agoupdate
Nicholas Nethercote [Mon, 19 Dec 2005 19:12:13 +0000 (19:12 +0000)] 
update

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

19 years agoAdd comment from commit log.
Nicholas Nethercote [Mon, 19 Dec 2005 17:01:14 +0000 (17:01 +0000)] 
Add comment from commit log.

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

19 years agoCheck that noinst_PROGRAMS and noinst_LIBRARIES are not empty strings
Tom Hughes [Mon, 19 Dec 2005 12:48:03 +0000 (12:48 +0000)] 
Check that noinst_PROGRAMS and noinst_LIBRARIES are not empty strings
before trying to run a for loop over them as some versions of bash can't
cope with being asked to loop over an empty list.

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

19 years agoFixed to check whether __builtin_expect is supported before using it.
Tom Hughes [Mon, 19 Dec 2005 12:40:13 +0000 (12:40 +0000)] 
Fixed to check whether __builtin_expect is supported before using it.

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

19 years agoMake sure EM_X86_64 is defined as elf.h doesn't define it on some
Tom Hughes [Mon, 19 Dec 2005 12:27:42 +0000 (12:27 +0000)] 
Make sure EM_X86_64 is defined as elf.h doesn't define it on some
older systems.

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

19 years agoDuh, remove debug printing. Duh.
Julian Seward [Sun, 18 Dec 2005 03:59:16 +0000 (03:59 +0000)] 
Duh, remove debug printing.  Duh.

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

19 years agoUpdate.
Julian Seward [Sun, 18 Dec 2005 03:35:09 +0000 (03:35 +0000)] 
Update.

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

19 years agoIncrease buffer size, so that long debugger command lines don't crash
Julian Seward [Sun, 18 Dec 2005 03:22:50 +0000 (03:22 +0000)] 
Increase buffer size, so that long debugger command lines don't crash
V.  Also add buffer overrun checks.

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

19 years agoNasty hack to stop the leak checker dying on custom-allocator example
Julian Seward [Sun, 18 Dec 2005 02:48:40 +0000 (02:48 +0000)] 
Nasty hack to stop the leak checker dying on custom-allocator example
from Ashley Pittman.

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

19 years agoWhen using a custom allocator that allocates with no intervening
Julian Seward [Sun, 18 Dec 2005 02:37:50 +0000 (02:37 +0000)] 
When using a custom allocator that allocates with no intervening
blocks, the <= relation is the correct one.  In effect asserting <
constitutes an off-by-one error.

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

19 years agofindSb: gradually rearrange the superblock list to bring frequently
Julian Seward [Sat, 17 Dec 2005 20:37:36 +0000 (20:37 +0000)] 
findSb: gradually rearrange the superblock list to bring frequently
accessed blocks closer to the front.  This speeds up malloc/free
intensive programs because evidently those searches cause a lot of
cache misses (so cachegrind tells us).  For perf/heap.c on P4
Northwood, this halves the run-time (!) from 85.8 to 42.9 seconds.
For "real" code (start/exit ktuberling) there is a small but
worthwhile performance gain, of about 2 seconds out of 95.

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

19 years agoUpdate known-bugs summary.
Julian Seward [Sat, 17 Dec 2005 13:53:46 +0000 (13:53 +0000)] 
Update known-bugs summary.

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

19 years agoAdd a malloc/free stress test.
Nicholas Nethercote [Sat, 17 Dec 2005 00:22:39 +0000 (00:22 +0000)] 
Add a malloc/free stress test.

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

19 years agoAdd info about overhead in heap blocks and OSet nodes.
Nicholas Nethercote [Fri, 16 Dec 2005 17:06:37 +0000 (17:06 +0000)] 
Add info about overhead in heap blocks and OSet nodes.

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

19 years agoHold the event count in r29 rather than the count register, since the
Julian Seward [Fri, 16 Dec 2005 01:08:22 +0000 (01:08 +0000)] 
Hold the event count in r29 rather than the count register, since the
former doesn't need to be spilled and reloaded for every bb run.

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

19 years agoAdd missing cases in debug printing.
Julian Seward [Fri, 16 Dec 2005 01:07:11 +0000 (01:07 +0000)] 
Add missing cases in debug printing.

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

19 years agoRewrite ppc32 dispatch loop to avoid profiling overhead, as per
Julian Seward [Thu, 15 Dec 2005 21:40:34 +0000 (21:40 +0000)] 
Rewrite ppc32 dispatch loop to avoid profiling overhead, as per
today's x86 and amd64 rewrites.

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

19 years agoadd note about recent performance improvement
Nicholas Nethercote [Thu, 15 Dec 2005 19:41:14 +0000 (19:41 +0000)] 
add note about recent performance improvement

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

19 years agoImprovments to vg_perf:
Nicholas Nethercote [Thu, 15 Dec 2005 17:22:37 +0000 (17:22 +0000)] 
Improvments to vg_perf:
- show percentage speedup over the first Valgrind when comparing multiple
  Valgrind
- don't accept --reps < 0
- avoid div-by-zero if the runtime is measured as zero

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

19 years agoMake this work on platforms where r != x.
Julian Seward [Thu, 15 Dec 2005 16:11:25 +0000 (16:11 +0000)] 
Make this work on platforms where r != x.

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

19 years agoRewrite amd64 dispatch loop to add performance enhancements as per x86
Julian Seward [Thu, 15 Dec 2005 15:46:43 +0000 (15:46 +0000)] 
Rewrite amd64 dispatch loop to add performance enhancements as per x86
reorganisation of r5345.

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

19 years ago- Track vex r1494 (x86/amd64 change of conventions for getting
Julian Seward [Thu, 15 Dec 2005 14:07:07 +0000 (14:07 +0000)] 
- Track vex r1494 (x86/amd64 change of conventions for getting
  to translations and back to dispatcher, and also different arg
  passing conventions to LibVEX_Translate).

- Rewrite x86 dispatcher to not increment the profiling counters
  unless requested by the user.  This dramatically reduces the
  D1 miss rate and gives considerable performance improvement
  on x86.  Also, restructure and add comments to dispatch-x86-linux.S
  to make it much easier to follow (imo).

amd64/ppc32/ppc64 fixes to follow.

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

19 years agoAdded fp regtest
Cerion Armour-Brown [Wed, 14 Dec 2005 22:24:45 +0000 (22:24 +0000)] 
Added fp regtest
 - needed some hackery to get around VEX's loss of accuracy.

------------------------------
Added test for fsqrt (fp square root)

Enabled stfs(u)(x) (fp single-precision stores)
 - VEX implementation not great: ends up rounding twice, losing
accuracy, but is good enough for this test's small fp argument array.

Changed fp arg setup
 - no denormals (for VEX inaccuracy)

All fp tests
 - don't print CR, XER flags, as VEX doesn't set them.

3 arg fp arith tests (fp 'multiply and add' etc)
 - no 'special' fp vals (for VEX inaccuracy)
 - zap lo byte (for VEX inaccuracy)

fctiw, fctiwz (fp convert to int)
 - zap high 32bits of result (is undefined)

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

19 years agoChanged jm_insns.c usage to use one of flags 'i|f|a' to run int|fp|av insns respectively.
Cerion Armour-Brown [Wed, 14 Dec 2005 17:59:35 +0000 (17:59 +0000)] 
Changed jm_insns.c usage to use one of flags 'i|f|a' to run int|fp|av insns respectively.
Removed integer test insns for jm-vmx.vgtest - already tested in jm-int.vgtest

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

19 years agosvn:ignores
Cerion Armour-Brown [Wed, 14 Dec 2005 13:30:44 +0000 (13:30 +0000)] 
svn:ignores

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

19 years agoAdded a stress test which measures the cost of translation.
Nicholas Nethercote [Wed, 14 Dec 2005 05:33:35 +0000 (05:33 +0000)] 
Added a stress test which measures the cost of translation.

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

19 years agoEnsure that f() doesn't get inlined.
Nicholas Nethercote [Wed, 14 Dec 2005 05:33:17 +0000 (05:33 +0000)] 
Ensure that f() doesn't get inlined.

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

19 years agoAdd --vg option to vg_perf, which lets you specify one or more Valgrinds
Nicholas Nethercote [Wed, 14 Dec 2005 02:58:23 +0000 (02:58 +0000)] 
Add --vg option to vg_perf, which lets you specify one or more Valgrinds
to time, and presents their timings in an easy-to-compare way.

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

19 years agowhoops
Nicholas Nethercote [Tue, 13 Dec 2005 22:00:17 +0000 (22:00 +0000)] 
whoops

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

19 years agoAdded some more svn:ignores.
Cerion Armour-Brown [Tue, 13 Dec 2005 21:58:29 +0000 (21:58 +0000)] 
Added some more svn:ignores.

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

19 years agoAdded a --reps option to control how many times each program is run.
Nicholas Nethercote [Tue, 13 Dec 2005 21:55:16 +0000 (21:55 +0000)] 
Added a --reps option to control how many times each program is run.
Also added a better help message.

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

19 years agoremove bogus whitespace
Nicholas Nethercote [Tue, 13 Dec 2005 21:53:39 +0000 (21:53 +0000)] 
remove bogus whitespace

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

19 years agoDie if a performance benchmark is missing.
Nicholas Nethercote [Tue, 13 Dec 2005 21:44:48 +0000 (21:44 +0000)] 
Die if a performance benchmark is missing.

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

19 years agoUse user time instead of wall-clock time.
Nicholas Nethercote [Tue, 13 Dec 2005 20:23:38 +0000 (20:23 +0000)] 
Use user time instead of wall-clock time.

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

19 years agoImprove vg_SP_update_pass() to catch more constant offset cases. Improves
Nicholas Nethercote [Tue, 13 Dec 2005 20:05:00 +0000 (20:05 +0000)] 
Improve vg_SP_update_pass() to catch more constant offset cases.  Improves
performance by 1--3% on several programs on my machine.

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

19 years agoFile recording info about each performance benchmark.
Nicholas Nethercote [Tue, 13 Dec 2005 17:20:24 +0000 (17:20 +0000)] 
File recording info about each performance benchmark.

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

19 years agoRemove nanosleep and adjust iteration count and array size accordingly.
Julian Seward [Tue, 13 Dec 2005 17:13:39 +0000 (17:13 +0000)] 
Remove nanosleep and adjust iteration count and array size accordingly.

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