1 ////////////////////////////////////////////////////////////////////////////////////
9 // COMPANY NAME: Samsung Research Center in Moscow
10 // DEPT NAME: Advanced Software Group
11 // CREATED: 2008.02.15
13 // REVISION DATE: 2008.12.02
15 ////////////////////////////////////////////////////////////////////////////////////
21 #include <sys/time.h> // struct timeval
24 #include <linux/time.h> // struct timeval
26 #include <sys/time.h> // struct timeval
30 #define MAX_ARGS_DATA 200
32 #define EVENT_MAX_SIZE 2048*5
35 ______________________________________________________________________________________________________________
36 | Len | RecType | EventType | Time | Pid | Tid | CPU | ArgsCount | ArgTypes | ArgValues | PreEventLen |
37 __4b_____4b________4b________8b_____4b____4b_____4b______4b________ArgCount___variable-length._______4b_____
47 RECORD_TYPE_COUNT // fictional record type used to count real record types
50 const char *ec_record_type_to_name (record_type_t record_type);
51 int ec_record_type_by_name (record_type_t * p_record_type, const char *record_type_name);
56 #define _TRACE_STATS_TYPE 2
58 typedef union tagArgValueType
69 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
72 #include <linux/types.h>
74 #include <sys/types.h>
78 struct common_timeval {
83 typedef uint32_t TYPEOF_EVENT_LENGTH;
84 typedef uint32_t TYPEOF_EVENT_TYPE;
85 typedef uint32_t TYPEOF_PROBE_ID;
86 typedef struct common_timeval TYPEOF_TIME;
87 typedef uint32_t TYPEOF_PROCESS_ID;
88 typedef uint32_t TYPEOF_THREAD_ID;
89 typedef uint32_t TYPEOF_CPU_NUMBER;
90 typedef uint32_t TYPEOF_NUMBER_OF_ARGS;
92 typedef struct tagEventHeader
94 TYPEOF_EVENT_LENGTH m_nLength;
95 TYPEOF_EVENT_TYPE m_nType;
96 TYPEOF_PROBE_ID m_nProbeID;
98 TYPEOF_PROCESS_ID m_nProcessID;
99 TYPEOF_THREAD_ID m_nThreadID;
100 TYPEOF_CPU_NUMBER m_nCPU;
101 TYPEOF_NUMBER_OF_ARGS m_nNumberOfArgs;
102 } SWAP_TYPE_EVENT_HEADER;
104 typedef struct tagEvent
106 SWAP_TYPE_EVENT_HEADER *m_pHeader;
138 #define ALIGN_VALUE(x) ((x) + (4 - ((x) % 4)))
140 #endif /* !defined(PICL_h) */