mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 19:14:28 +00:00

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>
19 lines
676 B
C
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 */
|