/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" #ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved." #ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it." #ifndef TOKU_RACE_TOOLS_H #define TOKU_RACE_TOOLS_H #include "config.h" #if defined(__linux__) && defined(USE_VALGRIND) # include <valgrind/helgrind.h> # include <valgrind/drd.h> # define TOKU_ANNOTATE_NEW_MEMORY(p, size) ANNOTATE_NEW_MEMORY(p, size) # define TOKU_VALGRIND_HG_ENABLE_CHECKING(p, size) VALGRIND_HG_ENABLE_CHECKING(p, size) # define TOKU_VALGRIND_HG_DISABLE_CHECKING(p, size) VALGRIND_HG_DISABLE_CHECKING(p, size) # define TOKU_DRD_IGNORE_VAR(v) DRD_IGNORE_VAR(v) # define TOKU_DRD_STOP_IGNORING_VAR(v) DRD_STOP_IGNORING_VAR(v) #else # define NVALGRIND 1 # define TOKU_ANNOTATE_NEW_MEMORY(p, size) ((void) 0) # define TOKU_VALGRIND_HG_ENABLE_CHECKING(p, size) ((void) 0) # define TOKU_VALGRIND_HG_DISABLE_CHECKING(p, size) ((void) 0) # define TOKU_DRD_IGNORE_VAR(v) # define TOKU_DRD_STOP_IGNORING_VAR(v) #endif #endif // TOKU_RACE_TOOLS_H