]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
18 years agoUpdate expected output.
Julian Seward [Tue, 17 Oct 2006 11:08:12 +0000 (11:08 +0000)] 
Update expected output.

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

18 years agoMerge r6207:
Julian Seward [Tue, 17 Oct 2006 02:30:17 +0000 (02:30 +0000)] 
Merge r6207:

Make vg_perf work on AIX, by using the POSIX-portability flag for
/usr/bin/time.

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

18 years agoMerge r6201: Fix compile warning on aix.
Julian Seward [Tue, 17 Oct 2006 02:28:53 +0000 (02:28 +0000)] 
Merge r6201: Fix compile warning on aix.

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

18 years agoMerge r6205:
Julian Seward [Tue, 17 Oct 2006 02:27:41 +0000 (02:27 +0000)] 
Merge r6205:

AIX requires that in the case of MAP_ANONYMOUS, fildes must be -1.

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

18 years agoUpdate 'expected' default translation size (partial merge of r6214).
Julian Seward [Tue, 17 Oct 2006 02:25:50 +0000 (02:25 +0000)] 
Update 'expected' default translation size (partial merge of r6214).

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

18 years agoDon't use -C0 for diff; apparently this is a GNU-ism.
Julian Seward [Tue, 17 Oct 2006 02:24:51 +0000 (02:24 +0000)] 
Don't use -C0 for diff; apparently this is a GNU-ism.

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

18 years agoUpdate expected translation sizes, + whitespace changes (??)
Julian Seward [Tue, 17 Oct 2006 02:24:18 +0000 (02:24 +0000)] 
Update expected translation sizes, + whitespace changes (??)

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

18 years agoTrack VG_(am_find_nsegment) const-ness change.
Julian Seward [Tue, 17 Oct 2006 02:23:23 +0000 (02:23 +0000)] 
Track VG_(am_find_nsegment) const-ness change.

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

18 years agoMerge r6216:
Julian Seward [Tue, 17 Oct 2006 02:21:55 +0000 (02:21 +0000)] 
Merge r6216:

Fix all the places where gcc complains about casts from pointers
(presumably 64 bit) to integers of different size (in this case,
32-bit int).  This makes it compile cleanly on 64-bit AIX and also
means it doesn't crash :-)

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

18 years agoMerge r6214 (some parts):
Julian Seward [Tue, 17 Oct 2006 02:21:17 +0000 (02:21 +0000)] 
Merge r6214 (some parts):

Futz with the estimated-translation sizes to make them more plausible [..]

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

18 years agoMerge from branches/AIX5:
Julian Seward [Tue, 17 Oct 2006 02:16:44 +0000 (02:16 +0000)] 
Merge from branches/AIX5:
- AIX5 support
- get rid of VG_(nanosleep)
- track SysRes changes

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

18 years agoTrack SysRes change.
Julian Seward [Tue, 17 Oct 2006 02:15:17 +0000 (02:15 +0000)] 
Track SysRes change.

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

18 years agoChange authorship.
Julian Seward [Tue, 17 Oct 2006 02:11:55 +0000 (02:11 +0000)] 
Change authorship.

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

18 years agoFinal merges from branches/AIX5; mostly tracking of SysRes change.
Julian Seward [Tue, 17 Oct 2006 02:10:42 +0000 (02:10 +0000)] 
Final merges from branches/AIX5; mostly tracking of SysRes change.

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

18 years agoMerge r6217 (also comment cosmetics):
Julian Seward [Tue, 17 Oct 2006 02:08:26 +0000 (02:08 +0000)] 
Merge r6217 (also comment cosmetics):

Use 'ctr' rather than 'lr' for indirect jumps, so as not to trash the
branch predictor(s) for returns from generated code.  Makes a big
difference on ppc970 (and POWER4).

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

18 years agoTrack VG_(am_find_nsegment) const-ness change.
Julian Seward [Tue, 17 Oct 2006 02:05:14 +0000 (02:05 +0000)] 
Track VG_(am_find_nsegment) const-ness change.

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

18 years agoMerge r6159 (parts of):
Julian Seward [Tue, 17 Oct 2006 02:03:11 +0000 (02:03 +0000)] 
Merge r6159 (parts of):

Minor build-system adjustments, mostly.

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

18 years agoMerge r6157:
Julian Seward [Tue, 17 Oct 2006 02:01:12 +0000 (02:01 +0000)] 
Merge r6157:

- add extra fields to ThreadOSState to make thread cancellation sort-of
  work on AIX5

- add function VG_(count_runnable_threads)

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

18 years agoMerge r6156:
Julian Seward [Tue, 17 Oct 2006 02:00:29 +0000 (02:00 +0000)] 
Merge r6156:

AIX5 support.  No changes in logic; just better factorisation of what
is already here.

- add AIX definitions for VG_UCONTEXT_INSTR_PTR et al

- add abstractions VKI_SIGINFO_si_addr and VKI_SIGINFO_si_pid
  to enable the rest of the code to be uniform

- track other minor changes: SysRes, VG_(am_find_nsegment)
  constness, rearrangement of VG_(sigtimedwait).

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

18 years agoMerge r6154:
Julian Seward [Tue, 17 Oct 2006 01:59:30 +0000 (01:59 +0000)] 
Merge r6154:

Track SysRes change, and remove unused stuff in header.  Perhaps
this should be folded into m_initimg in the fullness of time.

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

18 years agoMerge r6153: Add client startup code for AIX5.
Julian Seward [Tue, 17 Oct 2006 01:54:54 +0000 (01:54 +0000)] 
Merge r6153: Add client startup code for AIX5.

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

18 years agoMerge r6152: Add dummy cases for AIX5.
Julian Seward [Tue, 17 Oct 2006 01:54:20 +0000 (01:54 +0000)] 
Merge r6152: Add dummy cases for AIX5.

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

18 years agoMerge r6150 and 6151:
Julian Seward [Tue, 17 Oct 2006 01:53:34 +0000 (01:53 +0000)] 
Merge r6150 and 6151:
- track SysRes changes
- add AIX support

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

18 years agoMerge r6149:
Julian Seward [Tue, 17 Oct 2006 01:52:05 +0000 (01:52 +0000)] 
Merge r6149:

Generalise the machinery developed for function intercepts/wrapping
ppc64-linux, in which we have to deal with the big extra complexity
resulting from TOC pointers.  This generalises it to work in 32-bit
mode too.

Add helpers to deal with AIX stack redzones.

Track VG_(am_find_nsegment) constness change and other minor
changes to the m_aspacemgr interface.

(All platforms): use the new VexMiscInfo structure to tell VEX about
host and guest ABI conventions.

This module could do with further tidying up and documentation.

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

18 years agoMerge r6148:
Julian Seward [Tue, 17 Oct 2006 01:51:24 +0000 (01:51 +0000)] 
Merge r6148:

Minor adjustments to the scheduler, mostly cosmetic.

- rename VG_(kill_thread) to VG_(get_thread_out_of_syscall), which
  is what it actually does.

- Remove 'semaphore' terminology in places and use 'lock' instead.

- Give an extra 'HChar* who' arg to VG_(set_running) and
  VG_(set_sleeping), which is printed when --trace-sched=yes.
  This makes it easier to make sense of lock ownership changes
  from the debug output.

- various other improvements to debug printing

- add a kludge to encourage the AIX scheduler to switch threads
  more often when more than one is runnable (am not claiming to
  understand this); otherwise CPU starvation can appear to happen

- more assertions in sema.c (the pipe-based lock); cycle the token
  through 'A' to 'Z' to make strace/truss output more understandable;
  fix longstanding bug wherein sema_down() tries to read two bytes
  even though sema_up only writes one.

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

18 years agoMerge r6146:
Julian Seward [Tue, 17 Oct 2006 01:50:31 +0000 (01:50 +0000)] 
Merge r6146:

Generally tidy up, and add bindings for both gcc and xlc's C/C++
libraries on AIX.

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

18 years agoMerge r6143: Deal with ppc{32,64}-aix5.
Julian Seward [Tue, 17 Oct 2006 01:49:50 +0000 (01:49 +0000)] 
Merge r6143: Deal with ppc{32,64}-aix5.

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

18 years agoMerge r6142:
Julian Seward [Tue, 17 Oct 2006 01:48:41 +0000 (01:48 +0000)] 
Merge r6142:

Minor enhancements, including dealing with 6-digit PIDs, dealing with
object names of the form "foo.a(bar.o)", and removing debuglog level
zero output.

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

18 years agoMerge r6141: Update
Julian Seward [Tue, 17 Oct 2006 01:48:02 +0000 (01:48 +0000)] 
Merge r6141: Update

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

18 years agoMerge r6140 (some of):
Julian Seward [Tue, 17 Oct 2006 01:47:30 +0000 (01:47 +0000)] 
Merge r6140 (some of):

- track SysRes changes

- track VG_(am_find_nsegment) const-ness change

- increase number of client syscall args supported from 6 to 8

- simplify type SyscallStatus.  Simply hold a copy of the SysRes
  for the syscall rather than have this be a data structure
  incorporating something very similar to the fields of a SysRes,
  and more besides.  Change various macros in priv_types_n_macros.h
  to match.

- syswrap-main.c: instantiate the various impedance-matching
  functions for AIX.

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

18 years agoMerge r6139:
Julian Seward [Tue, 17 Oct 2006 01:46:55 +0000 (01:46 +0000)] 
Merge r6139:

- Minor changes for mpxlc

- kludge; add option "initkludge" to cause PMPI_Init to return
  &mpiwrap_walk_type_EXTERNALLY_VISIBLE
  and adjust mpiwrap_type_test.c accordingly

and also add an export script so that libmpiwrap.so is built
correctly on AIX5 (r????).

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

18 years agoMerge r6138:
Julian Seward [Tue, 17 Oct 2006 01:44:36 +0000 (01:44 +0000)] 
Merge r6138:

Convert some VG_ names (global visibility) into ML_s (module scope).

and also handle Z-encoded 'ZL' == (   and 'ZR' == )
for intercept/wrapper fn names

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

18 years agoMerge r6136:
Julian Seward [Tue, 17 Oct 2006 01:42:40 +0000 (01:42 +0000)] 
Merge r6136:

Track SysRes change; support bigpage allocation on AIX; make the
client-arena superblocks much bigger on AIX.

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

18 years agoThis should have been part of r6271.
Julian Seward [Tue, 17 Oct 2006 01:42:00 +0000 (01:42 +0000)] 
This should have been part of r6271.

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

18 years agoMerge r6134:
Julian Seward [Tue, 17 Oct 2006 01:41:17 +0000 (01:41 +0000)] 
Merge r6134:

Accumulate statistics about the number of searches in the errors and
suppressions lists, and rearrange the suppressions list when searching
to reduce cost of future searches.

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

18 years agoMerge r6133:
Julian Seward [Tue, 17 Oct 2006 01:40:33 +0000 (01:40 +0000)] 
Merge r6133:

Inline stackPush and stackPop and placate gcc's resulting concerns
about uninitialised variables.

and also change ownership.

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

18 years agoMerge r6132:
Julian Seward [Tue, 17 Oct 2006 01:39:30 +0000 (01:39 +0000)] 
Merge r6132:

Minor changes for redirection on AIX.  The only significant change is
that it now checks for, warns about and disallows, attempts to
redirect to, or wrap with, a function for which no TOC pointer can be
found, since that would be really asking for trouble (a segfault).

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

18 years agoMerge r6131:
Julian Seward [Tue, 17 Oct 2006 01:38:48 +0000 (01:38 +0000)] 
Merge r6131:

Change the SysRes type so as to represent both the error value and the
non-error result at the same time.

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

18 years agoMerge r6130:
Julian Seward [Tue, 17 Oct 2006 01:38:13 +0000 (01:38 +0000)] 
Merge r6130:

- AIX implementations of various stuff, nothing surprising.

- For all platforms: make VG_(read) and VG_(write) return (negative)
  actual error values rather than producing -1 for all failures.

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

18 years agoMerge r6129:
Julian Seward [Tue, 17 Oct 2006 01:37:10 +0000 (01:37 +0000)] 
Merge r6129:

Changes to support XCOFF:

- allow modules to have 'member names' as well as file names.  A member
  name is a "foo.o" name inside a "bar.a"; necessary as AIX
  keeps all its dynamic libraries in .a files.

- rename the type RiLoc to DiLoc (this holds a line number indication).
  No idea why it was called RiLoc in the first place.

- trace changes in type SysRes

- implement VG_(di_aix5_notify_segchange)

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

18 years agoMerge r6128:
Julian Seward [Tue, 17 Oct 2006 01:36:37 +0000 (01:36 +0000)] 
Merge r6128:

Interface changes for m_debuginfo:
- new fn VG_(di_aix5_notify_segchange) to notify XCOFF loads/unloads
- new fn VG_(lookup_symbol_SLOW) for looking up the address of a fn
  given its name and soname

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

18 years agoMerge r6127: Extend for AIX5. Nothing surprising here.
Julian Seward [Tue, 17 Oct 2006 01:35:58 +0000 (01:35 +0000)] 
Merge r6127: Extend for AIX5.  Nothing surprising here.

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

18 years agoMerge r6126:
Julian Seward [Tue, 17 Oct 2006 01:34:57 +0000 (01:34 +0000)] 
Merge r6126:

New option --sym-offsets=yes|no [no], which causes all symbols to be
shown in the form 'name+offset'.  Mostly useful for debugging Valgrind
itself.

Also move command-line-error functions from m_main into m_options.

[Will move them back shortly.]

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

18 years agoMerge r6125: Function-wrapping macros and associated stuff, for AIX.
Julian Seward [Tue, 17 Oct 2006 01:32:48 +0000 (01:32 +0000)] 
Merge r6125: Function-wrapping macros and associated stuff, for AIX.

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

18 years agoMerge r6123:
Julian Seward [Tue, 17 Oct 2006 01:31:58 +0000 (01:31 +0000)] 
Merge r6123:

Extensions for unwinding stacks on ppc32-aix5 and ppc64-aix5.  Also,
extend the mechanism developed for ppc64-linux for fishing return
addresses out of the thread's redirection-stack when needed.

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

18 years agoMerge r6121: Don't define uchar; it might already be defined.
Julian Seward [Tue, 17 Oct 2006 01:31:27 +0000 (01:31 +0000)] 
Merge r6121: Don't define uchar; it might already be defined.

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

18 years agoMerge r6120:
Julian Seward [Tue, 17 Oct 2006 01:30:47 +0000 (01:30 +0000)] 
Merge r6120:

Get rid of VG_(sigtimedwait) and replace it a simpler version,
VG_(sigtimedwait_zero), which polls for signals and returns
immediately.  AIX doesn't have a sigtimedwait syscall, so in that case
try and implement VG_(sigtimedwait_zero) using various other signal
syscalls.

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

18 years agoMerge r6119:
Julian Seward [Tue, 17 Oct 2006 01:30:07 +0000 (01:30 +0000)] 
Merge r6119:

Changes to this interface to facilitate actions needed by AIX5.

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

18 years agoMerge r6113:
Julian Seward [Tue, 17 Oct 2006 01:28:48 +0000 (01:28 +0000)] 
Merge r6113:

Various minor changes to make these compile on AIX5.

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

18 years agoMerge r6112:
Julian Seward [Tue, 17 Oct 2006 01:28:10 +0000 (01:28 +0000)] 
Merge r6112:

Changes resulting from porting to AIX5:

- Auxiliary primary map handling has been redone, so that the
  performance penalty for hitting memory above the magic 32G limit is
  much reduced, and also the number of usable maps is limited only by
  how much memory is available.  The current code has been tested on
  64-bit AIX for processes up to about 8GB in size.

  The auxiliary primary maps are now stored in an OSet, "auxmap_L2".
  However, looking up in an OSet for each memory reference is
  expensive.  So the OSet is 'fronted' by 24-entry array which holds
  pointers to the 24 most recently used auxiliary primary maps.
  Accesses to this array are made faster by incrementally rearranging
  it on every lookup (if the requested map is found in the array, it
  is moved one element closer to the start of the array).

  Logically speaking, auxmap_L1 is a cache of auxmap_L2.  The L2-L1
  relationship is one of inclusion; iow L2 is not a victim cache.

  There is extensive new sanity check code for these structures.

- Along with the auxmap changes are semi-fast cases in mc_LOADVn_slow
  and mc_STOREVn_slow.  These catch naturally aligned, word-size loads
  which fall into addressible memory, and handle them directly rather
  than in a byte-by-byte fashion.

- Fix longstanding error with alignment checks in
  {new,die}_mem_stack_N.  Previously, these checked the alignment of
  the new SP value without taking the stack redzone size into account.
  This is only safe if the redzone size is 8-aligned.  The right thing
  to do is check alignment after adding on the redzone size.

- Add a new mechanism which allows specification, on the command line,
  of address ranges which memcheck is to 'ignore'.  Meaning that it
  regards all writes to those ranges as acceptable and all reads from
  those ranges as acceptable and returning initialised data.  This is
  done without disturbing the existing finally-balanced bitmap
  machinery.  Instead, in mc_record_address_error, just ignore the
  error if the address falls inside an ignored-range.

  There is a new command-line flag --ignore-ranges= to specify
  the address ranges.  Currently up to 4 non-overlapping ranges may
  be specified.

  This kind of thing is useful if you want to do some strange thing
  like map a high-performance network card into memory and can't be
  bothered to tell memcheck about it through the official channels
  (intercepting syscalls/ioctls and telling aspacem about them.)

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

18 years agoMerge r6111:
Julian Seward [Tue, 17 Oct 2006 01:27:13 +0000 (01:27 +0000)] 
Merge r6111:

AIX5 changes.  Perhaps this isn't quite the right place to add a
sqrt() replacement.  Hmm.

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

18 years agoMerge r6109:
Julian Seward [Tue, 17 Oct 2006 01:26:12 +0000 (01:26 +0000)] 
Merge r6109:

Various minor changes to make these compile on AIX5.

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

18 years agoMerge r6108:
Julian Seward [Tue, 17 Oct 2006 01:25:13 +0000 (01:25 +0000)] 
Merge r6108:

Supply our own random number generator; else this test produces different
results on different platforms.

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

18 years agoMerge r6105:
Julian Seward [Tue, 17 Oct 2006 01:23:57 +0000 (01:23 +0000)] 
Merge r6105:

Refactor the address space manager, so there are two implementations
of it, plus a small common supporting library.

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

18 years agoMerge r6102/6103:
Julian Seward [Tue, 17 Oct 2006 01:23:07 +0000 (01:23 +0000)] 
Merge r6102/6103:

A new module ("Initial Image"), whose purpose is to set up the
client's initial memory and register state before running it.  On
Linux this does all the stack/auxv/envp stuff which was previously
done in m_main.  On AIX5 the kernel prepares the process' initial
image, so there's nothing to be done there.  But LD_PRELOAD doesn't
work on AIX5, so m_initimg sets up the client so as to start by
running a short bit of code which gets the kernel to load in the core
and tool preloads and then start the client.

As a result of this, m_main gets a lot shorter and cleaner.

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

18 years agoMerge r6101:
Julian Seward [Tue, 17 Oct 2006 01:08:19 +0000 (01:08 +0000)] 
Merge r6101:

Syscall wrappers for AIX5.  Unfortunately they duplicate some of the
stuff in syswrap-generic.c since making that compile on AIX is just
too difficult.

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

18 years agoMerge r6100:
Julian Seward [Tue, 17 Oct 2006 01:07:21 +0000 (01:07 +0000)] 
Merge r6100:

Code for reading XCOFF32 and XCOFF64 symbol tables and line numbers.

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

18 years agoMerge r6099:
Julian Seward [Tue, 17 Oct 2006 01:06:44 +0000 (01:06 +0000)] 
Merge r6099:

Dispatchers for AIX5.

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

18 years agoMerge r6097:
Julian Seward [Tue, 17 Oct 2006 01:05:57 +0000 (01:05 +0000)] 
Merge r6097:

Stub implementation for AIX5.

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

18 years agoMerge r6095:
Julian Seward [Tue, 17 Oct 2006 01:05:09 +0000 (01:05 +0000)] 
Merge r6095:

A minimal sigframe implementation for AIX5.  Works but does not
provide valid siginfo or ucontext to handlers.

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

18 years agoMerge r6092 and some of r6093:
Julian Seward [Tue, 17 Oct 2006 01:04:15 +0000 (01:04 +0000)] 
Merge r6092 and some of r6093:

AIX5 kernel-interface stuff.

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

18 years agoMerge r6088:
Julian Seward [Tue, 17 Oct 2006 00:58:07 +0000 (00:58 +0000)] 
Merge r6088:

Baseline suppressions for AIX5.

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

18 years agoMerge r6087:
Julian Seward [Tue, 17 Oct 2006 00:57:24 +0000 (00:57 +0000)] 
Merge r6087:

Changes for AIX5.  No surprises here.  New stuff:

- generates automake symbols of name VGP_platform and VGO_os,
  whereas previously it just made VG_platform

- Do checks to enable building MPI wrapper library for both the
  primary and secondary target.

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

18 years agoMerge r6086:
Julian Seward [Tue, 17 Oct 2006 00:56:43 +0000 (00:56 +0000)] 
Merge r6086:

Makefile.am changes for AIX5.  Almost all boilerplate stuff fitting in
with the existing factorisation scheme.  The only change of interest
is that configure.in now generates automake symbols of name
VGP_platform and VGO_os, whereas previously it just made VG_platform
which was a bit inconsistent with the VGP/VGO/VGA scheme used in C
code.

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

18 years agoMerge r6106 (rename the Linux launcher and add an AIX5 one.)
Julian Seward [Tue, 17 Oct 2006 00:39:31 +0000 (00:39 +0000)] 
Merge r6106 (rename the Linux launcher and add an AIX5 one.)

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

18 years agoupdate suppression file
Dirk Mueller [Mon, 16 Oct 2006 17:18:01 +0000 (17:18 +0000)] 
update suppression file

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

18 years agoMinor comment mods.
Julian Seward [Sun, 15 Oct 2006 13:47:43 +0000 (13:47 +0000)] 
Minor comment mods.

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

18 years agoAdd further comments about the tool instrument function.
Julian Seward [Sun, 15 Oct 2006 13:46:18 +0000 (13:46 +0000)] 
Add further comments about the tool instrument function.

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

18 years agoAdd proper comments explaining the args for the tool instrumenation
Julian Seward [Sun, 15 Oct 2006 12:48:18 +0000 (12:48 +0000)] 
Add proper comments explaining the args for the tool instrumenation
function.

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

18 years agowibble
Julian Seward [Sun, 15 Oct 2006 12:47:37 +0000 (12:47 +0000)] 
wibble

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

18 years agoMove code that creates the initial Linux memory image (stack, env,
Julian Seward [Sun, 15 Oct 2006 01:26:40 +0000 (01:26 +0000)] 
Move code that creates the initial Linux memory image (stack, env,
etc) from m_main into m_initimg.

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

18 years agoMove functions which deal with bad command line options from m_main
Julian Seward [Sun, 15 Oct 2006 01:25:13 +0000 (01:25 +0000)] 
Move functions which deal with bad command line options from m_main
into m_options.

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

18 years agoNew module, for creating the initial process image -- to contain
Julian Seward [Sun, 15 Oct 2006 00:07:24 +0000 (00:07 +0000)] 
New module, for creating the initial process image -- to contain
various bits currently in m_main.c.

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

18 years agoMove VG_BUGS_TO to pub_tool_basics.h so that Nulgrind need not import
Nicholas Nethercote [Sat, 14 Oct 2006 23:26:21 +0000 (23:26 +0000)] 
Move VG_BUGS_TO to pub_tool_basics.h so that Nulgrind need not import
pub_tool_libcassert.h.

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

18 years agoSplit m_aspacemgr into a generic part and a Linux-specific part.
Julian Seward [Sat, 14 Oct 2006 22:25:30 +0000 (22:25 +0000)] 
Split m_aspacemgr into a generic part and a Linux-specific part.

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

18 years agoUnbreak amd64-linux after recent commits.
Julian Seward [Sat, 14 Oct 2006 20:06:48 +0000 (20:06 +0000)] 
Unbreak amd64-linux after recent commits.

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

18 years agoUnbreak ppc{32,64}-linux after recent commits.
Julian Seward [Sat, 14 Oct 2006 19:51:19 +0000 (19:51 +0000)] 
Unbreak ppc{32,64}-linux after recent commits.

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

18 years agoThis should also have been added as part of r6224.
Julian Seward [Sat, 14 Oct 2006 19:34:11 +0000 (19:34 +0000)] 
This should also have been added as part of r6224.

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

18 years agoOops, this should have been added as part of r6224.
Julian Seward [Sat, 14 Oct 2006 19:32:16 +0000 (19:32 +0000)] 
Oops, this should have been added as part of r6224.

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

18 years agoCreate a new module, m_vki, and move all knowledge about the kernel
Julian Seward [Sat, 14 Oct 2006 19:26:10 +0000 (19:26 +0000)] 
Create a new module, m_vki, and move all knowledge about the kernel
interface, except for the syscall numbers, into that.  Mostly this
means moving include/vki-*.h to include/vki/vki-*.h.

include/pub_tool_basics.h previously dragged in the entire kernel
interface.  I've done away with that, so that modules which need to
see the kernel interface now have to include pub_{core,tool}_vki.h
explicitly.  This is why there are many modified .c files -- they have
all acquired an extra #include line.

This certainly breaks all platforms except x86.  Will fix shortly.

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

18 years agoCreate a new module, m_vkiscnums, and move all the system call numbers
Julian Seward [Sat, 14 Oct 2006 15:51:32 +0000 (15:51 +0000)] 
Create a new module, m_vkiscnums, and move all the system call numbers
into that.  Mostly this means moving vki_unistd-<plat>.h to
include/vki/vki-scnums-<plat>.h.

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

18 years agoAdd a directory in which to place all kernel-interface info.
Julian Seward [Sat, 14 Oct 2006 14:42:20 +0000 (14:42 +0000)] 
Add a directory in which to place all kernel-interface info.

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

18 years agoPrint native time to two places. Perhaps it would be better to adjust
Julian Seward [Sat, 14 Oct 2006 14:04:42 +0000 (14:04 +0000)] 
Print native time to two places.  Perhaps it would be better to adjust
the workloads to make some of the native runs take longer.

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

18 years agoInclude new file in tarball.
Julian Seward [Sat, 14 Oct 2006 14:03:51 +0000 (14:03 +0000)] 
Include new file in tarball.

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

18 years agoMark r6211 as pending for 3.2 branch
Josef Weidendorfer [Thu, 12 Oct 2006 14:29:51 +0000 (14:29 +0000)] 
Mark r6211 as pending for 3.2 branch

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

18 years agoCachegrind: Update cache parameter detection
Josef Weidendorfer [Thu, 12 Oct 2006 14:23:38 +0000 (14:23 +0000)] 
Cachegrind: Update cache parameter detection

This updates the automatic detection of cache parameters
for x86 and amd64 according to revision 21 of
Intels x86 Architecture Software Developer Manual, Volume 2a.

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

18 years agoglibc 2.5 support. this is actually cheap so far,
Dirk Mueller [Thu, 12 Oct 2006 08:17:49 +0000 (08:17 +0000)] 
glibc 2.5 support. this is actually cheap so far,
given that the glibc 2.5 release tarball doesn't
have a 2.5 version - it is still labeled as 2.4.

However, I believe that they will eventually notice
this bug and fix it.

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

18 years agoUpdate.
Julian Seward [Fri, 6 Oct 2006 13:04:01 +0000 (13:04 +0000)] 
Update.

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

18 years agoExpand the first para of the custom-allocator section so it says what
Julian Seward [Fri, 6 Oct 2006 11:47:01 +0000 (11:47 +0000)] 
Expand the first para of the custom-allocator section so it says what
this section actually describes.

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

18 years agoRegression tests for Graydon Hoare's enhanced mempool stuff, from
Julian Seward [Fri, 6 Oct 2006 11:45:00 +0000 (11:45 +0000)] 
Regression tests for Graydon Hoare's enhanced mempool stuff, from
Graydon himself.

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

18 years agoA memory pool update from Graydon Hoare.
Julian Seward [Thu, 5 Oct 2006 17:59:23 +0000 (17:59 +0000)] 
A memory pool update from Graydon Hoare.

Here's an update to the mempool move / change client requests and sanity
checking. The following changes are present:

   - Added one more (hopefully last) client request, a predicate to
     test whether a mempool anchor address is currently tracked.
     It turns out mozilla's arena-using code is sufficiently inconsistent
     in its assumptions that it's very difficult to phrase the valgrind
     client-request annotations without this request. Namely: sometime
     arena-init and arena-free operations are assumed to be idempotent.

   - Fixed a very rapid tool-memory leak in the mempool sanity check
     routine. The previous version of the patch I posted would use all
     memory even on my Very Beefy Test Machine within ~15 minutes of
     browsing with firefox.

   - Added a little logging code to print the counts of pools and chunks
     active every ~10000 sanity checks, when running with -v.

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

18 years agoExcellent documentation from Graydon Hoare on his mempool
Julian Seward [Thu, 5 Oct 2006 17:56:14 +0000 (17:56 +0000)] 
Excellent documentation from Graydon Hoare on his mempool
client-request work.

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

18 years agoUpdate.
Julian Seward [Wed, 4 Oct 2006 22:08:53 +0000 (22:08 +0000)] 
Update.

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

18 years agoA a test for the 'mcrfs' insn.
Julian Seward [Wed, 4 Oct 2006 18:01:05 +0000 (18:01 +0000)] 
A a test for the 'mcrfs' insn.

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

18 years agoUpdate bug list.
Tom Hughes [Fri, 29 Sep 2006 08:18:57 +0000 (08:18 +0000)] 
Update bug list.

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

18 years agoUse stat64 instead of stat when it is available. Fixes bug #134727.
Tom Hughes [Fri, 29 Sep 2006 08:12:08 +0000 (08:12 +0000)] 
Use stat64 instead of stat when it is available. Fixes bug #134727.

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

18 years agoAdd a comment about marking static memory as defined.
Nicholas Nethercote [Thu, 21 Sep 2006 15:59:30 +0000 (15:59 +0000)] 
Add a comment about marking static memory as defined.

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

18 years agoCallgrind: fix interactive control after fork()
Josef Weidendorfer [Wed, 20 Sep 2006 21:29:39 +0000 (21:29 +0000)] 
Callgrind: fix interactive control after fork()

This fixes bug 134316: when an program in callgrind does
a fork, callgrind_control does show both now, and they
can be controlled separately.

However, missing in this patch is zeroing of cost centers
directly after the clone syscall in the child.

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

18 years agoUpdate.
Julian Seward [Sun, 17 Sep 2006 10:11:51 +0000 (10:11 +0000)] 
Update.

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

18 years agoUpdate following 3.2.1 release.
Julian Seward [Sun, 17 Sep 2006 09:50:15 +0000 (09:50 +0000)] 
Update following 3.2.1 release.

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