diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-27 11:44:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-28 11:23:53 +0100 |
commit | 01557b0c6e723627427195bb33bdfe0b125c70b1 (patch) | |
tree | ecd3bdb408cecd25bf24c25adb51dafdddedbc3a /cpukit/libcsupport/include | |
parent | bdbuf: Fix race condition with sync active flag (diff) | |
download | rtems-01557b0c6e723627427195bb33bdfe0b125c70b1.tar.bz2 |
libcsupport: Delete malloc statistics
Use the heap handler statistics instead. Add heap walk option to MALLOC
shell command.
close #1367
Diffstat (limited to 'cpukit/libcsupport/include')
-rw-r--r-- | cpukit/libcsupport/include/rtems/malloc.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/cpukit/libcsupport/include/rtems/malloc.h b/cpukit/libcsupport/include/rtems/malloc.h index 25c2ead6de..7c00f21e77 100644 --- a/cpukit/libcsupport/include/rtems/malloc.h +++ b/cpukit/libcsupport/include/rtems/malloc.h @@ -48,34 +48,6 @@ void RTEMS_Malloc_Initialize( Heap_Initialization_or_extend_handler extend ); -/* - * Malloc Statistics Structure - */ -typedef struct { - uint32_t space_available; /* current size of malloc area */ - uint32_t malloc_calls; /* # calls to malloc */ - uint32_t memalign_calls; /* # calls to memalign */ - uint32_t free_calls; - uint32_t realloc_calls; - uint32_t calloc_calls; - uint32_t max_depth; /* most ever malloc'd at 1 time */ - uintmax_t lifetime_allocated; - uintmax_t lifetime_freed; -} rtems_malloc_statistics_t; - -/* - * Malloc statistics plugin - */ -typedef struct { - void (*initialize)(void); - void (*at_malloc)(void *); - void (*at_free)(void *); -} rtems_malloc_statistics_functions_t; - -extern rtems_malloc_statistics_functions_t - rtems_malloc_statistics_helpers_table; -extern rtems_malloc_statistics_functions_t *rtems_malloc_statistics_helpers; - extern ptrdiff_t RTEMS_Malloc_Sbrk_amount; static inline void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount ) @@ -122,41 +94,6 @@ void rtems_malloc_dirty_memory( ); /** - * @brief Print Malloc Statistic Usage Report - * - * This method fills in the called provided malloc statistics area. - * - * @return This method returns 0 if successful and -1 on error. - */ -int malloc_get_statistics( - rtems_malloc_statistics_t *stats -); - -/** - * @brief Print Malloc Statistic Usage Report - * - * This method prints a malloc statistics report. - * - * @note It uses printk to print the report. - */ -void malloc_report_statistics(void); - -/** - * @brief Print Malloc Statistic Usage Report - * - * This method prints a malloc statistics report. - * - * @param[in] context is the context to pass to the print handler - * @param[in] print is the print handler - * - * @note It uses the CALLER's routine to print the report. - */ -void malloc_report_statistics_with_plugin( - void *context, - rtems_printk_plugin_t print -); - -/** * @brief RTEMS Variation on Aligned Memory Allocation * * This method is a help memalign implementation which does all |