Manish V Badarkhe | f356f7e | 2021-06-29 11:44:20 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SYS_REG_TRACE_H |
| 8 | #define SYS_REG_TRACE_H |
| 9 | |
| 10 | #include <context.h> |
| 11 | |
Andre Przywara | 44e33e0 | 2022-11-17 16:42:09 +0000 | [diff] [blame] | 12 | #if ENABLE_SYS_REG_TRACE_FOR_NS |
Manish V Badarkhe | f356f7e | 2021-06-29 11:44:20 +0100 | [diff] [blame] | 13 | #if __aarch64__ |
| 14 | void sys_reg_trace_enable(cpu_context_t *context); |
| 15 | #else |
| 16 | void sys_reg_trace_enable(void); |
| 17 | #endif /* __aarch64__ */ |
| 18 | |
Andre Przywara | 44e33e0 | 2022-11-17 16:42:09 +0000 | [diff] [blame] | 19 | #else /* !ENABLE_SYS_REG_TRACE_FOR_NS */ |
| 20 | |
| 21 | #if __aarch64__ |
| 22 | static inline void sys_reg_trace_enable(cpu_context_t *context) |
| 23 | { |
| 24 | } |
| 25 | #else |
| 26 | static inline void sys_reg_trace_enable(void) |
| 27 | { |
| 28 | } |
| 29 | #endif /* __aarch64__ */ |
| 30 | #endif /* ENABLE_SYS_REG_TRACE_FOR_NS */ |
| 31 | |
Manish V Badarkhe | f356f7e | 2021-06-29 11:44:20 +0100 | [diff] [blame] | 32 | #endif /* SYS_REG_TRACE_H */ |