diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-03-26 15:05:59 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-27 00:40:50 -0500 |
commit | 8cabd06243ac077a4ca6c09424fac92941b72321 (patch) | |
tree | 3c91635af86c4074a9bb9ba988a8d2e4a5305cbe /include | |
parent | 0ce7482fb650f3b2ffd52bbfb1546cdd8aa9117c (diff) | |
download | skiboot-8cabd06243ac077a4ca6c09424fac92941b72321.zip skiboot-8cabd06243ac077a4ca6c09424fac92941b72321.tar.gz skiboot-8cabd06243ac077a4ca6c09424fac92941b72321.tar.bz2 |
core/fast-reboot: verify mem regions before fast reboot
Run the mem_region sanity checkers before proceeding with fast
reboot.
This is the beginning of proactive sanity checks on opal data
for fast reboot (with complements the reactive disable_fast_reboot
cases). This is encouraged to re-use and share any kind of debug
code and unit test code.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mem_region.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mem_region.h b/include/mem_region.h index 324e98e..2a9453f 100644 --- a/include/mem_region.h +++ b/include/mem_region.h @@ -63,7 +63,11 @@ bool mem_resize(struct mem_region *region, void *mem, size_t len, const char *location); size_t mem_allocated_size(const void *ptr); bool mem_check(const struct mem_region *region); +bool mem_check_all(void); void mem_region_release_unused(void); +void mem_region_clear_unused(void); +int64_t mem_dump_free(void); +void mem_dump_allocs(void); /* Specifically for working on the heap. */ extern struct mem_region skiboot_heap; |