diff options
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/score/heap.h | 3 | ||||
-rw-r--r-- | cpukit/score/src/heapgetinfo.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index 0120a2bb14..6042a13bf2 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -313,7 +313,7 @@ typedef struct { uint32_t searches; /** - * @brief Total number of suceessful calls to free. + * @brief Total number of successful calls to free. */ uint32_t frees; @@ -366,6 +366,7 @@ typedef struct { typedef struct { Heap_Information Free; Heap_Information Used; + Heap_Statistics Stats; } Heap_Information_block; /** diff --git a/cpukit/score/src/heapgetinfo.c b/cpukit/score/src/heapgetinfo.c index 8565be46a5..287d269922 100644 --- a/cpukit/score/src/heapgetinfo.c +++ b/cpukit/score/src/heapgetinfo.c @@ -50,4 +50,5 @@ void _Heap_Get_information( memset( the_info, 0, sizeof(*the_info) ); _Heap_Protection_free_all_delayed_blocks( the_heap ); _Heap_Iterate( the_heap, _Heap_Get_information_visitor, the_info ); + the_info->Stats = the_heap->stats; } |