Tizen RT Libs&Environment  v1.1 D4
ttrace.h File Reference

ttrace APIs More...

#include <tinyara/config.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <debug.h>
#include <time.h>
#include <sys/types.h>
Include dependency graph for ttrace.h:

Go to the source code of this file.

Data Structures

struct  sched_message
 
union  trace_message
 
struct  trace_packet
 

Macros

#define TTRACE_START   's'
 
#define TTRACE_OVERWRITE   'o'
 
#define TTRACE_FINISH   'f'
 
#define TTRACE_INFO   'i'
 
#define TTRACE_SELECTED_TAG   't'
 
#define TTRACE_FUNC_TAG   'g'
 
#define TTRACE_SET_BUFSIZE   'z'
 
#define TTRACE_USED_BUFSIZE   'u'
 
#define TTRACE_BUFFER   'b'
 
#define TTRACE_DUMP   'd'
 
#define TTRACE_PRINT   'p'
 
#define TTRACE_CODE_VARIABLE   0
 
#define TTRACE_CODE_UNIQUE   (1 << 7)
 
#define TTRACE_MSG_BYTES   32
 
#define TTRACE_COMM_BYTES   12
 
#define TTRACE_BYTE_ALIGN   4
 
#define TTRACE_NODATA   -2
 
#define TTRACE_INVALID   -1
 
#define TTRACE_VALID   0
 
#define TTRACE_TAG_ALL   -1
 
#define TTRACE_TAG_OFF   0
 
#define TTRACE_TAG_APPS   (1 << 0)
 
#define TTRACE_TAG_LIBS   (1 << 1)
 
#define TTRACE_TAG_LOCK   (1 << 2)
 
#define TTRACE_TAG_TASK   (1 << 3)
 
#define TTRACE_TAG_IPC   (1 << 4)
 

Functions

int trace_begin (int tag, char *str,...)
 writes a trace log with string to indicate that a event has begun More...
 
int trace_begin_uid (int tag, int8_t uniqueid)
 writes a trace log with unique id to indicate that a event has begun More...
 
int trace_end (int tag)
 writes a trace log to indicate that the event has ended More...
 
int trace_end_uid (int tag)
 writes a trace log to indicate that a event has ended More...
 
int trace_sched (struct tcb_s *prev, struct tcb_s *next)
 writes a trace log for scheduler events More...
 

Detailed Description

ttrace APIs

Definition in file ttrace.h.