Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
11struct annotate_args;
12struct machine;
13struct symbol;
14struct thread;
15
16ssize_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);
19int symbol__disassemble_capstone(const char *filename, struct symbol *sym,
20 struct annotate_args *args);
21int symbol__disassemble_capstone_powerpc(const char *filename, struct symbol *sym,
22 struct annotate_args *args);
23
24#endif /* __PERF_CAPSTONE_H */