]>
git.ipfire.org Git - thirdparty/valgrind.git/log
Nicholas Nethercote [Thu, 25 Nov 2004 17:47:43 +0000 (17:47 +0000)]
Removing the insn_* tests from helgrind, memcheck, addrcheck and
cachegrind, because having them there doesn't add anything beyond that
tested in 'none'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3101
Julian Seward [Thu, 25 Nov 2004 13:08:26 +0000 (13:08 +0000)]
Test driver stuff for arm.
git-svn-id: svn://svn.valgrind.org/vex/trunk@587
Julian Seward [Thu, 25 Nov 2004 13:07:51 +0000 (13:07 +0000)]
Build stuff for arm.
git-svn-id: svn://svn.valgrind.org/vex/trunk@586
Julian Seward [Thu, 25 Nov 2004 13:07:02 +0000 (13:07 +0000)]
Add a skeletal ARM insn decoder.
git-svn-id: svn://svn.valgrind.org/vex/trunk@585
Julian Seward [Thu, 25 Nov 2004 02:46:58 +0000 (02:46 +0000)]
Start adding some ARM guest infrastructure stuff, but as a result get
diverted into a massive renaming of the x86 guest stuff so as to avoid
namespace clashes.
git-svn-id: svn://svn.valgrind.org/vex/trunk@584
Julian Seward [Wed, 24 Nov 2004 21:24:24 +0000 (21:24 +0000)]
Fix another potentially-failing use of get_current_tid(), in
proxy_sendsig(). Fixes the pth_blockesig regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3100
Nicholas Nethercote [Wed, 24 Nov 2004 18:58:41 +0000 (18:58 +0000)]
Remove now-unnecessary macro.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3099
Nicholas Nethercote [Wed, 24 Nov 2004 18:31:40 +0000 (18:31 +0000)]
Whoops, unbreak syscall number checking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3098
Nicholas Nethercote [Wed, 24 Nov 2004 18:14:41 +0000 (18:14 +0000)]
Cleanups:
- move things around so that each arch doesn't duplicate stuff to do with
VG_(do_thread_syscall)().
- enum PXState doesn't need to be visible outside vg_proxylwp.c
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3097
Nicholas Nethercote [Wed, 24 Nov 2004 16:57:16 +0000 (16:57 +0000)]
Removed shadow_regs 'need', because it was being used only trivially in
a couple of places, and is no longer needed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3096
Nicholas Nethercote [Wed, 24 Nov 2004 16:43:43 +0000 (16:43 +0000)]
Cleanups, mostly for the baseBlock removal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3095
Nicholas Nethercote [Wed, 24 Nov 2004 16:30:22 +0000 (16:30 +0000)]
Removed all uses of register numbers (eg. arch-specific ones like R_EAX, and
arch-neutral ones like R_STACK_PTR). Where they were used, we now always talk
about an offset into the Vex guest state, and an offset. As a result,
the shadow register get/set functions had to change. They now also use
an offset and size, and in an arch-neutral way.
Also, I combined the five the post_reg_write* functions into a single one that
takes a 'CorePart' parameter (plus also a ThreadId). Also, I added more
arguments (the CorePart, and the ThreadId) to the post_mem_write event, for
consistency with the pre_mem_* events.
Also, I reduced the number of register names that must be specified by each
arch, by factoring out duplication; and shortened their names for the core (eg.
ARCH_STACK_PTR is now STACK_PTR).
Plus some related minor cleanups in syscall wrappers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3094
Nicholas Nethercote [Wed, 24 Nov 2004 11:57:51 +0000 (11:57 +0000)]
Cleanups for baseBlock removal: fix some comments, remove two decls
that are no longer needed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3093
Julian Seward [Wed, 24 Nov 2004 11:22:31 +0000 (11:22 +0000)]
Add a pseudo-guest-register to hold the 'next syscall number.'
git-svn-id: svn://svn.valgrind.org/vex/trunk@583
Nicholas Nethercote [Wed, 24 Nov 2004 10:55:37 +0000 (10:55 +0000)]
Update comments for the renaming of arch_thread_t.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3092
Nicholas Nethercote [Wed, 24 Nov 2004 10:47:42 +0000 (10:47 +0000)]
Remove unneeded comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3091
Julian Seward [Wed, 24 Nov 2004 10:44:19 +0000 (10:44 +0000)]
Get rid of baseBlock. Now, when generated code is running, the guest
state pointer points directly at the ThreadState.arch.vex field, thus
updating it in place and avoiding a lot of code (and time-wasting)
which copies stuff back and forth to baseBlock.
Fix zillions of other places in the system where the current thread id
is needed. It is now passed to all needed places.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3090
Nicholas Nethercote [Tue, 23 Nov 2004 19:10:18 +0000 (19:10 +0000)]
Clean slightly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3089
Nicholas Nethercote [Tue, 23 Nov 2004 18:42:54 +0000 (18:42 +0000)]
Remove out-of-date comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3088
Nicholas Nethercote [Tue, 23 Nov 2004 18:19:29 +0000 (18:19 +0000)]
Comment-only changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3087
Nicholas Nethercote [Tue, 23 Nov 2004 18:01:21 +0000 (18:01 +0000)]
Remove out-of-date comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3086
Nicholas Nethercote [Tue, 23 Nov 2004 17:52:24 +0000 (17:52 +0000)]
Several unrelated changes:
- don't use AS_STRING_HELP, as older autoconfs don't like it
- fix a minor stupidity about the GDB path
- allow amd64 as a platform (wee!)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3085
Nicholas Nethercote [Tue, 23 Nov 2004 17:19:53 +0000 (17:19 +0000)]
Fix this regression test to account for the fact that FP regs are now
checked for definedness errors lazily, just like integer regs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3084
Nicholas Nethercote [Tue, 23 Nov 2004 17:13:58 +0000 (17:13 +0000)]
Make these work again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3083
Nicholas Nethercote [Tue, 23 Nov 2004 17:11:49 +0000 (17:11 +0000)]
Make Vex less verbose, so regression tests pass again.
git-svn-id: svn://svn.valgrind.org/vex/trunk@582
Nicholas Nethercote [Tue, 23 Nov 2004 17:10:15 +0000 (17:10 +0000)]
Make Vex less verbose, so the regression tests work again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3082
Nicholas Nethercote [Tue, 23 Nov 2004 16:31:56 +0000 (16:31 +0000)]
Add a mandatory --with-vex option to configure script.
Also, fix a Makefile so that Memcheck's regtests all build again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3081
Nicholas Nethercote [Tue, 23 Nov 2004 14:57:49 +0000 (14:57 +0000)]
The syscall wrappers for sys_fcntl{,64} were too simplistic -- the 3rd
arg is only used if the 2nd arg has particular values, so we were
getting false positives. This commit makes the wrappers smarter to
account for this. I updated the reg test too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3080
Julian Seward [Tue, 23 Nov 2004 14:07:46 +0000 (14:07 +0000)]
Make a start on a guest state definition for AMD64.
git-svn-id: svn://svn.valgrind.org/vex/trunk@581
Julian Seward [Tue, 23 Nov 2004 01:17:29 +0000 (01:17 +0000)]
Add enough gunk to configure.in to get through ./configure on
armv4l-unknown-linux-gnu.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3079
Julian Seward [Tue, 23 Nov 2004 00:50:25 +0000 (00:50 +0000)]
Get rid of the high/low baseblock distinction. Pointless in a way
since baseblock itself will soon enough bite the dust.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3078
Julian Seward [Tue, 23 Nov 2004 00:40:33 +0000 (00:40 +0000)]
Get rid of the machinery for registering helper functions. VEX calls
them directly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3077
Julian Seward [Tue, 23 Nov 2004 00:39:29 +0000 (00:39 +0000)]
Point back to my VEX tree. This needs to be fixed with high priority.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3076
Julian Seward [Tue, 23 Nov 2004 00:20:17 +0000 (00:20 +0000)]
Do our own implementations of strchrnul() and rawmemchr().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3075
Julian Seward [Tue, 23 Nov 2004 00:19:06 +0000 (00:19 +0000)]
Do 32Uto64.
git-svn-id: svn://svn.valgrind.org/vex/trunk@580
Nicholas Nethercote [Mon, 22 Nov 2004 21:29:38 +0000 (21:29 +0000)]
Removed now-defunct read/write checks for FPU ops.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3074
Nicholas Nethercote [Mon, 22 Nov 2004 21:23:08 +0000 (21:23 +0000)]
Removed the now-defunct files vg_from_ucode.c and vg_to_ucode.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3073
Nicholas Nethercote [Mon, 22 Nov 2004 21:16:08 +0000 (21:16 +0000)]
Remove now-defunct --cleanup option for Memcheck.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3072
Nicholas Nethercote [Mon, 22 Nov 2004 21:13:31 +0000 (21:13 +0000)]
Move redundant function decls from core.h (they end up in tool.h
anyway).
Also remove a declaration for a no-longer-existing function from tool.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3071
Nicholas Nethercote [Mon, 22 Nov 2004 21:08:46 +0000 (21:08 +0000)]
Update Massif's TL_(instrument)() to work with Vex (trivial).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3070
Julian Seward [Mon, 22 Nov 2004 20:51:49 +0000 (20:51 +0000)]
Fix some linking problems which were preventing memcheck from starting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3069
Julian Seward [Mon, 22 Nov 2004 20:38:40 +0000 (20:38 +0000)]
Make various other tools compile; also fix the stage2 linker script.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3068
Nicholas Nethercote [Mon, 22 Nov 2004 20:37:42 +0000 (20:37 +0000)]
Remove extended_UCode 'need', which has been obsoleted by Vex. Kept the
field in the struct for backward compatibility (but renamed it to
no_longer_used_0).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3067
Nicholas Nethercote [Mon, 22 Nov 2004 20:25:56 +0000 (20:25 +0000)]
Fix some out-of-date comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3066
Julian Seward [Mon, 22 Nov 2004 20:19:51 +0000 (20:19 +0000)]
Make Memcheck compilable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3065
Nicholas Nethercote [Mon, 22 Nov 2004 19:57:39 +0000 (19:57 +0000)]
Remove useless parameters to TL_(pre_syscall)() and TL_(post_syscall)().
Also remove Memcheck's and Addrcheck's use of syscall_wrappers,
since they didn't do anything useful.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3064
Nicholas Nethercote [Mon, 22 Nov 2004 19:26:27 +0000 (19:26 +0000)]
Last few skin-->tool changes, in various places.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3063
Nicholas Nethercote [Mon, 22 Nov 2004 19:12:49 +0000 (19:12 +0000)]
Rename macros ("SKIN"-->"TOOL")
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3062
Julian Seward [Mon, 22 Nov 2004 19:01:47 +0000 (19:01 +0000)]
Merge in enough changes from the old Vex tree to make stage2 link, at
least.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3061
Nicholas Nethercote [Mon, 22 Nov 2004 18:33:15 +0000 (18:33 +0000)]
Converted the SK_ prefix to TL_ everywhere.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3060
Nicholas Nethercote [Mon, 22 Nov 2004 18:10:36 +0000 (18:10 +0000)]
Renamed some profiling events.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3059
Nicholas Nethercote [Mon, 22 Nov 2004 18:04:29 +0000 (18:04 +0000)]
Removed include/vg_skin.h, which has been a shell just pointing to
tool.h for a while now.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3058
Nicholas Nethercote [Mon, 22 Nov 2004 18:02:32 +0000 (18:02 +0000)]
Renamed VG_(skin_panic) as VG_(tool_panic).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3057
Nicholas Nethercote [Mon, 22 Nov 2004 17:57:07 +0000 (17:57 +0000)]
Renamed functions with 'Skin' in them: SK_(pp_SkinError),
SK_(eq_SkinError), MAC_(pp_shared_SkinError)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3056
Nicholas Nethercote [Mon, 22 Nov 2004 17:18:48 +0000 (17:18 +0000)]
Renamed sk_assert() as tl_assert().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3055
Nicholas Nethercote [Mon, 22 Nov 2004 16:58:05 +0000 (16:58 +0000)]
Changed name of tool shared objects from vgskin_XXX.so to vgtool_XXX.so.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3054
Nicholas Nethercote [Mon, 22 Nov 2004 16:46:13 +0000 (16:46 +0000)]
Convert the 'skin_errors' need to 'tool_errors'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3053
Julian Seward [Mon, 22 Nov 2004 16:02:34 +0000 (16:02 +0000)]
Add a dummy ARM guest state include that Valgrind can be compiled
against.
git-svn-id: svn://svn.valgrind.org/vex/trunk@579
Julian Seward [Mon, 22 Nov 2004 13:44:11 +0000 (13:44 +0000)]
Tiresome build-system hacks to connect to the VEX includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3052
Julian Seward [Mon, 22 Nov 2004 12:55:45 +0000 (12:55 +0000)]
Make VEX's "Char" type always be signed, so as to bring it into line
with Valgrind conventions.
git-svn-id: svn://svn.valgrind.org/vex/trunk@578
Julian Seward [Mon, 22 Nov 2004 11:29:33 +0000 (11:29 +0000)]
gcc-2.95 build fixes.
git-svn-id: svn://svn.valgrind.org/vex/trunk@577
Julian Seward [Mon, 22 Nov 2004 11:26:51 +0000 (11:26 +0000)]
rec_alloc.c is defunct; reg_alloc2.c replaced it a while back.
git-svn-id: svn://svn.valgrind.org/vex/trunk@576
Julian Seward [Sun, 21 Nov 2004 19:22:35 +0000 (19:22 +0000)]
Fix behaviour so that out-of-range shifts behave the same as on a
PIII.
git-svn-id: svn://svn.valgrind.org/vex/trunk@575
Julian Seward [Sun, 21 Nov 2004 19:21:36 +0000 (19:21 +0000)]
Test each insn 25000 times with random data, rather than just once or
twice.
git-svn-id: svn://svn.valgrind.org/vex/trunk@574
Julian Seward [Sun, 21 Nov 2004 17:41:09 +0000 (17:41 +0000)]
Fix various failings in the MMX simulation code.
git-svn-id: svn://svn.valgrind.org/vex/trunk@573
Julian Seward [Sun, 21 Nov 2004 17:04:50 +0000 (17:04 +0000)]
Add MMX shift-by-vector (not correct yet).
git-svn-id: svn://svn.valgrind.org/vex/trunk@572
Julian Seward [Sun, 21 Nov 2004 13:45:05 +0000 (13:45 +0000)]
Complete MMX and/or/xor/andn.
git-svn-id: svn://svn.valgrind.org/vex/trunk@571
Julian Seward [Sun, 21 Nov 2004 12:30:18 +0000 (12:30 +0000)]
Implement a bunch more MMX insns.
git-svn-id: svn://svn.valgrind.org/vex/trunk@570
Julian Seward [Sat, 20 Nov 2004 13:17:04 +0000 (13:17 +0000)]
Some more MMX insns.
git-svn-id: svn://svn.valgrind.org/vex/trunk@569
Julian Seward [Fri, 19 Nov 2004 22:17:29 +0000 (22:17 +0000)]
Partial support for MMX, using a low-performance scheme.
aAlso gets rid of some old FP stuff from toIR.c that wasn't ever going
to get used.
git-svn-id: svn://svn.valgrind.org/vex/trunk@568
Nicholas Nethercote [Fri, 19 Nov 2004 16:10:23 +0000 (16:10 +0000)]
No longer producing this file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3051
Nicholas Nethercote [Fri, 19 Nov 2004 15:42:49 +0000 (15:42 +0000)]
Minor tweaks for external tools, for Josef W.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3050
Robert Walsh [Fri, 19 Nov 2004 02:11:56 +0000 (02:11 +0000)]
Yipes - my last checking borked the memcheck scalar test. This should
make it better.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3049
Robert Walsh [Thu, 18 Nov 2004 22:56:09 +0000 (22:56 +0000)]
Allow readlink to handle /proc/self/exe and /proc/<pid>/exe properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3048
Nicholas Nethercote [Thu, 18 Nov 2004 18:34:04 +0000 (18:34 +0000)]
Fix incorrect info about using GDB on Valgrind.
MERGE TO STABLE
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3046
Nicholas Nethercote [Thu, 18 Nov 2004 18:21:56 +0000 (18:21 +0000)]
Arch-abstraction:
- Added a hacky mechanism which prevents the regtest script from entering
directories for other architectures. (Eg. when running on x86/, it won't enter
a ppc/ subdir.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3045
Julian Seward [Thu, 18 Nov 2004 15:56:56 +0000 (15:56 +0000)]
An MMX test program.
git-svn-id: svn://svn.valgrind.org/vex/trunk@567
Julian Seward [Thu, 18 Nov 2004 15:38:37 +0000 (15:38 +0000)]
Nuke this useless bunch of tests.
git-svn-id: svn://svn.valgrind.org/vex/trunk@566
Julian Seward [Thu, 18 Nov 2004 13:44:15 +0000 (13:44 +0000)]
Restore ability to run with no instrumentation.
git-svn-id: svn://svn.valgrind.org/vex/trunk@565
Julian Seward [Thu, 18 Nov 2004 13:43:24 +0000 (13:43 +0000)]
CSE enhancements: handle binop(const,temp), and get rid of
unused load-from-memory case
git-svn-id: svn://svn.valgrind.org/vex/trunk@564
Nicholas Nethercote [Thu, 18 Nov 2004 13:34:00 +0000 (13:34 +0000)]
Added missing .cvsignore file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3044
Nicholas Nethercote [Thu, 18 Nov 2004 12:58:53 +0000 (12:58 +0000)]
Tweaks for keeping Josef's external Callgrind tool running, including a bumping
of the interface major version number.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3043
Nicholas Nethercote [Thu, 18 Nov 2004 12:48:17 +0000 (12:48 +0000)]
Generalised the reg test script again: replaced the "cpu_test" line,
which caused the test to be skipped if the CPU type wasn't appropriate,
with a "prereq" line, which specifies a command that must succeed before
the test is run.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3041
Nicholas Nethercote [Thu, 18 Nov 2004 12:45:40 +0000 (12:45 +0000)]
Replace magic number with proper constant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3040
Nicholas Nethercote [Thu, 18 Nov 2004 11:57:00 +0000 (11:57 +0000)]
Generalised reg test script: instead of having a "delete:" line, for removing
files once a test has completed, we have a "cleanup:" line, which specifies a
cleanup command.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3039
Nicholas Nethercote [Wed, 17 Nov 2004 18:42:20 +0000 (18:42 +0000)]
Convert a whole bunch of "(UWord)NULL" occurrences to 0, which is easier to
read and understand.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3038
Nicholas Nethercote [Wed, 17 Nov 2004 18:24:10 +0000 (18:24 +0000)]
Add explanatory comment to set_tid_address wrapper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3037
Nicholas Nethercote [Wed, 17 Nov 2004 18:22:38 +0000 (18:22 +0000)]
Arch-abstraction:
- Moved some more syscall wrappers into linux/syscalls.c and
x86-linux/syscalls.c. There are still heaps of wrappers that probably aren't
generic, but I'm not sure, so they're staying in vg_syscalls.c for now.
Let's worry about that when we do an OS port.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3036
Nicholas Nethercote [Wed, 17 Nov 2004 17:21:12 +0000 (17:21 +0000)]
Add coregrind/linux/ and coregrind/linux/* that was supposed to go in the last
commit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3035
Nicholas Nethercote [Wed, 17 Nov 2004 17:11:45 +0000 (17:11 +0000)]
Arch-abstraction:
- Moved the system call table into x86-linux, since it's platform specific.
- Started moving the non-generic syscall wrappers into linux/syscalls.c and
x86-linux/syscalls.c as appropriate.
- Added new coregrind/linux/ directory and some files in it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3034
Julian Seward [Wed, 17 Nov 2004 13:06:21 +0000 (13:06 +0000)]
x86 guest: finally redo marshalling of register-passed parameters so
that it's always correct (hopefully). If any of the regparm
parameters look like they might need a fixed register, compute them
all into temporaries and then move all the temps at the end into the
arg regs. OTOH, if all the args are simple enough so that they
definitely don't need fixed regs to compute, compute them directly
into the argument registers, thereby saving some reg-reg moves.
git-svn-id: svn://svn.valgrind.org/vex/trunk@563
Tom Hughes [Tue, 16 Nov 2004 19:40:05 +0000 (19:40 +0000)]
The calculation used to round the size of a new thread's stack to a
multiple of the page size had an off by one error. Fixed it to use
the PGROUNDUP macro instead of trying to do the calculation itself
and then get it wrong.
BUG: 93309
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3030
Nicholas Nethercote [Tue, 16 Nov 2004 18:26:11 +0000 (18:26 +0000)]
debug output wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3029
Nicholas Nethercote [Tue, 16 Nov 2004 18:20:35 +0000 (18:20 +0000)]
account for restart_syscall
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3028
Nicholas Nethercote [Tue, 16 Nov 2004 18:13:11 +0000 (18:13 +0000)]
fix incorrect counts
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3027
Nicholas Nethercote [Tue, 16 Nov 2004 17:59:04 +0000 (17:59 +0000)]
Add some missing test cases.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3026
Nicholas Nethercote [Tue, 16 Nov 2004 17:31:56 +0000 (17:31 +0000)]
Cleanups: removing stuff no longer needed now that all syscalls have been
converted.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3025
Nicholas Nethercote [Tue, 16 Nov 2004 17:13:24 +0000 (17:13 +0000)]
Converted the last syscalls. Phew. Still some cleaning up to do, esp. with
socketcall() and ipc() which are done too simplistically.
Also, VG_([gs]et_thread_area)() both now return -VKI_EFAULT if they are given a
NULL pointer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3024
Nicholas Nethercote [Tue, 16 Nov 2004 16:15:41 +0000 (16:15 +0000)]
Converted the timer_* and clock_* syscalls.
Also now checking the return value of every syscall in scalar, to make sure
that they (mostly) fail as expected. Because occasionally one would succeed
unexpectedly and unaddressable memory would be marked as addressable, and
things would go haywire. (The fact that the wrapper sets the memory as
addressable in these cases is a bug with the relevant wrappers; I'll fix them
later.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3023
Nicholas Nethercote [Tue, 16 Nov 2004 12:58:04 +0000 (12:58 +0000)]
Converted the io_* and mq_* syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3022