tizen 2.3 release
[framework/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 #define         FD_API_LOCK_START               14
90 #define         FD_API_LOCK_END                 15
91 #define         FD_API_LOCK_RELEASE             16
92
93
94 #define         SOCKET_API_FD_OPEN              0
95 #define         SOCKET_API_FD_CLOSE             1
96 #define         SOCKET_API_RECV_START           2
97 #define         SOCKET_API_RECV_END             3
98 #define         SOCKET_API_SEND_START           4
99 #define         SOCKET_API_SEND_END             5
100 #define         SOCKET_API_BIND                 6
101 #define         SOCKET_API_LISTEN               7
102 #define         SOCKET_API_CONNECT              8
103 #define         SOCKET_API_ACCEPT_START         9
104 #define         SOCKET_API_ACCEPT_END           10
105 #define         SOCKET_API_EVENT_START          11
106 #define         SOCKET_API_EVENT_END            12
107 #define         SOCKET_API_OTHER                13
108 #define         HTTP_API_SESSION_CONSTRUCT      14
109 #define         HTTP_API_SESSION_CLOSE          15
110 #define         HTTP_API_TRANSACTION_OPEN       16
111 #define         HTTP_API_TRANSACTION_CLOSE      17
112 #define         HTTP_API_ALLOCATION             18
113 #define         HTTP_API_SUBMIT                 19
114 #define         HTTP_API_REQUEST                20
115 #define         HTTP_API_RESPONSE               21
116 #define         HTTP_API_OTHER                  22
117 #define         HTTP_API_CLOSE                  23
118
119
120 #define         MEMORY_API_ALLOC        0
121 #define         MEMORY_API_FREE         1
122 #define         MEMORY_API_MANAGE       2
123
124 //#define               SNAPSHOT_API_WIN                0
125 //#define               SNAPSHOT_API_CONTROLBAR         1
126 //#define               SNAPSHOT_API_NAVIFRAME          2
127 //#define               SNAPSHOT_API_PAGER              3
128
129 #define         EVENT_TYPE_DOWN         0
130 #define         EVENT_TYPE_UP           1
131 #define         EVENT_TYPE_MOVE         2
132
133 #define         USERFUNC_ENTER          0
134 #define         USERFUNC_EXIT           1
135
136 #define         THREAD_PTHREAD                  0
137 #define         THREAD_TIZENTHREAD_WORKER               1
138 #define         THREAD_TIZENTHREAD_EVENTDRIVEN  2
139
140 #define THREAD_CLASS_BLANK ""
141
142 #define         THREAD_API_NEW                          0
143 #define         THREAD_API_START                        1
144 #define         THREAD_API_STOP                         2
145 #define         THREAD_API_EXIT                         3
146 #define         THREAD_API_WAIT_START                   4
147 #define         THREAD_API_WAIT_END                     5
148 #define         THREAD_API_INTERNAL_START               6
149 #define         THREAD_API_INTERNAL_STOP                7
150 #define         THREAD_API_OTHER                        8
151
152 #define         SYNC_TIZEN_MUTEX                                0
153 #define         SYNC_TIZEN_MONITOR                      1
154 #define         SYNC_TIZEN_SEMAPHORE                    2
155 #define         SYNC_PTHREAD_MUTEX                      3
156 #define         SYNC_PTHREAD_COND_VARIABLE              4
157 #define         SYNC_PTHREAD_RWLOCK                     5
158 #define         SYNC_PTHREAD_SPINLOCK                   6
159 #define         SYNC_PTHREAD_BARRIER                    7
160
161 #define         SYNC_API_NEW                            0
162 #define         SYNC_API_ACQUIRE_WAIT_START             1
163 #define         SYNC_API_ACQUIRE_WAIT_END               2
164 #define         SYNC_API_RELEASE                        3
165 #define         SYNC_API_TRY_ACQUIRE                    4
166 #define         SYNC_API_COND_WAIT_START                5
167 #define         SYNC_API_COND_WAIT_END                  6
168 #define         SYNC_API_NOTIFY                         7
169 #define         SYNC_API_NOTIFY_ALL                     8
170 #define         SYNC_API_OTHER                          9
171
172 enum MessageType
173 {
174         MSG_DEVICE = 1,
175         MSG_TIME,
176         MSG_SAMPLE,
177         MSG_LOG = 5,
178         MSG_IMAGE = 6,
179         MSG_TERMINATE = 7,
180         MSG_PID = 8,
181         MSG_MSG = 9,
182         MSG_ALLOC = 10,
183         MSG_ERROR = 11,
184         MSG_WARNING = 12,
185         MSG_STOP = 101,
186         MSG_CONFIG = 103,
187         MSG_CAPTURE_SCREEN= 108,
188         MSG_MAPS_INST_LIST= 109
189 };
190
191 enum DaOptions
192 {
193         OPT_ALWAYSOFF           =       0x000000000,
194         OPT_ALLOC               =       0x000000008,
195         OPT_FILE                =       0x000000010,
196         OPT_THREAD              =       0x000000020,
197         OPT_UI                  =       0x000000040,
198         OPT_SNAPSHOT            =       0x000000080,
199         OPT_EVENT               =       0x000000100,
200         OPT_RECORD              =       0x000000200,
201         OPT_NETWORK             =       0x000020000,
202         OPT_GLES                =       0x000040000,
203         OPT_ALWAYSON            =       0xfffffffff,
204         OPT_ALLOC_ALWAYS        =       0x010000000,
205         OPT_FILE_ALWAYS         =       0x020000000,
206         OPT_THREAD_ALWAYS       =       0x040000000,
207         OPT_UI_ALWAYS           =       0x080000000,
208         OPT_NETWORK_ALWAYS      =       0x100000000ULL,
209         OPT_GLES_ALWAYS         =       0x200000000ULL
210 };
211
212
213 #ifdef __cplusplus
214 }
215 #endif
216
217 #endif