Debian Codegraph @

rpython/rlib/rvmprof/src/shared/unwind/vmprof_unwind.h

raw symbols SCIP
1 #pragma once
2
3 #define _XOPEN_SOURCE 700
4
5 #include <stddef.h>
6 #include <stdint.h>
7 #include <ucontext.h>
8
9 // copied from libunwind.h
10 #ifdef X86_32
11 #define UNW_REG_IP 8
12 typedef uint32_t unw_word_t;
13 typedef int32_t unw_sword_t;
14 #elif defined(X86_64)
15 #define UNW_REG_IP 16
16 typedef uint64_t unw_word_t;
17 typedef int64_t unw_sword_t;
18 #elif defined (__powerpc64__)
19 #define UNW_REG_IP 32
20 typedef uint64_t unw_word_t;
21 typedef int64_t unw_sword_t;
22 #else
23 // not supported platform
24 #endif
25
26
27 #define UNW_TDEP_CURSOR_LEN 127
28
29 #ifdef VMP_SUPPORTS_NATIVE_PROFILING
30 typedef struct unw_cursor
31 {
32 unw_word_t opaque[UNW_TDEP_CURSOR_LEN];
33 }
34 unw_cursor_t;
35
36 typedef struct unw_proc_info
37 {
38 unw_word_t start_ip; /* first IP covered by this procedure */
39 unw_word_t end_ip; /* first IP NOT covered by this procedure */
40 unw_word_t lsda; /* address of lang.-spec. data area (if any) */
41 unw_word_t handler; /* optional personality routine */
42 unw_word_t gp; /* global-pointer value for this procedure */
43 unw_word_t flags; /* misc. flags */
44
45 int format; /* unwind-info format (arch-specific) */
46 int unwind_info_size; /* size of the information (if applicable) */
47 void *unwind_info; /* unwind-info (arch-specific) */
48 } unw_proc_info_t;
49
50 // end of copy
51
52 #endif