| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/BPF/BPFDisassembler.h`/ |
| 2 | /* BPF Backend by david942j <[email protected]>, 2019 */ |
| 3 | |
| 4 | #ifndef CS_BPF_DISASSEMBLER_H |
| 5 | #define CS_BPF_DISASSEMBLER_Hcxx . . $ `arch/BPF/BPFDisassembler.h:5:9`! |
| 6 | |
| 7 | #include "../../MCInst.h"cxx . . $ `<file>/MCInst.h`/ |
| 8 | |
| 9 | typedef struct bpf_internalcxx . . $ bpf_internal# { |
| 10 | uint16_tcxx . . $ uint16_t# opcxx . . $ bpf_internal#op.; |
| 11 | uint64_tcxx . . $ uint64_t# kcxx . . $ bpf_internal#k.; |
| 12 | /* for cBPF */ |
| 13 | uint8_tcxx . . $ uint8_t# jtcxx . . $ bpf_internal#jt.; |
| 14 | uint8_tcxx . . $ uint8_t# jfcxx . . $ bpf_internal#jf.; |
| 15 | /* for eBPF */ |
| 16 | uint8_tcxx . . $ uint8_t# dstcxx . . $ bpf_internal#dst.; |
| 17 | uint8_tcxx . . $ uint8_t# srccxx . . $ bpf_internal#src.; |
| 18 | uint16_tcxx . . $ uint16_t# offsetcxx . . $ bpf_internal#offset.; |
| 19 | |
| 20 | /* length of this bpf instruction */ |
| 21 | uint8_tcxx . . $ uint8_t# insn_sizecxx . . $ bpf_internal#insn_size.; |
| 22 | } bpf_internalcxx . . $ bpf_internal#; |
| 23 | |
| 24 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! BPF_getInstructioncxx . . $ BPF_getInstruction(fe94ce91eeab61e9).(cshcxx . . $ csh# ud, const uint8_tcxx . . $ uint8_t# *code, size_t code_len, |
| 25 | MCInstcxx . . $ MCInst# *instr, uint16_tcxx . . $ uint16_t# *size, uint64_tcxx . . $ uint64_t# address, void *info); |
| 26 | |
| 27 | #endif |