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