]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
23 years agoTrack ELF frame changes as appearing in Red Hat Limbo (7.3.92).
Julian Seward [Thu, 25 Jul 2002 00:49:51 +0000 (00:49 +0000)] 
Track ELF frame changes as appearing in Red Hat Limbo (7.3.92).

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

23 years agoCompile fixes for Red Hat Limbo (7.3.92).
Julian Seward [Wed, 24 Jul 2002 09:41:52 +0000 (09:41 +0000)] 
Compile fixes for Red Hat Limbo (7.3.92).

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

23 years agoSome jokers apparently like setting the CPU's AC (Alignment Check) flag
Julian Seward [Wed, 24 Jul 2002 09:36:36 +0000 (09:36 +0000)] 
Some jokers apparently like setting the CPU's AC (Alignment Check) flag
for god-knows-why reasons.  This causes VG_{READ,WRITE}_MISALIGNED_WORD
to give bus errors.  Redefine them to do the obvious byte-by-byte loads/
stores.  Fortunately they are not performance critical.

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

23 years agoAssume PUTF modifies %EFLAGS in a completely arbitrary manner, and so
Julian Seward [Wed, 24 Jul 2002 09:33:52 +0000 (09:33 +0000)] 
Assume PUTF modifies %EFLAGS in a completely arbitrary manner, and so
be completely pessimistic if it is encountered during the redundant-flag-
save/restore-elimination pass.  This fixes the following mysterious
failure:

 insane instruction
           27: PUTFL     %ecx

 valgrind: vg_from_ucode.c:2600 (vgPlain_emit_code): Assertion `sane' failed.

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

23 years agoSupport for x86 insn fldenv.
Julian Seward [Tue, 23 Jul 2002 18:48:39 +0000 (18:48 +0000)] 
Support for x86 insn fldenv.

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

23 years agoSkip directly to 1.0pre6 to avoid confusing me.
Julian Seward [Tue, 16 Jul 2002 02:13:30 +0000 (02:13 +0000)] 
Skip directly to 1.0pre6 to avoid confusing me.

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

23 years agoAdd a suppression to deal with calling __libc_freeres().
Julian Seward [Tue, 16 Jul 2002 02:11:51 +0000 (02:11 +0000)] 
Add a suppression to deal with calling __libc_freeres().

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

23 years agoDocument probs with gcc-3.1 false positives.
Julian Seward [Tue, 16 Jul 2002 01:49:22 +0000 (01:49 +0000)] 
Document probs with gcc-3.1 false positives.

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

23 years agoAt request of Ulrich Drepper, call __libc_freeres() after final __NR_exit
Julian Seward [Tue, 16 Jul 2002 01:43:15 +0000 (01:43 +0000)] 
At request of Ulrich Drepper, call __libc_freeres() after final __NR_exit
so as to free memory allocated by glibc.  This reduces the leaks reported
in glibc, but causes a stack of read/write-after-free errors which have
to be suppressed :-(

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

23 years agopossible fix for valgrinding problem on longer running kernels (2.4.18-SuSE, update...
Dirk Mueller [Mon, 15 Jul 2002 19:39:51 +0000 (19:39 +0000)] 
possible fix for valgrinding problem on longer running kernels (2.4.18-SuSE, update 17 days)

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

23 years agoSuppress errors in __rawmemchr when called from anywhere at all.
Julian Seward [Sun, 14 Jul 2002 13:04:38 +0000 (13:04 +0000)] 
Suppress errors in __rawmemchr when called from anywhere at all.

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

23 years agoMention kernel probs with R H "Limbo" public beta (hacked 2.4.18).
Julian Seward [Sun, 14 Jul 2002 10:45:21 +0000 (10:45 +0000)] 
Mention kernel probs with R H "Limbo" public beta (hacked 2.4.18).

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

23 years agoDocument some limitations.
Julian Seward [Sat, 13 Jul 2002 14:09:35 +0000 (14:09 +0000)] 
Document some limitations.

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

23 years ago---> 1.0pre5
Julian Seward [Sat, 13 Jul 2002 13:45:28 +0000 (13:45 +0000)] 
---> 1.0pre5

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

23 years agoget_caches(): ensure caches are initialised on targets where
Julian Seward [Sat, 13 Jul 2002 13:31:20 +0000 (13:31 +0000)] 
get_caches(): ensure caches are initialised on targets where
get_caches_from_CPUID fails.

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

23 years agoCopy pthread_rwlockattr_setpshared verbatim from LinuxThreads.
Julian Seward [Sat, 13 Jul 2002 12:58:44 +0000 (12:58 +0000)] 
Copy pthread_rwlockattr_setpshared verbatim from LinuxThreads.

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

23 years agoAdd __NR_quotactl.
Julian Seward [Sat, 13 Jul 2002 12:58:08 +0000 (12:58 +0000)] 
Add __NR_quotactl.
Allow NULL 3rd arg in __NR_sendfile.
("Didier")

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

23 years agoInclude valgrind.spec and valgrind.spec.in in tarballs.
Julian Seward [Sat, 13 Jul 2002 12:37:28 +0000 (12:37 +0000)] 
Include valgrind.spec and valgrind.spec.in in tarballs.
Also add a line to the description in the .spec.in.
(Shlomi Fish)

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

23 years ago(Tim Rowley, verbatim)
Julian Seward [Sat, 13 Jul 2002 12:32:16 +0000 (12:32 +0000)] 
(Tim Rowley, verbatim)

The Intel p4 manual suggests inserting a pause instruction in
spin-wait loops as a hint to what the code is doing.  In other
respects it acts just like a nop.  Pause (0xF3 0x90) currently
causes valgrind to panic.  The patch below keeps things running.

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

23 years agoImplement fnstenv (store FPU environment, but not regs AIUI)
Julian Seward [Sat, 13 Jul 2002 12:27:12 +0000 (12:27 +0000)] 
Implement fnstenv (store FPU environment, but not regs AIUI)
(Jeff Epler)

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

23 years agoPrint additional useful information immediately prior to
Julian Seward [Sat, 13 Jul 2002 12:20:35 +0000 (12:20 +0000)] 
Print additional useful information immediately prior to
   VG_(panic)("VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed\n");

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

23 years agovg_signals.c: vg_oursignalhandler(): don't longjmp() on fatal signal if
Julian Seward [Sat, 13 Jul 2002 12:12:56 +0000 (12:12 +0000)] 
vg_signals.c: vg_oursignalhandler(): don't longjmp() on fatal signal if
the scheduler's jmp_buf is not valid.  This might avoid at least some
of the following:
   vg_scheduler.c:479 (run_thread_for_a_while): Assertion `trc == 0'
   failed.

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

23 years agoMake sigsuspend() work well enough to keep zsh hackers happy.
Julian Seward [Sat, 13 Jul 2002 11:05:45 +0000 (11:05 +0000)] 
Make sigsuspend() work well enough to keep zsh hackers happy.

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

23 years agoMake VG_USERREQ__PTHREAD_YIELD actually yield the thread. This used
Julian Seward [Fri, 12 Jul 2002 22:30:51 +0000 (22:30 +0000)] 
Make VG_USERREQ__PTHREAD_YIELD actually yield the thread.  This used
to work but was broken in a subtle way by the cleanup of rev 1.70.

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

23 years agoCheck for signals to be delivered after every syscall. This avoids
Julian Seward [Fri, 12 Jul 2002 01:23:03 +0000 (01:23 +0000)] 
Check for signals to be delivered after every syscall.  This avoids
some obscure deadlock cases.  (Neil Conway).

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

23 years agoAdd comments about syscall wrapper problems.
Julian Seward [Mon, 1 Jul 2002 10:59:17 +0000 (10:59 +0000)] 
Add comments about syscall wrapper problems.

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

23 years ago---> 1.0pre4
Julian Seward [Mon, 1 Jul 2002 10:50:44 +0000 (10:50 +0000)] 
---> 1.0pre4

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

23 years agoAdd helpful info for package builders.
Julian Seward [Mon, 1 Jul 2002 08:46:27 +0000 (08:46 +0000)] 
Add helpful info for package builders.

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

23 years agoFinal documentation updates for 1.0.
Julian Seward [Mon, 1 Jul 2002 08:30:05 +0000 (08:30 +0000)] 
Final documentation updates for 1.0.

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

23 years agoImplement --weird-hacks=truncate-writes to limit the size of write syscalls
Julian Seward [Sun, 30 Jun 2002 12:44:54 +0000 (12:44 +0000)] 
Implement --weird-hacks=truncate-writes to limit the size of write syscalls
to 4096, to possibly avoid deadlocks under very rare circumstances.
Is fully documented and commented.

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

23 years agocleanup_after_thread_exited: also clean up the waiting_fds table on thread
Julian Seward [Sun, 30 Jun 2002 10:57:30 +0000 (10:57 +0000)] 
cleanup_after_thread_exited: also clean up the waiting_fds table on thread
disappearance.  This fixes an assertion failure to do with thread nukage
on fork():
   vg_scheduler.c:936 (poll_for_ready_fds):
   Assertion `vgPlain_is_valid_tid(tid)' failed.

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

23 years agoMake --stop-after= work again.
Julian Seward [Fri, 28 Jun 2002 02:08:28 +0000 (02:08 +0000)] 
Make --stop-after= work again.

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

23 years ago---> 1.0pre3
Julian Seward [Fri, 28 Jun 2002 01:46:56 +0000 (01:46 +0000)] 
---> 1.0pre3

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

23 years agoFinally get around to implementing pthread_atfork.
Julian Seward [Fri, 28 Jun 2002 01:46:26 +0000 (01:46 +0000)] 
Finally get around to implementing pthread_atfork.

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

23 years agoRemoved line about Cachegrind being experimental.
Nicholas Nethercote [Thu, 27 Jun 2002 15:45:09 +0000 (15:45 +0000)] 
Removed line about Cachegrind being experimental.

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

23 years agoPartial implementation of mallinfo() (Ilpo Ruotsalainen)
Julian Seward [Wed, 26 Jun 2002 17:08:01 +0000 (17:08 +0000)] 
Partial implementation of mallinfo()  (Ilpo Ruotsalainen)

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

23 years agoparse_cache_opt: Move free() of opt past last use.
Julian Seward [Wed, 26 Jun 2002 17:02:57 +0000 (17:02 +0000)] 
parse_cache_opt: Move free() of opt past last use.

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

23 years agoForgot to VG_(free) a VG_(strdup)'d string.
Nicholas Nethercote [Wed, 26 Jun 2002 10:06:26 +0000 (10:06 +0000)] 
Forgot to VG_(free) a VG_(strdup)'d string.

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

23 years agoMake __pthread_clock_gettime and __pthread_clock_settime appear for
Julian Seward [Wed, 26 Jun 2002 00:50:36 +0000 (00:50 +0000)] 
Make __pthread_clock_gettime and __pthread_clock_settime appear for
GLIBC_2.2.3.  I dunno what this means, if anything, but someone
reports it helps.

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

23 years agoselect() and poll(): change order of events in main timing loop
Julian Seward [Wed, 26 Jun 2002 00:47:17 +0000 (00:47 +0000)] 
select() and poll(): change order of events in main timing loop
so that very short selects/polls don't just cause a timeout with
no real test.

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

23 years agowait_for_fd_to_be_readable_or_erring: return immediately if fd is
Julian Seward [Wed, 26 Jun 2002 00:13:36 +0000 (00:13 +0000)] 
wait_for_fd_to_be_readable_or_erring: return immediately if fd is
nonblocking anyway.

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

23 years agovg_push_signal_frame: make the siginfo and ucontext fields readable too.
Julian Seward [Tue, 25 Jun 2002 23:18:16 +0000 (23:18 +0000)] 
vg_push_signal_frame: make the siginfo and ucontext fields readable too.

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

23 years agoA libXpm suppression.
Julian Seward [Thu, 20 Jun 2002 10:39:34 +0000 (10:39 +0000)] 
A libXpm suppression.

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

23 years agoFix subtle bug in the interaction between pthread_create and thread_wrapper,
Julian Seward [Thu, 20 Jun 2002 10:25:37 +0000 (10:25 +0000)] 
Fix subtle bug in the interaction between pthread_create and thread_wrapper,
exposed by scheduling changes caused by commit vg_scheduler.c rev 1.70.
We cannot simply pass the __attr pointer to the child, since it could
point to stuff on the parent's stack, which might not exist by the time
the child looked at it.  Prior to scheduler.c rev 1.70 the child would
have been scheduled as soon as created, so the access was made before the
parent could clear the stuff from its stack.  From rev 1.70 and after
the parent continues after creating the child, causing invalid stack
accesses when the child finally runs.

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

23 years agoRationalise client-request handling a bit, by merging the two switches
Julian Seward [Thu, 20 Jun 2002 10:19:38 +0000 (10:19 +0000)] 
Rationalise client-request handling a bit, by merging the two switches
into one.  This can change the scheduling a bit since the policy of
running the same thread after the request if it is possible now applies
to _all_ requests.

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

23 years ago--> 1.0pre2
Julian Seward [Thu, 20 Jun 2002 08:17:51 +0000 (08:17 +0000)] 
--> 1.0pre2

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

23 years agoAdd test case for sigpending().
Julian Seward [Thu, 20 Jun 2002 08:17:07 +0000 (08:17 +0000)] 
Add test case for sigpending().

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

23 years agoMake recv block only the calling thread, not the entire process.
Julian Seward [Thu, 20 Jun 2002 07:58:33 +0000 (07:58 +0000)] 
Make recv block only the calling thread, not the entire process.

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

23 years agoAdd __NR_truncate64.
Julian Seward [Thu, 20 Jun 2002 07:21:48 +0000 (07:21 +0000)] 
Add __NR_truncate64.

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

23 years agoClear up historical artefacts.
Julian Seward [Wed, 19 Jun 2002 20:52:32 +0000 (20:52 +0000)] 
Clear up historical artefacts.

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

23 years agoImplement sigpending(). All absolutely horrible. Sigh.
Julian Seward [Wed, 19 Jun 2002 17:35:45 +0000 (17:35 +0000)] 
Implement sigpending().  All absolutely horrible.  Sigh.

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

23 years agoImplement pause().
Julian Seward [Wed, 19 Jun 2002 10:17:40 +0000 (10:17 +0000)] 
Implement pause().

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

23 years agoGet rid of ancient stuff.
Julian Seward [Tue, 18 Jun 2002 16:31:21 +0000 (16:31 +0000)] 
Get rid of ancient stuff.

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

23 years agoDo pthread_rwlockattr_init.
Julian Seward [Tue, 18 Jun 2002 09:24:34 +0000 (09:24 +0000)] 
Do pthread_rwlockattr_init.

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

23 years agoAdd __NR_fdatasync. Also fix some formatting.
Julian Seward [Tue, 18 Jun 2002 09:11:33 +0000 (09:11 +0000)] 
Add __NR_fdatasync.  Also fix some formatting.

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

23 years agoDo siglongjmp, although without running cleanup handlers in the section
Julian Seward [Tue, 18 Jun 2002 09:07:54 +0000 (09:07 +0000)] 
Do siglongjmp, although without running cleanup handlers in the section
of stack which it skips over.

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

23 years agoFurther mess with the X config checks, so as to get a reasonably
Julian Seward [Tue, 18 Jun 2002 01:05:58 +0000 (01:05 +0000)] 
Further mess with the X config checks, so as to get a reasonably
comprehensive set of X suppressions more robustly.

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

23 years ago- Check DWARF2 reader against spec. Add some clarifications and
Julian Seward [Tue, 18 Jun 2002 01:04:57 +0000 (01:04 +0000)] 
- Check DWARF2 reader against spec.  Add some clarifications and
  fix a minor error, but basically no significant changes.

- Disable debug info printing entirely in addLineInfo.

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

23 years agoIncrease thread limits a bit.
Julian Seward [Mon, 17 Jun 2002 14:25:00 +0000 (14:25 +0000)] 
Increase thread limits a bit.

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

23 years agoAdd pthread_attr_setschedpolicy / pthread_attr_getschedpolicy.
Julian Seward [Mon, 17 Jun 2002 12:19:44 +0000 (12:19 +0000)] 
Add pthread_attr_setschedpolicy / pthread_attr_getschedpolicy.

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

23 years agoFormatting cleanups in the dwarf2 reader, and some debug printing hooks.
Julian Seward [Mon, 17 Jun 2002 02:21:20 +0000 (02:21 +0000)] 
Formatting cleanups in the dwarf2 reader, and some debug printing hooks.

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

23 years agoFix bug in and simply parameter access checks for pthread_sigmask.
Julian Seward [Sun, 16 Jun 2002 11:37:06 +0000 (11:37 +0000)] 
Fix bug in and simply parameter access checks for pthread_sigmask.

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

23 years agoDisable debug printing on BB discard.
Julian Seward [Fri, 14 Jun 2002 11:08:07 +0000 (11:08 +0000)] 
Disable debug printing on BB discard.

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

23 years ago---> 1.0pre1 Yay!
Julian Seward [Fri, 14 Jun 2002 10:40:16 +0000 (10:40 +0000)] 
---> 1.0pre1    Yay!

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

23 years agoPatrick Ohly's --alignment= patch, to increase alignment of malloc'd
Julian Seward [Fri, 14 Jun 2002 10:17:05 +0000 (10:17 +0000)] 
Patrick Ohly's --alignment= patch, to increase alignment of malloc'd
blocks if needed.

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

23 years ago---> 20020613
Julian Seward [Thu, 13 Jun 2002 20:46:04 +0000 (20:46 +0000)] 
---> 20020613

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

23 years agoRename event-horizon to error-limit; the former may have trendy black-hole
Julian Seward [Thu, 13 Jun 2002 20:44:00 +0000 (20:44 +0000)] 
Rename event-horizon to error-limit; the former may have trendy black-hole
associations, but the latter actually cues one to what it might achieve.

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

23 years agoFirst round of manual update for 1.0.
Julian Seward [Thu, 13 Jun 2002 20:37:25 +0000 (20:37 +0000)] 
First round of manual update for 1.0.

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

23 years agoBe more robust to the situation where a signal arrives, and there is a
Julian Seward [Thu, 13 Jun 2002 17:47:05 +0000 (17:47 +0000)] 
Be more robust to the situation where a signal arrives, and there is a
handler, but in the interval between the signal arriving and it being
delivered to the client, the handler is removed.

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

23 years agoMake recvfrom() block only the calling thread, not the whole system
Julian Seward [Thu, 13 Jun 2002 17:29:53 +0000 (17:29 +0000)] 
Make recvfrom() block only the calling thread, not the whole system
( same trick as used for accept() ).

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

23 years agoAdd --event-horizon=yes|no [yes] so that the limit on errors shown
Julian Seward [Thu, 13 Jun 2002 17:23:38 +0000 (17:23 +0000)] 
Add --event-horizon=yes|no [yes] so that the limit on errors shown
can be disabled if desired.

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

23 years agoRemove inclusion of <linux/module.h> and <asm/atomic.h> since that
Julian Seward [Thu, 13 Jun 2002 16:07:51 +0000 (16:07 +0000)] 
Remove inclusion of <linux/module.h> and <asm/atomic.h> since that
seems to lead to a portability swamp.  As a result, remove autoconf
check for <asm/atomic.h>.  Replace all this junk with
VKI_SIZEOF_STRUCT_MODULE (== 96) since that's all I ever wanted to
know in the first place.

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

23 years agoRemove bogus assertion.
Julian Seward [Thu, 13 Jun 2002 13:56:15 +0000 (13:56 +0000)] 
Remove bogus assertion.

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

23 years agoAllow detected CPU clock rates down to 50 MHz -- slower than the slowest
Julian Seward [Thu, 13 Jun 2002 11:37:41 +0000 (11:37 +0000)] 
Allow detected CPU clock rates down to 50 MHz -- slower than the slowest
Pentium, which is the oldest processor supported.

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

23 years agoNamespace police woz here
Julian Seward [Thu, 13 Jun 2002 11:11:05 +0000 (11:11 +0000)] 
Namespace police woz here

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

23 years agoInconsequential cleanups to recent cachesim hacking.
Julian Seward [Thu, 13 Jun 2002 10:25:56 +0000 (10:25 +0000)] 
Inconsequential cleanups to recent cachesim hacking.

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

23 years agoWhoops, forgot to add this last time.
Nicholas Nethercote [Wed, 12 Jun 2002 08:49:04 +0000 (08:49 +0000)] 
Whoops, forgot to add this last time.

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

23 years agovg_annotate.in:
Nicholas Nethercote [Mon, 10 Jun 2002 15:31:16 +0000 (15:31 +0000)] 
vg_annotate.in:
    - fixed a bug that was breaking the --threshold option.

vg_cachesim.c:
    - fixed a bug that meant instructions that didn't have a line number in the
      debug info were being written in cachegrind.out with whatever was the
      last known line number.  Now using 0.

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

23 years agoA few minor improvements.
Nicholas Nethercote [Mon, 10 Jun 2002 10:24:05 +0000 (10:24 +0000)] 
A few minor improvements.

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

23 years agoUpdated Cachegrind section for the CPUID-addition/vg_cachegen-removal.
Nicholas Nethercote [Sat, 8 Jun 2002 14:06:37 +0000 (14:06 +0000)] 
Updated Cachegrind section for the CPUID-addition/vg_cachegen-removal.

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

23 years agoRemoved the need for the user to generate a cache simulation -- now do
Nicholas Nethercote [Sat, 8 Jun 2002 13:36:03 +0000 (13:36 +0000)] 
Removed the need for the user to generate a cache simulation -- now do
automatic cache configuration detection using the CPUID instruction.
This can be overridden from the command-line if necessary.

vg_include.h:
    - added the cache_t type and UNDEFINED_CACHE macro

    - added command line args (of type cache_t) allowing manual override of
      I1/D1/L2 configuration

    - added log2(), which is generally useful

vg_main.c, valgrind.in, cachegrind.in:
    - added handling of the new --{I1,D1,L2}=<size>,<assoc>,<line_size>
      options

vg_cachesim.c:
    - lots of stuff for auto-detecting cache configuration with CPUID.
      Only handles Intel and AMD chips at the moment, and possibly not all of
      them.  Falls back onto defaults if anything goes wrong, and the configs
      can be manually overridden from the command line anyway.

    - now not printing cache summary stats if verbosity == 0.  Still writing
      cachegrind.out, though.

vg_cachesim_gen.c:
    - new file containing stuff shared by the I1/D1/L2 simulations

vg_cachesim_{I1,D1,L2}:
    - removed most of it;  each now just calls a macro defined in
      vg_cachesim_gen.c

vg_cachegen:
    - has been cvs removed as it is no longer needed.

Makefile.am:
    - added vg_cachesim_gen.c

    - removed vg_cachegen

configure.in:
    - removed vg_cachegen

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

23 years agoConverted some stab-reading assertions into warnings.
Nicholas Nethercote [Sat, 8 Jun 2002 13:34:17 +0000 (13:34 +0000)] 
Converted some stab-reading assertions into warnings.

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

23 years agoMore RH73 suppressions.
Julian Seward [Fri, 7 Jun 2002 00:29:39 +0000 (00:29 +0000)] 
More RH73 suppressions.

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

23 years ago---> 20020606
Julian Seward [Thu, 6 Jun 2002 09:02:48 +0000 (09:02 +0000)] 
---> 20020606

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

23 years agoAdd pthread suppressions.
Julian Seward [Thu, 6 Jun 2002 09:02:11 +0000 (09:02 +0000)] 
Add pthread suppressions.

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

23 years agoFix typo in VALGRIND_MAKE_WRITABLE.
Julian Seward [Thu, 6 Jun 2002 08:38:45 +0000 (08:38 +0000)] 
Fix typo in VALGRIND_MAKE_WRITABLE.

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

23 years agoCancellation wrapper for recvmsg.
Julian Seward [Thu, 6 Jun 2002 08:33:54 +0000 (08:33 +0000)] 
Cancellation wrapper for recvmsg.

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

23 years agoWhen a thread in a nanosleep() wait is interrupted by a non-restartable
Julian Seward [Thu, 6 Jun 2002 01:27:39 +0000 (01:27 +0000)] 
When a thread in a nanosleep() wait is interrupted by a non-restartable
signal, cause the nanoslep to return with EINTR.  Then, in the user-space
nonblocking select() implementation, notice this and correspondingly return
with EINTR.  This appears to fix the MySQL hang-at-exit problem.

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

23 years agoOnly terminate stack traces when the %ebp trail goes cold, and not
Julian Seward [Wed, 5 Jun 2002 21:22:04 +0000 (21:22 +0000)] 
Only terminate stack traces when the %ebp trail goes cold, and not
just because some addresses cannot be mapped to anything.
Needed to give sensible stack traces on Red Hat 7.3.

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

23 years agoMinor mods to stop make the leak detector behave properly for the
Julian Seward [Wed, 5 Jun 2002 20:28:33 +0000 (20:28 +0000)] 
Minor mods to stop make the leak detector behave properly for the
following kind of stupid test program
   int main (void) { char* a = malloc(100); return 0; }
which many people seem fond of trying for some reason.
In general the leak detector works fine.

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

23 years agoSmall improvement to stabs reader to avoid warnings of this form:
Nicholas Nethercote [Wed, 5 Jun 2002 15:30:30 +0000 (15:30 +0000)] 
Small improvement to stabs reader to avoid warnings of this form:

--14081-- warning: function CloseSocket__Fi:F(0,20) missing closing N_FUN stab at entry 10052

which were common when compiling with GCC's -gstabs option.

Instead of relying on an end-of-function N_FUN entry to handle the final
N_SLINE of a function, it can now handle it by finding the difference between
the start of the previous function and the start of the next.

Not extensively tested, but I think it works ok.

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

23 years agoCache simulator now handles basic block discards correctly. When
Nicholas Nethercote [Wed, 5 Jun 2002 14:41:10 +0000 (14:41 +0000)] 
Cache simulator now handles basic block discards correctly.  When
VG_(cachesim_discard_notify) is called, the cost centre array for the basic
block is removed from the table, and its counts are aggregated into a single
"discard" cost centre, and the cost centre array is free'd.

The aggregate discard cost centre is given the filename:function_name
"(discarded):(discarded)".  Mentioned this in the manual.

Only tested with tests/discard.c.  Seems to work well for that case though :)

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

23 years agoAdded compile-time option to print instruction addresses for each line in
Nicholas Nethercote [Wed, 5 Jun 2002 09:39:31 +0000 (09:39 +0000)] 
Added compile-time option to print instruction addresses for each line in
cachegrind.out.  Increases file size by a fair bit, but useful for debugging
stabs errors <sigh>

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

23 years agoTiny documentation wibbles
Nicholas Nethercote [Wed, 5 Jun 2002 09:21:51 +0000 (09:21 +0000)] 
Tiny documentation wibbles

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

23 years agoA pthread error suppression.
Julian Seward [Wed, 5 Jun 2002 00:42:45 +0000 (00:42 +0000)] 
A pthread error suppression.

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

23 years ago---> 20020604
Julian Seward [Tue, 4 Jun 2002 23:24:48 +0000 (23:24 +0000)] 
---> 20020604

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

23 years agoCheck addressibility of client-space addresses passed to pthread_*
Julian Seward [Tue, 4 Jun 2002 23:24:22 +0000 (23:24 +0000)] 
Check addressibility of client-space addresses passed to pthread_*
fns, which are to be written by valgrind.

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

23 years agoA new kind of error: PThread errors. Used to report detected misuse in
Julian Seward [Tue, 4 Jun 2002 22:54:20 +0000 (22:54 +0000)] 
A new kind of error: PThread errors.  Used to report detected misuse in
the pthread_* API.

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

23 years ago - report the size requested size in pthread_attr_setstacksize() when
Julian Seward [Tue, 4 Jun 2002 20:59:16 +0000 (20:59 +0000)] 
 - report the size requested size in pthread_attr_setstacksize() when
   the size is bigger then the hardcoded value in valgrind.  This
   makes it easier to find out which value to use for
   VG_PTHREAD_STACK_SIZE.

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

23 years agoMore assertion-failure avoidance in the stabs reader.
Julian Seward [Tue, 4 Jun 2002 17:11:03 +0000 (17:11 +0000)] 
More assertion-failure avoidance in the stabs reader.

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