00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PENT_VALGRIND_H
00022 #define PENT_VALGRIND_H
00023
00024 #ifdef USE_VALGRIND
00025
00026 #include <valgrind/memcheck.h>
00027
00028 #else
00029
00030 #define VALGRIND_MAKE_NOACCESS(_qzz_addr,_qzz_len)
00031 #define VALGRIND_MAKE_WRITABLE(_qzz_addr,_qzz_len)
00032 #define VALGRIND_MAKE_READABLE(_qzz_addr,_qzz_len)
00033
00034 #define VALGRIND_CHECK_READABLE(_qzz_addr,_qzz_len)
00035 #define VALGRIND_CHECK_WRITABLE(_qzz_addr,_qzz_len)
00036
00037 #define VALGRIND_CREATE_MEMPOOL(pool,rzB,is_zeroed)
00038 #define VALGRIND_DESTROY_MEMPOOL(pool)
00039 #define VALGRIND_MEMPOOL_ALLOC(pool,addr,size)
00040 #define VALGRIND_MEMPOOL_FREE(pool,addr)
00041
00042 #define VALGRIND_CREATE_BLOCK(_qzz_addr,_qzz_len,_qzz_desc) 0
00043 #define VALGRIND_DISCARD(_wzz_blkindex)
00044
00045 #endif
00046
00047 #endif