~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * intel_pt_insn_decoder.h: Intel Processor Trace support
  4  * Copyright (c) 2013-2014, Intel Corporation.
  5  */
  6 
  7 #ifndef INCLUDE__INTEL_PT_INSN_DECODER_H__
  8 #define INCLUDE__INTEL_PT_INSN_DECODER_H__
  9 
 10 #include <stddef.h>
 11 #include <stdint.h>
 12 
 13 #define INTEL_PT_INSN_DESC_MAX          32
 14 #define INTEL_PT_INSN_BUF_SZ            16
 15 
 16 enum intel_pt_insn_op {
 17         INTEL_PT_OP_OTHER,
 18         INTEL_PT_OP_CALL,
 19         INTEL_PT_OP_RET,
 20         INTEL_PT_OP_JCC,
 21         INTEL_PT_OP_JMP,
 22         INTEL_PT_OP_LOOP,
 23         INTEL_PT_OP_IRET,
 24         INTEL_PT_OP_INT,
 25         INTEL_PT_OP_SYSCALL,
 26         INTEL_PT_OP_SYSRET,
 27         INTEL_PT_OP_VMENTRY,
 28         INTEL_PT_OP_ERETS,
 29         INTEL_PT_OP_ERETU,
 30 };
 31 
 32 enum intel_pt_insn_branch {
 33         INTEL_PT_BR_NO_BRANCH,
 34         INTEL_PT_BR_INDIRECT,
 35         INTEL_PT_BR_CONDITIONAL,
 36         INTEL_PT_BR_UNCONDITIONAL,
 37 };
 38 
 39 struct intel_pt_insn {
 40         enum intel_pt_insn_op           op;
 41         enum intel_pt_insn_branch       branch;
 42         bool                            emulated_ptwrite;
 43         int                             length;
 44         int32_t                         rel;
 45         unsigned char                   buf[INTEL_PT_INSN_BUF_SZ];
 46 };
 47 
 48 int intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64,
 49                       struct intel_pt_insn *intel_pt_insn);
 50 
 51 const char *intel_pt_insn_name(enum intel_pt_insn_op op);
 52 
 53 int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf,
 54                        size_t buf_len);
 55 
 56 int intel_pt_insn_type(enum intel_pt_insn_op op);
 57 
 58 #endif
 59 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php