arm-trusted-firmware/include/lib/el3_runtime/context_debug.h
Juan Pablo Conde bfef8b908e feat(context-mgmt): report context memory usage
This patch provides a reporting functionality to display the memory
consumed by the context in each security state and for each exception
level. Flag PLATFORM_REPORT_CTX_MEM_USE enables or disables this
feature.

Change-Id: I1515366bf87561dcedf2b3206be167804df681d4
Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
2023-12-29 14:37:14 +00:00

19 lines
676 B
C

/*
* Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CONTEXT_DEBUG_H
#define CONTEXT_DEBUG_H
#if PLATFORM_REPORT_CTX_MEM_USE && defined(__aarch64__)
/********************************************************************************
* Reports the allocated memory for every security state and then reports the
* total system-wide allocated memory.
*******************************************************************************/
void report_ctx_memory_usage(void);
#else
static inline void report_ctx_memory_usage(void) {}
#endif /* PLATFORM_REPORT_CTX_MEM_USE */
#endif /* CONTEXT_DEBUG_H */