Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
target_xml.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012, 2013, 2014 The University of Utah
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef __TARGET_XML_H__
20 #define __TARGET_XML_H__
21 
22 #include "config.h"
23 #include "target_xml_moduleStub.h"
24 #include "debuginfo_xml_moduleStub.h"
25 #include "dwdebug.h"
26 #include "target_api.h"
27 #include "target.h"
28 #include "target_linux_userproc.h"
29 #ifdef ENABLE_XENSUPPORT
30 #include "target_xen_vm.h"
31 #endif
32 #include "target_gdb.h"
33 #include "target_os_process.h"
34 #include "target_php.h"
35 #include <glib.h>
36 
38 x_TargetTypeT_to_t_target_type_t(struct soap *soap,
39  enum vmi1__TargetTypeT type,
40  GHashTable *reftab,
41  target_type_t *out);
42 enum vmi1__TargetTypeT
43 t_target_type_t_to_x_TargetTypeT(struct soap *soap,
44  target_type_t type,
45  GHashTable *reftab,
46  enum vmi1__TargetTypeT *out);
47 
49 x_TargetModeT_to_t_target_mode_t(struct soap *soap,
50  enum vmi1__TargetModeT mode,
51  GHashTable *reftab,
52  target_mode_t *out);
53 enum vmi1__TargetModeT
54 t_target_mode_t_to_x_TargetModeT(struct soap *soap,
55  target_mode_t mode,
56  GHashTable *reftab,
57  enum vmi1__TargetModeT *out);
58 
60 x_ThreadBPModeT_to_t_thread_bpmode_t(struct soap *soap,
61  enum vmi1__ThreadBPModeT mode,
62  GHashTable *reftab,
63  thread_bpmode_t *out);
64 enum vmi1__ThreadBPModeT
65 t_thread_bpmode_t_to_x_ThreadBPModeT(struct soap *soap,
66  thread_bpmode_t mode,
67  GHashTable *reftab,
68  enum vmi1__ThreadBPModeT *out);
69 
70 struct target_spec *
71 x_TargetSpecT_to_t_target_spec(struct soap *soap,
72  struct vmi1__TargetSpecT *spec,
73  GHashTable *reftab,
74  struct target_spec *out);
75 struct vmi1__TargetSpecT *
76 t_target_spec_to_x_TargetSpecT(struct soap *soap,
77  struct target_spec *spec,
78  GHashTable *reftab,
79  struct vmi1__TargetSpecT *out);
80 
81 #ifdef ENABLE_XENSUPPORT
82 struct xen_vm_spec *
83 x_TargetXenSpecT_to_t_xen_vm_spec(struct soap *soap,
84  struct vmi1__TargetXenSpecT *xspec,
85  GHashTable *reftab,
86  struct xen_vm_spec *out);
87 struct vmi1__TargetXenSpecT *
88 t_xen_vm_spec_to_x_TargetXenSpecT(struct soap *soap,
89  struct xen_vm_spec *spec,
90  GHashTable *reftab,
91  struct vmi1__TargetXenSpecT *out);
92 #endif
93 
94 struct gdb_spec *
95 x_TargetGdbSpecT_to_t_gdb_spec(struct soap *soap,
96  struct vmi1__TargetGdbSpecT *xspec,
97  GHashTable *reftab,
98  struct gdb_spec *out);
99 struct vmi1__TargetGdbSpecT *
100 t_gdb_spec_to_x_TargetGdbSpecT(struct soap *soap,
101  struct gdb_spec *spec,
102  GHashTable *reftab,
103  struct vmi1__TargetGdbSpecT *out);
104 
105 struct linux_userproc_spec *
107  struct vmi1__TargetPtraceSpecT *xspec,
108  GHashTable *reftab,
109  struct linux_userproc_spec *out);
110 struct vmi1__TargetPtraceSpecT *
112  struct linux_userproc_spec *spec,
113  GHashTable *reftab,
114  struct vmi1__TargetPtraceSpecT *out);
115 struct vmi1__TargetT *
116 t_target_id_to_x_TargetT(struct soap *soap,
117  int target_id,struct target_spec *spec,
118  GHashTable *reftab,
119  struct vmi1__TargetT *out);
120 
121 struct vmi1__TargetT *
122 t_target_to_x_TargetT(struct soap *soap,
123  struct target *target,
124  GHashTable *reftab,
125  struct vmi1__TargetT *out);
126 
128 x_ThreadStatusT_to_t_thread_status_t(struct soap *soap,
129  enum vmi1__ThreadStatusT status,
130  GHashTable *reftab,
131  thread_status_t *out);
132 enum vmi1__ThreadStatusT
133 t_thread_status_t_to_x_ThreadStatusT(struct soap *soap,
134  thread_status_t status,
135  GHashTable *reftab,
136  enum vmi1__ThreadStatusT *out);
137 
139 x_TargetStatusT_to_t_target_status_t(struct soap *soap,
140  enum vmi1__TargetStatusT status,
141  GHashTable *reftab,
142  target_status_t *out);
143 enum vmi1__TargetStatusT
144 t_target_status_t_to_x_TargetStatusT(struct soap *soap,
145  target_status_t status,
146  GHashTable *reftab,
147  enum vmi1__TargetStatusT *out);
148 
149 struct vmi1__ThreadT *
150 t_target_thread_to_x_ThreadT(struct soap *soap,
151  struct target_thread *thread,
152  GHashTable *reftab,
153  struct vmi1__ThreadT *out);
154 
155 struct vmi1__TargetT *
156 t_target_to_x_TargetT(struct soap *soap,
157  struct target *target,
158  GHashTable *reftab,
159  struct vmi1__TargetT *out);
160 
161 struct vmi1__AddrSpaceT *
162 t_addrspace_to_x_AddrSpaceT(struct soap *soap,
163  struct addrspace *space,
164  GHashTable *reftab,
165  struct vmi1__AddrSpaceT *out);
166 
167 enum vmi1__MemRegionTypeT
168 t_region_type_t_to_x_MemRegionTypeT(struct soap *soap,
169  region_type_t rtype,
170  GHashTable *reftab,
171  enum vmi1__MemRegionTypeT *out);
172 
173 struct vmi1__MemRegionT *
174 t_memregion_to_x_MemRegionT(struct soap *soap,
175  struct memregion *memregion,
176  GHashTable *reftab,
177  struct vmi1__MemRegionT *out);
178 
179 struct vmi1__MemRangeT *
180 t_memrange_to_x_MemRangeT(struct soap *soap,
181  struct memrange *range,
182  GHashTable *reftab,
183  struct vmi1__MemRangeT *out);
184 
185 struct vmi1__ProbeT *
186 t_probe_to_x_ProbeT(struct soap *soap,
187  struct probe *probe,
188  GHashTable *reftab,
189  struct vmi1__ProbeT *out);
190 
191 struct vmi1__ProbeEventT *
192 t_probe_to_x_ProbeEventT(struct soap *soap,
193  struct probe *probe,tid_t tid,int type,struct probe *trigger,struct probe *base,
194  GHashTable *reftab,
195  struct vmi1__ProbeEventT *out);
196 
199  enum vmi1__ProbepointTypeT in);
200 enum vmi1__ProbepointTypeT
202  probepoint_type_t in);
203 
206  enum vmi1__ProbepointStyleT in);
207 enum vmi1__ProbepointStyleT
209  probepoint_style_t in);
210 
213  enum vmi1__ProbepointWhenceT in);
214 enum vmi1__ProbepointWhenceT
217 
220  enum vmi1__ProbepointSizeT in);
221 enum vmi1__ProbepointSizeT
224 
225 
227 x_ActionTypeT_to_t_action_type_t(struct soap *soap,
228  enum vmi1__ActionTypeT in);
229 enum vmi1__ActionTypeT
230 t_action_type_t_to_x_ActionTypeT(struct soap *soap,
231  action_type_t in);
232 
234 x_ActionWhenceT_to_t_action_whence_t(struct soap *soap,
235  enum vmi1__ActionWhenceT in);
236 enum vmi1__ActionWhenceT
237 t_action_whence_t_to_x_ActionWhenceT(struct soap *soap,
238  action_whence_t in);
239 
241 x_HandlerMsgT_to_t_handler_msg_t(struct soap *soap,
242  enum vmi1__HandlerMsgT in);
243 enum vmi1__HandlerMsgT
244 t_handler_msg_t_to_x_HandlerMsgT(struct soap *soap,
245  handler_msg_t in);
246 
247 struct vmi1__ActionT *
248 t_action_to_x_ActionT(struct soap *soap,
249  struct action *action,
250  GHashTable *reftab,
251  struct vmi1__ActionT *out);
252 
253 struct vmi1__ActionEventT *
254 t_action_to_x_ActionEventT(struct soap *soap,
255  struct action *action,struct target_thread *tthread,
256  handler_msg_t msg,int msg_detail,
257  GHashTable *reftab,
258  struct vmi1__ActionEventT *out);
259 
260 #endif /* __TARGET_XML_H__ */
struct gdb_spec * x_TargetGdbSpecT_to_t_gdb_spec(struct soap *soap, struct vmi1__TargetGdbSpecT *xspec, GHashTable *reftab, struct gdb_spec *out)
Definition: target_xml.c:542
struct vmi1__TargetT * t_target_id_to_x_TargetT(struct soap *soap, int target_id, struct target_spec *spec, GHashTable *reftab, struct vmi1__TargetT *out)
Definition: target_xml.c:946
int32_t tid_t
Definition: common.h:36
probepoint_type_t
Definition: probe_api.h:213
enum vmi1__ProbepointStyleT t_probepoint_style_t_to_x_ProbepointStyleT(struct soap *soap, probepoint_style_t in)
Definition: target_xml.c:1402
struct vmi1__ActionT * t_action_to_x_ActionT(struct soap *soap, struct action *action, GHashTable *reftab, struct vmi1__ActionT *out)
Definition: target_xml.c:1593
target_status_t
Definition: target_api.h:197
target_mode_t x_TargetModeT_to_t_target_mode_t(struct soap *soap, enum vmi1__TargetModeT mode, GHashTable *reftab, target_mode_t *out)
Definition: target_xml.c:102
action_whence_t
Definition: probe_api.h:257
target_type_t x_TargetTypeT_to_t_target_type_t(struct soap *soap, enum vmi1__TargetTypeT type, GHashTable *reftab, target_type_t *out)
Definition: target_xml.c:30
enum vmi1__TargetStatusT t_target_status_t_to_x_TargetStatusT(struct soap *soap, target_status_t status, GHashTable *reftab, enum vmi1__TargetStatusT *out)
Definition: target_xml.c:874
Definition: probe.h:392
action_whence_t x_ActionWhenceT_to_t_action_whence_t(struct soap *soap, enum vmi1__ActionWhenceT in)
Definition: target_xml.c:1527
struct vmi1__ProbeT * t_probe_to_x_ProbeT(struct soap *soap, struct probe *probe, GHashTable *reftab, struct vmi1__ProbeT *out)
Definition: target_xml.c:1271
probepoint_whence_t
Definition: probe_api.h:234
thread_bpmode_t x_ThreadBPModeT_to_t_thread_bpmode_t(struct soap *soap, enum vmi1__ThreadBPModeT mode, GHashTable *reftab, thread_bpmode_t *out)
Definition: target_xml.c:158
enum vmi1__ThreadStatusT t_thread_status_t_to_x_ThreadStatusT(struct soap *soap, thread_status_t status, GHashTable *reftab, enum vmi1__ThreadStatusT *out)
Definition: target_xml.c:786
struct linux_userproc_spec * x_TargetPtraceSpecT_to_t_linux_userproc_spec(struct soap *soap, struct vmi1__TargetPtraceSpecT *xspec, GHashTable *reftab, struct linux_userproc_spec *out)
Definition: target_xml.c:642
struct vmi1__TargetGdbSpecT * t_gdb_spec_to_x_TargetGdbSpecT(struct soap *soap, struct gdb_spec *spec, GHashTable *reftab, struct vmi1__TargetGdbSpecT *out)
Definition: target_xml.c:581
enum vmi1__ProbepointSizeT t_probepoint_watchsize_t_to_x_ProbepointSizeT(struct soap *soap, probepoint_watchsize_t in)
Definition: target_xml.c:1472
probepoint_style_t x_ProbepointStyleT_to_t_probepoint_style_t(struct soap *soap, enum vmi1__ProbepointStyleT in)
Definition: target_xml.c:1387
enum vmi1__ProbepointTypeT t_probepoint_type_t_to_x_ProbepointTypeT(struct soap *soap, probepoint_type_t in)
Definition: target_xml.c:1373
struct vmi1__MemRangeT * t_memrange_to_x_MemRangeT(struct soap *soap, struct memrange *range, GHashTable *reftab, struct vmi1__MemRangeT *out)
Definition: target_xml.c:1239
struct vmi1__TargetSpecT * t_target_spec_to_x_TargetSpecT(struct soap *soap, struct target_spec *spec, GHashTable *reftab, struct vmi1__TargetSpecT *out)
Definition: target_xml.c:304
enum vmi1__TargetTypeT t_target_type_t_to_x_TargetTypeT(struct soap *soap, target_type_t type, GHashTable *reftab, enum vmi1__TargetTypeT *out)
Definition: target_xml.c:66
region_type_t
probepoint_watchsize_t
Definition: probe_api.h:241
enum vmi1__ActionTypeT t_action_type_t_to_x_ActionTypeT(struct soap *soap, action_type_t in)
Definition: target_xml.c:1509
target_status_t x_TargetStatusT_to_t_target_status_t(struct soap *soap, enum vmi1__TargetStatusT status, GHashTable *reftab, target_status_t *out)
Definition: target_xml.c:833
thread_bpmode_t
Definition: target_api.h:366
target_mode_t
Definition: target_api.h:187
enum vmi1__TargetModeT t_target_mode_t_to_x_TargetModeT(struct soap *soap, target_mode_t mode, GHashTable *reftab, enum vmi1__TargetModeT *out)
Definition: target_xml.c:130
thread_status_t x_ThreadStatusT_to_t_thread_status_t(struct soap *soap, enum vmi1__ThreadStatusT status, GHashTable *reftab, thread_status_t *out)
Definition: target_xml.c:738
Definition: probe.h:308
struct target_spec * x_TargetSpecT_to_t_target_spec(struct soap *soap, struct vmi1__TargetSpecT *spec, GHashTable *reftab, struct target_spec *out)
Definition: target_xml.c:206
action_type_t x_ActionTypeT_to_t_action_type_t(struct soap *soap, enum vmi1__ActionTypeT in)
Definition: target_xml.c:1492
enum vmi1__ActionWhenceT t_action_whence_t_to_x_ActionWhenceT(struct soap *soap, action_whence_t in)
Definition: target_xml.c:1542
enum vmi1__ThreadBPModeT t_thread_bpmode_t_to_x_ThreadBPModeT(struct soap *soap, thread_bpmode_t mode, GHashTable *reftab, enum vmi1__ThreadBPModeT *out)
Definition: target_xml.c:182
handler_msg_t
Definition: probe_api.h:52
struct vmi1__MemRegionT * t_memregion_to_x_MemRegionT(struct soap *soap, struct memregion *memregion, GHashTable *reftab, struct vmi1__MemRegionT *out)
Definition: target_xml.c:1176
struct vmi1__ProbeEventT * t_probe_to_x_ProbeEventT(struct soap *soap, struct probe *probe, tid_t tid, int type, struct probe *trigger, struct probe *base, GHashTable *reftab, struct vmi1__ProbeEventT *out)
Definition: target_xml.c:1304
handler_msg_t x_HandlerMsgT_to_t_handler_msg_t(struct soap *soap, enum vmi1__HandlerMsgT in)
Definition: target_xml.c:1558
target_type_t
Definition: target_api.h:163
probepoint_style_t
Definition: probe_api.h:228
thread_status_t
Definition: target_api.h:254
enum vmi1__HandlerMsgT t_handler_msg_t_to_x_HandlerMsgT(struct soap *soap, handler_msg_t in)
Definition: target_xml.c:1575
int target_id(struct target *target)
Definition: target_api.c:509
struct vmi1__ActionEventT * t_action_to_x_ActionEventT(struct soap *soap, struct action *action, struct target_thread *tthread, handler_msg_t msg, int msg_detail, GHashTable *reftab, struct vmi1__ActionEventT *out)
Definition: target_xml.c:1667
struct vmi1__TargetT * t_target_to_x_TargetT(struct soap *soap, struct target *target, GHashTable *reftab, struct vmi1__TargetT *out)
Definition: target_xml.c:1004
struct vmi1__TargetPtraceSpecT * t_linux_userproc_spec_to_x_TargetPtraceSpecT(struct soap *soap, struct linux_userproc_spec *spec, GHashTable *reftab, struct vmi1__TargetPtraceSpecT *out)
Definition: target_xml.c:686
probepoint_type_t x_ProbepointTypeT_to_t_probepoint_type_t(struct soap *soap, enum vmi1__ProbepointTypeT in)
Definition: target_xml.c:1360
action_type_t
Definition: probe_api.h:249
struct vmi1__AddrSpaceT * t_addrspace_to_x_AddrSpaceT(struct soap *soap, struct addrspace *space, GHashTable *reftab, struct vmi1__AddrSpaceT *out)
Definition: target_xml.c:1093
enum vmi1__ProbepointWhenceT t_probepoint_whence_t_to_x_ProbepointWhenceT(struct soap *soap, probepoint_whence_t in)
Definition: target_xml.c:1435
enum vmi1__MemRegionTypeT t_region_type_t_to_x_MemRegionTypeT(struct soap *soap, region_type_t rtype, GHashTable *reftab, enum vmi1__MemRegionTypeT *out)
Definition: target_xml.c:1131
probepoint_whence_t x_ProbepointWhenceT_to_t_probepoint_whence_t(struct soap *soap, enum vmi1__ProbepointWhenceT in)
Definition: target_xml.c:1418
probepoint_watchsize_t x_ProbepointSizeT_to_t_probepoint_watchsize_t(struct soap *soap, enum vmi1__ProbepointSizeT in)
Definition: target_xml.c:1453
struct vmi1__ThreadT * t_target_thread_to_x_ThreadT(struct soap *soap, struct target_thread *thread, GHashTable *reftab, struct vmi1__ThreadT *out)
Definition: target_xml.c:916