Debian Codegraph @

runtime/dyninst/uprobes.h

raw
1 /* -*- linux-c -*-
2 * Common data types for dyninst-based uprobes
3 * Copyright (C) 2012 Red Hat Inc.
4 *
5 * This file is part of systemtap, and is free software. You can
6 * redistribute it and/or modify it under the terms of the GNU General
7 * Public License (GPL); either version 2, or (at your option) any
8 * later version.
9 */
10
11 #ifndef _UPROBES_DYNINST_H_
12 #define _UPROBES_DYNINST_H_
13
14 /* STAPDU: SystemTap Dyninst Uprobes */
15
16
17 /* A stapdu_target describes the files to probe */
18 struct stapdu_target {
19 const char * const path;
20 /* buildid? */
21 };
22
23
24 /* A stapdu_probe has the individual information for a probe. */
25 struct stapdu_probe {
26 uint64_t target; /* the target index for this probe */
27 uint64_t offset; /* the probe offset within the file */
28 uint64_t semaphore; /* the sdt semaphore offset within the file */
29 uint64_t flags; /* a mask of STAPDYN_PROBE_FLAG_* */
30 const struct stap_probe * const probe;
31 };
32
33
34 #endif /* _UPROBES_DYNINST_H_ */
35