Make UEFI boot-platform build again
[haiku.git] / headers / posix / malloc_debug.h
blob5e0de0016ad65ec834032f54566b57f78ec1a484
1 /*
2 * Copyright 2010-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef MALLOC_DEBUG_H
6 #define MALLOC_DEBUG_H
9 #include <OS.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 status_t heap_debug_start_wall_checking(int msInterval);
16 status_t heap_debug_stop_wall_checking();
18 void heap_debug_set_memory_reuse(bool enabled);
19 void heap_debug_set_paranoid_validation(bool enabled);
20 void heap_debug_set_debugger_calls(bool enabled);
21 void heap_debug_set_default_alignment(size_t defaultAlignment);
22 void heap_debug_validate_heaps();
23 void heap_debug_validate_walls();
25 void heap_debug_dump_allocations(bool statsOnly, thread_id thread);
26 void heap_debug_dump_heaps(bool dumpAreas, bool dumpBins);
28 void *heap_debug_malloc_with_guard_page(size_t size);
30 status_t heap_debug_get_allocation_info(void *address, size_t *size,
31 thread_id *thread);
33 status_t heap_debug_dump_allocations_on_exit(bool enabled);
34 status_t heap_debug_set_stack_trace_depth(size_t stackTraceDepth);
36 #ifdef __cplusplus
38 #endif
40 #endif /* MALLOC_DEBUG_H */