xref: /openbmc/linux/tools/perf/util/dump-insn.h (revision efe4a1ac)
1 #ifndef __PERF_DUMP_INSN_H
2 #define __PERF_DUMP_INSN_H 1
3 
4 #define MAXINSN 15
5 
6 #include <linux/types.h>
7 
8 struct thread;
9 
10 struct perf_insn {
11 	/* Initialized by callers: */
12 	struct thread *thread;
13 	u8	      cpumode;
14 	bool	      is64bit;
15 	int	      cpu;
16 	/* Temporary */
17 	char	      out[256];
18 };
19 
20 const char *dump_insn(struct perf_insn *x, u64 ip,
21 		      u8 *inbuf, int inlen, int *lenp);
22 #endif
23