28 #ifndef __INCLUDE_TINYARA_TTRACE_H 29 #define __INCLUDE_TINYARA_TTRACE_H 34 #include <tinyara/config.h> 43 #include <sys/types.h> 48 #define TTRACE_START 's' 49 #define TTRACE_OVERWRITE 'o' 50 #define TTRACE_FINISH 'f' 51 #define TTRACE_INFO 'i' 52 #define TTRACE_SELECTED_TAG 't' 53 #define TTRACE_FUNC_TAG 'g' 54 #define TTRACE_SET_BUFSIZE 'z' 55 #define TTRACE_USED_BUFSIZE 'u' 56 #define TTRACE_BUFFER 'b' 57 #define TTRACE_DUMP 'd' 58 #define TTRACE_PRINT 'p' 60 #define TTRACE_CODE_VARIABLE 0 61 #define TTRACE_CODE_UNIQUE (1 << 7) 63 #define TTRACE_MSG_BYTES 32 64 #define TTRACE_COMM_BYTES 12 65 #define TTRACE_BYTE_ALIGN 4 67 #define TTRACE_NODATA -2 68 #define TTRACE_INVALID -1 69 #define TTRACE_VALID 0 71 #define TTRACE_TAG_ALL -1 72 #define TTRACE_TAG_OFF 0 73 #define TTRACE_TAG_APPS (1 << 0) 74 #define TTRACE_TAG_LIBS (1 << 1) 75 #define TTRACE_TAG_LOCK (1 << 2) 76 #define TTRACE_TAG_TASK (1 << 3) 77 #define TTRACE_TAG_IPC (1 << 4) 109 #if defined(__cplusplus) 166 #define trace_begin(a, b, ...) 167 #define trace_begin_uid(a, b) 169 #define trace_end_uid(a) 170 #define trace_sched(a, b) 172 #if defined(__cplusplus) int trace_end(int tag)
writes a trace log to indicate that the event has ended
int trace_sched(struct tcb_s *prev, struct tcb_s *next)
writes a trace log for scheduler events
int trace_end_uid(int tag)
writes a trace log to indicate that a event has ended
This is the common part of the task control block (TCB). The TCB is the heart of the TinyAra task-con...
int trace_begin(int tag, char *str,...)
writes a trace log with string to indicate that a event has begun
int trace_begin_uid(int tag, int8_t uniqueid)
writes a trace log with unique id to indicate that a event has begun
char prev_comm[TTRACE_COMM_BYTES]
structure represents an elapsed time
Standard Input / Output APIs.
char next_comm[TTRACE_COMM_BYTES]
#define TTRACE_COMM_BYTES