#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | __VALGRIND_MAJOR__ 3 |
#define | __VALGRIND_MINOR__ 8 |
#define | NVALGRIND 1 |
#define | VALGRIND_DO_CLIENT_REQUEST(_zzq_rlval, _zzq_default, _zzq_request, _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) |
#define | VALGRIND_DO_CLIENT_REQUEST_STMT(_zzq_request, _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) |
#define | VALGRIND_DO_CLIENT_REQUEST_EXPR(_zzq_default, _zzq_request, _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) (_zzq_default) |
#define | VG_CONCAT4(_aa, _bb, _cc, _dd) _aa##_bb##_cc##_dd |
#define | I_WRAP_SONAME_FNNAME_ZU(soname, fnname) VG_CONCAT4(_vgw00000ZU_, soname, _, fnname) |
#define | I_WRAP_SONAME_FNNAME_ZZ(soname, fnname) VG_CONCAT4(_vgw00000ZZ_, soname, _, fnname) |
#define | VALGRIND_GET_ORIG_FN(_lval) VALGRIND_GET_NR_CONTEXT(_lval) |
#define | I_REPLACE_SONAME_FNNAME_ZU(soname, fnname) VG_CONCAT4(_vgr00000ZU_, soname, _, fnname) |
#define | I_REPLACE_SONAME_FNNAME_ZZ(soname, fnname) VG_CONCAT4(_vgr00000ZZ_, soname, _, fnname) |
#define | CALL_FN_v_v(fnptr) |
#define | CALL_FN_v_W(fnptr, arg1) |
#define | CALL_FN_v_WW(fnptr, arg1, arg2) |
#define | CALL_FN_v_WWW(fnptr, arg1, arg2, arg3) |
#define | CALL_FN_v_WWWW(fnptr, arg1, arg2, arg3, arg4) |
#define | CALL_FN_v_5W(fnptr, arg1, arg2, arg3, arg4, arg5) |
#define | CALL_FN_v_6W(fnptr, arg1, arg2, arg3, arg4, arg5, arg6) |
#define | CALL_FN_v_7W(fnptr, arg1, arg2, arg3, arg4, arg5, arg6, arg7) |
#define | VG_USERREQ_TOOL_BASE(a, b) ((unsigned int)(((a)&0xff) << 24 | ((b)&0xff) << 16)) |
#define | VG_IS_TOOL_USERREQ(a, b, v) (VG_USERREQ_TOOL_BASE(a, b) == ((v)&0xffff0000)) |
#define | __extension__ /* */ |
#define | RUNNING_ON_VALGRIND (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* if not */, VG_USERREQ__RUNNING_ON_VALGRIND, 0, 0, 0, 0, 0) |
#define | VALGRIND_DISCARD_TRANSLATIONS(_qzz_addr, _qzz_len) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DISCARD_TRANSLATIONS, _qzz_addr, _qzz_len, 0, 0, 0) |
#define | VALGRIND_NON_SIMD_CALL0(_qyy_fn) VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__CLIENT_CALL0, _qyy_fn, 0, 0, 0, 0) |
#define | VALGRIND_NON_SIMD_CALL1(_qyy_fn, _qyy_arg1) VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__CLIENT_CALL1, _qyy_fn, _qyy_arg1, 0, 0, 0) |
#define | VALGRIND_NON_SIMD_CALL2(_qyy_fn, _qyy_arg1, _qyy_arg2) |
#define | VALGRIND_NON_SIMD_CALL3(_qyy_fn, _qyy_arg1, _qyy_arg2, _qyy_arg3) |
#define | VALGRIND_COUNT_ERRORS (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__COUNT_ERRORS, 0, 0, 0, 0, 0) |
#define | VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MALLOCLIKE_BLOCK, addr, sizeB, rzB, is_zeroed, 0) |
#define | VALGRIND_RESIZEINPLACE_BLOCK(addr, oldSizeB, newSizeB, rzB) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__RESIZEINPLACE_BLOCK, addr, oldSizeB, newSizeB, rzB, 0) |
#define | VALGRIND_FREELIKE_BLOCK(addr, rzB) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__FREELIKE_BLOCK, addr, rzB, 0, 0, 0) |
#define | VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CREATE_MEMPOOL, pool, rzB, is_zeroed, 0, 0) |
#define | VALGRIND_DESTROY_MEMPOOL(pool) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DESTROY_MEMPOOL, pool, 0, 0, 0, 0) |
#define | VALGRIND_MEMPOOL_ALLOC(pool, addr, size) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_ALLOC, pool, addr, size, 0, 0) |
#define | VALGRIND_MEMPOOL_FREE(pool, addr) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_FREE, pool, addr, 0, 0, 0) |
#define | VALGRIND_MEMPOOL_TRIM(pool, addr, size) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_TRIM, pool, addr, size, 0, 0) |
#define | VALGRIND_MOVE_MEMPOOL(poolA, poolB) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MOVE_MEMPOOL, poolA, poolB, 0, 0, 0) |
#define | VALGRIND_MEMPOOL_CHANGE(pool, addrA, addrB, size) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_CHANGE, pool, addrA, addrB, size, 0) |
#define | VALGRIND_MEMPOOL_EXISTS(pool) (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__MEMPOOL_EXISTS, pool, 0, 0, 0, 0) |
#define | VALGRIND_STACK_REGISTER(start, end) (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__STACK_REGISTER, start, end, 0, 0, 0) |
#define | VALGRIND_STACK_DEREGISTER(id) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__STACK_DEREGISTER, id, 0, 0, 0, 0) |
#define | VALGRIND_STACK_CHANGE(id, start, end) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__STACK_CHANGE, id, start, end, 0, 0) |
#define | VALGRIND_LOAD_PDB_DEBUGINFO(fd, ptr, total_size, delta) VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__LOAD_PDB_DEBUGINFO, fd, ptr, total_size, delta, 0) |
#define | VALGRIND_MAP_IP_TO_SRCLOC(addr, buf64) (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__MAP_IP_TO_SRCLOC, addr, buf64, 0, 0, 0) |
#define | VALGRIND_DISABLE_ERROR_REPORTING VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CHANGE_ERR_DISABLEMENT, 1, 0, 0, 0, 0) |
#define | VALGRIND_ENABLE_ERROR_REPORTING VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CHANGE_ERR_DISABLEMENT, -1, 0, 0, 0, 0) |
Functions | |
static int | VALGRIND_PRINTF (const char *format,...) |
static int | VALGRIND_PRINTF_BACKTRACE (const char *format,...) |
#define __extension__ /* */ |
#define __VALGRIND_MAJOR__ 3 |
#define __VALGRIND_MINOR__ 8 |
#define CALL_FN_v_5W | ( | fnptr, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5 | |||
) |
#define CALL_FN_v_6W | ( | fnptr, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5, | |||
arg6 | |||
) |
#define CALL_FN_v_7W | ( | fnptr, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4, | |||
arg5, | |||
arg6, | |||
arg7 | |||
) |
#define CALL_FN_v_v | ( | fnptr | ) |
#define CALL_FN_v_W | ( | fnptr, | |
arg1 | |||
) |
#define CALL_FN_v_WW | ( | fnptr, | |
arg1, | |||
arg2 | |||
) |
#define CALL_FN_v_WWW | ( | fnptr, | |
arg1, | |||
arg2, | |||
arg3 | |||
) |
#define CALL_FN_v_WWWW | ( | fnptr, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 | |||
) |
#define I_REPLACE_SONAME_FNNAME_ZU | ( | soname, | |
fnname | |||
) | VG_CONCAT4(_vgr00000ZU_, soname, _, fnname) |
#define I_REPLACE_SONAME_FNNAME_ZZ | ( | soname, | |
fnname | |||
) | VG_CONCAT4(_vgr00000ZZ_, soname, _, fnname) |
#define I_WRAP_SONAME_FNNAME_ZU | ( | soname, | |
fnname | |||
) | VG_CONCAT4(_vgw00000ZU_, soname, _, fnname) |
#define I_WRAP_SONAME_FNNAME_ZZ | ( | soname, | |
fnname | |||
) | VG_CONCAT4(_vgw00000ZZ_, soname, _, fnname) |
#define NVALGRIND 1 |
#define RUNNING_ON_VALGRIND (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* if not */, VG_USERREQ__RUNNING_ON_VALGRIND, 0, 0, 0, 0, 0) |
#define VALGRIND_COUNT_ERRORS (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__COUNT_ERRORS, 0, 0, 0, 0, 0) |
#define VALGRIND_CREATE_MEMPOOL | ( | pool, | |
rzB, | |||
is_zeroed | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CREATE_MEMPOOL, pool, rzB, is_zeroed, 0, 0) |
#define VALGRIND_DESTROY_MEMPOOL | ( | pool | ) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DESTROY_MEMPOOL, pool, 0, 0, 0, 0) |
#define VALGRIND_DISABLE_ERROR_REPORTING VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CHANGE_ERR_DISABLEMENT, 1, 0, 0, 0, 0) |
#define VALGRIND_DISCARD_TRANSLATIONS | ( | _qzz_addr, | |
_qzz_len | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DISCARD_TRANSLATIONS, _qzz_addr, _qzz_len, 0, 0, 0) |
#define VALGRIND_DO_CLIENT_REQUEST | ( | _zzq_rlval, | |
_zzq_default, | |||
_zzq_request, | |||
_zzq_arg1, | |||
_zzq_arg2, | |||
_zzq_arg3, | |||
_zzq_arg4, | |||
_zzq_arg5 | |||
) |
#define VALGRIND_DO_CLIENT_REQUEST_EXPR | ( | _zzq_default, | |
_zzq_request, | |||
_zzq_arg1, | |||
_zzq_arg2, | |||
_zzq_arg3, | |||
_zzq_arg4, | |||
_zzq_arg5 | |||
) | (_zzq_default) |
#define VALGRIND_DO_CLIENT_REQUEST_STMT | ( | _zzq_request, | |
_zzq_arg1, | |||
_zzq_arg2, | |||
_zzq_arg3, | |||
_zzq_arg4, | |||
_zzq_arg5 | |||
) |
#define VALGRIND_ENABLE_ERROR_REPORTING VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__CHANGE_ERR_DISABLEMENT, -1, 0, 0, 0, 0) |
#define VALGRIND_FREELIKE_BLOCK | ( | addr, | |
rzB | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__FREELIKE_BLOCK, addr, rzB, 0, 0, 0) |
#define VALGRIND_GET_ORIG_FN | ( | _lval | ) | VALGRIND_GET_NR_CONTEXT(_lval) |
#define VALGRIND_LOAD_PDB_DEBUGINFO | ( | fd, | |
ptr, | |||
total_size, | |||
delta | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__LOAD_PDB_DEBUGINFO, fd, ptr, total_size, delta, 0) |
#define VALGRIND_MALLOCLIKE_BLOCK | ( | addr, | |
sizeB, | |||
rzB, | |||
is_zeroed | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MALLOCLIKE_BLOCK, addr, sizeB, rzB, is_zeroed, 0) |
#define VALGRIND_MAP_IP_TO_SRCLOC | ( | addr, | |
buf64 | |||
) | (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__MAP_IP_TO_SRCLOC, addr, buf64, 0, 0, 0) |
#define VALGRIND_MEMPOOL_ALLOC | ( | pool, | |
addr, | |||
size | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_ALLOC, pool, addr, size, 0, 0) |
#define VALGRIND_MEMPOOL_CHANGE | ( | pool, | |
addrA, | |||
addrB, | |||
size | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_CHANGE, pool, addrA, addrB, size, 0) |
#define VALGRIND_MEMPOOL_EXISTS | ( | pool | ) | (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__MEMPOOL_EXISTS, pool, 0, 0, 0, 0) |
#define VALGRIND_MEMPOOL_FREE | ( | pool, | |
addr | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_FREE, pool, addr, 0, 0, 0) |
#define VALGRIND_MEMPOOL_TRIM | ( | pool, | |
addr, | |||
size | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MEMPOOL_TRIM, pool, addr, size, 0, 0) |
#define VALGRIND_MOVE_MEMPOOL | ( | poolA, | |
poolB | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__MOVE_MEMPOOL, poolA, poolB, 0, 0, 0) |
#define VALGRIND_NON_SIMD_CALL0 | ( | _qyy_fn | ) | VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__CLIENT_CALL0, _qyy_fn, 0, 0, 0, 0) |
#define VALGRIND_NON_SIMD_CALL1 | ( | _qyy_fn, | |
_qyy_arg1 | |||
) | VALGRIND_DO_CLIENT_REQUEST_EXPR(0 /* default return */, VG_USERREQ__CLIENT_CALL1, _qyy_fn, _qyy_arg1, 0, 0, 0) |
#define VALGRIND_NON_SIMD_CALL2 | ( | _qyy_fn, | |
_qyy_arg1, | |||
_qyy_arg2 | |||
) |
#define VALGRIND_NON_SIMD_CALL3 | ( | _qyy_fn, | |
_qyy_arg1, | |||
_qyy_arg2, | |||
_qyy_arg3 | |||
) |
#define VALGRIND_RESIZEINPLACE_BLOCK | ( | addr, | |
oldSizeB, | |||
newSizeB, | |||
rzB | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__RESIZEINPLACE_BLOCK, addr, oldSizeB, newSizeB, rzB, 0) |
#define VALGRIND_STACK_CHANGE | ( | id, | |
start, | |||
end | |||
) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__STACK_CHANGE, id, start, end, 0, 0) |
#define VALGRIND_STACK_DEREGISTER | ( | id | ) | VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__STACK_DEREGISTER, id, 0, 0, 0, 0) |
#define VALGRIND_STACK_REGISTER | ( | start, | |
end | |||
) | (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR(0, VG_USERREQ__STACK_REGISTER, start, end, 0, 0, 0) |
#define VG_CONCAT4 | ( | _aa, | |
_bb, | |||
_cc, | |||
_dd | |||
) | _aa##_bb##_cc##_dd |
#define VG_IS_TOOL_USERREQ | ( | a, | |
b, | |||
v | |||
) | (VG_USERREQ_TOOL_BASE(a, b) == ((v)&0xffff0000)) |
#define VG_USERREQ_TOOL_BASE | ( | a, | |
b | |||
) | ((unsigned int)(((a)&0xff) << 24 | ((b)&0xff) << 16)) |
enum Vg_ClientRequest |
|
static |
|
static |