Linux Perf
|
#include <stdio.h>
#include <string.h>
#include <endian.h>
#include <byteswap.h>
#include <linux/compiler.h>
#include "intel-pt-pkt-decoder.h"
Go to the source code of this file.
Macros | |
#define | BIT(n) (1 << (n)) |
#define | BIT63 ((uint64_t)1 << 63) |
#define | NR_FLAG BIT63 |
#define | le16_to_cpu bswap_16 |
#define | le32_to_cpu bswap_32 |
#define | le64_to_cpu bswap_64 |
#define | memcpy_le64(d, s, n) |
Functions | |
const char * | intel_pt_pkt_name (enum intel_pt_pkt_type type) |
static int | intel_pt_get_long_tnt (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_pip (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_tracestop (struct intel_pt_pkt *packet) |
static int | intel_pt_get_cbr (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_vmcs (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_ovf (struct intel_pt_pkt *packet) |
static int | intel_pt_get_psb (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_psbend (struct intel_pt_pkt *packet) |
static int | intel_pt_get_tma (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_pad (struct intel_pt_pkt *packet) |
static int | intel_pt_get_mnt (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_3byte (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_ptwrite (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_exstop (struct intel_pt_pkt *packet) |
static int | intel_pt_get_exstop_ip (struct intel_pt_pkt *packet) |
static int | intel_pt_get_mwait (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_pwre (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_pwrx (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_ext (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_short_tnt (unsigned int byte, struct intel_pt_pkt *packet) |
static int | intel_pt_get_cyc (unsigned int byte, const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_ip (enum intel_pt_pkt_type type, unsigned int byte, const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_mode (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_tsc (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_get_mtc (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
static int | intel_pt_do_get_packet (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
int | intel_pt_get_packet (const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) |
int | intel_pt_pkt_desc (const struct intel_pt_pkt *packet, char *buf, size_t buf_len) |
Variables | |
static const char *const | packet_name [] |
#define BIT | ( | n | ) | (1 << (n)) |
Definition at line 24 of file intel-pt-pkt-decoder.c.
#define BIT63 ((uint64_t)1 << 63) |
Definition at line 26 of file intel-pt-pkt-decoder.c.
#define le16_to_cpu bswap_16 |
Definition at line 31 of file intel-pt-pkt-decoder.c.
#define le32_to_cpu bswap_32 |
Definition at line 32 of file intel-pt-pkt-decoder.c.
#define le64_to_cpu bswap_64 |
Definition at line 33 of file intel-pt-pkt-decoder.c.
#define memcpy_le64 | ( | d, | |
s, | |||
n | |||
) |
Definition at line 34 of file intel-pt-pkt-decoder.c.
#define NR_FLAG BIT63 |
Definition at line 28 of file intel-pt-pkt-decoder.c.
|
static |
|
static |
|
static |
Definition at line 127 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 355 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 250 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 256 of file intel-pt-pkt-decoder.c.
|
static |
|
static |
Definition at line 377 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 81 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 202 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 423 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 469 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 262 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 155 of file intel-pt-pkt-decoder.c.
int intel_pt_get_packet | ( | const unsigned char * | buf, |
size_t | len, | ||
struct intel_pt_pkt * | packet | ||
) |
|
static |
Definition at line 196 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 104 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 161 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 178 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 227 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 272 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 282 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 337 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 184 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 121 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 459 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 137 of file intel-pt-pkt-decoder.c.
int intel_pt_pkt_desc | ( | const struct intel_pt_pkt * | packet, |
char * | buf, | ||
size_t | buf_len | ||
) |
const char* intel_pt_pkt_name | ( | enum intel_pt_pkt_type | type | ) |
Definition at line 76 of file intel-pt-pkt-decoder.c.
|
static |
Definition at line 45 of file intel-pt-pkt-decoder.c.