Debian Codegraph @

runtime/dyninst/linux_types.h

raw
1 /* Types borrowed from the Linux kernel, thus subject to GPLv2. */
2
3 #ifndef _STAPDYN_LINUX_TYPES_H_
4 #define _STAPDYN_LINUX_TYPES_H_
5
6
7 typedef unsigned long long cycles_t;
8
9 typedef struct {
10 int counter;
11 } atomic_t;
12
13 # define POISON_POINTER_DELTA 0
14 #define LIST_POISON1 ((void *) 0x00100100 + POISON_POINTER_DELTA)
15 #define LIST_POISON2 ((void *) 0x00200200 + POISON_POINTER_DELTA)
16
17 struct list_head {
18 struct list_head *next, *prev;
19 };
20
21 struct hlist_head {
22 struct hlist_node *first;
23 };
24
25 struct hlist_node {
26 struct hlist_node *next, **pprev;
27 };
28
29 #define PAGE_SHIFT 12
30 #define PAGE_SIZE (1UL << PAGE_SHIFT)
31
32
33 #endif /* _STAPDYN_LINUX_TYPES_H_ */