7970 Commits

Author SHA1 Message Date
Bart Van Assche
f938bef38f Reimplemented the _VKI_IOC_TYPECHECK() macro such that it doesn't trigger a
compiler warning on PPC when it shouldn't.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11180
2010-06-15 14:55:28 +00:00
Bart Van Assche
97d73041af Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11179
2010-06-15 13:02:48 +00:00
Tom Hughes
55aa9d747f Avoid reading beyond the end of the environment variable when
using mash_colon_env to remove paths. Should fix #215914.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11178
2010-06-15 12:49:07 +00:00
Julian Seward
efded08326 Add a test program for SSE4 instructions. Currently not integrated
into the build/regtest system.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11177
2010-06-15 08:16:00 +00:00
Bart Van Assche
45037a25dc Fixed compiler warnings about casting from const char * to char *.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11176
2010-06-14 18:12:56 +00:00
Julian Seward
05124264b0 Remove link_tool_exe.c and replace it with perl scripts that do the
same thing.  A .c file doesn't work for cross compilation.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11174
2010-06-13 22:13:58 +00:00
Bart Van Assche
c5ff2d6f4d PowerPC: only compile Altivec instructions when the CPU supports these. Fixes bug #238745.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11173
2010-06-13 14:49:04 +00:00
Bart Van Assche
8ac697bb57 Made the abort() function available on PPC too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11172
2010-06-13 13:46:24 +00:00
Tom Hughes
725752d4ea Fixed bogus check of RES in the ioctl PRE handler introduced
in r11124 while fixing #235642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11171
2010-06-10 15:01:02 +00:00
Josef Weidendorfer
46450c3563 Fix typo introduced with r11165, include "Ge" in regtests
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11170
2010-06-10 12:50:22 +00:00
Bart Van Assche
a3b8fe45f5 Follow-up for r11164: made sure that the --build-id=none configure test works (was reported by Dave Goodell).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11169
2010-06-10 06:26:21 +00:00
Josef Weidendorfer
c3b643bb35 Callgrind new feature: count global bus lock events "Ge"
To count global bus lock events, use "--collect-bus=yes".
For x86, this will count the number of executed instructions
with a lock prefix; for architectures with LL/SC, this will
count the number of executed SC instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11167
2010-06-09 22:33:02 +00:00
Josef Weidendorfer
c2abab1f04 Callgrind: make globals for log_* helpers visible outside sim.c
At beginning of each BB, Callgrind inserts a call to setup_bbcc,
which (among a lot other things), sets global vars needed for
the log_* helpers called afterwards in this BB.

These globals, bb_base and cost_base, previously we static declared
and only visible in sim.c. Make them visible also in the rest of
callgrind to allow for log_* handlers outside sim.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11166
2010-06-09 22:32:58 +00:00
Josef Weidendorfer
4d34d8da4d Callgrind: event sets now consist of event groups
Offsets of groups within event sets are now
stored in a offset table as part of the event set, and
can be accessed directly. Before, offsets were hardcoded
all over the place. This should make addition of further
event groups much simpler.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11165
2010-06-09 22:32:53 +00:00
Bart Van Assche
94b8698cc8 Added a configure test for the linker flag --build-id=none.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11164
2010-06-08 18:23:59 +00:00
Bart Van Assche
bc3f04b134 Added a suppression pattern for __nptl_deallocate_tsd().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11163
2010-06-08 15:00:18 +00:00
Bart Van Assche
789bfd10d8 Added a suppression pattern for the boost thread library.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11152
2010-06-05 11:57:57 +00:00
Bart Van Assche
a5fc0fbec7 Updated Subversion ignore list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11151
2010-06-05 11:56:51 +00:00
Julian Seward
fac69dba30 on MacOSX, correctly propagate failure code of system() call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11147
2010-06-03 20:27:19 +00:00
Julian Seward
45c194f25d (for linux):
* pass --build-id=none to ld to stop it creating a.note.gnu.build-id
  exactly where we don't want it
 
* propagate error code from system() properly



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11146
2010-06-03 08:19:59 +00:00
Bart Van Assche
b0c39b2f5f Replaced dynamic initialization of DRD_(pthread_cond_initializer) by static initialization.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11145
2010-06-02 19:32:51 +00:00
Julian Seward
2bf5ac57cd Make link_tool_exe.c work for MacOSX. This un-breaks the MacOS build
following r11141.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11142
2010-06-02 00:46:58 +00:00
Julian Seward
c46347280b Add a new program (link_tool_exe.c) and use this to link the tool
executables.  Gets rid of the linker script kludgery and uniformly
uses -Ttext=0x38000000 (or whatever) on Linux, so as to accomodate
both traditional ld and gold.  Should fix #193413 although I have
been unable to test it.  Using a whole new program seems like
overkill, but this is infrastructure to support static linking of
the tool executables on MacOS too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11141
2010-06-02 00:31:34 +00:00
Bart Van Assche
b412aaa0f6 Updated Subversion ignore lists.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11140
2010-05-29 18:43:43 +00:00
Bart Van Assche
ebc0c2cb88 Handle statically initialized condition variables properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11139
2010-05-29 18:43:21 +00:00
Bart Van Assche
66daf93864 Added a regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11138
2010-05-29 18:42:14 +00:00
Bart Van Assche
7fadd5510a Can be processed again with autoconf 2.59 and before, which does not have AC_PROG_SED.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11137
2010-05-29 06:44:28 +00:00
Julian Seward
415232cfec libhb_so_recv(): don't pass a NULL filter to Filter__clear. Not sure
why thr->filter can be NULL here, though.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11136
2010-05-28 20:09:59 +00:00
Bart Van Assche
11cbd5ab82 Updated e-mail address.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11135
2010-05-27 10:43:21 +00:00
Tom Hughes
6d2c5d0342 Set VG_(args_the_exename) to the full path to the script when
loading a script as client. Closes #238345.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11134
2010-05-25 08:45:44 +00:00
Tom Hughes
f26002da90 Fix amd64 and ppc64 to correctly mark mq_timedreceive as LINXY so that
the post handler is run to mark the retrieved message as correct.

Also change the post handler to only mark the number of bytes actually
returned as defined, rather than the whole buffer.

Fixes #238679.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11133
2010-05-24 13:40:10 +00:00
Bart Van Assche
e5e599d67b Changes:
- Made glibc version detection test shorter and faster.
- Made unsupported glibc version error message more detailed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11132
2010-05-15 08:37:24 +00:00
Julian Seward
06ee4f712b Add missing backslash.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11131
2010-05-14 11:18:52 +00:00
Bart Van Assche
178c001a3c Added an additional tl_assert() statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11130
2010-05-13 08:10:52 +00:00
Bart Van Assche
c97f0cde02 Added support for glibc 2.12.
Note: many Helgrind and DRD regression tests still fail on Fedora 13 because
of differences in the call stacks of error reports compared to earlier
glibc/gcc combinations.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11129
2010-05-13 06:32:36 +00:00
Bart Van Assche
4dc56ebc78 DRD: added a suppression pattern for the libstdc++ included with gcc 4.4.4.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11128
2010-05-12 10:01:32 +00:00
Julian Seward
06b158b13b Add test cases for XADD reg,reg. (Nicolas Sauzede, nicolas.sauzede@st.com).
See #195662.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11127
2010-05-10 20:53:28 +00:00
Julian Seward
bbf4d274fd Enable testing of FISTS and FISTPS on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11126
2010-05-10 20:06:08 +00:00
Julian Seward
2e6b7655d1 New flag --require-text-symbol=:sopatt:fnpatt, to be used to check
that specified shared objects contain specified symbols.  Along with a
couple of regtests that unfortunately will fail on MacOSX.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11125
2010-05-09 22:30:43 +00:00
Tom Hughes
ef5b3e48b6 Add support for some EVIO ioctls. These are a bit abnormal because
the length part of the ioctl is not fixed so they are essentially
families of ioctls.

Based on patch from Peter Korsgaard. Fixes #235642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11124
2010-05-07 15:32:04 +00:00
Julian Seward
3b14257eb1 Rollup changes for Helgrind:
* Add new client request VALGRIND_HG_CLEAN_MEMORY_HEAPBLOCK.  This is
  like VALGRIND_HG_CLEAN_MEMORY but doesn't take an address range.
  Instead it takes a single argument which is supposed to be a pointer
  to the start of, or anywhere within, a heap allocated block.
  Helgrind then finds the block and paints it as belonging to the
  calling thread.  This is needed for correctly describing the
  behaviour of threadsafe reference counting when applied to classes
  involving inheritance of release methods or involving multiple
  inheritance.

* Add statistics counters for all basic VTS operations (tick, join,
  cmpLEQ, cmp_structural).

* Rewrite VTS__cmp_structural to be much faster.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11123
2010-05-05 09:34:42 +00:00
Julian Seward
d4a18f87cc Add a method to get the contents of an XArray so we can index in
it really fast, or iterate over it.  This is dangerous and breaks
the nice abstraction (sigh).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11122
2010-05-05 09:23:41 +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
Bart Van Assche
ab1476a932 Filter tuning such that the annotate_barrier test does now pass on Darwin too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11120
2010-04-29 17:44:23 +00:00
Bart Van Assche
b86a053f92 Refactoring: replaced two AC_TRY_COMPILE() occurrences by AC_CHECK_MEMBER().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11119
2010-04-29 16:37:26 +00:00
Bart Van Assche
763fcd734d Improved portability of the annotate_barrier regression test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11118
2010-04-29 16:05:54 +00:00
Bart Van Assche
a1d439d35b Made these two tests pass again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11117
2010-04-29 15:50:02 +00:00
Bart Van Assche
eff767211d Removed sem_init() test again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11116
2010-04-29 15:49:32 +00:00
Tom Hughes
302b1aad55 Include fcntl.h to get O_CREAT on Fedora 13.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11115
2010-04-29 09:36:35 +00:00
Tom Hughes
8e3cd040cb Link the tls test against tls2.so as it references symbols in it
and Fedora 13 no longer allows so's to be required indirectly (via
tls.so in this case).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11114
2010-04-29 09:22:25 +00:00