The Gaudi Framework  master (37c0b60a)
local_valgrind.h File Reference
#include <stdarg.h>
Include dependency graph for local_valgrind.h:
This graph shows which files directly or indirectly include this file:

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 )
 
#define VALGRIND_MONITOR_COMMAND(command)   VALGRIND_DO_CLIENT_REQUEST_EXPR( 0, VG_USERREQ__GDB_MONITOR_COMMAND, command, 0, 0, 0, 0 )
 

Enumerations

enum  Vg_ClientRequest {
  VG_USERREQ__RUNNING_ON_VALGRIND = 0x1001, VG_USERREQ__DISCARD_TRANSLATIONS = 0x1002, VG_USERREQ__CLIENT_CALL0 = 0x1101, VG_USERREQ__CLIENT_CALL1 = 0x1102,
  VG_USERREQ__CLIENT_CALL2 = 0x1103, VG_USERREQ__CLIENT_CALL3 = 0x1104, VG_USERREQ__COUNT_ERRORS = 0x1201, VG_USERREQ__GDB_MONITOR_COMMAND = 0x1202,
  VG_USERREQ__MALLOCLIKE_BLOCK = 0x1301, VG_USERREQ__RESIZEINPLACE_BLOCK = 0x130b, VG_USERREQ__FREELIKE_BLOCK = 0x1302, VG_USERREQ__CREATE_MEMPOOL = 0x1303,
  VG_USERREQ__DESTROY_MEMPOOL = 0x1304, VG_USERREQ__MEMPOOL_ALLOC = 0x1305, VG_USERREQ__MEMPOOL_FREE = 0x1306, VG_USERREQ__MEMPOOL_TRIM = 0x1307,
  VG_USERREQ__MOVE_MEMPOOL = 0x1308, VG_USERREQ__MEMPOOL_CHANGE = 0x1309, VG_USERREQ__MEMPOOL_EXISTS = 0x130a, VG_USERREQ__PRINTF = 0x1401,
  VG_USERREQ__PRINTF_BACKTRACE = 0x1402, VG_USERREQ__PRINTF_VALIST_BY_REF = 0x1403, VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF = 0x1404, VG_USERREQ__STACK_REGISTER = 0x1501,
  VG_USERREQ__STACK_DEREGISTER = 0x1502, VG_USERREQ__STACK_CHANGE = 0x1503, VG_USERREQ__LOAD_PDB_DEBUGINFO = 0x1601, VG_USERREQ__MAP_IP_TO_SRCLOC = 0x1701,
  VG_USERREQ__CHANGE_ERR_DISABLEMENT = 0x1801, VG_USERREQ__VEX_INIT_FOR_IRI = 0x1901
}
 

Macro Definition Documentation

◆ __extension__

#define __extension__   /* */

Definition at line 4359 of file local_valgrind.h.

◆ __VALGRIND_MAJOR__

#define __VALGRIND_MAJOR__   3

Definition at line 90 of file local_valgrind.h.

◆ __VALGRIND_MINOR__

#define __VALGRIND_MINOR__   8

Definition at line 91 of file local_valgrind.h.

◆ CALL_FN_v_5W

#define CALL_FN_v_5W (   fnptr,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_5W( _junk, fnptr, arg1, arg2, arg3, arg4, arg5 ); \
} while ( 0 )

Definition at line 870 of file local_valgrind.h.

◆ CALL_FN_v_6W

#define CALL_FN_v_6W (   fnptr,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_6W( _junk, fnptr, arg1, arg2, arg3, arg4, arg5, arg6 ); \
} while ( 0 )

Definition at line 876 of file local_valgrind.h.

◆ CALL_FN_v_7W

#define CALL_FN_v_7W (   fnptr,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_7W( _junk, fnptr, arg1, arg2, arg3, arg4, arg5, arg6, arg7 ); \
} while ( 0 )

Definition at line 882 of file local_valgrind.h.

◆ CALL_FN_v_v

#define CALL_FN_v_v (   fnptr)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_v( _junk, fnptr ); \
} while ( 0 )

Definition at line 840 of file local_valgrind.h.

◆ CALL_FN_v_W

#define CALL_FN_v_W (   fnptr,
  arg1 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_W( _junk, fnptr, arg1 ); \
} while ( 0 )

Definition at line 846 of file local_valgrind.h.

◆ CALL_FN_v_WW

#define CALL_FN_v_WW (   fnptr,
  arg1,
  arg2 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_WW( _junk, fnptr, arg1, arg2 ); \
} while ( 0 )

Definition at line 852 of file local_valgrind.h.

◆ CALL_FN_v_WWW

#define CALL_FN_v_WWW (   fnptr,
  arg1,
  arg2,
  arg3 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_WWW( _junk, fnptr, arg1, arg2, arg3 ); \
} while ( 0 )

Definition at line 858 of file local_valgrind.h.

◆ CALL_FN_v_WWWW

#define CALL_FN_v_WWWW (   fnptr,
  arg1,
  arg2,
  arg3,
  arg4 
)
Value:
do { \
volatile unsigned long _junk; \
CALL_FN_W_WWWW( _junk, fnptr, arg1, arg2, arg3, arg4 ); \
} while ( 0 )

Definition at line 864 of file local_valgrind.h.

◆ I_REPLACE_SONAME_FNNAME_ZU

#define I_REPLACE_SONAME_FNNAME_ZU (   soname,
  fnname 
)    VG_CONCAT4( _vgr00000ZU_, soname, _, fnname )

Definition at line 833 of file local_valgrind.h.

◆ I_REPLACE_SONAME_FNNAME_ZZ

#define I_REPLACE_SONAME_FNNAME_ZZ (   soname,
  fnname 
)    VG_CONCAT4( _vgr00000ZZ_, soname, _, fnname )

Definition at line 835 of file local_valgrind.h.

◆ I_WRAP_SONAME_FNNAME_ZU

#define I_WRAP_SONAME_FNNAME_ZU (   soname,
  fnname 
)    VG_CONCAT4( _vgw00000ZU_, soname, _, fnname )

Definition at line 817 of file local_valgrind.h.

◆ I_WRAP_SONAME_FNNAME_ZZ

#define I_WRAP_SONAME_FNNAME_ZZ (   soname,
  fnname 
)    VG_CONCAT4( _vgw00000ZZ_, soname, _, fnname )

Definition at line 819 of file local_valgrind.h.

◆ NVALGRIND

#define NVALGRIND   1

Definition at line 152 of file local_valgrind.h.

◆ RUNNING_ON_VALGRIND

#define RUNNING_ON_VALGRIND   (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR( 0 /* if not */, VG_USERREQ__RUNNING_ON_VALGRIND, 0, 0, 0, 0, 0 )

Definition at line 4366 of file local_valgrind.h.

◆ VALGRIND_COUNT_ERRORS

#define VALGRIND_COUNT_ERRORS   (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR( 0 /* default return */, VG_USERREQ__COUNT_ERRORS, 0, 0, 0, 0, 0 )

Definition at line 4484 of file local_valgrind.h.

◆ VALGRIND_CREATE_MEMPOOL

#define VALGRIND_CREATE_MEMPOOL (   pool,
  rzB,
  is_zeroed 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__CREATE_MEMPOOL, pool, rzB, is_zeroed, 0, 0 )

Definition at line 4604 of file local_valgrind.h.

◆ VALGRIND_DESTROY_MEMPOOL

#define VALGRIND_DESTROY_MEMPOOL (   pool)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__DESTROY_MEMPOOL, pool, 0, 0, 0, 0 )

Definition at line 4608 of file local_valgrind.h.

◆ VALGRIND_DISABLE_ERROR_REPORTING

#define VALGRIND_DISABLE_ERROR_REPORTING   VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__CHANGE_ERR_DISABLEMENT, 1, 0, 0, 0, 0 )

Definition at line 4666 of file local_valgrind.h.

◆ VALGRIND_DISCARD_TRANSLATIONS

#define VALGRIND_DISCARD_TRANSLATIONS (   _qzz_addr,
  _qzz_len 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__DISCARD_TRANSLATIONS, _qzz_addr, _qzz_len, 0, 0, 0 )

Definition at line 4373 of file local_valgrind.h.

◆ VALGRIND_DO_CLIENT_REQUEST

#define VALGRIND_DO_CLIENT_REQUEST (   _zzq_rlval,
  _zzq_default,
  _zzq_request,
  _zzq_arg1,
  _zzq_arg2,
  _zzq_arg3,
  _zzq_arg4,
  _zzq_arg5 
)
Value:
do { \
( _zzq_rlval ) = VALGRIND_DO_CLIENT_REQUEST_EXPR( ( _zzq_default ), ( _zzq_request ), ( _zzq_arg1 ), \
( _zzq_arg2 ), ( _zzq_arg3 ), ( _zzq_arg4 ), ( _zzq_arg5 ) ); \
} while ( 0 )

Definition at line 174 of file local_valgrind.h.

◆ VALGRIND_DO_CLIENT_REQUEST_EXPR

#define VALGRIND_DO_CLIENT_REQUEST_EXPR (   _zzq_default,
  _zzq_request,
  _zzq_arg1,
  _zzq_arg2,
  _zzq_arg3,
  _zzq_arg4,
  _zzq_arg5 
)    ( _zzq_default )

Definition at line 192 of file local_valgrind.h.

◆ VALGRIND_DO_CLIENT_REQUEST_STMT

#define VALGRIND_DO_CLIENT_REQUEST_STMT (   _zzq_request,
  _zzq_arg1,
  _zzq_arg2,
  _zzq_arg3,
  _zzq_arg4,
  _zzq_arg5 
)
Value:
do { \
(void)VALGRIND_DO_CLIENT_REQUEST_EXPR( 0, ( _zzq_request ), ( _zzq_arg1 ), ( _zzq_arg2 ), ( _zzq_arg3 ), \
( _zzq_arg4 ), ( _zzq_arg5 ) ); \
} while ( 0 )

Definition at line 181 of file local_valgrind.h.

◆ VALGRIND_ENABLE_ERROR_REPORTING

#define VALGRIND_ENABLE_ERROR_REPORTING   VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__CHANGE_ERR_DISABLEMENT, -1, 0, 0, 0, 0 )

Definition at line 4671 of file local_valgrind.h.

◆ VALGRIND_FREELIKE_BLOCK

#define VALGRIND_FREELIKE_BLOCK (   addr,
  rzB 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__FREELIKE_BLOCK, addr, rzB, 0, 0, 0 )

Definition at line 4600 of file local_valgrind.h.

◆ VALGRIND_GET_ORIG_FN

#define VALGRIND_GET_ORIG_FN (   _lval)    VALGRIND_GET_NR_CONTEXT( _lval )

Definition at line 825 of file local_valgrind.h.

◆ VALGRIND_LOAD_PDB_DEBUGINFO

#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 )

Definition at line 4648 of file local_valgrind.h.

◆ VALGRIND_MALLOCLIKE_BLOCK

#define VALGRIND_MALLOCLIKE_BLOCK (   addr,
  sizeB,
  rzB,
  is_zeroed 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MALLOCLIKE_BLOCK, addr, sizeB, rzB, is_zeroed, 0 )

Definition at line 4588 of file local_valgrind.h.

◆ VALGRIND_MAP_IP_TO_SRCLOC

#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 )

Definition at line 4655 of file local_valgrind.h.

◆ VALGRIND_MEMPOOL_ALLOC

#define VALGRIND_MEMPOOL_ALLOC (   pool,
  addr,
  size 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MEMPOOL_ALLOC, pool, addr, size, 0, 0 )

Definition at line 4612 of file local_valgrind.h.

◆ VALGRIND_MEMPOOL_CHANGE

#define VALGRIND_MEMPOOL_CHANGE (   pool,
  addrA,
  addrB,
  size 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MEMPOOL_CHANGE, pool, addrA, addrB, size, 0 )

Definition at line 4628 of file local_valgrind.h.

◆ VALGRIND_MEMPOOL_EXISTS

#define VALGRIND_MEMPOOL_EXISTS (   pool)    (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR( 0, VG_USERREQ__MEMPOOL_EXISTS, pool, 0, 0, 0, 0 )

Definition at line 4632 of file local_valgrind.h.

◆ VALGRIND_MEMPOOL_FREE

#define VALGRIND_MEMPOOL_FREE (   pool,
  addr 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MEMPOOL_FREE, pool, addr, 0, 0, 0 )

Definition at line 4616 of file local_valgrind.h.

◆ VALGRIND_MEMPOOL_TRIM

#define VALGRIND_MEMPOOL_TRIM (   pool,
  addr,
  size 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MEMPOOL_TRIM, pool, addr, size, 0, 0 )

Definition at line 4620 of file local_valgrind.h.

◆ VALGRIND_MONITOR_COMMAND

#define VALGRIND_MONITOR_COMMAND (   command)    VALGRIND_DO_CLIENT_REQUEST_EXPR( 0, VG_USERREQ__GDB_MONITOR_COMMAND, command, 0, 0, 0, 0 )

Definition at line 4679 of file local_valgrind.h.

◆ VALGRIND_MOVE_MEMPOOL

#define VALGRIND_MOVE_MEMPOOL (   poolA,
  poolB 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__MOVE_MEMPOOL, poolA, poolB, 0, 0, 0 )

Definition at line 4624 of file local_valgrind.h.

◆ VALGRIND_NON_SIMD_CALL0

#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 )

Definition at line 4467 of file local_valgrind.h.

◆ VALGRIND_NON_SIMD_CALL1

#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 )

Definition at line 4470 of file local_valgrind.h.

◆ VALGRIND_NON_SIMD_CALL2

#define VALGRIND_NON_SIMD_CALL2 (   _qyy_fn,
  _qyy_arg1,
  _qyy_arg2 
)
Value:
VALGRIND_DO_CLIENT_REQUEST_EXPR( 0 /* default return */, VG_USERREQ__CLIENT_CALL2, _qyy_fn, _qyy_arg1, _qyy_arg2, 0, \
0 )

Definition at line 4473 of file local_valgrind.h.

◆ VALGRIND_NON_SIMD_CALL3

#define VALGRIND_NON_SIMD_CALL3 (   _qyy_fn,
  _qyy_arg1,
  _qyy_arg2,
  _qyy_arg3 
)
Value:
VALGRIND_DO_CLIENT_REQUEST_EXPR( 0 /* default return */, VG_USERREQ__CLIENT_CALL3, _qyy_fn, _qyy_arg1, _qyy_arg2, \
_qyy_arg3, 0 )

Definition at line 4477 of file local_valgrind.h.

◆ VALGRIND_RESIZEINPLACE_BLOCK

#define VALGRIND_RESIZEINPLACE_BLOCK (   addr,
  oldSizeB,
  newSizeB,
  rzB 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__RESIZEINPLACE_BLOCK, addr, oldSizeB, newSizeB, rzB, 0 )

Definition at line 4594 of file local_valgrind.h.

◆ VALGRIND_STACK_CHANGE

#define VALGRIND_STACK_CHANGE (   id,
  start,
  end 
)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__STACK_CHANGE, id, start, end, 0, 0 )

Definition at line 4644 of file local_valgrind.h.

◆ VALGRIND_STACK_DEREGISTER

#define VALGRIND_STACK_DEREGISTER (   id)    VALGRIND_DO_CLIENT_REQUEST_STMT( VG_USERREQ__STACK_DEREGISTER, id, 0, 0, 0, 0 )

Definition at line 4641 of file local_valgrind.h.

◆ VALGRIND_STACK_REGISTER

#define VALGRIND_STACK_REGISTER (   start,
  end 
)    (unsigned)VALGRIND_DO_CLIENT_REQUEST_EXPR( 0, VG_USERREQ__STACK_REGISTER, start, end, 0, 0, 0 )

Definition at line 4636 of file local_valgrind.h.

◆ VG_CONCAT4

#define VG_CONCAT4 (   _aa,
  _bb,
  _cc,
  _dd 
)    _aa##_bb##_cc##_dd

Definition at line 815 of file local_valgrind.h.

◆ VG_IS_TOOL_USERREQ

#define VG_IS_TOOL_USERREQ (   a,
  b,
 
)    ( VG_USERREQ_TOOL_BASE( a, b ) == ( (v)&0xffff0000 ) )

Definition at line 4279 of file local_valgrind.h.

◆ VG_USERREQ_TOOL_BASE

#define VG_USERREQ_TOOL_BASE (   a,
 
)    ( (unsigned int)( ( (a)&0xff ) << 24 | ( (b)&0xff ) << 16 ) )

Definition at line 4278 of file local_valgrind.h.

Enumeration Type Documentation

◆ Vg_ClientRequest

Enumerator
VG_USERREQ__RUNNING_ON_VALGRIND 
VG_USERREQ__DISCARD_TRANSLATIONS 
VG_USERREQ__CLIENT_CALL0 
VG_USERREQ__CLIENT_CALL1 
VG_USERREQ__CLIENT_CALL2 
VG_USERREQ__CLIENT_CALL3 
VG_USERREQ__COUNT_ERRORS 
VG_USERREQ__GDB_MONITOR_COMMAND 
VG_USERREQ__MALLOCLIKE_BLOCK 
VG_USERREQ__RESIZEINPLACE_BLOCK 
VG_USERREQ__FREELIKE_BLOCK 
VG_USERREQ__CREATE_MEMPOOL 
VG_USERREQ__DESTROY_MEMPOOL 
VG_USERREQ__MEMPOOL_ALLOC 
VG_USERREQ__MEMPOOL_FREE 
VG_USERREQ__MEMPOOL_TRIM 
VG_USERREQ__MOVE_MEMPOOL 
VG_USERREQ__MEMPOOL_CHANGE 
VG_USERREQ__MEMPOOL_EXISTS 
VG_USERREQ__PRINTF 
VG_USERREQ__PRINTF_BACKTRACE 
VG_USERREQ__PRINTF_VALIST_BY_REF 
VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF 
VG_USERREQ__STACK_REGISTER 
VG_USERREQ__STACK_DEREGISTER 
VG_USERREQ__STACK_CHANGE 
VG_USERREQ__LOAD_PDB_DEBUGINFO 
VG_USERREQ__MAP_IP_TO_SRCLOC 
VG_USERREQ__CHANGE_ERR_DISABLEMENT 
VG_USERREQ__VEX_INIT_FOR_IRI 

Definition at line 4284 of file local_valgrind.h.

4284  {
4287 
4288  /* These allow any function to be called from the simulated
4289  CPU but run on the real CPU. Nb: the first arg passed to
4290  the function is always the ThreadId of the running
4291  thread! So CLIENT_CALL0 actually requires a 1 arg
4292  function, etc. */
4293  VG_USERREQ__CLIENT_CALL0 = 0x1101,
4294  VG_USERREQ__CLIENT_CALL1 = 0x1102,
4295  VG_USERREQ__CLIENT_CALL2 = 0x1103,
4296  VG_USERREQ__CLIENT_CALL3 = 0x1104,
4297 
4298  /* Can be useful in regression testing suites -- eg. can
4299  send Valgrind's output to /dev/null and still count
4300  errors. */
4301  VG_USERREQ__COUNT_ERRORS = 0x1201,
4302 
4303  /* Allows the client program and/or gdbserver to execute a monitor
4304  command. */
4306 
4307  /* These are useful and can be interpreted by any tool that
4308  tracks malloc() et al, by using vg_replace_malloc.c. */
4311  VG_USERREQ__FREELIKE_BLOCK = 0x1302,
4312  /* Memory pool support. */
4313  VG_USERREQ__CREATE_MEMPOOL = 0x1303,
4314  VG_USERREQ__DESTROY_MEMPOOL = 0x1304,
4315  VG_USERREQ__MEMPOOL_ALLOC = 0x1305,
4316  VG_USERREQ__MEMPOOL_FREE = 0x1306,
4317  VG_USERREQ__MEMPOOL_TRIM = 0x1307,
4318  VG_USERREQ__MOVE_MEMPOOL = 0x1308,
4319  VG_USERREQ__MEMPOOL_CHANGE = 0x1309,
4320  VG_USERREQ__MEMPOOL_EXISTS = 0x130a,
4321 
4322  /* Allow printfs to valgrind log. */
4323  /* The first two pass the va_list argument by value, which
4324  assumes it is the same size as or smaller than a UWord,
4325  which generally isn't the case. Hence are deprecated.
4326  The second two pass the vargs by reference and so are
4327  immune to this problem. */
4328  /* both :: char* fmt, va_list vargs (DEPRECATED) */
4329  VG_USERREQ__PRINTF = 0x1401,
4331  /* both :: char* fmt, va_list* vargs */
4334 
4335  /* Stack support. */
4336  VG_USERREQ__STACK_REGISTER = 0x1501,
4338  VG_USERREQ__STACK_CHANGE = 0x1503,
4339 
4340  /* Wine support */
4342 
4343  /* Querying of debug info. */
4345 
4346  /* Disable/enable error reporting level. Takes a single
4347  Word arg which is the delta to this thread's error
4348  disablement indicator. Hence 1 disables or further
4349  disables errors, and -1 moves back towards enablement.
4350  Other values are not allowed. */
4352 
4353  /* Initialise IR injection */
VG_USERREQ__MAP_IP_TO_SRCLOC
@ VG_USERREQ__MAP_IP_TO_SRCLOC
Definition: local_valgrind.h:4344
VG_USERREQ__CREATE_MEMPOOL
@ VG_USERREQ__CREATE_MEMPOOL
Definition: local_valgrind.h:4313
VG_USERREQ__FREELIKE_BLOCK
@ VG_USERREQ__FREELIKE_BLOCK
Definition: local_valgrind.h:4311
VG_USERREQ__LOAD_PDB_DEBUGINFO
@ VG_USERREQ__LOAD_PDB_DEBUGINFO
Definition: local_valgrind.h:4341
VG_USERREQ__DISCARD_TRANSLATIONS
@ VG_USERREQ__DISCARD_TRANSLATIONS
Definition: local_valgrind.h:4286
VG_USERREQ__DESTROY_MEMPOOL
@ VG_USERREQ__DESTROY_MEMPOOL
Definition: local_valgrind.h:4314
Vg_ClientRequest
Vg_ClientRequest
Definition: local_valgrind.h:4284
VG_USERREQ__MALLOCLIKE_BLOCK
@ VG_USERREQ__MALLOCLIKE_BLOCK
Definition: local_valgrind.h:4309
VG_USERREQ__CLIENT_CALL2
@ VG_USERREQ__CLIENT_CALL2
Definition: local_valgrind.h:4295
VG_USERREQ__PRINTF_VALIST_BY_REF
@ VG_USERREQ__PRINTF_VALIST_BY_REF
Definition: local_valgrind.h:4332
VG_USERREQ__CLIENT_CALL0
@ VG_USERREQ__CLIENT_CALL0
Definition: local_valgrind.h:4293
VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF
@ VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF
Definition: local_valgrind.h:4333
VALGRIND_DO_CLIENT_REQUEST_EXPR
#define VALGRIND_DO_CLIENT_REQUEST_EXPR(_zzq_default, _zzq_request, _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5)
Definition: local_valgrind.h:191
VG_USERREQ__MEMPOOL_TRIM
@ VG_USERREQ__MEMPOOL_TRIM
Definition: local_valgrind.h:4317
VG_USERREQ__PRINTF
@ VG_USERREQ__PRINTF
Definition: local_valgrind.h:4329
VG_USERREQ__MEMPOOL_CHANGE
@ VG_USERREQ__MEMPOOL_CHANGE
Definition: local_valgrind.h:4319
VG_USERREQ__CLIENT_CALL3
@ VG_USERREQ__CLIENT_CALL3
Definition: local_valgrind.h:4296
VG_USERREQ__MOVE_MEMPOOL
@ VG_USERREQ__MOVE_MEMPOOL
Definition: local_valgrind.h:4318
VG_USERREQ__COUNT_ERRORS
@ VG_USERREQ__COUNT_ERRORS
Definition: local_valgrind.h:4301
VG_USERREQ__CHANGE_ERR_DISABLEMENT
@ VG_USERREQ__CHANGE_ERR_DISABLEMENT
Definition: local_valgrind.h:4351
VG_USERREQ__MEMPOOL_EXISTS
@ VG_USERREQ__MEMPOOL_EXISTS
Definition: local_valgrind.h:4320
VG_USERREQ__PRINTF_BACKTRACE
@ VG_USERREQ__PRINTF_BACKTRACE
Definition: local_valgrind.h:4330
VG_USERREQ__STACK_REGISTER
@ VG_USERREQ__STACK_REGISTER
Definition: local_valgrind.h:4336
VG_USERREQ__GDB_MONITOR_COMMAND
@ VG_USERREQ__GDB_MONITOR_COMMAND
Definition: local_valgrind.h:4305
VG_USERREQ__STACK_CHANGE
@ VG_USERREQ__STACK_CHANGE
Definition: local_valgrind.h:4338
VG_USERREQ__RUNNING_ON_VALGRIND
@ VG_USERREQ__RUNNING_ON_VALGRIND
Definition: local_valgrind.h:4285
VG_USERREQ__VEX_INIT_FOR_IRI
@ VG_USERREQ__VEX_INIT_FOR_IRI
Definition: local_valgrind.h:4354
VG_USERREQ__CLIENT_CALL1
@ VG_USERREQ__CLIENT_CALL1
Definition: local_valgrind.h:4294
VG_USERREQ__MEMPOOL_FREE
@ VG_USERREQ__MEMPOOL_FREE
Definition: local_valgrind.h:4316
VG_USERREQ__STACK_DEREGISTER
@ VG_USERREQ__STACK_DEREGISTER
Definition: local_valgrind.h:4337
VG_USERREQ__RESIZEINPLACE_BLOCK
@ VG_USERREQ__RESIZEINPLACE_BLOCK
Definition: local_valgrind.h:4310
VG_USERREQ__MEMPOOL_ALLOC
@ VG_USERREQ__MEMPOOL_ALLOC
Definition: local_valgrind.h:4315