]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
20 years agoAdd test cases for amd64 vector FP unordered compares.
Julian Seward [Sat, 5 Nov 2005 02:34:06 +0000 (02:34 +0000)] 
Add test cases for amd64 vector FP unordered compares.

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

20 years agoImplement vector FP unordered compares on amd64.
Julian Seward [Sat, 5 Nov 2005 02:33:25 +0000 (02:33 +0000)] 
Implement vector FP unordered compares on amd64.

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

20 years agoOops, this should have been included in r5014.
Julian Seward [Sat, 5 Nov 2005 02:12:28 +0000 (02:12 +0000)] 
Oops, this should have been included in r5014.

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

20 years agoAdd test cases for SSE unordered-compare instructions.
Julian Seward [Sat, 5 Nov 2005 01:57:02 +0000 (01:57 +0000)] 
Add test cases for SSE unordered-compare instructions.

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

20 years agoHandle vector FP unordered compares.
Julian Seward [Sat, 5 Nov 2005 01:55:04 +0000 (01:55 +0000)] 
Handle vector FP unordered compares.

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

20 years agoThe earth's core is a vast mass of molten sse and sse2 instructions.
Julian Seward [Sat, 5 Nov 2005 01:54:07 +0000 (01:54 +0000)] 
The earth's core is a vast mass of molten sse and sse2 instructions.
Occasionally some make their way to the surface and spew out, causing
havoc for miles around.

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

20 years agoReenable FUCOMP %st(0),%st(?).
Julian Seward [Sat, 5 Nov 2005 01:12:18 +0000 (01:12 +0000)] 
Reenable FUCOMP %st(0),%st(?).

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

20 years agoAdd a comment documenting the reason for subtracting one from the IP value
Tom Hughes [Sat, 5 Nov 2005 00:17:21 +0000 (00:17 +0000)] 
Add a comment documenting the reason for subtracting one from the IP value
after each pass of the loop.

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

20 years agoEnable tests for shld/shrd instructions which are now supported on amd64.
Tom Hughes [Sat, 5 Nov 2005 00:10:36 +0000 (00:10 +0000)] 
Enable tests for shld/shrd instructions which are now supported on amd64.

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

20 years agoImplement SHRDv imm8.
Julian Seward [Fri, 4 Nov 2005 20:49:36 +0000 (20:49 +0000)] 
Implement SHRDv imm8.

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

20 years agoPlacate compiler warning.
Julian Seward [Fri, 4 Nov 2005 20:19:09 +0000 (20:19 +0000)] 
Placate compiler warning.

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

20 years agoTest shrd/shld.
Julian Seward [Fri, 4 Nov 2005 20:18:27 +0000 (20:18 +0000)] 
Test shrd/shld.

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

20 years agoImplement shld/shrd on amd64. Total timewasting nightmare, not helped
Julian Seward [Fri, 4 Nov 2005 20:05:57 +0000 (20:05 +0000)] 
Implement shld/shrd on amd64.  Total timewasting nightmare, not helped
by AMD's out-of-range shift behaviour being both undocumented and
bizarre.

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

20 years agoNew irop Iop_MullEven*
Cerion Armour-Brown [Fri, 4 Nov 2005 19:44:48 +0000 (19:44 +0000)] 
New irop Iop_MullEven*
 - a widening un/signed multiply of even lanes

Recast misused irops Iop_MulLo/Hi* as Iop_MullEven*

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

20 years agoRe-enable a load of tests for instructions which VEX now implements.
Tom Hughes [Fri, 4 Nov 2005 18:07:10 +0000 (18:07 +0000)] 
Re-enable a load of tests for instructions which VEX now implements.

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

20 years agoBackout additional space until we decide whether we want it.
Tom Hughes [Fri, 4 Nov 2005 17:18:18 +0000 (17:18 +0000)] 
Backout additional space until we decide whether we want it.

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

20 years agoRemove "pid" to make docs align with reality.
Tom Hughes [Fri, 4 Nov 2005 17:13:24 +0000 (17:13 +0000)] 
Remove "pid" to make docs align with reality.

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

20 years agoAdd an insn_basic test for amd64. This is based on the x86 one so
Tom Hughes [Fri, 4 Nov 2005 17:07:24 +0000 (17:07 +0000)] 
Add an insn_basic test for amd64. This is based on the x86 one so
doesn't test any 64 bit operations yet.

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

20 years agoFix up references to log files names containing "pid" in them and
Tom Hughes [Fri, 4 Nov 2005 16:49:39 +0000 (16:49 +0000)] 
Fix up references to log files names containing "pid" in them and
a few other related items. Patch from James Begley <james@hafro.is>.

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

20 years agoAllow rax/rbx/rcx/rdx (and their narrower counterparts) to be used
Tom Hughes [Fri, 4 Nov 2005 16:46:19 +0000 (16:46 +0000)] 
Allow rax/rbx/rcx/rdx (and their narrower counterparts) to be used
again but only after the high registers are exhausted or (and this is
the important point) if they are explicitly requested.

Also, don't use r8 as it confuses things as we can't tell an explicit
request from a generic request for a byte register.

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

20 years agoFix the amd64 version of gen_insn_test.pl to strip any b/w/d suffix
Tom Hughes [Fri, 4 Nov 2005 15:36:05 +0000 (15:36 +0000)] 
Fix the amd64 version of gen_insn_test.pl to strip any b/w/d suffix
from register names when generating the clobber list as gcc won't
recognise things like r8d but will recognise r8.

This allows us to use the high number integer registers for the tests
which is something Julian asked for ages ago.

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

20 years agoAlso test jecxz.
Julian Seward [Fri, 4 Nov 2005 14:38:48 +0000 (14:38 +0000)] 
Also test jecxz.

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

20 years agoHandle jecxz in addition to jrcxz.
Julian Seward [Fri, 4 Nov 2005 14:34:52 +0000 (14:34 +0000)] 
Handle jecxz in addition to jrcxz.

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

20 years agoAdd missing tag.
Tom Hughes [Fri, 4 Nov 2005 14:25:09 +0000 (14:25 +0000)] 
Add missing tag.

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

20 years agoHandle address-size overrides in the common case (explicit memory references).
Julian Seward [Fri, 4 Nov 2005 14:18:31 +0000 (14:18 +0000)] 
Handle address-size overrides in the common case (explicit memory references).

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

20 years agoMake the tool writing documentation align a bit more closely
Tom Hughes [Fri, 4 Nov 2005 14:11:05 +0000 (14:11 +0000)] 
Make the tool writing documentation align a bit more closely
with reality.

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

20 years agoRemove remaining references to the old tool.h header.
Tom Hughes [Fri, 4 Nov 2005 12:27:58 +0000 (12:27 +0000)] 
Remove remaining references to the old tool.h header.

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

20 years agoTool writing documentation updates from Yao Qi <qiyaoltc@cn.ibm.com>.
Tom Hughes [Fri, 4 Nov 2005 12:17:20 +0000 (12:17 +0000)] 
Tool writing documentation updates from Yao Qi <qiyaoltc@cn.ibm.com>.

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

20 years agoWhen unwinding the stack on x86/amd64 subtract one from the value of
Tom Hughes [Fri, 4 Nov 2005 11:31:33 +0000 (11:31 +0000)] 
When unwinding the stack on x86/amd64 subtract one from the value of
ip before starting a new pass of the loop.

The reason for this is that (except for the first pass of the loop) the
value of ip is actually a return address, which is therefore after the
instruction that was executing at the time. This means that if there is
a boundary in the CFI information at that point we can wind up using the
wrong CFI data to do the next unwind if we do it based on the return
address.

This most commonly happens with a tail call where we wind up using the
data for the next function to do the unwind and getting hopelessly lost.

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

20 years agoRecord a useful nugget from Julian.
Nicholas Nethercote [Thu, 3 Nov 2005 16:24:53 +0000 (16:24 +0000)] 
Record a useful nugget from Julian.

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

20 years agoHandle any number of 0x66 (operand-size-override) prefixes.
Julian Seward [Thu, 3 Nov 2005 14:00:57 +0000 (14:00 +0000)] 
Handle any number of 0x66 (operand-size-override) prefixes.

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

20 years agoTrack API change in vex r1429.
Julian Seward [Thu, 3 Nov 2005 13:46:30 +0000 (13:46 +0000)] 
Track API change in vex r1429.

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

20 years agowibble
Julian Seward [Thu, 3 Nov 2005 13:42:28 +0000 (13:42 +0000)] 
wibble

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

20 years agoAPI change: make the handling of syscall-denoting instructions a bit
Julian Seward [Thu, 3 Nov 2005 13:27:24 +0000 (13:27 +0000)] 
API change: make the handling of syscall-denoting instructions a bit
more general, so as to facilitate handling different combinations of
syscall/int more easily.

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

20 years agoGenerate offsets for all amd64 integer registers.
Julian Seward [Thu, 3 Nov 2005 13:19:33 +0000 (13:19 +0000)] 
Generate offsets for all amd64 integer registers.

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

20 years agoDon't try to honour the ELF interpreter's load address if it is zero.
Julian Seward [Wed, 2 Nov 2005 19:41:21 +0000 (19:41 +0000)] 
Don't try to honour the ELF interpreter's load address if it is zero.

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

20 years agoSplit faultstatus into the platform independent tests and those
Tom Hughes [Wed, 2 Nov 2005 16:15:55 +0000 (16:15 +0000)] 
Split faultstatus into the platform independent tests and those
which are x86 specific. The first three x86 specific ones should
work on amd64 as well so I have added those as amd64 tests.

Note that the x86/amd64 tests will still fail as VEX doesn't
always trigger the right sort of signal for faulting instructions
at the moment.

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

20 years agoRemove the as_mmap and as_shm tests which don't make much sense since
Tom Hughes [Wed, 2 Nov 2005 15:47:43 +0000 (15:47 +0000)] 
Remove the as_mmap and as_shm tests which don't make much sense since
the address space manager was rewritten.

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

20 years agoThe memcheck/tests/sigprocmask test is designed to test that we handle
Tom Hughes [Wed, 2 Nov 2005 15:46:07 +0000 (15:46 +0000)] 
The memcheck/tests/sigprocmask test is designed to test that we handle
the old style sigprocmask system call correctly without corrupting
memory when we copy out the new (larger) signal mask into the user
provided old (smaller) signal mask.

It therefore makes no sense to run it on amd64 or any other platform
which only has the newer rt_sigprocmask system call, and indeed it
wasn't working because we weren't passing the extra argument which
that call expects.

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

20 years agoFix format string in signal mask printing.
Tom Hughes [Wed, 2 Nov 2005 15:32:19 +0000 (15:32 +0000)] 
Fix format string in signal mask printing.

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

20 years agoDisplay signal masks correctly when --trace-signals=yes is used
Tom Hughes [Wed, 2 Nov 2005 15:31:21 +0000 (15:31 +0000)] 
Display signal masks correctly when --trace-signals=yes is used
on 64 bit platforms.

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

20 years agoUpdate EXTRA_DIST to include new results files.
Tom Hughes [Wed, 2 Nov 2005 15:17:43 +0000 (15:17 +0000)] 
Update EXTRA_DIST to include new results files.

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

20 years agoAdd alternate results for memcheck/tests/strchr on amd64.
Tom Hughes [Wed, 2 Nov 2005 15:03:12 +0000 (15:03 +0000)] 
Add alternate results for memcheck/tests/strchr on amd64.

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

20 years agoThe sloppyRXcheck logic in the sync checker was not correct - it was
Tom Hughes [Wed, 2 Nov 2005 14:42:39 +0000 (14:42 +0000)] 
The sloppyRXcheck logic in the sync checker was not correct - it was
simply treating R and X as equivalent but the real problem is that
mappings can appear to have X permission entirely indepenent of anything
else with recent x86 kernels.

If a mapping is inside the (deliberately constrained) code segment then
it will appear to have X permission regardless of whether R or X was asked
for when it was mapped, so what we really need to do is allow the kernel
to add X to any mapping but not to take it away if we were expecting it.

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

20 years agoRemoved memcheck/tests/weirdioctl as it is badly broken and seems
Tom Hughes [Wed, 2 Nov 2005 13:58:39 +0000 (13:58 +0000)] 
Removed memcheck/tests/weirdioctl as it is badly broken and seems
to serve no useful purpose.

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

20 years agoDon't give the heap execute permission - the linux kernel doesn't
Tom Hughes [Wed, 2 Nov 2005 13:02:40 +0000 (13:02 +0000)] 
Don't give the heap execute permission - the linux kernel doesn't
normally give execute permission to memory allocated from the heap
with sbrk.

This also required fixing the smc1 test for amd64 to use mmap to
allocate memory so that it can have execute permission.

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

20 years agoUpdate memcheck/tests/xml1 results.
Tom Hughes [Wed, 2 Nov 2005 13:00:41 +0000 (13:00 +0000)] 
Update memcheck/tests/xml1 results.

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

20 years agoUpdate memcheck/tests/xml1 results.
Tom Hughes [Wed, 2 Nov 2005 13:00:03 +0000 (13:00 +0000)] 
Update memcheck/tests/xml1 results.

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

20 years agoMake the request for space for the interpreter into a hint so that we
Tom Hughes [Tue, 1 Nov 2005 19:46:07 +0000 (19:46 +0000)] 
Make the request for space for the interpreter into a hint so that we
can still proceed if the preferred load address is not available.

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

20 years agoImplement 66 0F 11 = MOVUPD (untested)
Julian Seward [Tue, 1 Nov 2005 18:59:38 +0000 (18:59 +0000)] 
Implement 66 0F 11 = MOVUPD (untested)

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

20 years agoReinstate and extend lackey's functionality (a major overhaul), from
Julian Seward [Tue, 1 Nov 2005 17:52:34 +0000 (17:52 +0000)] 
Reinstate and extend lackey's functionality (a major overhaul), from
Jeroen N. Witmond.  Thanks for that.

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

20 years agoFixed test to not assume that malloc(10) will return 10 nul bytes!
Tom Hughes [Tue, 1 Nov 2005 17:21:03 +0000 (17:21 +0000)] 
Fixed test to not assume that malloc(10) will return 10 nul bytes!

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

20 years agoupdate
Nicholas Nethercote [Tue, 1 Nov 2005 17:15:50 +0000 (17:15 +0000)] 
update

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

20 years agoWhitespace only change (test commit to see if auto-mail-on-commit is
Julian Seward [Tue, 1 Nov 2005 12:32:24 +0000 (12:32 +0000)] 
Whitespace only change (test commit to see if auto-mail-on-commit is
still working).

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

20 years agoIf pdfxmltex bombs, as it so often does, at least cause the build to
Julian Seward [Tue, 1 Nov 2005 03:08:41 +0000 (03:08 +0000)] 
If pdfxmltex bombs, as it so often does, at least cause the build to
come to a halt rather than just hanging.

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

20 years agoUpdate.
Julian Seward [Tue, 1 Nov 2005 03:07:38 +0000 (03:07 +0000)] 
Update.

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

20 years agoMake ULong_width(0) return 1 instead of 1431655765. This stops
Julian Seward [Tue, 1 Nov 2005 02:20:19 +0000 (02:20 +0000)] 
Make ULong_width(0) return 1 instead of 1431655765.  This stops
cachegrind segfaulting if it can't open its output file.

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

20 years agoBuild fixes following recent coredump hackery.
Julian Seward [Tue, 1 Nov 2005 00:42:07 +0000 (00:42 +0000)] 
Build fixes following recent coredump hackery.

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

20 years agoFix a couple of gcc warnings following recent coredumping changes
Julian Seward [Tue, 1 Nov 2005 00:03:40 +0000 (00:03 +0000)] 
Fix a couple of gcc warnings following recent coredumping changes
(r4970).

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

20 years agoGet core dumping working again - the architecture specific code that
Tom Hughes [Mon, 31 Oct 2005 17:05:21 +0000 (17:05 +0000)] 
Get core dumping working again - the architecture specific code that
was in the sigframe module has been moved into the coredump module
where it belongs and things fixed up to compiler again.

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

20 years agoTidy up a couple of format strings.
Julian Seward [Sat, 29 Oct 2005 22:30:47 +0000 (22:30 +0000)] 
Tidy up a couple of format strings.

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

20 years agox86 front end: implement in/out insns.
Julian Seward [Sat, 29 Oct 2005 19:19:51 +0000 (19:19 +0000)] 
x86 front end: implement in/out insns.

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

20 years agoThe version string from --version was being printed to stderr. This
Nicholas Nethercote [Wed, 26 Oct 2005 16:17:46 +0000 (16:17 +0000)] 
The version string from --version was being printed to stderr.  This
commit fixes it to print to stdout.  I added a regression test for this.

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

20 years agoTrawl through bugzilla/users-list and add various bugs.
Julian Seward [Wed, 26 Oct 2005 12:21:16 +0000 (12:21 +0000)] 
Trawl through bugzilla/users-list and add various bugs.

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

20 years agoDon't assume the first statement is an IRMark, since it could instead
Julian Seward [Sun, 23 Oct 2005 12:06:55 +0000 (12:06 +0000)] 
Don't assume the first statement is an IRMark, since it could instead
be part of a self-check.  Instead, copy verbatim any IR preamble
preceding the first IMark.  This stops cachegrind asserting on
self-checking translations.

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

20 years agoUpdate bug status information.
Tom Hughes [Sun, 23 Oct 2005 09:30:35 +0000 (09:30 +0000)] 
Update bug status information.

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

20 years agoEnable Altivec by default if it is available.
Julian Seward [Sat, 22 Oct 2005 12:52:25 +0000 (12:52 +0000)] 
Enable Altivec by default if it is available.

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

20 years agoHandle a few more primops result from running Altivec code.
Julian Seward [Sat, 22 Oct 2005 12:50:43 +0000 (12:50 +0000)] 
Handle a few more primops result from running Altivec code.

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

20 years agoFill in a few missing Altivec cases:
Julian Seward [Sat, 22 Oct 2005 12:49:49 +0000 (12:49 +0000)] 
Fill in a few missing Altivec cases:
- rename Iop_Perm to Iop_Perm8x16
- backend: handle Iop_CmpNEZ8x16
- frontend: for vperm, mask off all irrelevant parts of the steering values

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

20 years agoRemove inefficient and not-completely-general logic in addHRegUse and
Julian Seward [Sat, 22 Oct 2005 12:46:06 +0000 (12:46 +0000)] 
Remove inefficient and not-completely-general logic in addHRegUse and
replace with something general and simpler.

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

20 years agoMinor altivec changes:
Julian Seward [Sat, 22 Oct 2005 02:01:16 +0000 (02:01 +0000)] 
Minor altivec changes:
- vsplt{b,h,w}: guarantee to always produce in-range shifts
- lvs{l,r}: mask second arg to helper so assertion in helper doesn't fire.
  Also pass in offset to dest rather than reg #.

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

20 years agoPass args to match format string.
Julian Seward [Fri, 21 Oct 2005 12:05:05 +0000 (12:05 +0000)] 
Pass args to match format string.

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

20 years agoHandle SHT_NOBITS sections when checking for section overruns. This
Julian Seward [Fri, 21 Oct 2005 02:37:40 +0000 (02:37 +0000)] 
Handle SHT_NOBITS sections when checking for section overruns.  This
fixes a problem where debug info was sometimes not being read on
ppc32.

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

20 years agoDocument bug #114757.
Tom Hughes [Thu, 20 Oct 2005 18:42:26 +0000 (18:42 +0000)] 
Document bug #114757.

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

20 years agoDon't assert if the DWARF line info reader is given so little data that
Tom Hughes [Thu, 20 Oct 2005 18:38:08 +0000 (18:38 +0000)] 
Don't assert if the DWARF line info reader is given so little data that
it can't even read the length of the block - just report an error as we
do if there isn't enough data for the rest of the block. Fix bug #114757.

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

20 years agoDocument bug #114756.
Tom Hughes [Thu, 20 Oct 2005 17:03:53 +0000 (17:03 +0000)] 
Document bug #114756.

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

20 years agoAdd support for the mbind system call on x86 and amd64. Fixes bug #114756.
Tom Hughes [Thu, 20 Oct 2005 17:00:23 +0000 (17:00 +0000)] 
Add support for the mbind system call on x86 and amd64. Fixes bug #114756.

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

20 years agoUnbreak build.
Julian Seward [Thu, 20 Oct 2005 11:56:00 +0000 (11:56 +0000)] 
Unbreak build.

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

20 years agoIncrease the threshold above which new errors are not shown from 300
Julian Seward [Thu, 20 Oct 2005 01:57:29 +0000 (01:57 +0000)] 
Increase the threshold above which new errors are not shown from 300
unique / 30000 total to 1000 unique / 100000 total.  Programs are
generally bigger now than 3 years ago.

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

20 years agoRemove all remaining references to pointercheck. It's sad to see it
Julian Seward [Thu, 20 Oct 2005 01:37:15 +0000 (01:37 +0000)] 
Remove all remaining references to pointercheck.  It's sad to see it
go, but realistically we can't implement it portably, at least without
considerable performance overhead and some additional complexity.

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

20 years agoThe Spin-Doctor arrives in Valgrind-Land: rename --weird-hacks= to
Julian Seward [Thu, 20 Oct 2005 01:09:57 +0000 (01:09 +0000)] 
The Spin-Doctor arrives in Valgrind-Land: rename --weird-hacks= to
--simulation-hints=.  Bwaha.

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

20 years agoIn the spirit of other changes over the past month aimed at supporting
Julian Seward [Thu, 20 Oct 2005 00:31:31 +0000 (00:31 +0000)] 
In the spirit of other changes over the past month aimed at supporting
monster-sized programs better, increase the default freelist volume
from 1M to 5M.  Maybe even that is too small.

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

20 years agoOops, un-break cachegrind regtesting following r4951.
Julian Seward [Thu, 20 Oct 2005 00:30:30 +0000 (00:30 +0000)] 
Oops, un-break cachegrind regtesting following r4951.

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

20 years agorm the skiplist module, as it has been superseded by the AVL-tree
Julian Seward [Thu, 20 Oct 2005 00:09:11 +0000 (00:09 +0000)] 
rm the skiplist module, as it has been superseded by the AVL-tree
based m_oset module.

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

20 years agoClarify the P4 warning message a bit.
Julian Seward [Wed, 19 Oct 2005 23:49:45 +0000 (23:49 +0000)] 
Clarify the P4 warning message a bit.

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

20 years agorm unused var
Julian Seward [Wed, 19 Oct 2005 23:49:20 +0000 (23:49 +0000)] 
rm unused var

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

20 years agoFix make dist (seems to work, but am unsure if this is the right fix).
Julian Seward [Wed, 19 Oct 2005 23:38:22 +0000 (23:38 +0000)] 
Fix make dist (seems to work, but am unsure if this is the right fix).

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

20 years agoMake the usage message a little neater and more self-consistent.
Nicholas Nethercote [Wed, 19 Oct 2005 22:39:40 +0000 (22:39 +0000)] 
Make the usage message a little neater and more self-consistent.

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

20 years agoHalve the size of the fast tt lookup cache. This improves ppc32
Julian Seward [Wed, 19 Oct 2005 11:23:07 +0000 (11:23 +0000)] 
Halve the size of the fast tt lookup cache.  This improves ppc32
performance quite a bit, since the cache is emptied quite often on
ppc32, and a smaller cache is less intrusive in the real machine's L2
cache.  On x86 the change doesn't seem to have much effect.

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

20 years agoUse standard syntax for the rlwinm.
Julian Seward [Wed, 19 Oct 2005 10:14:19 +0000 (10:14 +0000)] 
Use standard syntax for the rlwinm.

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

20 years agoSnap up some easy pickings pointed out by cachegrinding nulgrind on ppc32.
Julian Seward [Wed, 19 Oct 2005 01:32:41 +0000 (01:32 +0000)] 
Snap up some easy pickings pointed out by cachegrinding nulgrind on ppc32.

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

20 years agoReenable a couple more syscalls needed for self-hosting on ppc32,
Julian Seward [Wed, 19 Oct 2005 01:14:22 +0000 (01:14 +0000)] 
Reenable a couple more syscalls needed for self-hosting on ppc32,
which now works.

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

20 years agoChange the core-tool interface so that tools are fully aware of both
Julian Seward [Tue, 18 Oct 2005 12:04:18 +0000 (12:04 +0000)] 
Change the core-tool interface so that tools are fully aware of both
the guest extents for the presented translation and also its original
un-redirected guest address.  These changes are needed in particular
to make cachegrind's code cache management work properly.

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

20 years agoAPI change: pass both the VexGuestExtents and the original
Julian Seward [Tue, 18 Oct 2005 12:01:48 +0000 (12:01 +0000)] 
API change: pass both the VexGuestExtents and the original
pre-redirection guest address to instrumentation functions.

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

20 years agoAdd extra auxiliary data structures which make it possible to quickly
Julian Seward [Tue, 18 Oct 2005 02:30:42 +0000 (02:30 +0000)] 
Add extra auxiliary data structures which make it possible to quickly
find and delete all translations intersecting with small address
ranges (8 k or less, currently).  This makes it possible to simulate
ppc32 icbi instructions in reasonable time, and finally makes the
ppc32 port run at a usable speed.

The scheme is based around partitioning translations into equivalence
classes based on address ranges.  For deletions whose range falls
within a single class, all translations intersecting it can be found
by inspecting just that class and one other.  Given that there are 256
classes, this cuts the cost, relative to scanning the entire TC, by
approximately half that factor (viz, 128), assuming the translations
are distributed evenly over the classes.

The whole business is more complex and difficult than I would like.

A detailed comment will later be added.

Very thorough sanity checking has been added
(sanity_check_eclasses_in_sector).  This is engaged at
--sanity-level=4 and above.

The TT hash function (HASH_TT) has been improved to reduce its
tendency to cluster TT entries in some circumstances.  This has
allowed the TT maximum loading factor to be increased from 66% to 80%
and so the absolute size of the TC (in each sector) to be less than
2^16 entries.  The latter change is important for the fast-deletion
changes.

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

20 years agoAdd a new arena (VG_AR_TTAUX) for holding auxiliary TT/TC structures
Julian Seward [Tue, 18 Oct 2005 02:20:18 +0000 (02:20 +0000)] 
Add a new arena (VG_AR_TTAUX) for holding auxiliary TT/TC structures
(see next commit).

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

20 years agoFix socket stuff on ppc32, so that --log-socket actually works.
Julian Seward [Tue, 18 Oct 2005 02:15:39 +0000 (02:15 +0000)] 
Fix socket stuff on ppc32, so that --log-socket actually works.

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

20 years agoaugment comment
Nicholas Nethercote [Sun, 16 Oct 2005 17:48:09 +0000 (17:48 +0000)] 
augment comment

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

20 years agoRemoved remaining traces of address space padding technology as it
Tom Hughes [Sun, 16 Oct 2005 13:52:50 +0000 (13:52 +0000)] 
Removed remaining traces of address space padding technology as it
is not longer relevant with the new address space manager.

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

20 years agoA small Cachegrind cleanup: previously it was copying some things (eg.
Nicholas Nethercote [Sun, 16 Oct 2005 00:17:37 +0000 (00:17 +0000)] 
A small Cachegrind cleanup:  previously it was copying some things (eg.
instr_size and instr_addr) into Ir events, then later copying those into
instrInfo nodes.  Now it just allocates the instrInfo nodes earlier and
copies them in directly.  This is a bit more concise and easier to
understand.

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