Debian Codegraph @

rpython/rlib/rvmprof/src/vmprof_stack.h

raw symbols SCIP
1 #pragma once
2
3 #ifdef _WIN32
4 #include <stdint.h>
5 #else
6 #include <unistd.h>
7 #endif
8
9 #define VMPROF_CODE_TAG 1 /* <- also in cintf.py */
10 #define VMPROF_BLACKHOLE_TAG 2
11 #define VMPROF_JITTED_TAG 3
12 #define VMPROF_JITTING_TAG 4
13 #define VMPROF_GC_TAG 5
14 #define VMPROF_ASSEMBLER_TAG 6
15 #define VMPROF_NATIVE_TAG 7
16 // whatever we want here
17
18 typedef struct vmprof_stack_s {
19 struct vmprof_stack_s* next;
20 intptr_t value;
21 intptr_t kind;
22 } vmprof_stack_t;
23
24 // the kind is WORD so we consume exactly 3 WORDs and we don't have
25 // to worry too much. There is a potential for squeezing it with bit
26 // patterns into one WORD, but I don't want to care RIGHT NOW, potential
27 // for future optimization potential