0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __ASM_S390_DIS_H__
0010 #define __ASM_S390_DIS_H__
0011
0012 #include <asm/dis-defs.h>
0013
0014 static inline int insn_length(unsigned char code)
0015 {
0016 return ((((int) code + 64) >> 7) + 1) << 1;
0017 }
0018
0019 struct pt_regs;
0020
0021 void show_code(struct pt_regs *regs);
0022 void print_fn_code(unsigned char *code, unsigned long len);
0023 struct s390_insn *find_insn(unsigned char *code);
0024
0025 static inline int is_known_insn(unsigned char *code)
0026 {
0027 return !!find_insn(code);
0028 }
0029
0030 #endif