Made ANNOTATE_HAPPENS_BEFORE()/_AFTER() binary compatible with Helgrind.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10814
This commit is contained in:
Bart Van Assche 2009-08-14 13:25:38 +00:00
parent 6d4a7979a0
commit 3eb7d935d1
4 changed files with 13 additions and 2 deletions

View File

@ -321,10 +321,12 @@ enum {
/* args: null-terminated character string. */
/* Tell DRD to insert a happens before annotation. */
VG_USERREQ__DRD_ANNOTATE_HAPPENS_BEFORE,
VG_USERREQ__DRD_ANNOTATE_HAPPENS_BEFORE
= VG_USERREQ_TOOL_BASE('H','G') + 256 + 33,
/* args: Addr. */
/* Tell DRD to insert a happens after annotation. */
VG_USERREQ__DRD_ANNOTATE_HAPPENS_AFTER,
VG_USERREQ__DRD_ANNOTATE_HAPPENS_AFTER
= VG_USERREQ_TOOL_BASE('H','G') + 256 + 34,
/* args: Addr. */
/* Tell DRD about an operation performed on a user-defined reader-writer

View File

@ -13,6 +13,8 @@ noinst_HEADERS = \
tsan_thread_wrappers_pthread.h
EXTRA_DIST = \
annotate_hbefore.stderr.exp \
annotate_hbefore.vgtest \
annotate_order_1.stderr.exp \
annotate_order_1.vgtest \
annotate_order_2.stderr.exp \

View File

@ -0,0 +1,3 @@
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

View File

@ -0,0 +1,4 @@
prereq: test -e ../../helgrind/tests/annotate_hbefore && ./supported_libpthread
vgopts: --read-var-info=yes --check-stack-var=yes --show-confl-seg=no
prog: ../../helgrind/tests/annotate_hbefore
stderr_filter: filter_stderr