History log of /external/valgrind/helgrind/hg_intercepts.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
09041e493017aee3d5c52fb2e1dc6db064518e5c 21-Oct-2014 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Rewritten to avoid cast that drops const qualification.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14647 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
8eebf23c35d97489c0d3c8b41dd542e00ae6acbd 18-Sep-2014 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix a few casts that dropped type qualifiers. As pointed out by
-Wcast-qual.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14554 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
d40aff57c031d626765691a2f1912ad4e95aa0dc 16-Jun-2014 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add helgrind intercepts to have helgrind understanding Ada tasks terination rules
A recent gnatpro version is needed for this to work.

Thanks to these intercepts, some false positive errors are avoided,
and helgrind properly recuperates some internal memory associated
to the terminated task.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14046 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
9c7779b64eacf264ee427b97ae0df8596b1960cc 24-Nov-2013 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge mc_replace_strmem.c, hg_intercepts.c and drd_strmem_intercepts.c

Move memcheck/mc_replace_strmem.c to shared/vg_replace_strmem.c and
add several intercepts for SSE-variants. Include that source file from
drd/drd_strmem_intercepts.c, helgrind/hg_intercepts.c and
memcheck/mc_replace_strmem.c.

Merge memcheck/tests/filter_memcpy into tests/filter_stderr_basic.

Update tests/check_headers_and_includes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13719 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
0f157ddb404bcde7815a1c5bf2d7e41c114f3d73 18-Oct-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates (20XY-2012 ==> 20XY-2013)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
c02f6c4eadb1c7aa4ed25a2e1c25e084bdea30ee 14-Oct-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix #323432: When calling pthread_cond_destroy or pthread_mutex_destroy
with initializers as argument Helgrind (incorrectly) reports errors.
(Peter Boström, valgrind@pbos.me)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13642 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
ff427c931b03df72de7dfb36d5cbb0c636a33705 14-Oct-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> For pthread_cond_destroy, don't report a false it's-still-waited-on
error if in fact the last wait finished with ETIMEDOUT.
Fixes #324149. (Peter Boström, valgrind@pbos.me)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13641 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
1a046d5a3c34f924b648cc22c01f0a8e02ca221e 16-Sep-2013 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Include pub_core/tool_clreq.h instead of valgrind.h where apropriate.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13555 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
19dfe03b731ca69bdfcee4e62010a5b5c98c4b5e 24-Mar-2013 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> fix 307082 HG false positive: pthread_cond_destroy: destruction of unknown cond var


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13332 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
d52defb89f010627648db12c2e4b81d5c575ef98 07-Feb-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add intercepts for some Qt5 functions. (David Faure, faure@kde.org)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13284 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
efa97a78702001e418eda042d4606d877550348b 18-Jan-2013 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Import from memcheck land, a less ludicrously inefficient
implementation of memcpy, which copies words at a time rather than
just bytes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13240 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
6d79b74ed20abe9e497d05a6669585678e80d027 20-Dec-2012 petarj <petarj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Introduce DISABLE_PTHREAD_SPINLOCK_INTERCEPT flag

The flag DISABLE_PTHREAD_SPINLOCK_INTERCEPT is set only for MIPS32, and it is
used in DRD and Helgrind as a workaround for the issue #311690.
In short, pthread_spin_lock implementation has local branches to the start of
the function which interferes with the redirection system in Valgrind that
assumes it has to redirect each call/branch to a particular address.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13190 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
654b542166d7f2e8e89f1cd8430e7ed2ba96f230 18-Nov-2012 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> 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 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
03f8d3fc25f5a45c5826259d1b33b7f310117279 05-Aug-2012 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates to include 2012.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
7c41246665528d6abc9ef08ffb0aa8ccb6d4d681 27-Mar-2012 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update the memcpy intercept for Helgrind in accordance with that
for Memcheck. Fixes #293855.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12468 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
4b3a74204894e943c43cb8e8aae39d813040702c 24-Oct-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix #284384 (clang 3.1 -Wunused-value warnings in valgrind.h,
memcheck.h) by changing a bunch of VALGRIND_DO_CLIENT_REQUEST_EXPR
into VALGRIND_DO_CLIENT_REQUEST_STMT for cases where the return value
of the former would be unused. (Bart Van Assche, bart.vanassche@gmail.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12226 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
ec062e8d96a361af9905b5447027819dfbfee01a 23-Oct-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update all copyright dates, from 20xy-2010 to 20xy-2011.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
6aeadaa4ccaf8f48e4f8b9cf6f17e22ff3dd0c4a 19-Oct-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix false positive following pthread_cond_timedwait failure.
Fixes #271917. (Philippe Waroquiers, philippe.waroquiers@skynet.be)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12164 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
31014dae410799bfb128af2d396ee70374fa4b75 26-Sep-2011 florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> Change the backtrace filtering machinery for the helgrind regression
bucket. Instead of removing what we don't want to see in a backtrace
(e.g. path segments through libc and libpthread), we simply keep what
we do want to see. That way .exp files can be generic.
We need to make sure that GCC inlining does not get in the way. So all
the ..._WRK function in hg_intercepts.c are attributed as noinline.
The backtrace filtering is done in the new filter_helgrind script.
filter_stderr is simplified quite a bit.
Fixes bug #281468. See also the comments #5 and #6 there.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12045 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
3c9444598b4b8e9645a5e6c0456aa1acd62058a1 05-Sep-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> For intercepts in libc and the dynamic linker (ld.so or dyld), split
the Linux and Darwin definitions so they are in completely separate
ifdefs -- iow, remove any definitions that are common to both. This
gives some duplication, but the upside is that it is now possible to
edit the Darwin intercepts without fear of breaking the Linux ones.
This will be important when it comes to supporting OSX 10.7.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12009 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
211c2539f9419a2be09f8f75d40a42196db66b51 12-Jul-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Stop gcc on Android giving bogus function-has-no-return-value warnings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11876 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
0c09bf0aa1e54446916b32f69eb8da2c813af3a8 12-Jul-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> The pthread.h on Android has no definition for pthread_rwlock_t, which
makes the associated intercepts in Helgrind and DRD un-compilable.
Add a configure test for it, and use them to guard the aforementioned
intercepts.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11875 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
575ce8ef8fa86a502dabe152293320676922dcfe 15-May-2011 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Get rid of the remaining "set but not used" warnings reported by gcc 4.6 by
swapping the roles of the VALGRIND_DO_CLIENT_REQUEST() and
VALGRIND_DO_CLIENT_REQUEST_EXPR() macros. Also, many __attribute__((unused))
declarations on variables have been eliminated. Closes #269778.

Note: so far this patch has been tested on x86/Linux, amd64/Linux and
ppc64/Linux but not yet on any other supported CPU/OS combination.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11755 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
c7ffc94890e120c72d5802487b1092425323dc02 28-Mar-2011 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix up most but not all warnings generated by gcc-4.6 about
dead assignments ("[-Wunused-but-set-variable]").



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11673 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
9eecbbb9a9cbbd30b903c09a9e04d8efc20bda33 03-May-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates to 2010.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
f38a74e187b245434a78af4558b8ad5a471a09c0 12-Apr-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Change the method used in hg_intercepts.c to hide from the user, the
race between mythread_wrapper and the wrapper for pthread_create. The
previous scheme could lead to false race reports in obscure cases.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11102 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
406bac81a19666c213cd8b03457a105ea33a38ea 04-Mar-2010 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Rollup fixes for Helgrind:

* tracking of barriers: add support for resizable barriers

* resync TSan-compatible client requests with latest changes

* add direct access to the client requests used in hg_intercepts.c

* add a client request pair to disable and re-enable tracking
of arbitrary address ranges



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11062 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
870f7451dcc5ff1ec6c84e8bb2832bd5834459c2 29-Dec-2009 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Removed dependency of include/pub_tool_basics.h on config.h.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10972 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
5a644da7bb7b675dee8401dc671811eb0a8be2ab 11-Aug-2009 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add pthread spinlock support.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10775 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
28a7f7da688d76951e1e08e2bba7c98fa5820dee 26-Jul-2009 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Unbreak Helgrind on Linux following recent Darwin hackery.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10626 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
1c147ff07344c01adb171cba0ec76d67fbdfc1db 26-Jul-2009 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Re-check the symbol names for all pthread intercepts, to find all Linux
and Darwin versions. Add versions for Darwin names that are not so far
supported. Add support for sem_open and sem_close.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10622 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
f76d27a697a7b0bf3b84490baf60623fc96a23af 28-May-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge the DARWIN branch onto the trunk.

I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts. So instead I just took the diff between
the branch and trunk at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
5f5ef2ae9e7c2ce5ebc36c1e2fc98e5f81650be3 11-May-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Factor out the name of the libpthread library. Also fix a minor stack trace
bogon.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9832 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
b4cfbc4e32d5dbf71de9b267ed18462a23d1747f 04-May-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Don't compile Linux-only redirects on non-Linux platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9745 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
9f207460d70d38c46c9e81996a3dcdf90961c6db 10-Mar-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Updated copyright years.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9344 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
e61546621e9bca129420399d7c552f8f63c93509 10-Feb-2009 njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge part of r9129 (factor out duplicated Z-encodings of names) from the
DARWIN branch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9130 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
b80f0c91bdc40a7014264377ee26962d94ead6f0 19-Nov-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix comment typo.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8787 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
38e0cf9b5e8b8dad3ee4db0ab4cbe1425cc59fed 19-Nov-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> * Update Qt4 interceptors and add, as comments, findings of analysis
of Qt4 threading functions.

* Add a bunch of replacements for strlen etc, to avoid races from
optimised glibc versions that overread memory. Copied directly from
memcheck/mc_replace_strmem.c.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8784 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
9f569b7efd8bb2929ee2b0ce13d5dee24da5e144 13-Nov-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Add initial support for POSIX barriers (pthread_barrier_{init,wait,destroy}).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8766 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
f98e1c03ce4bea1fb092cdea5571c41f29f6df9b 25-Oct-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Merge Helgrind from branches/YARD into the trunk. Also includes some
minor changes to make stack unwinding on amd64-linux approximately
twice as fast as it was before.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8707 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
31277bf573bc71b487f834111050a0cbdee2607d 29-Jul-2008 bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> Removed duplicate volatile keyword such that the compiler does no longer print a warning.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8476 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
789c3c5e22a80f7e5df4e21864e6ca38732bffd8 25-Feb-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Intercept pthread_rwlock_try{rd,wr}lock. Fixes #158212.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7454 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
4d474d086188fd1f29fa97dbd84d8ea2e589a9b8 11-Feb-2008 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Update copyright dates ("200X-2007" --> "200X-2008").


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
11e352f44852ea8fd5e3f65bf424528040ab7e0f 30-Nov-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Correctly handle semaphores with nonzero initial values. Fixes bug
observed by Matthieu Castet. Also, add another sanity-check flag.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7253 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
eafad3b1befbfdb7942f6024bd3836a8c8683eba 18-Nov-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Try to fix, or at least avoid if possible, some arbitrary delays at
thread creation time observed when running on POWER5 64-bit Linux.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7179 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
0d2a2c1ca1a17596ba306714f7c4de22b6ba4636 11-Nov-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Comment-only change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7144 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c
b411202f9ff33a587558e2e836626bc7eb9db183 09-Nov-2007 sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> Import thrcheck from the THRCHECK branch, and rename it Helgrind (with
permission of the existing Helgrind authors).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7116 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/hg_intercepts.c