1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_CAPSTONE_H 3 #define __PERF_CAPSTONE_H 4 5 #include <stdbool.h> 6 #include <stdint.h> 7 #include <stdio.h> 8 #include <stdlib.h> 9 #include <linux/types.h> 10 11 struct annotate_args; 12 struct machine; 13 struct symbol; 14 struct thread; 15 16 ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, 17 bool is64bit, const uint8_t *code, size_t code_size, 18 uint64_t ip, int *lenp, int print_opts, FILE *fp); 19 int symbol__disassemble_capstone(const char *filename, struct symbol *sym, 20 struct annotate_args *args); 21 int symbol__disassemble_capstone_powerpc(const char *filename, struct symbol *sym, 22 struct annotate_args *args); 23 24 #endif /* __PERF_CAPSTONE_H */ 25