context_debug.h 676 B

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