1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef __PERF_DUMP_INSN_H 3*4882a593Smuzhiyun #define __PERF_DUMP_INSN_H 1 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #define MAXINSN 15 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun #include <linux/types.h> 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun struct thread; 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun struct perf_insn { 12*4882a593Smuzhiyun /* Initialized by callers: */ 13*4882a593Smuzhiyun struct thread *thread; 14*4882a593Smuzhiyun u8 cpumode; 15*4882a593Smuzhiyun bool is64bit; 16*4882a593Smuzhiyun int cpu; 17*4882a593Smuzhiyun /* Temporary */ 18*4882a593Smuzhiyun char out[256]; 19*4882a593Smuzhiyun }; 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun const char *dump_insn(struct perf_insn *x, u64 ip, 22*4882a593Smuzhiyun u8 *inbuf, int inlen, int *lenp); 23*4882a593Smuzhiyun int arch_is_branch(const unsigned char *buf, size_t len, int x86_64); 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun #endif 26