Commit Graph

4640 Commits

Author SHA1 Message Date
Tom Hughes
be6253f17c Sync system call lists with 2.6.17-rc4 kernel source.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5904
2006-05-17 13:53:23 +00:00
Julian Seward
efcd6e4f21 gcc 3.3.3 on ppc64-linux believes (perhaps correctly) that 'fd' can be
used when uninitialised.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5903
2006-05-15 19:27:56 +00:00
Julian Seward
9c6a78154e Yet more messing with masking approximate results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5902
2006-05-13 02:20:11 +00:00
Julian Seward
2faaa03d72 Update expected outputs following r5895.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5901
2006-05-13 01:54:15 +00:00
Julian Seward
436b6ebcdd Apparently Intel's rcpps etc approximations are more approximate than
AMD's.  Kludge everything accordingly.  Sigh.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5900
2006-05-13 01:32:41 +00:00
Julian Seward
40f0baa4ff Update expected results following change in r5898.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5899
2006-05-13 00:34:52 +00:00
Julian Seward
11d8cd39c7 Add masking for results of rcpps/rcpss/rsqrtps/rsqrtps so as to give
consistent results on all platforms.  Expected outputs not updated
yet.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5898
2006-05-13 00:23:56 +00:00
Julian Seward
874d81903e A new flag, --error-exitcode=, has been added, to allow changing the
exit code in runs where Valgrind reported errors.  Fixes #121814 and
#126517.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5897
2006-05-12 23:50:15 +00:00
Julian Seward
6c0bb3620a Oops, this should have been in r5895.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5896
2006-05-12 23:35:10 +00:00
Julian Seward
0eb39e5af3 Increase number of unsuppressed errors shown before cutoff by a factor
of 100.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5895
2006-05-12 23:12:30 +00:00
Julian Seward
02eae667a9 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5894
2006-05-12 21:19:00 +00:00
Julian Seward
931b079b96 Regression test for clc/stc/cmc on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5893
2006-05-12 20:28:26 +00:00
Julian Seward
4950ba1806 Comprehensive tests for bt{s,r,c,}{w,l,q} on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5892
2006-05-12 19:50:44 +00:00
Julian Seward
35b78ba27f Test x86 {push,pop}{w,l}.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5891
2006-05-12 14:24:18 +00:00
Nicholas Nethercote
a50c624ded Add a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5890
2006-05-09 18:46:01 +00:00
Tom Hughes
3df6790520 Tidy up bug status file and document a few new fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5889
2006-05-09 09:07:53 +00:00
Tom Hughes
7ea1789a97 Ignore offset information in anonymous mmap calls. Fixes bug #126722.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5888
2006-05-09 09:06:56 +00:00
Julian Seward
93ee683509 Tests for 16/32 bit byte reversed loads and stores.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5887
2006-05-08 12:08:49 +00:00
Tom Hughes
6076d2c38b Don't check the fifth argument of mremap() unless MREMAP_FIXED is set
in the fourth argument. Fix to bug #123535.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5886
2006-05-08 11:58:06 +00:00
Tom Hughes
17b262ab87 Add support for CDROMREADRAW and fix CDROMREADTOCENTRY to mark the right
number of bytes as defined in the post handler. Fixes bug #126696.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5885
2006-05-08 11:37:04 +00:00
Tom Hughes
490abde206 Fix linkat, renameat and symlinkat wrappers to look at the arguments
correctly. Fixes bug #126938.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5884
2006-05-08 11:19:47 +00:00
Julian Seward
3e4125d88e Another suppression needed by SuSE 10.0 on ppc32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5883
2006-05-07 23:38:23 +00:00
Julian Seward
132d4d6fd4 Increase scheduling quantum to 100k basic blocks. Nowadays even
modest cpus can run 5-10M memcheck'd bbs per second and the previous
limit of 50k gives a 100Hz switch rate, which causes cache pollution
(a known performance problem) and other context-switch overheads.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5882
2006-05-07 14:37:03 +00:00
Julian Seward
6fc030b2be Fix printing bug in PRE(sys_stat64).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5881
2006-05-04 16:43:34 +00:00
Julian Seward
23ad3fce2f Vectorise copy_address_range_perms for common cases. This gives about
40% speedup on artificial programs which just do realloc() and nothing
else, and about a 3-4% speedup on starting kpresenter-1.5.0 and
loading a 16-slide presentation.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5880
2006-05-03 22:13:57 +00:00
Julian Seward
e29f2850f6 Tests for the mov{z,s}{bw,bl,wl} instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5879
2006-05-03 18:09:41 +00:00
Julian Seward
dcd8cbbf74 Update the Ever-Growing List Of Sins.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5878
2006-05-03 15:12:09 +00:00
Julian Seward
e65eacec30 Increase # supported threads to 300 (see #126217).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5877
2006-05-03 13:52:47 +00:00
Julian Seward
5771e24833 Print a slightly more helpful error message if the log file creation fails.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5876
2006-05-03 13:52:17 +00:00
Julian Seward
3f8027095c Add another test of permissions range copying (copy_address_range_perms).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5875
2006-05-03 00:43:20 +00:00
Julian Seward
914a317eb9 Get rid of executable permissions on C source file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5874
2006-05-02 13:02:01 +00:00
Tom Hughes
f5f7215ba4 Add .type and .size directives for VG_(run_innerloop) and
VG_(run_a_noredir_translation) on all platforms where they are
missing.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5873
2006-05-01 09:28:39 +00:00
Josef Weidendorfer
835f28229d Make VG_(run_innerloop) visible for outer Valgrinds
with self hosting. Without this, the symbol has
size 0 and type NOT, and is ignored by the symbol loader.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5872
2006-05-01 02:12:58 +00:00
Josef Weidendorfer
4daf8d83d6 Hint to better run with option "--pop-on-jump" when doing
self-hosting runs with outer callgrind.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5871
2006-05-01 01:49:28 +00:00
Josef Weidendorfer
e4417538ad Callgrind: Fix for callgrind_control
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5870
2006-05-01 01:38:32 +00:00
Josef Weidendorfer
4906b8a958 Callgrind: Improve self-hosting with outer callgrind tool
This adds an option to change the default handling of jumps
between functions. Usually, a jump between functions is
interpreted as call, because such jumps are typically
generated by compilers on tail recursion optimization, and
we want to present this as call to the user. Thus, such
a jump pushes a call onto callgrinds shadow stack.
The option "--pop-on-jump" changes this to pop+push the
shadow callstack: then, a jump between functions is seen
as a return to the caller and a new call.

The default behaviour is _bad_ for using callgrind with
self-hosting. Valgrinds inner loop VG_(run_innerloop)
jumps to generated code, and this code jumps back to
the inner loop. Thus, every executed BB adds 2 calls
to an ever increasing shadow call stack, leading to
memory consumption increasing with runtime :-(

So: For self-hosting valgrind with an outer callgrind,
always use option "--pop-on-jump" for the outer callgrind. 



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5869
2006-05-01 00:55:54 +00:00
Julian Seward
8ca05cc698 Get rid of VG_(x86_linux_REDIR_FOR__dl_sysinfo_int80) and do the x86-linux
stack unwind kludge another way.  This is believed to fix #108258.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5868
2006-04-29 18:03:14 +00:00
Julian Seward
f53d99901d Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5867
2006-04-29 18:01:46 +00:00
Julian Seward
40afe29cc7 Un-break 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5866
2006-04-29 12:50:06 +00:00
Julian Seward
ed4db0bbc5 Fix completely bogus asm, which didn't work when compiled with gcc-4.1.0
since it trashed the regs that gcc assigned for %0 and %1 before reading
them.  local_sys_write_stderr() for the 3 other targets suffer from the
same problem.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5865
2006-04-28 21:01:33 +00:00
Dirk Mueller
a0d79c6e9f split the assert so that its more obvious which
part is failing


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5864
2006-04-27 11:05:13 +00:00
Nicholas Nethercote
67ce2183c9 Update 64-bit cleanness info.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5863
2006-04-23 10:51:48 +00:00
Josef Weidendorfer
b1eb513b99 Another fix for interactive control, together with
the --base option, which allows to specify another
directory for dumps and control/result files.
With "--base=/tmp/foo", we want control/result files
in "/tmp", and not in a directory "/tmp/foo/".


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5862
2006-04-21 01:02:13 +00:00
Josef Weidendorfer
bc616b8492 Fixes for interactive control:
- callgrind_control was not working, because it checks the
  "command syntax version" to be at most 1 before doing anything.
  But callgrind used Valgrinds version for this (3.2.0). Now we
  define a separate version COMMAND_VERSION for the syntax format
  of control and result files.
  Strictly, such a version is not needed for interaction of
  callgrind and the script callgrind_control itself, as they are
  delivered in the same package. But there are also external
  controlling tools (most notable KCachegrind)

- Some systems make it difficult for callgrind_control to
  automatically detect running callgrind processes. To make
  interactivity work, one has to provide the cwd with -w.
  For commands expecting a result from callgrind, this result
  was delivered in the wrong result file.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5861
2006-04-21 00:58:58 +00:00
Julian Seward
e717ec89e9 Add support for sys_broc on amd64-linux when --kernel-variant=bproc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5860
2006-04-20 14:38:50 +00:00
Julian Seward
7366e48895 Almost all the stuff in pub_tool_libcsignal.h was not used by any tool;
so has been moved back into pub_core_libcsignal.h.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5859
2006-04-19 19:31:46 +00:00
Julian Seward
e890d00574 Build fixes for gcc-3.3.3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5858
2006-04-19 09:30:33 +00:00
Nicholas Nethercote
8e42c9224c - Fix indentation in one section of Cachegrind
- In the same section, use VG_(percentify) to avoid overflow when computing
  information for -v printing.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5857
2006-04-18 22:34:48 +00:00
Julian Seward
d9a7fe71b4 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5856
2006-04-18 02:04:52 +00:00
Nicholas Nethercote
13cc620dda update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5855
2006-04-18 00:52:37 +00:00