dump-insn.h 502 B

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