diff options
author | José Fonseca <[email protected]> | 2008-03-23 18:38:10 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-03-23 18:38:31 +0000 |
commit | 732422f6708199d6655185b1a5daec86efe2f1b7 (patch) | |
tree | d19bd16140925c007c1edea0972fff92b2405976 /src/gallium/include/pipe/p_debug.h | |
parent | 312cbc5a5c7416745976c2281a9bbce6e3332965 (diff) |
gallium: Memory debugging utilities.
There are no known tools for windows kernel memory debugging, so this is a
simple set of malloc etc wrappers.
Enabled by default on win32 debug builds
Diffstat (limited to 'src/gallium/include/pipe/p_debug.h')
-rw-r--r-- | src/gallium/include/pipe/p_debug.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h index 14f8056924d..c549513b6f9 100644 --- a/src/gallium/include/pipe/p_debug.h +++ b/src/gallium/include/pipe/p_debug.h @@ -225,6 +225,29 @@ debug_dump_flags(const struct debug_named_value *names, unsigned long value); +void * +debug_malloc(const char *file, unsigned line, const char *function, + size_t size); + +void +debug_free(const char *file, unsigned line, const char *function, + void *ptr); + +void * +debug_calloc(const char *file, unsigned line, const char *function, + size_t count, size_t size ); + +void * +debug_realloc(const char *file, unsigned line, const char *function, + void *old_ptr, size_t old_size, size_t new_size ); + +void +debug_memory_reset(void); + +void +debug_memory_report(void); + + #ifdef __cplusplus } #endif |