Commit Graph

410 Commits

Author SHA1 Message Date
Julian Seward
2ccd1ed4e9 Partial implementation of mallinfo() (Ilpo Ruotsalainen)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@470
2002-06-26 17:08:01 +00:00
Julian Seward
0a530cb06c parse_cache_opt: Move free() of opt past last use.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@469
2002-06-26 17:02:57 +00:00
Nicholas Nethercote
7857877374 Forgot to VG_(free) a VG_(strdup)'d string.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@468
2002-06-26 10:06:26 +00:00
Julian Seward
a077c2c8ac 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
2002-06-26 00:50:36 +00:00
Julian Seward
827b3d2565 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
2002-06-26 00:47:17 +00:00
Julian Seward
52f9eb2462 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
2002-06-26 00:13:36 +00:00
Julian Seward
07beb19900 vg_push_signal_frame: make the siginfo and ucontext fields readable too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@464
2002-06-25 23:18:16 +00:00
Julian Seward
b3b8775620 A libXpm suppression.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@456
2002-06-20 10:39:34 +00:00
Julian Seward
7bcbe59c1f 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
2002-06-20 10:25:37 +00:00
Julian Seward
711baa5d1c 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
2002-06-20 10:19:38 +00:00
Julian Seward
75d17670e1 --> 1.0pre2
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@453
2002-06-20 08:17:51 +00:00
Julian Seward
314f516b09 Add test case for sigpending().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@452
2002-06-20 08:17:07 +00:00
Julian Seward
c489fb0318 Make recv block only the calling thread, not the entire process.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@451
2002-06-20 07:58:33 +00:00
Julian Seward
7437ce425c Add __NR_truncate64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@450
2002-06-20 07:21:48 +00:00
Julian Seward
9fce2327ed Clear up historical artefacts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@449
2002-06-19 20:52:32 +00:00
Julian Seward
b264e50980 Implement sigpending(). All absolutely horrible. Sigh.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@443
2002-06-19 17:35:45 +00:00
Julian Seward
2bdcd29d63 Implement pause().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@442
2002-06-19 10:17:40 +00:00
Julian Seward
c7c267a939 Get rid of ancient stuff.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@441
2002-06-18 16:31:21 +00:00
Julian Seward
b05ceff761 Do pthread_rwlockattr_init.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@440
2002-06-18 09:24:34 +00:00
Julian Seward
844e3ba453 Add __NR_fdatasync. Also fix some formatting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@439
2002-06-18 09:11:33 +00:00
Julian Seward
7351752815 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
2002-06-18 09:07:54 +00:00
Julian Seward
b5d90a7599 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
2002-06-18 01:05:58 +00:00
Julian Seward
54661408ff - 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
2002-06-18 01:04:57 +00:00
Julian Seward
fca23eae18 Increase thread limits a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@432
2002-06-17 14:25:00 +00:00
Julian Seward
f34cee7b2f Add pthread_attr_setschedpolicy / pthread_attr_getschedpolicy.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@431
2002-06-17 12:19:44 +00:00
Julian Seward
d8cc5306ac Formatting cleanups in the dwarf2 reader, and some debug printing hooks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@430
2002-06-17 02:21:20 +00:00
Julian Seward
31d365049a Fix bug in and simply parameter access checks for pthread_sigmask.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@429
2002-06-16 11:37:06 +00:00
Julian Seward
130d8c068d Disable debug printing on BB discard.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@427
2002-06-14 11:08:07 +00:00
Julian Seward
8108d5d6bd ---> 1.0pre1 Yay!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@426
2002-06-14 10:40:16 +00:00
Julian Seward
f18008337f Patrick Ohly's --alignment= patch, to increase alignment of malloc'd
blocks if needed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@422
2002-06-14 10:17:05 +00:00
Julian Seward
452de4d940 ---> 20020613
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@421
2002-06-13 20:46:04 +00:00
Julian Seward
123b75b6a5 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
2002-06-13 20:44:00 +00:00
Julian Seward
c797c7e5f9 First round of manual update for 1.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@417
2002-06-13 20:37:25 +00:00
Julian Seward
66492d7e14 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
2002-06-13 17:47:05 +00:00
Julian Seward
3244f2ca64 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
2002-06-13 17:29:53 +00:00
Julian Seward
1f5d408d60 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
2002-06-13 17:23:38 +00:00
Julian Seward
8417ae82b5 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
2002-06-13 16:07:51 +00:00
Julian Seward
6cdad44934 Remove bogus assertion.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@412
2002-06-13 13:56:15 +00:00
Julian Seward
87e4cb98b4 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
2002-06-13 11:37:41 +00:00
Julian Seward
37ad57a2b5 Namespace police woz here
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@408
2002-06-13 11:11:05 +00:00
Julian Seward
cf4a890c45 Inconsequential cleanups to recent cachesim hacking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@407
2002-06-13 10:25:56 +00:00
Nicholas Nethercote
9dd7bf5c81 Whoops, forgot to add this last time.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@406
2002-06-12 08:49:04 +00:00
Nicholas Nethercote
7c06858a4f 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
2002-06-10 15:31:16 +00:00
Nicholas Nethercote
f598db43e4 A few minor improvements.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@402
2002-06-10 10:24:05 +00:00
Nicholas Nethercote
9e8a864df1 Updated Cachegrind section for the CPUID-addition/vg_cachegen-removal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@401
2002-06-08 14:06:37 +00:00
Nicholas Nethercote
b859182c44 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
2002-06-08 13:36:03 +00:00
Nicholas Nethercote
0ef6084729 Converted some stab-reading assertions into warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@399
2002-06-08 13:34:17 +00:00
Julian Seward
8c8a705e02 More RH73 suppressions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@398
2002-06-07 00:29:39 +00:00
Julian Seward
40befc11f2 ---> 20020606
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@397
2002-06-06 09:02:48 +00:00
Julian Seward
f3447878ca Add pthread suppressions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@396
2002-06-06 09:02:11 +00:00