[STYLE] add comments
[platform/core/system/swap-probe.git] / include / probeinfo.h
1 /*
2  *  DA probe
3  *
4  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Jaewon Lim <jaewon81.lim@samsung.com>
9  * Woojin Jung <woojin2.jung@samsung.com>
10  * Juyoung Kim <j0.kim@samsung.com>
11  * Anastasia Lyupa <a.lyupa@samsung.com>
12  *
13  * This library is free software; you can redistribute it and/or modify it under
14  * the terms of the GNU Lesser General Public License as published by the
15  * Free Software Foundation; either version 2.1 of the License, or (at your option)
16  * any later version.
17  *
18  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
21  * License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public License
24  * along with this library; if not, write to the Free Software Foundation, Inc., 51
25  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26  *
27  * Contributors:
28  * - S-Core Co., Ltd
29  * - Samsung RnD Institute Russia
30  *
31  */
32
33 #ifndef __PROBEINFO_H__
34 #define __PROBEINFO_H__
35
36 #ifdef __cplusplus
37 extern "C"{
38 #endif
39
40 #define         VT_INT                  'd'
41 #define         VT_UINT                 'd'
42 #define         VT_LONG                 'x'
43 #define         VT_ULONG                'x'
44 #define         VT_STR                  's'
45 #define         VT_CHAR                 'c'
46 #define         VT_PTR                  'p'
47 #define         VT_NULL                 'x'
48 #define         VT_OFF_T                'd'
49 #define         VT_SIZE_T               'x'
50 #define         VT_SSIZE_T              'x'
51 #define         VT_SOCKLEN_T            'd'
52 #define         VT_UINT16_T             'd'
53 #define         VT_UINT32_T             'd'
54 #define         VT_UINT64_T             'x'
55 #define         VT_MODE_T               'd'
56 #define         VT_DEV_T                'd'
57
58 /* #define              LC_MEMORY               1 */
59 /* #define              LC_UICREATE             2 */
60 /* #define              LC_UIEVENT              3 */
61 /* #define              LC_USERFUNC             4 */
62 /* #define              LC_RESOURCE             5 */
63 /* #define              LC_LIFECYCLE            6 */
64 /* #define              LC_SNAPSHOT             7 */
65 /* #define              LC_SCENE                8 */
66 /* #define              LC_DEVICE               9 */
67 /* #define              LC_ALLOCMEM             10 */
68 /* #define              LC_SAMPLE               11 */
69 /* #define              LC_THREAD               12 */
70 /* #define              LC_CUSTOM               13 */
71 /* #define              LC_SYNC                 14 */
72 /* #define              LC_SOCKET               15 */
73 /* #define              LC_GLES20               16 */
74
75
76 #define         FD_API_OPEN                     0
77 #define         FD_API_CLOSE                    1
78 #define         FD_API_READ_START               2
79 #define         FD_API_READ_END                 3
80 #define         FD_API_WRITE_START              4
81 #define         FD_API_WRITE_END                5
82 #define         FD_API_DIRECTORY                6
83 #define         FD_API_PERMISSION               7
84 #define         FD_API_OTHER                    8
85 #define         FD_API_SEND                     9
86 #define         FD_API_RECEIVE                  10
87 #define         FD_API_OPTION                   11
88 #define         FD_API_MANAGE                   12
89
90
91 #define         SOCKET_API_FD_OPEN              0
92 #define         SOCKET_API_FD_CLOSE             1
93 #define         SOCKET_API_RECV_START           2
94 #define         SOCKET_API_RECV_END             3
95 #define         SOCKET_API_SEND_START           4
96 #define         SOCKET_API_SEND_END             5
97 #define         SOCKET_API_BIND                 6
98 #define         SOCKET_API_LISTEN               7
99 #define         SOCKET_API_CONNECT              8
100 #define         SOCKET_API_ACCEPT_START         9
101 #define         SOCKET_API_ACCEPT_END           10
102 #define         SOCKET_API_EVENT_START          11
103 #define         SOCKET_API_EVENT_END            12
104 #define         SOCKET_API_OTHER                13
105 #define         HTTP_API_SESSION_CONSTRUCT      14
106 #define         HTTP_API_SESSION_CLOSE          15
107 #define         HTTP_API_TRANSACTION_OPEN       16
108 #define         HTTP_API_TRANSACTION_CLOSE      17
109 #define         HTTP_API_ALLOCATION             18
110 #define         HTTP_API_SUBMIT                 19
111 #define         HTTP_API_REQUEST                20
112 #define         HTTP_API_RESPONSE               21
113 #define         HTTP_API_OTHER                  22
114 #define         HTTP_API_CLOSE                  23
115
116
117 #define         MEMORY_API_ALLOC        0
118 #define         MEMORY_API_FREE         1
119 #define         MEMORY_API_MANAGE       2
120
121 //#define               SNAPSHOT_API_WIN                0
122 //#define               SNAPSHOT_API_CONTROLBAR         1
123 //#define               SNAPSHOT_API_NAVIFRAME          2
124 //#define               SNAPSHOT_API_PAGER              3
125
126 #define         EVENT_TYPE_DOWN         0
127 #define         EVENT_TYPE_UP           1
128 #define         EVENT_TYPE_MOVE         2
129
130 #define         USERFUNC_ENTER          0
131 #define         USERFUNC_EXIT           1
132
133 #define         THREAD_PTHREAD                  0
134 #define         THREAD_TIZENTHREAD_WORKER               1
135 #define         THREAD_TIZENTHREAD_EVENTDRIVEN  2
136
137 #define THREAD_CLASS_BLANK ""
138
139 #define         THREAD_API_NEW                          0
140 #define         THREAD_API_START                        1
141 #define         THREAD_API_STOP                         2
142 #define         THREAD_API_EXIT                         3
143 #define         THREAD_API_WAIT_START                   4
144 #define         THREAD_API_WAIT_END                     5
145 #define         THREAD_API_INTERNAL_START               6
146 #define         THREAD_API_INTERNAL_STOP                7
147 #define         THREAD_API_OTHER                        8
148
149 #define         SYNC_TIZEN_MUTEX                                0
150 #define         SYNC_TIZEN_MONITOR                      1
151 #define         SYNC_TIZEN_SEMAPHORE                    2
152 #define         SYNC_PTHREAD_MUTEX                      3
153 #define         SYNC_PTHREAD_COND_VARIABLE              4
154 #define         SYNC_PTHREAD_RWLOCK                     5
155 #define         SYNC_PTHREAD_SPINLOCK                   6
156 #define         SYNC_PTHREAD_BARRIER                    7
157
158 #define         SYNC_API_NEW                            0
159 #define         SYNC_API_ACQUIRE_WAIT_START             1
160 #define         SYNC_API_ACQUIRE_WAIT_END               2
161 #define         SYNC_API_RELEASE                        3
162 #define         SYNC_API_TRY_ACQUIRE                    4
163 #define         SYNC_API_COND_WAIT_START                5
164 #define         SYNC_API_COND_WAIT_END                  6
165 #define         SYNC_API_NOTIFY                         7
166 #define         SYNC_API_NOTIFY_ALL                     8
167 #define         SYNC_API_OTHER                          9
168
169 enum MessageType
170 {
171         MSG_DEVICE = 1,
172         MSG_TIME,
173         MSG_SAMPLE,
174         MSG_LOG = 5,
175         MSG_IMAGE = 6,
176         MSG_TERMINATE = 7,
177         MSG_PID = 8,
178         MSG_MSG = 9,
179         MSG_ALLOC = 10,
180         MSG_ERROR = 11,
181         MSG_STOP = 101,
182         MSG_CONFIG = 103,
183         MSG_CAPTURE_SCREEN= 108
184 };
185
186 enum DaOptions
187 {
188         OPT_ALWAYSOFF           =       0x000000000,
189         OPT_ALLOC               =       0x000000008,
190         OPT_FILE                =       0x000000010,
191         OPT_THREAD              =       0x000000020,
192         OPT_UI                  =       0x000000040,
193         OPT_SNAPSHOT            =       0x000000080,
194         OPT_EVENT               =       0x000000100,
195         OPT_RECORD              =       0x000000200,
196         OPT_NETWORK             =       0x000020000,
197         OPT_GLES                =       0x000040000,
198         OPT_ALWAYSON            =       0xfffffffff,
199         OPT_ALLOC_ALWAYS        =       0x010000000,
200         OPT_FILE_ALWAYS         =       0x020000000,
201         OPT_THREAD_ALWAYS       =       0x040000000,
202         OPT_UI_ALWAYS           =       0x080000000,
203         OPT_NETWORK_ALWAYS      =       0x100000000ULL,
204         OPT_GLES_ALWAYS         =       0x200000000ULL
205 };
206
207
208 #ifdef __cplusplus
209 }
210 #endif
211
212 #endif