aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mmap.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-09-13 13:31:05 +0200
committerSverker Eriksson <[email protected]>2013-09-30 17:45:46 +0200
commitb9e82ba0be1364c64e90274d5e9bf37f78b676ee (patch)
treeafa2b3509b21e857dcb546035263a2f57e27786f /erts/emulator/sys/common/erl_mmap.h
parent19e47f24c1fe3dc996e836da0e5f99cea86acdbd (diff)
downloadotp-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.h11
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__ */