X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e4443b735dd1c64853d863da06b62a10bb8c73f2..7aadb1a2e7f4a8401693035a8d58d6dd4b670063:/lunaix-os/tests/includes/testing/memchk.h diff --git a/lunaix-os/tests/includes/testing/memchk.h b/lunaix-os/tests/includes/testing/memchk.h new file mode 100644 index 0000000..77db92d --- /dev/null +++ b/lunaix-os/tests/includes/testing/memchk.h @@ -0,0 +1,24 @@ +#ifndef __COMMON_TEST_MEMCHK_H +#define __COMMON_TEST_MEMCHK_H + +struct valloc_stats +{ + unsigned long alloced; + unsigned long freed; + unsigned long nr_vfree_calls; + + unsigned int nr_valloc_calls; +}; + +extern struct valloc_stats valloc_stat; + +void +memchk_log_alloc(unsigned long addr, unsigned long size); + +void +memchk_log_free(unsigned long addr); + +void +memchk_print_stats(); + +#endif /* __COMMON_TEST_MEMCHK_H */