Debian Codegraph @

arch/BPF/BPFDisassembler.h

raw symbols SCIP
1 /* Capstone Disassembly Engine */
2 /* BPF Backend by david942j <[email protected]>, 2019 */
3
4 #ifndef CS_BPF_DISASSEMBLER_H
5 #define CS_BPF_DISASSEMBLER_H
6
7 #include "../../MCInst.h"
8
9 typedef struct bpf_internal {
10 uint16_t op;
11 uint64_t k;
12 /* for cBPF */
13 uint8_t jt;
14 uint8_t jf;
15 /* for eBPF */
16 uint8_t dst;
17 uint8_t src;
18 uint16_t offset;
19
20 /* length of this bpf instruction */
21 uint8_t insn_size;
22 } bpf_internal;
23
24 bool BPF_getInstruction(csh ud, const uint8_t *code, size_t code_len,
25 MCInst *instr, uint16_t *size, uint64_t address, void *info);
26
27 #endif