Linux Perf
intel-pt-insn-decoder.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for intel-pt-insn-decoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  intel_pt_insn
 

Macros

#define INTEL_PT_INSN_DESC_MAX   32
 
#define INTEL_PT_INSN_BUF_SZ   16
 

Enumerations

enum  intel_pt_insn_op {
  INTEL_PT_OP_OTHER, INTEL_PT_OP_CALL, INTEL_PT_OP_RET, INTEL_PT_OP_JCC,
  INTEL_PT_OP_JMP, INTEL_PT_OP_LOOP, INTEL_PT_OP_IRET, INTEL_PT_OP_INT,
  INTEL_PT_OP_SYSCALL, INTEL_PT_OP_SYSRET
}
 
enum  intel_pt_insn_branch { INTEL_PT_BR_NO_BRANCH, INTEL_PT_BR_INDIRECT, INTEL_PT_BR_CONDITIONAL, INTEL_PT_BR_UNCONDITIONAL }
 

Functions

int intel_pt_get_insn (const unsigned char *buf, size_t len, int x86_64, struct intel_pt_insn *intel_pt_insn)
 
const char * intel_pt_insn_name (enum intel_pt_insn_op op)
 
int intel_pt_insn_desc (const struct intel_pt_insn *intel_pt_insn, char *buf, size_t buf_len)
 
int intel_pt_insn_type (enum intel_pt_insn_op op)
 

Macro Definition Documentation

◆ INTEL_PT_INSN_BUF_SZ

#define INTEL_PT_INSN_BUF_SZ   16

Definition at line 23 of file intel-pt-insn-decoder.h.

◆ INTEL_PT_INSN_DESC_MAX

#define INTEL_PT_INSN_DESC_MAX   32

Definition at line 22 of file intel-pt-insn-decoder.h.

Enumeration Type Documentation

◆ intel_pt_insn_branch

Enumerator
INTEL_PT_BR_NO_BRANCH 
INTEL_PT_BR_INDIRECT 
INTEL_PT_BR_CONDITIONAL 
INTEL_PT_BR_UNCONDITIONAL 

Definition at line 38 of file intel-pt-insn-decoder.h.

◆ intel_pt_insn_op

Enumerator
INTEL_PT_OP_OTHER 
INTEL_PT_OP_CALL 
INTEL_PT_OP_RET 
INTEL_PT_OP_JCC 
INTEL_PT_OP_JMP 
INTEL_PT_OP_LOOP 
INTEL_PT_OP_IRET 
INTEL_PT_OP_INT 
INTEL_PT_OP_SYSCALL 
INTEL_PT_OP_SYSRET 

Definition at line 25 of file intel-pt-insn-decoder.h.

Function Documentation

◆ intel_pt_get_insn()

int intel_pt_get_insn ( const unsigned char *  buf,
size_t  len,
int  x86_64,
struct intel_pt_insn intel_pt_insn 
)

Definition at line 166 of file intel-pt-insn-decoder.c.

Here is the call graph for this function:

◆ intel_pt_insn_desc()

int intel_pt_insn_desc ( const struct intel_pt_insn intel_pt_insn,
char *  buf,
size_t  buf_len 
)

Definition at line 224 of file intel-pt-insn-decoder.c.

Here is the call graph for this function:

◆ intel_pt_insn_name()

const char* intel_pt_insn_name ( enum intel_pt_insn_op  op)

Definition at line 219 of file intel-pt-insn-decoder.c.

◆ intel_pt_insn_type()

int intel_pt_insn_type ( enum intel_pt_insn_op  op)

Definition at line 244 of file intel-pt-insn-decoder.c.