RTEMS  5.0.0
rtl-trace.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT (c) 2012-2014 Chris Johns <chrisj@rtems.org>
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
16 #if !defined (_RTEMS_RTL_TRACE_H_)
17 #define _RTEMS_RTL_TRACE_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 #include <rtems/printer.h>
27 
31 #define RTEMS_RTL_TRACE 1
32 
36 typedef uint32_t rtems_rtl_trace_mask;
37 
41 #define RTEMS_RTL_TRACE_DETAIL (1UL << 0)
42 #define RTEMS_RTL_TRACE_WARNING (1UL << 1)
43 #define RTEMS_RTL_TRACE_LOAD (1UL << 2)
44 #define RTEMS_RTL_TRACE_UNLOAD (1UL << 3)
45 #define RTEMS_RTL_TRACE_SECTION (1UL << 4)
46 #define RTEMS_RTL_TRACE_SYMBOL (1UL << 5)
47 #define RTEMS_RTL_TRACE_RELOC (1UL << 6)
48 #define RTEMS_RTL_TRACE_GLOBAL_SYM (1UL << 7)
49 #define RTEMS_RTL_TRACE_LOAD_SECT (1UL << 8)
50 #define RTEMS_RTL_TRACE_ALLOCATOR (1UL << 9)
51 #define RTEMS_RTL_TRACE_UNRESOLVED (1UL << 10)
52 #define RTEMS_RTL_TRACE_CACHE (1UL << 11)
53 #define RTEMS_RTL_TRACE_ARCHIVES (1UL << 12)
54 #define RTEMS_RTL_TRACE_ARCHIVE_SYMS (1UL << 13)
55 #define RTEMS_RTL_TRACE_DEPENDENCY (1UL << 14)
56 #define RTEMS_RTL_TRACE_BIT_ALLOC (1UL << 15)
57 #define RTEMS_RTL_TRACE_ALL (0xffffffffUL & ~(RTEMS_RTL_TRACE_CACHE | \
58  RTEMS_RTL_TRACE_GLOBAL_SYM | \
59  RTEMS_RTL_TRACE_ARCHIVE_SYMS))
60 
69 #if RTEMS_RTL_TRACE
70 bool rtems_rtl_trace (rtems_rtl_trace_mask mask);
71 #else
72 #define rtems_rtl_trace(_m) (0)
73 #endif
74 
81 #if RTEMS_RTL_TRACE
82 rtems_rtl_trace_mask rtems_rtl_trace_set_mask (rtems_rtl_trace_mask mask);
83 #else
84 #define rtems_rtl_trace_set_mask(_m)
85 #endif
86 
93 #if RTEMS_RTL_TRACE
94 rtems_rtl_trace_mask rtems_rtl_trace_clear_mask (rtems_rtl_trace_mask mask);
95 #else
96 #define rtems_rtl_trace_clear_mask(_m)
97 #endif
98 
102 #if RTEMS_RTL_TRACE
103 int rtems_rtl_trace_shell_command (const rtems_printer* printer,
104  int argc,
105  char* argv[]);
106 #endif
107 
108 #ifdef __cplusplus
109 }
110 #endif /* __cplusplus */
111 
112 #endif
rtems_rtl_trace_mask rtems_rtl_trace_clear_mask(rtems_rtl_trace_mask mask)
Definition: printer.h:55
uint32_t rtems_rtl_trace_mask
Definition: rtl-trace.h:36
rtems_rtl_trace_mask rtems_rtl_trace_set_mask(rtems_rtl_trace_mask mask)
int rtems_rtl_trace_shell_command(const rtems_printer *printer, int argc, char *argv[])
bool rtems_rtl_trace(rtems_rtl_trace_mask mask)
User print interface to the bspIO print plug in.