Linux Perf
dump-insn.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
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 
9 struct thread;
10 
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];
19 };
20 
21 const char *dump_insn(struct perf_insn *x, u64 ip,
22  u8 *inbuf, int inlen, int *lenp);
23 #endif
struct thread * thread
Definition: dump-insn.h:13
const char * dump_insn(struct perf_insn *x, u64 ip, u8 *inbuf, int inlen, int *lenp)
int cpu
Definition: dump-insn.h:16
u8 cpumode
Definition: dump-insn.h:14
char out[256]
Definition: dump-insn.h:18
Definition: thread.h:18
bool is64bit
Definition: dump-insn.h:15