]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blame - tools/perf/util/dump-insn.h
Merge tag 'for-linus-20190118' of git://git.kernel.dk/linux-block
[mirror_ubuntu-disco-kernel.git] / tools / perf / util / dump-insn.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
48d02a1d
AK
2#ifndef __PERF_DUMP_INSN_H
3#define __PERF_DUMP_INSN_H 1
4
5#define MAXINSN 15
6
7#include <linux/types.h>
8
9struct thread;
10
11struct 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];
19};
20
21const char *dump_insn(struct perf_insn *x, u64 ip,
22 u8 *inbuf, int inlen, int *lenp);
61f61159
AK
23int arch_is_branch(const unsigned char *buf, size_t len, int x86_64);
24
48d02a1d 25#endif