File indexing completed on 2025-05-11 08:24:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #if !defined (_RTEMS_RTL_TRACE_H_)
0036 #define _RTEMS_RTL_TRACE_H_
0037
0038 #ifdef __cplusplus
0039 extern "C" {
0040 #endif
0041
0042 #include <stdbool.h>
0043 #include <stdint.h>
0044
0045 #include <rtems/printer.h>
0046
0047
0048
0049
0050 #define RTEMS_RTL_TRACE 1
0051
0052
0053
0054
0055 typedef uint32_t rtems_rtl_trace_mask;
0056
0057
0058
0059
0060 #define RTEMS_RTL_TRACE_DETAIL (1UL << 0)
0061 #define RTEMS_RTL_TRACE_WARNING (1UL << 1)
0062 #define RTEMS_RTL_TRACE_LOAD (1UL << 2)
0063 #define RTEMS_RTL_TRACE_UNLOAD (1UL << 3)
0064 #define RTEMS_RTL_TRACE_SECTION (1UL << 4)
0065 #define RTEMS_RTL_TRACE_SYMBOL (1UL << 5)
0066 #define RTEMS_RTL_TRACE_RELOC (1UL << 6)
0067 #define RTEMS_RTL_TRACE_GLOBAL_SYM (1UL << 7)
0068 #define RTEMS_RTL_TRACE_LOAD_SECT (1UL << 8)
0069 #define RTEMS_RTL_TRACE_ALLOCATOR (1UL << 9)
0070 #define RTEMS_RTL_TRACE_UNRESOLVED (1UL << 10)
0071 #define RTEMS_RTL_TRACE_CACHE (1UL << 11)
0072 #define RTEMS_RTL_TRACE_ARCHIVES (1UL << 12)
0073 #define RTEMS_RTL_TRACE_ARCHIVE_SYMS (1UL << 13)
0074 #define RTEMS_RTL_TRACE_DEPENDENCY (1UL << 14)
0075 #define RTEMS_RTL_TRACE_BIT_ALLOC (1UL << 15)
0076 #define RTEMS_RTL_TRACE_COMP (1UL << 16)
0077 #define RTEMS_RTL_TRACE_ALL (0xffffffffUL & ~(RTEMS_RTL_TRACE_CACHE | \
0078 RTEMS_RTL_TRACE_COMP | \
0079 RTEMS_RTL_TRACE_GLOBAL_SYM | \
0080 RTEMS_RTL_TRACE_ARCHIVE_SYMS))
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090 #if RTEMS_RTL_TRACE
0091 bool rtems_rtl_trace (rtems_rtl_trace_mask mask);
0092 #else
0093 #define rtems_rtl_trace(_m) (0)
0094 #endif
0095
0096
0097
0098
0099
0100
0101
0102 #if RTEMS_RTL_TRACE
0103 rtems_rtl_trace_mask rtems_rtl_trace_set_mask (rtems_rtl_trace_mask mask);
0104 #else
0105 #define rtems_rtl_trace_set_mask(_m)
0106 #endif
0107
0108
0109
0110
0111
0112
0113
0114 #if RTEMS_RTL_TRACE
0115 rtems_rtl_trace_mask rtems_rtl_trace_clear_mask (rtems_rtl_trace_mask mask);
0116 #else
0117 #define rtems_rtl_trace_clear_mask(_m)
0118 #endif
0119
0120
0121
0122
0123 #if RTEMS_RTL_TRACE
0124 int rtems_rtl_trace_shell_command (const rtems_printer* printer,
0125 int argc,
0126 char* argv[]);
0127 #endif
0128
0129 #ifdef __cplusplus
0130 }
0131 #endif
0132
0133 #endif