linux/arch/s390/include/asm/dis.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2/*
   3 * Disassemble s390 instructions.
   4 *
   5 * Copyright IBM Corp. 2007
   6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
   7 */
   8
   9#ifndef __ASM_S390_DIS_H__
  10#define __ASM_S390_DIS_H__
  11
  12#include <asm/dis-defs.h>
  13
  14static inline int insn_length(unsigned char code)
  15{
  16        return ((((int) code + 64) >> 7) + 1) << 1;
  17}
  18
  19struct pt_regs;
  20
  21void show_code(struct pt_regs *regs);
  22void print_fn_code(unsigned char *code, unsigned long len);
  23struct s390_insn *find_insn(unsigned char *code);
  24
  25static inline int is_known_insn(unsigned char *code)
  26{
  27        return !!find_insn(code);
  28}
  29
  30#endif /* __ASM_S390_DIS_H__ */
  31