Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / dump-insn.h
blob20d4d7bb5275856ea766d91a06ea2c511df25b7c
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 struct machine *machine;
15 u8 cpumode;
16 bool is64bit;
17 int cpu;
18 /* Temporary */
19 char out[256];
22 const char *dump_insn(struct perf_insn *x, u64 ip,
23 u8 *inbuf, int inlen, int *lenp);
24 int arch_is_uncond_branch(const unsigned char *buf, size_t len, int x86_64);
26 #endif