Anas Nashif
246ec224e2
lib: heap: move heap stats to own file
...
heap stats are split out from heap_validate.c into own file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
d4c881da04
lib: mem_block: move to own folder
...
Move mem_block into own folder and seperate from lib/os and heap
configuration.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
740d0c3b50
lib: heap: make multi-heap feature configurable
...
Make multi-heap configurable via Kconfig and adapt existing tests.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
d398e9631b
lib: heap: build heap_info conditionally
...
Only build when needed and adapt existing users to pull this in when
needed.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
00680bd23a
lib: heap: rename with files and use _
...
be consistent with other files in the same folder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
b9f2ac0270
lib: heap: make heap_print_info static
...
This should be declated static as it is being only called in this file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
d6d716b32a
lib: heap: build heap utilities only on demand
...
Build the heap features only when needed and based on Kconfigs being
set.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
4cd9c11692
lib: heap: split heap-validate.c
...
Split heap-validate.c into smaller chunks. We have been adding all kind
of new APIs under this file and building it unconditionally whether
those APIs are needed/used or not. Many of those APIs have nothing to do
with the validation part.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00
Anas Nashif
6cb588820f
lib: os: move heap to own folder
...
consolidate all heap related files and implementation into one folder.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-13 17:27:54 -05:00