]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
18 years agoRedo the dispatcher's fast-cache mechanism (VG_(tt_fast) et al) to be
Julian Seward [Sun, 11 Feb 2007 05:08:06 +0000 (05:08 +0000)] 
Redo the dispatcher's fast-cache mechanism (VG_(tt_fast) et al) to be
more cache friendly.  This changes the mechanism from being a table of
pointers to (guest address, translated code pairs) to being a table of
pairs (guest address, pointer to translated code).  The effect ranges
from zero up to about 20% performance improvement on memcheck, the
biggest effects being seen for programs which jump around a large
number of blocks of code and whose data set does not fit in L2.

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

18 years agoextra thing
Nicholas Nethercote [Sat, 10 Feb 2007 05:20:03 +0000 (05:20 +0000)] 
extra thing

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

18 years agoOops; make declarations match definitions. So much for C's type system.
Julian Seward [Fri, 9 Feb 2007 17:45:09 +0000 (17:45 +0000)] 
Oops; make declarations match definitions.  So much for C's type system.

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

18 years agoWork around gcc limitations on aix.
Julian Seward [Fri, 9 Feb 2007 02:37:11 +0000 (02:37 +0000)] 
Work around gcc limitations on aix.

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

18 years agoUnbreak aix build.
Julian Seward [Fri, 9 Feb 2007 02:11:06 +0000 (02:11 +0000)] 
Unbreak aix build.

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

18 years agoSpecialise VG_(ssort) for 4-word elements. This removes about 80% of
Julian Seward [Thu, 8 Feb 2007 16:25:56 +0000 (16:25 +0000)] 
Specialise VG_(ssort) for 4-word elements.  This removes about 80% of
all calls to VG_(memcpy).  Thanks to cachegrind for showing somebody
was calling VG_(memcpy) a huge number of times, and to callgrind for
finding out who :-)

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

18 years agoUpdate.
Julian Seward [Thu, 8 Feb 2007 12:42:11 +0000 (12:42 +0000)] 
Update.

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

18 years agoHandle type MPI_PACKED and associated functions PMPI_Packed and
Julian Seward [Thu, 8 Feb 2007 12:05:03 +0000 (12:05 +0000)] 
Handle type MPI_PACKED and associated functions PMPI_Packed and
PMPI_Unpacked.

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

18 years agoAdd cg_merge, a program for merging (adding) cachegrind output files,
Julian Seward [Thu, 8 Feb 2007 11:31:03 +0000 (11:31 +0000)] 
Add cg_merge, a program for merging (adding) cachegrind output files,
and associated documentation.

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

18 years agoAdd a new flag --cachegrind-log-file to cg_annotate, which tells it
Julian Seward [Thu, 8 Feb 2007 06:47:19 +0000 (06:47 +0000)] 
Add a new flag --cachegrind-log-file to cg_annotate, which tells it
precisely the name of the profile data file it should use (instead of
assuming cachegrind.out.<pid> where <pid> is specified by the --<pid>
flag).  The old mechanism is still supported though.

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

18 years ago* Add new flag --cachegrind-out-file to specify the output file
Julian Seward [Wed, 7 Feb 2007 19:55:30 +0000 (19:55 +0000)] 
* Add new flag --cachegrind-out-file to specify the output file
  basename to be something other than "cachegrind.out".

* Observe the core-supplied --log-file-qualifier, if specified,
  in creation of output file names.

* To make the above work, move most of the stuff in cg_pre_clo_init
  into cg_post_clo_init, so that the core's determination of the
  log file qualifier, if any, is done by the time cachegrind comes
  to process its arguments.

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

18 years agoMake VG_(clo_log_file_qualifier) tool-visible.
Julian Seward [Wed, 7 Feb 2007 19:50:55 +0000 (19:50 +0000)] 
Make VG_(clo_log_file_qualifier) tool-visible.

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

18 years agos/IRBB/IRSB/
Nicholas Nethercote [Mon, 5 Feb 2007 23:23:55 +0000 (23:23 +0000)] 
s/IRBB/IRSB/

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

18 years agoSimplify some Perl.
Nicholas Nethercote [Fri, 2 Feb 2007 23:23:01 +0000 (23:23 +0000)] 
Simplify some Perl.

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

18 years agoUpdate
Julian Seward [Fri, 2 Feb 2007 02:36:30 +0000 (02:36 +0000)] 
Update

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

18 years agoupdate. hopefully I may backport this to 3.2.x soon.
Dirk Mueller [Wed, 31 Jan 2007 23:35:34 +0000 (23:35 +0000)] 
update. hopefully I may backport this to 3.2.x soon.

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

18 years agoimplement support for AT_FDCWD in openat()
Dirk Mueller [Wed, 31 Jan 2007 23:06:08 +0000 (23:06 +0000)] 
implement support for AT_FDCWD in openat()

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

18 years agoMake SSE-1 friendly.
Julian Seward [Tue, 30 Jan 2007 23:16:32 +0000 (23:16 +0000)] 
Make SSE-1 friendly.

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

18 years agoMerge 3.2.3 release notes into trunk.
Nicholas Nethercote [Tue, 30 Jan 2007 05:18:38 +0000 (05:18 +0000)] 
Merge 3.2.3 release notes into trunk.

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

18 years agoUpdate.
Julian Seward [Mon, 29 Jan 2007 01:09:13 +0000 (01:09 +0000)] 
Update.

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

18 years agoAdd regtest against vex cse failure that surfaced in 3.2.2.
Julian Seward [Mon, 29 Jan 2007 00:52:43 +0000 (00:52 +0000)] 
Add regtest against vex cse failure that surfaced in 3.2.2.

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

18 years ago__stpcpy_chk: sync with Dirk's original proposal, and show origins
Julian Seward [Sun, 28 Jan 2007 06:32:01 +0000 (06:32 +0000)] 
__stpcpy_chk: sync with Dirk's original proposal, and show origins

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

18 years agoupdate
Nicholas Nethercote [Sat, 27 Jan 2007 02:05:38 +0000 (02:05 +0000)] 
update

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

18 years agoUpdate.
Julian Seward [Sat, 27 Jan 2007 00:51:03 +0000 (00:51 +0000)] 
Update.

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

18 years agoIntercept __stpcpy_chk. (Dirk Mueller)
Julian Seward [Sat, 27 Jan 2007 00:49:44 +0000 (00:49 +0000)] 
Intercept __stpcpy_chk.  (Dirk Mueller)

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

18 years agoupdate
Nicholas Nethercote [Tue, 23 Jan 2007 06:20:43 +0000 (06:20 +0000)] 
update

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

18 years agoAdd 3.2.2 release notes to trunk's NEWS file.
Nicholas Nethercote [Tue, 23 Jan 2007 05:58:52 +0000 (05:58 +0000)] 
Add 3.2.2 release notes to trunk's NEWS file.

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

18 years agoAdd item.
Nicholas Nethercote [Tue, 23 Jan 2007 05:34:38 +0000 (05:34 +0000)] 
Add item.

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

18 years agoAvoid duplication.
Nicholas Nethercote [Tue, 23 Jan 2007 05:31:20 +0000 (05:31 +0000)] 
Avoid duplication.

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

18 years agoAnother ifort 9.1 suppression (Ashley Pittman)
Julian Seward [Mon, 22 Jan 2007 15:14:56 +0000 (15:14 +0000)] 
Another ifort 9.1 suppression (Ashley Pittman)

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

18 years agoAdd missing item.
Nicholas Nethercote [Mon, 22 Jan 2007 03:21:27 +0000 (03:21 +0000)] 
Add missing item.

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

18 years agoAdd a test that very long function names are safely truncated in
Julian Seward [Fri, 19 Jan 2007 20:28:44 +0000 (20:28 +0000)] 
Add a test that very long function names are safely truncated in
memcheck's XML output.

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

18 years agoAdd a test for rc{l,r}{bwlq} on amd64. (from Emmanuel Thomé)
Julian Seward [Fri, 19 Jan 2007 20:09:21 +0000 (20:09 +0000)] 
Add a test for rc{l,r}{bwlq} on amd64.  (from Emmanuel Thomé)

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

18 years agoIntercept mempcpy also in ld.so.1.
Julian Seward [Thu, 18 Jan 2007 18:01:45 +0000 (18:01 +0000)] 
Intercept mempcpy also in ld.so.1.

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

18 years agoSync with AUTHORS.
Julian Seward [Thu, 18 Jan 2007 02:19:05 +0000 (02:19 +0000)] 
Sync with AUTHORS.

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

18 years agoUpdate.
Julian Seward [Thu, 18 Jan 2007 02:18:48 +0000 (02:18 +0000)] 
Update.

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

18 years agoEnable the pselect6 wrapper on amd64-linux.
Julian Seward [Thu, 18 Jan 2007 00:13:24 +0000 (00:13 +0000)] 
Enable the pselect6 wrapper on amd64-linux.

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

18 years agoIntercept _intel_fast_memcpy in the main executable. Partial fix for
Julian Seward [Tue, 16 Jan 2007 21:42:28 +0000 (21:42 +0000)] 
Intercept _intel_fast_memcpy in the main executable.  Partial fix for
#139667.

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

18 years agoMake sse1-friendly.
Julian Seward [Tue, 16 Jan 2007 20:01:15 +0000 (20:01 +0000)] 
Make sse1-friendly.

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

18 years agoAdd tests to check that memcheck does not give a false error for 'xor
Julian Seward [Tue, 16 Jan 2007 19:15:19 +0000 (19:15 +0000)] 
Add tests to check that memcheck does not give a false error for 'xor
%reg,%reg' (in various forms) when %reg contains undefined data.

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

18 years agoInline a bunch of helper functions, in an attempt to minimise
Julian Seward [Tue, 16 Jan 2007 05:35:46 +0000 (05:35 +0000)] 
Inline a bunch of helper functions, in an attempt to minimise
extraneous frames in backtraces created by the library.

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

18 years agoWhen '-d' (one or more) is specified, disallow the client from closing
Julian Seward [Sat, 13 Jan 2007 22:27:51 +0000 (22:27 +0000)] 
When '-d' (one or more) is specified, disallow the client from closing
fd 2 (stderr) since that's what m_debuglog writes to, and the
resulting disappearance of the debug log can be confusing.

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

18 years agoUpdate.
Julian Seward [Sat, 13 Jan 2007 00:25:23 +0000 (00:25 +0000)] 
Update.

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

18 years agoupdate
Nicholas Nethercote [Sat, 13 Jan 2007 00:03:06 +0000 (00:03 +0000)] 
update

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

18 years agoFix a bug reported by Bruce Lowekamp involving the interaction of
Nicholas Nethercote [Fri, 12 Jan 2007 23:59:50 +0000 (23:59 +0000)] 
Fix a bug reported by Bruce Lowekamp involving the interaction of
--gen-suppressions with leak checking.  Added a regtest for it.

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

18 years agoHandle DW_CFA_undefined (produced by PathScale 2.4 on amd64-linux)
Julian Seward [Fri, 12 Jan 2007 19:21:22 +0000 (19:21 +0000)] 
Handle DW_CFA_undefined (produced by PathScale 2.4 on amd64-linux)

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

18 years agoML_(read_callframe_info_dwarf2): deal better with CIEs with no
Julian Seward [Fri, 12 Jan 2007 19:03:19 +0000 (19:03 +0000)] 
ML_(read_callframe_info_dwarf2): deal better with CIEs with no
augmentation (has to do with read_encoded_Addr).  This "fix" is a
kludge and may be replaced in future by something cleaner.  See
extensive comment addition for the whole sorry tale.

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

18 years agoIn struct _SegInfo, rename field 'size' to 'text_size' so as to be
Julian Seward [Thu, 11 Jan 2007 21:56:20 +0000 (21:56 +0000)] 
In struct _SegInfo, rename field 'size' to 'text_size' so as to be
consistent with all the other 'foo_start_avma'/'foo_size' pairings.

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

18 years agoIn struct _SegInfo, rename field 'offset' to 'text_bias'.
Julian Seward [Thu, 11 Jan 2007 20:11:51 +0000 (20:11 +0000)] 
In struct _SegInfo, rename field 'offset' to 'text_bias'.

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

18 years agoNon-functional change: rename a bunch of variables and field names
Julian Seward [Thu, 11 Jan 2007 19:42:11 +0000 (19:42 +0000)] 
Non-functional change: rename a bunch of variables and field names
that hold various kinds of addresses during debuginfo reading, so as
to make it easier to understand.  See comment at top of debuginfo.c.

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

18 years agoMerge r6504 (ifort 9.1 on amd64 suppression)
Julian Seward [Wed, 10 Jan 2007 19:30:19 +0000 (19:30 +0000)] 
Merge r6504 (ifort 9.1 on amd64 suppression)

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

18 years agoGenerate valid XML even for very long fn names - always ensure tags
Julian Seward [Wed, 10 Jan 2007 15:42:15 +0000 (15:42 +0000)] 
Generate valid XML even for very long fn names - always ensure tags
have matching closing tags.

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

18 years agoRegtest for FXSAVE on amd64.
Julian Seward [Wed, 10 Jan 2007 04:57:27 +0000 (04:57 +0000)] 
Regtest for FXSAVE on amd64.

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

18 years agoUpdate
Julian Seward [Tue, 9 Jan 2007 17:09:59 +0000 (17:09 +0000)] 
Update

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

18 years agoML_(generic_PRE_sys_mmap): In the case of a hinted mapping (for the
Julian Seward [Tue, 9 Jan 2007 16:47:20 +0000 (16:47 +0000)] 
ML_(generic_PRE_sys_mmap): In the case of a hinted mapping (for the
client) which aspacemgr accepts at the hint address but the kernel
declines, try again as a non-hinted mapping.  Fixes ld.so mapping
failures observed on ppc32-linux, although the problem potentially
applies to all Linux targets.

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

18 years agoUpdate copyright dates.
Julian Seward [Mon, 8 Jan 2007 06:01:59 +0000 (06:01 +0000)] 
Update copyright dates.

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

18 years agoUpdate.
Julian Seward [Mon, 8 Jan 2007 05:55:22 +0000 (05:55 +0000)] 
Update.

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

18 years agoUpdate for 2007.
Julian Seward [Mon, 8 Jan 2007 05:53:25 +0000 (05:53 +0000)] 
Update for 2007.

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

18 years agoMerge r6480 (parse_procselfmaps: don't hand zero-length mappings to
Julian Seward [Sun, 7 Jan 2007 02:03:01 +0000 (02:03 +0000)] 
Merge r6480 (parse_procselfmaps: don't hand zero-length mappings to
*record_mapping)

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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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