67 Commits

Author SHA1 Message Date
Florian Krohm
e50359ee42 Improve help message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13266
2013-01-24 21:32:32 +00:00
Florian Krohm
4a60891892 Re-establich configury checking for -Wno-pointer-sign. We need that
flag to compile pref/tinycc.c. Sigh.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13126
2012-11-18 14:39:11 +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
44100fc7db Upon successful run, remove temporary files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12991
2012-09-17 21:20:06 +00:00
Julian Seward
4a3633e266 Update copyright dates to include 2012.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843
2012-08-05 15:46:46 +00:00
Philippe Waroquiers
244ccd72d3 Have perf/vg_perf handling EXTRA_REGTEST_OPTS
Similarly to tests/vg_regtest, allow to run all perf tests with extra options.
(note: it was preferred to use the same env var name).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12777
2012-07-24 19:47:46 +00:00
Philippe Waroquiers
2bd926a725 outer/inner setup: new perf/vg_perf options to run perf tests + support translation chaining in inner.
* perf/vg_perf:
Similarly to tests/vg_regtest, perf/vg_perf now accepts the 3 
optional arguments:
    --outer-valgrind
    --outer-tool
    --outer-args

This allows easy analysis or comparison of performance between
different Valgrind versions (e.g. using callgrind, or cachegrind/cg_diff).

* See README_DEVELOPERS for more details.

* vg_regtest modified so as to use the 'in-place' build of inner, rather
  than the installed version.

* added option --smc-check=all-non-file to vg_perf and vg_regtest 
  outer default arguments (needed when evaluating a Valgrind which does
  translation chaining).




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12496
2012-04-08 19:52:38 +00:00
Philippe Waroquiers
4ea8a59e63 Add a perf test to measure the speed (and memory) of PDB handling.
* modified perf/heap.c so that it optionally creates a partially defined bytes every N bytes
* created perf/heap_pdb4.vgperf calling heap 4 (so one byte on 4 is PDB in what heap allocates).

before/after pool alloc, here are the performances on a ppc64. So, it looks like
pool alloc also significantly improves the speed of PDB handling.

perl perf/vg_perf --vg=../pool_alloc --vg=../before_pool_trunk_untouched --reps=5 perf/heap_pdb4.vgperf 
-- heap_pdb4 --
heap_pdb4 pool_alloc:0.41s  no: 3.0s ( 7.3x, -----)  me:11.9s (29.0x, -----)
heap_pdb4 before_pool_trunk_untouched:0.41s  no: 3.1s ( 7.6x, -3.7%)  me:16.9s (41.1x,-41.7%)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12342
2012-01-17 22:27:47 +00:00
Philippe Waroquiers
c953f410c8 Fix 247386 make perf does not run all performance tests :
* move memcheck/perf/many-loss-records test to perf directory
       massif/perf/many-xpts test to perf directory
* modified many-loss-records.vgperf and many-xpts.vgperf,
  so as to have tool specific options prefixed with their tool
* remove directory memcheck/perf and massif/perf (containing no test anymore)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12315
2011-12-23 11:42:20 +00:00
Julian Seward
c96096ab24 Update all copyright dates, from 20xy-2010 to 20xy-2011.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206
2011-10-23 07:32:08 +00:00
Bart Van Assche
8094ca4c43 perf/tinycc.c: Avoid that clang warns about out-of-bounds accesses for
array tab[] and also avoid that clang warns about the formatting flag 'L'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12114
2011-10-07 09:49:44 +00:00
Bart Van Assche
8a3e9fdd7c git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682 2011-04-03 17:42:19 +00:00
Julian Seward
9b0574dff8 Update copyright dates to 2010.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121
2010-05-03 21:37:12 +00:00
Nicholas Nethercote
00f539d573 Remove the --all option from vg_perf. It's useless now that there are
tool-specific tests in massif/perf/ and memcheck/perf/.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10390
2009-07-01 04:50:41 +00:00
Nicholas Nethercote
b05a2a18d7 This commit merges the BUILD_TWEAKS branch onto the trunk. It has the
following improvements:

- Arch/OS/platform-specific files are now included/excluded via the
  preprocessor, rather than via the build system.  This is more consistent
  (we use the pre-processor for small arch/OS/platform-specific chunks
  within files) and makes the build system much simpler, as the sources for
  all programs are the same on all platforms.

- Vast amounts of cut+paste Makefile.am code has been factored out.  If a
  new platform is implemented, you need to add 11 extra Makefile.am lines.
  Previously it was over 100 lines.

- Vex has been autotoolised.  Dependency checking now works in Vex (no more
  incomplete builds).  Parallel builds now also work.  --with-vex no longer
  works;  it's little use and a pain to support.  VEX/Makefile is still in
  the Vex repository and gets overwritten at configure-time;  it should
  probably be renamed Makefile-gcc to avoid possible problems, such as
  accidentally committing a generated Makefile.  There's a bunch of hacky
  copying to deal with the fact that autotools don't handle same-named files
  in different directories.  Julian plans to rename the files to avoid this
  problem.

- Various small Makefile.am things have been made more standard automake
  style, eg. the use of pkginclude/pkglib prefixes instead of rolling our
  own.

- The existing five top-level Makefile.am include files have been
  consolidated into three.

- Most Makefile.am files now are structured more clearly, with comment
  headers separating sections, declarations relating to the same things next
  to each other, better spacing and layout, etc.

- Removed the unused exp-ptrcheck/tests/x86 directory.

- Renamed some XML files.

- Factored out some duplicated dSYM handling code.

- Split auxprogs/ into auxprogs/ and mpi/, which allowed the resulting
  Makefile.am files to be much more standard.

- Cleaned up m_coredump by merging a bunch of files that had been
  overzealously separated.

The net result is 630 fewer lines of Makefile.am code, or 897 if you exclude
the added Makefile.vex.am, or 997 once the hacky file copying for Vex is
removed.  And the build system is much simpler.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10364
2009-06-24 00:37:09 +00:00
Nicholas Nethercote
f3f801ed48 Merge r9533..9536 (add tests/{asm.h,sys_mman.h,malloc.h} from the DARWIN
branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9537
2009-04-15 03:12:43 +00:00
Nicholas Nethercote
2001629c3f Updated copyright years.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9344
2009-03-10 22:02:09 +00:00
Nicholas Nethercote
db7b95c5d4 Remove WERROR. It's not much use because getting Valgrind to build without
errors on all platforms is very difficult.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9267
2009-02-25 23:19:46 +00:00
Nicholas Nethercote
94ed569cdc Fix some more 'make check' warnings, ones that appear on non-Linux
platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9238
2009-02-23 07:17:08 +00:00
Nicholas Nethercote
2ae89cee5d Get rid of all "make check" compile warnings, except for the ones from
fxtract.c.

Also, gets rid of some of the warnings that -Wextra finds in Massif.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9237
2009-02-23 06:44:51 +00:00
Nicholas Nethercote
c8d150dbaa Various build system clean-ups and simplifications:
- Created Makefile.tool-tests.am, put standard AM_CFLAGS et al for tests in
  it.
- A number of tests are shared between Helgrind and DRD.  They used to be
  built in both directories.  Now they are only built in helgrind/tests/,
  and the DRD .vgtest files just point to the executable in helgrind/tests/.
  Most of these (about 30) had the source files in helgrind/tests/;  I moved
  the three that were in drd/tests/ into helgrind/tests/ for consistency.
- Fixed rwlock_test, which was failing to run due to a wrong name in the
  .vgtest file.
- Removed remnants of unused 'hello' test for Memcheck.
- Avoided redundant flag specification in various places, esp.
  memcheck/tests/Makefile.am.
- Removed unnecessary _AIX guards in some Linux-only tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9202
2009-02-19 09:52:05 +00:00
Julian Seward
5679a22410 Update copyright dates ("200X-2007" --> "200X-2008").
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398
2008-02-11 11:34:59 +00:00
Dirk Mueller
6f4b767398 updating licensing wording
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6782
2007-08-27 10:05:51 +00:00
Nicholas Nethercote
a01fea1a7a Simplify some Perl.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6569
2007-02-02 23:23:01 +00:00
Julian Seward
172505c978 Update copyright dates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6488
2007-01-08 06:01:59 +00:00
Julian Seward
42a52f5272 Avoid name clash on ppc64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6452
2006-12-28 06:50:50 +00:00
Nicholas Nethercote
eef723fbcc An extension of the previous commit: the vg_perf --tools option is so useful
that I got rid of the "tools:" line in the .vg_perf files.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6364
2006-11-22 00:52:00 +00:00
Nicholas Nethercote
7a2f3512f4 Add a useful --tools option to vg_perf, which lets you override the "tools"
line in the .vgperf files from the command line.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6363
2006-11-22 00:39:08 +00:00
Nicholas Nethercote
931e8921fd Just use the first two letters of the toolname as the abbreviation.
Saves having to maintain a table of toolnames and abbreviations.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6344
2006-11-03 19:37:50 +00:00
Nicholas Nethercote
378f820775 Fix for nested subdirs
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6343
2006-11-03 19:35:20 +00:00
Nicholas Nethercote
7efcca54a0 Perf script:
- always trace into children
- addrcheck no longer exists



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6342
2006-11-03 19:30:33 +00:00
Julian Seward
068b29ae82 AIX build fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6308
2006-10-17 12:49:31 +00:00
Julian Seward
9010793a97 Merge r6207:
Make vg_perf work on AIX, by using the POSIX-portability flag for
/usr/bin/time.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6304
2006-10-17 02:30:17 +00:00
Julian Seward
4cf933e16b Merge r6205:
AIX requires that in the case of MAP_ANONYMOUS, fildes must be -1.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6302
2006-10-17 02:27:41 +00:00
Julian Seward
cb28dcdea2 Merge r6216:
Fix all the places where gcc complains about casts from pointers
(presumably 64 bit) to integers of different size (in this case,
32-bit int).  This makes it compile cleanly on 64-bit AIX and also
means it doesn't crash :-)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6297
2006-10-17 02:21:55 +00:00
Julian Seward
11f205dc50 Merge r6121: Don't define uchar; it might already be defined.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6260
2006-10-17 01:31:27 +00:00
Julian Seward
abc80f65ad Print native time to two places. Perhaps it would be better to adjust
the workloads to make some of the native runs take longer.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6222
2006-10-14 14:04:42 +00:00
Julian Seward
ad67fd79fe Update copyright dates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5954
2006-06-05 23:21:15 +00:00
Nicholas Nethercote
db00007839 Fix vg_perf to work with older Valgrind versions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5833
2006-04-06 22:59:35 +00:00
Nicholas Nethercote
c4cde48b67 Avoid compile warnings for tinycc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5801
2006-03-30 10:26:44 +00:00
Nicholas Nethercote
c271b4af41 Avoid unnecessary whitespace at end of printed lines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5790
2006-03-27 00:39:43 +00:00
Julian Seward
0a19390e1d Use the bz2 test in perf/ as a regression-test, just as a moderately
complex integer program which exercises Vex a bit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5585
2006-01-22 16:44:35 +00:00
Julian Seward
a402acd78e rm unneeded headers
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5584
2006-01-22 15:51:49 +00:00
Julian Seward
492acfafba Unbreak make dist.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5506
2006-01-09 09:30:48 +00:00
Julian Seward
32f134b8c1 Somewhat rehash the biarch-build machinery so as to (1) formalise the
distinction between primary and secondary build targets, and (2) make
it independent of the default behaviour of gcc (iow, what gcc does
when you specify neither -m32 nor -m64).

As a result, an out-of-the-box build on ppc64-linux now builds a
system which is basically for 64-bit PowerPC, but also has the ability
to run 32-bit ppc-linux binaries (exactly the same arrangement as you
get when building on amd64-linux).

There are various twists and turns.  multiple-architectures.txt is
updated all the gory details.

This will break amd64 builds until such time as
<tool>/tests/{amd64,x86}/Makefile.am are fixed up (shortly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5493
2006-01-04 01:20:28 +00:00
Julian Seward
16d5a1e2ba In fbench, compute sin/cos/sqrt from "first principles", so that the
program more uniformly measures the speed of FP +/-/* load/store
across different architectures.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5455
2005-12-28 04:18:20 +00:00
Julian Seward
bf87ad4bb6 Attempt to make tinycc work on ppc32, by (1) getting rid of various
x86 isms in tinycc.c, (2) giving it a fixed, preprocessed input file
to chew on, and (3) just compiling to a .o with no attempt to link.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5439
2005-12-26 03:54:49 +00:00
Nicholas Nethercote
a9ed901aff add extra note about tinycc
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5436
2005-12-25 06:27:51 +00:00
Nicholas Nethercote
f1f2e4c771 Change default --reps value from 3 to 1.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5423
2005-12-23 23:08:04 +00:00
Nicholas Nethercote
20ff27ca6a Add a new performance benchmark: tinycc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5394
2005-12-20 23:02:43 +00:00