Linux Perf
intel-pt-insn-decoder.h
Go to the documentation of this file.
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 
36 };
37 
43 };
44 
45 struct intel_pt_insn {
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,
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 
62 
63 #endif
intel_pt_insn_op
#define INTEL_PT_INSN_BUF_SZ
enum intel_pt_insn_branch branch
int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf, size_t buf_len)
const char * intel_pt_insn_name(enum intel_pt_insn_op op)
int intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64, struct intel_pt_insn *intel_pt_insn)
unsigned char buf[INTEL_PT_INSN_BUF_SZ]
enum intel_pt_insn_op op
intel_pt_insn_branch
int intel_pt_insn_type(enum intel_pt_insn_op op)