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

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

Version: ~ [ linux-5.15-rc7 ] ~ [ linux-5.14.14 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.75 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.155 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.213 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.252 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.287 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.289 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * intel_pt_insn_decoder.h: Intel Processor Trace support
  3  * Copyright (c) 2013-2014, Intel Corporation.
  4  *
  5  * This program is free software; you can redistribute it and/or modify it
  6  * under the terms and conditions of the GNU General Public License,
  7  * version 2, as published by the Free Software Foundation.
  8  *
  9  * This program is distributed in the hope it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 12  * more details.
 13  *
 14  */
 15 
 16 #ifndef INCLUDE__INTEL_PT_INSN_DECODER_H__
 17 #define INCLUDE__INTEL_PT_INSN_DECODER_H__
 18 
 19 #include <stddef.h>
 20 #include <stdint.h>
 21 
 22 #define INTEL_PT_INSN_DESC_MAX          32
 23 #define INTEL_PT_INSN_BUF_SZ            16
 24 
 25 enum intel_pt_insn_op {
 26         INTEL_PT_OP_OTHER,
 27         INTEL_PT_OP_CALL,
 28         INTEL_PT_OP_RET,
 29         INTEL_PT_OP_JCC,
 30         INTEL_PT_OP_JMP,
 31         INTEL_PT_OP_LOOP,
 32         INTEL_PT_OP_IRET,
 33         INTEL_PT_OP_INT,
 34         INTEL_PT_OP_SYSCALL,
 35         INTEL_PT_OP_SYSRET,
 36 };
 37 
 38 enum intel_pt_insn_branch {
 39         INTEL_PT_BR_NO_BRANCH,
 40         INTEL_PT_BR_INDIRECT,
 41         INTEL_PT_BR_CONDITIONAL,
 42         INTEL_PT_BR_UNCONDITIONAL,
 43 };
 44 
 45 struct intel_pt_insn {
 46         enum intel_pt_insn_op           op;
 47         enum intel_pt_insn_branch       branch;
 48         int                             length;
 49         int32_t                         rel;
 50         unsigned char                   buf[INTEL_PT_INSN_BUF_SZ];
 51 };
 52 
 53 int intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64,
 54                       struct intel_pt_insn *intel_pt_insn);
 55 
 56 const char *intel_pt_insn_name(enum intel_pt_insn_op op);
 57 
 58 int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf,
 59                        size_t buf_len);
 60 
 61 int intel_pt_insn_type(enum intel_pt_insn_op op);
 62 
 63 #endif
 64 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp