| 1 | /* Capstone Disassembly Engine */ |
| 2 | /* BPF Backend by david942j <[email protected]>, 2019 */ |
| 3 | |
| 4 | #ifndef CS_BPFMAPPING_H |
| 5 | #define CS_BPFMAPPING_H |
| 6 | |
| 7 | #include <capstone/capstone.h> |
| 8 | |
| 9 | #include "../../cs_priv.h" |
| 10 | |
| 11 | #define EBPF_MODE(ud) (((cs_struct*)ud)->mode & CS_MODE_BPF_EXTENDED) |
| 12 | |
| 13 | const char *BPF_group_name(csh handle, unsigned int id); |
| 14 | const char *BPF_insn_name(csh handle, unsigned int id); |
| 15 | const char *BPF_reg_name(csh handle, unsigned int reg); |
| 16 | void BPF_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id); |
| 17 | void BPF_reg_access(const cs_insn *insn, |
| 18 | cs_regs regs_read, uint8_t *regs_read_count, |
| 19 | cs_regs regs_write, uint8_t *regs_write_count); |
| 20 | |
| 21 | #endif |