Commit ede63bd2 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4131 mark fractal tree status variables so that drd will ignore them closes[t:4131]

git-svn-id: file:///svn/toku/tokudb@37113 c7de825b-a66e-492c-adef-691d508d4ae1
parent 44380554
...@@ -131,8 +131,6 @@ toku_brt_get_status(BRT_STATUS s) { ...@@ -131,8 +131,6 @@ toku_brt_get_status(BRT_STATUS s) {
*s = brt_status; *s = brt_status;
} }
void void
toku_brt_header_suppress_rollbacks(struct brt_header *h, TOKUTXN txn) { toku_brt_header_suppress_rollbacks(struct brt_header *h, TOKUTXN txn) {
TXNID txnid = toku_txn_get_txnid(txn); TXNID txnid = toku_txn_get_txnid(txn);
...@@ -7693,3 +7691,10 @@ toku_reset_root_xid_that_created(BRT brt, TXNID new_root_xid_that_created) { ...@@ -7693,3 +7691,10 @@ toku_reset_root_xid_that_created(BRT brt, TXNID new_root_xid_that_created) {
h->dirty = 1; h->dirty = 1;
toku_brtheader_unlock (h); toku_brtheader_unlock (h);
} }
#include <valgrind/drd.h>
void __attribute__((__constructor__)) toku_brt_drd_ignore(void);
void
toku_brt_drd_ignore(void) {
DRD_IGNORE_VAR(brt_status);
}
...@@ -239,3 +239,10 @@ toku_checkpoint(CACHETABLE ct, TOKULOGGER logger, ...@@ -239,3 +239,10 @@ toku_checkpoint(CACHETABLE ct, TOKULOGGER logger,
status.checkpoint_count_fail++; status.checkpoint_count_fail++;
return r; return r;
} }
#include <valgrind/drd.h>
void __attribute__((__constructor__)) toku_checkpoint_drd_ignore(void);
void
toku_checkpoint_drd_ignore(void) {
DRD_IGNORE_VAR(status);
}
...@@ -2231,3 +2231,9 @@ toku_le_upgrade_13_14(LEAFENTRY_13 old_leafentry, ...@@ -2231,3 +2231,9 @@ toku_le_upgrade_13_14(LEAFENTRY_13 old_leafentry,
return rval; return rval;
} }
#include <valgrind/drd.h>
void __attribute__((__constructor__)) toku_ule_drd_ignore(void);
void
toku_ule_drd_ignore(void) {
DRD_IGNORE_VAR(status);
}
...@@ -975,6 +975,9 @@ stress_tests.drdrun: $(TINY_STRESS_TESTS) \ ...@@ -975,6 +975,9 @@ stress_tests.drdrun: $(TINY_STRESS_TESTS) \
large_test_stress1.drdrun large_test_stress3.drdrun large_test_stress1.drdrun large_test_stress3.drdrun
true true
tiny_stress_tests.drdrun: $(TINY_STRESS_TESTS)
true
tiny_%.drdrun: %.tdb tiny_%.drdrun: %.tdb
$(VALGRIND) --tool=drd --quiet --suppressions=drd.suppressions --error-exitcode=1 ./$< $(VERBVERBOSE) --num_seconds 5 --num_elements 150 --envdir dir.$@ \ $(VALGRIND) --tool=drd --quiet --suppressions=drd.suppressions --error-exitcode=1 ./$< $(VERBVERBOSE) --num_seconds 5 --num_elements 150 --envdir dir.$@ \
$(MAYBEINVERTER) $(SUMMARIZE_CMD) $(MAYBEINVERTER) $(SUMMARIZE_CMD)
......
...@@ -199,3 +199,9 @@ toku_set_func_free(free_fun_t f) { ...@@ -199,3 +199,9 @@ toku_set_func_free(free_fun_t f) {
t_free = f; t_free = f;
} }
#include <valgrind/drd.h>
void __attribute__((constructor)) toku_memory_drd_ignore(void);
void
toku_memory_drd_ignore(void) {
DRD_IGNORE_VAR(status);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment