[FEATURE] add network probes
[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                  1
41 #define         VT_UINT                 2
42 #define         VT_LONG                 3
43 #define         VT_ULONG                4
44 #define         VT_STR                  5
45 #define         VT_CHAR                 6
46 #define         VT_PTR                  7
47 #define         VT_NULL                 8
48 #define         VT_OFF_T                9
49 #define         VT_SIZE_T               10
50 #define         VT_SSIZE_T              11
51 #define         VT_SOCKLEN_T            12
52 #define         VT_UINT16_T             13
53 #define         VT_UINT32_T             14
54 #define         VT_UINT64_T             15
55 #define         VT_MODE_T               16
56 #define         VT_DEV_T                17
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_OSPTHREAD_WORKER         1
135 #define         THREAD_OSPTHREAD_EVENTDRIVEN    2
136
137 #define         THREAD_API_NEW                          0
138 #define         THREAD_API_START                        1
139 #define         THREAD_API_STOP                         2
140 #define         THREAD_API_EXIT                         3
141 #define         THREAD_API_WAIT_START                   4
142 #define         THREAD_API_WAIT_END                     5
143 #define         THREAD_API_INTERNAL_START               6
144 #define         THREAD_API_INTERNAL_STOP                7
145 #define         THREAD_API_OTHER                        8
146
147 #define         SYNC_OSP_MUTEX                          0
148 #define         SYNC_OSP_MONITOR                        1
149 #define         SYNC_OSP_SEMAPHORE                      2
150 #define         SYNC_PTHREAD_MUTEX                      3
151 #define         SYNC_PTHREAD_COND_VARIABLE              4
152 #define         SYNC_PTHREAD_RWLOCK                     5
153 #define         SYNC_PTHREAD_SPINLOCK                   6
154 #define         SYNC_PTHREAD_BARRIER                    7
155
156 #define         SYNC_API_NEW                            0
157 #define         SYNC_API_ACQUIRE_WAIT_START             1
158 #define         SYNC_API_ACQUIRE_WAIT_END               2
159 #define         SYNC_API_RELEASE                        3
160 #define         SYNC_API_TRY_ACQUIRE                    4
161 #define         SYNC_API_COND_WAIT_START                5
162 #define         SYNC_API_COND_WAIT_END                  6
163 #define         SYNC_API_NOTIFY                         7
164 #define         SYNC_API_NOTIFY_ALL                     8
165 #define         SYNC_API_OTHER                          9
166
167 enum MessageType
168 {
169         MSG_DEVICE = 1,
170         MSG_TIME,
171         MSG_SAMPLE,
172         MSG_LOG = 5,
173         MSG_IMAGE = 6,
174         MSG_TERMINATE = 7,
175         MSG_PID = 8,
176         MSG_MSG = 9,
177         MSG_ALLOC = 10,
178         MSG_ERROR = 11,
179         MSG_STOP = 101,
180         MSG_CONFIG = 103
181 };
182
183 enum DaOptions
184 {
185         OPT_ALWAYSOFF           =       0x00000000,
186         OPT_ALLOC               =       0x00000008,
187         OPT_FILE                =       0x00000010,
188         OPT_THREAD              =       0x00000020,
189         OPT_UI                  =       0x00000040,
190         OPT_SNAPSHOT            =       0x00000080,
191         OPT_EVENT               =       0x00000100,
192         OPT_RECORD              =       0x00000200,
193         OPT_NETWORK             =       0x00020000,
194         OPT_GLES                =       0x00040000,
195         OPT_ALWAYSON            =       0x11111111
196 };
197
198
199 #ifdef __cplusplus
200 }
201 #endif
202
203 #endif