877 Commits

Author SHA1 Message Date
Petar Jovanovic
00d404c557 mips: additional test case for fix in VEX r2648
Test program that triggers different corner cases related to position of
branch instruction and max size of a translation block (60 instructions).
Fix for these issues has been submitted in r2648.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13248
2013-01-20 18:27:39 +00:00
Philippe Waroquiers
6fb1158a78 Implement --merge-recursive-frames + provide VALGRIND_MONITOR_COMMAND client req.
In a big applications, some recursive algorithms have created
hundreds of thousands of stacktraces, taking a lot of memory.

Option --merge-recursive-frames=<number> tells Valgrind to
detect and merge (collapse) recursive calls when recording stack traces.
The value is changeable using the monitor command
'v.set merge-recursive-frames'.

Also, this provides a new client request: VALGRIND_MONITOR_COMMAND
allowing to execute a gdbsrv monitor command from the client
program.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13246
2013-01-20 17:11:58 +00:00
Florian Krohm
a255caf02a s390: Add ecag.stdout.exp-zec12 to EXTRA_DIST.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13219
2013-01-10 15:44:28 +00:00
Christian Borntraeger
4836e36fee add ecag exp file for zec12
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13218
2013-01-09 14:54:33 +00:00
Florian Krohm
963e82c6fe s390: Add testcases for DFP "shift significant" insns.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
Part of fixing BZ 307113.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13215
2013-01-01 22:20:12 +00:00
Florian Krohm
83a2d3c94d s390: Add testcase for "test data class/group" insns.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
This is part of fixing BZ 307113.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13214
2012-12-28 15:54:23 +00:00
Julian Seward
415490d305 Improvements to the built-in profiling infrastructure:
--profile-flags=00000000 now prints summary statistics, one line per
profiled block, but with no translation details.  Previously it had
no effect.

--profile-interval=<number> is a new flag that causes the profile data
to be dumped and zeroed every <number> event checks.  This makes it
possible to get profile data without waiting for runs to end, and to
get profile data which depends on the current workload etc.  If
--profile-interval=0 or is unset, the profile is printed only once, at
the end of the run, as before.

--profile-flags=XXXXXXXX (for at least one nonzero X) prints the
summary lines both at the start and end of the profile, so you don't
have to scroll back up to the top to see the summary.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13213
2012-12-28 09:12:14 +00:00
Florian Krohm
28063e7da5 s390: Add testcases for ESDTR and EXDTR.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
Part of fixing BZ #307113.

[ r13211 was also implemented by Maran. ]


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13212
2012-12-27 20:17:32 +00:00
Florian Krohm
3df5c8e140 valgrind side changes to support Iop_CmpExpD64 and Iop_CmpExpD128.
VEX buddy patch is r2617.
Enhance testcase for CEDTR and CEXTR. Adapt vbit tester.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
This is part of fixing BZ 307113.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13203
2012-12-26 17:48:46 +00:00
Bart Van Assche
6ec551dd8b none/tests/process_vm_readv_writev: Avoid that compilation of this test program triggers a compiler warning
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13201
2012-12-24 11:14:08 +00:00
Florian Krohm
5bdda85fd8 s390: Add testcases for CDTR, CXTR, LDETR. LXDTR, LEDTR, LDXTR.
This is part of fixing BZ 307113.
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13196
2012-12-23 16:17:18 +00:00
Florian Krohm
46ee8bb20a Companion patch to VEX r2605. Adds a few testcases and adapts the vbit
tester. This is part of fixing BZ #307113. 
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13195
2012-12-21 18:34:48 +00:00
Julian Seward
0b16d79838 Add test cases for the UMAAL instruction.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13176
2012-12-12 00:17:33 +00:00
Julian Seward
3e9eadf4b4 The Signedness Police visit a couple of outlying systems in the Delta
Quadrant.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13166
2012-12-06 22:41:47 +00:00
Julian Seward
f192a5574d Make diagnostics for SIGILL more controllable (Valgrind part).
Fixes #309425.  (Mark Wielaard, mjw@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13164
2012-12-06 18:08:54 +00:00
Florian Krohm
e83029ca76 Fix golden log.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13156
2012-12-06 03:56:14 +00:00
Julian Seward
4180623ef8 Add a new command line flag, --extra-debuginfo-path=path, that allows
specification of an extra directory in which to look for debuginfo
objects.  Fixes #310792.  (Alex Chiang, achiang@canonical.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13154
2012-12-05 22:15:14 +00:00
Philippe Waroquiers
32f5a1eb3a Fix missing in EXTRA_DIST errors reported by check_makefile_consistency
memcheck/tests/amd64/Makefile.am:1: error: insn-bsfl.stderr.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-bsfl.stdout.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-bsfl.vgtest is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pcmpistri.stderr.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pcmpistri.stdout.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pcmpistri.vgtest is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pmovmskb.stderr.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pmovmskb.stdout.exp is missing in EXTRA_DIST
memcheck/tests/amd64/Makefile.am:1: error: insn-pmovmskb.vgtest is missing in EXTRA_DIST
none/tests/s390x/Makefile.am:1: error: dfp-1.stderr.exp is missing in EXTRA_DIST
none/tests/s390x/Makefile.am:1: error: dfp-1.stdout.exp is missing in EXTRA_DIST
none/tests/s390x/Makefile.am:1: error: dfp-1.vgtest is missing in EXTRA_DIST



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13152
2012-12-05 20:20:25 +00:00
Florian Krohm
d5b0b4d67f Beef up testcase. Announce fix.
Part of fixing BZ 310931.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13150
2012-12-04 04:46:52 +00:00
Florian Krohm
7e7f7094d4 Add testcase for LAA insn.
Patch by Divya Vyas (divyvyas@linux.vnet.ibm.com).
Part of fixing BZ #306035.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13146
2012-12-02 20:58:45 +00:00
Florian Krohm
b87aa67392 Final patch for Char/HChar mixups.
Remove -Wno-pointer-sign from configure.in.
Fixes 273227.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13125
2012-11-18 00:36:15 +00:00
Florian Krohm
12fec34e2f Add missing files. They should have been added in r13120.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13121
2012-11-11 13:59:54 +00:00
Florian Krohm
78ec60e0e7 Update s390_features.c for DFP.
Add a testcase.
Patch by Maran (maranp@linux.vnet.ibm.com).
Part of fixing BZ 307113.
See also VEX r2560.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13120
2012-11-10 22:35:24 +00:00
Florian Krohm
6dd9c9fe50 Fix fpconv.c to unbreak the build on z10ec.
Add rounding-6.c to test rounding modes for convert-to-fixed per m3
field. (The previous fpconv gave the impression of testing this but
in fact did not).
Add rounding.h to establish symbolic names for the various rounding
modes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13085
2012-10-27 14:25:28 +00:00
Philippe Waroquiers
979dc8596b Introduce a test to reproduce bug 123837 (semctl GETVAL false positive)
The test succeeds on amd64, but fails on x86, with the following diff:

+Syscall param semctl(arg) points to uninitialised byte(s)
+   at 0x........: semctl@@GLIBC_2.2 (semctl.c:109)
+   by 0x........: main (sem.c:36)
+ Address 0x........ is on thread 1's stack
+
+Syscall param semctl(arg) points to uninitialised byte(s)
+   at 0x........: semctl@@GLIBC_2.2 (semctl.c:109)
+   by 0x........: main (sem.c:43)
+ Address 0x........ is on thread 1's stack
+



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13073
2012-10-21 18:46:09 +00:00
Petar Jovanovic
d38c7c3e17 Add a proper support for several MIPS instructions that generate SigFPE.
Add support to properly handle TEQ, ADD and SUB instructions that generate
exceptions on MIPS platforms. A SignalException test for MIPS32 has also been
added, so we can cover more cases.

This resolves:

none/tests/faultstatus
gdbserver_tests/mcsignopass
gdbserver_tests/mcsigpass


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13059
2012-10-19 14:45:17 +00:00
Florian Krohm
4d1f391529 Fix compile errors following function prototype change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13040
2012-10-14 02:58:42 +00:00
Philippe Waroquiers
3d14e1d1d7 Some wrong options silently ignored if starting with same letters as valid option
For example, options below are silently "accepted"+ignored:
  valgrind --profile-heaps=yes --max-stackframes=35 memcheck/tests/trivialleak
  valgrind --profile-heaps=oui --max-stackframes=3.141592654 memcheck/tests/trivialleak

Also fixed the on-line --help output for option --core-redzone-size



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13037
2012-10-12 21:46:55 +00:00
Christian Borntraeger
1a3b5409fc newer versions of devel headers expose CLONE flags only with _GNU_SOURCE
defined


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13035
2012-10-08 20:35:13 +00:00
Florian Krohm
7d59048401 This is the 2nd installment of the cache info reorganisation.
The host's VexArchInfo is passed to the tool instrumentation
functions. Purely mechanic patch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13031
2012-10-07 21:59:42 +00:00
Florian Krohm
d5b07d8cf1 s390: Add a few more test from olden times.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13027
2012-10-07 04:00:48 +00:00
Florian Krohm
1e03eb7522 s390: Add a few more testcases from long time ago.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13026
2012-10-06 18:02:46 +00:00
Florian Krohm
75b7289d82 s390: Add testcase for some integer comparison insns
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13012
2012-09-23 00:42:49 +00:00
Florian Krohm
b792917720 s390: Add testcases for srnm and srnmb. Update opcode status list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12997
2012-09-18 20:25:23 +00:00
Julian Seward
023cba9950 Add tests for: uqsub16 shadd16 uhsub8 uhsub16. See #304035.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12981
2012-09-17 15:29:53 +00:00
Julian Seward
d362026f49 Add test cases for PCMPxSTRx variant $0x46. See #306664.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12979
2012-09-17 13:43:57 +00:00
Florian Krohm
bf570874fc s390: Add a testcase for 32/64-bit bfp comparison insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12975
2012-09-15 02:22:46 +00:00
Florian Krohm
01f00317de s390: Add testcase for bfp multiply-and-add/sub
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12968
2012-09-13 15:09:53 +00:00
Florian Krohm
479b63d853 s390: Add testcase for square root and load positive/negative/complement.
Tests are for 32/64-bit values only.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12967
2012-09-13 03:04:23 +00:00
Florian Krohm
ef5f5e1119 s390x: Testcases for floating point 32/64-bit. Related to VEX r2525.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12966
2012-09-12 19:40:14 +00:00
Florian Krohm
32930aaa32 s390: Add a testcase for condition code computation for
convert-to-fixed. See VEX r2516. Part of fixing bugzilla #306054.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12958
2012-09-06 03:22:16 +00:00
Florian Krohm
2d935572f5 Update testcase as a followup to VEX r2509.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12955
2012-09-03 17:45:15 +00:00
Florian Krohm
4c07b236f4 Add testcase to check the emulation warning for new supported opcodes
on hosts without floating point extension facility.
See companion patch VEX r2501.
Part of fixing bugzilla #306098.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12935
2012-09-02 18:10:34 +00:00
Florian Krohm
02be5e72db Change s390-features to allow testing for absence of a feature.
This is infintely less painful than to find out how to invert
the condition in a test prerequisite.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12928
2012-09-02 03:30:38 +00:00
Florian Krohm
d1bb8e6017 Fix Makefile.am for fpext_fail testcase.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12926
2012-09-01 23:43:03 +00:00
Florian Krohm
62e8c66124 s390: Add testcase for emulation failure.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12922
2012-09-01 17:55:10 +00:00
Florian Krohm
1229190124 s390: Valgrind-side changes to fixing bugzilla #274695:
Testcase, vbit tester update, memcheck support for the new IROps,
NEWS announcement and opcode list update.
Patch by Christian Borntraeger (borntraeger@de.ibm.com).
Vbit tester tweaks by myself.
Fixes bugzilla #274695.
See also companion patch VEX r2496.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12921
2012-09-01 00:15:45 +00:00
Florian Krohm
a59c1512ac Remove .deps directory.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12909
2012-08-28 18:37:40 +00:00
Florian Krohm
07b6da4bbb Fix EXTRA_DIST. Add dummy .exp file to satisfy the consistency checker
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12904
2012-08-28 00:38:47 +00:00
Florian Krohm
16690f1ef5 s390: Add testcase for the ecag insn. Based on patch by
Divya Vyas (divyvyas@linux.vnet.ibm.com). Update opcode list.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12903
2012-08-26 19:05:06 +00:00