Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / util / dump-insn.h
blob650125061530934c3f175d90ca8c82e2c59f99ca
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_DUMP_INSN_H
3 #define __PERF_DUMP_INSN_H 1
5 #define MAXINSN 15
7 #include <linux/types.h>
9 struct thread;
11 struct perf_insn {
12 /* Initialized by callers: */
13 struct thread *thread;
14 u8 cpumode;
15 bool is64bit;
16 int cpu;
17 /* Temporary */
18 char out[256];
21 const char *dump_insn(struct perf_insn *x, u64 ip,
22 u8 *inbuf, int inlen, int *lenp);
23 int arch_is_branch(const unsigned char *buf, size_t len, int x86_64);
25 #endif