xref: /rk3399_ARM-atf/include/lib/el3_runtime/context_debug.h (revision bfef8b908e3a3cc29656c1d30a6b53490c79539b)
1*bfef8b90SJuan Pablo Conde /*
2*bfef8b90SJuan Pablo Conde  * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
3*bfef8b90SJuan Pablo Conde  *
4*bfef8b90SJuan Pablo Conde  * SPDX-License-Identifier: BSD-3-Clause
5*bfef8b90SJuan Pablo Conde  */
6*bfef8b90SJuan Pablo Conde #ifndef CONTEXT_DEBUG_H
7*bfef8b90SJuan Pablo Conde #define CONTEXT_DEBUG_H
8*bfef8b90SJuan Pablo Conde 
9*bfef8b90SJuan Pablo Conde #if PLATFORM_REPORT_CTX_MEM_USE && defined(__aarch64__)
10*bfef8b90SJuan Pablo Conde /********************************************************************************
11*bfef8b90SJuan Pablo Conde  * Reports the allocated memory for every security state and then reports the
12*bfef8b90SJuan Pablo Conde  * total system-wide allocated memory.
13*bfef8b90SJuan Pablo Conde  *******************************************************************************/
14*bfef8b90SJuan Pablo Conde void report_ctx_memory_usage(void);
15*bfef8b90SJuan Pablo Conde #else
16*bfef8b90SJuan Pablo Conde static inline void report_ctx_memory_usage(void) {}
17*bfef8b90SJuan Pablo Conde #endif /* PLATFORM_REPORT_CTX_MEM_USE */
18*bfef8b90SJuan Pablo Conde 
19*bfef8b90SJuan Pablo Conde #endif /* CONTEXT_DEBUG_H */
20