| The Gaudi Framework v32r1 (f65d50dc)

Macros | Enumerations
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 89 of file local_valgrind.h.

## ◆ __VALGRIND_MINOR__

#define __VALGRIND_MINOR__ 8

Definition at line 90 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 151 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 4667 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 )
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

Definition at line 173 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 191 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 )
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

Definition at line 180 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 4672 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 4649 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 4656 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 4680 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 )
VG_USERREQ__CLIENT_CALL2
Definition: local_valgrind.h:4296
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

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 )
VG_USERREQ__CLIENT_CALL3
Definition: local_valgrind.h:4297
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

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 4645 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,
|  |  | v
| ) |  | ( 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,
|  |  | b
| ) |  | ( (unsigned int)( ( (a)&0xff ) << 24 | ( (b)&0xff ) << 16 ) )

Definition at line 4278 of file local_valgrind.h.

## Enumeration Type Documentation

## ◆ Vg_ClientRequest

enum 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 4285 of file local_valgrind.h.

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