diff options
author | Sverker Eriksson <[email protected]> | 2013-09-13 13:31:05 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-09-30 17:45:46 +0200 |
commit | b9e82ba0be1364c64e90274d5e9bf37f78b676ee (patch) | |
tree | afa2b3509b21e857dcb546035263a2f57e27786f /erts/emulator/sys/common/erl_mmap.h | |
parent | 19e47f24c1fe3dc996e836da0e5f99cea86acdbd (diff) | |
download | otp-b9e82ba0be1364c64e90274d5e9bf37f78b676ee.tar.gz otp-b9e82ba0be1364c64e90274d5e9bf37f78b676ee.tar.bz2 otp-b9e82ba0be1364c64e90274d5e9bf37f78b676ee.zip |
erts: Add HARD_DBG_MSEG
Diffstat (limited to 'erts/emulator/sys/common/erl_mmap.h')
-rw-r--r-- | erts/emulator/sys/common/erl_mmap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.h b/erts/emulator/sys/common/erl_mmap.h index 6cb51fb0b4..106459f872 100644 --- a/erts/emulator/sys/common/erl_mmap.h +++ b/erts/emulator/sys/common/erl_mmap.h @@ -110,4 +110,15 @@ Eterm erts_mmap_info(struct process*); # define ERTS_HAVE_OS_MMAP 1 #endif +/*#define HARD_DEBUG_MSEG*/ +#ifdef HARD_DEBUG_MSEG +# define HARD_DBG_INSERT_MSEG hard_dbg_insert_mseg +# define HARD_DBG_REMOVE_MSEG hard_dbg_remove_mseg +void hard_dbg_insert_mseg(void* seg, UWord sz); +void hard_dbg_remove_mseg(void* seg, UWord sz); +#else +# define HARD_DBG_INSERT_MSEG(SEG,SZ) +# define HARD_DBG_REMOVE_MSEG(SEG,SZ) +#endif + #endif /* ERL_MMAP_H__ */ |