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

Go to the source code of this file.

Classes

struct  arm_spe_pkt
 

Macros

#define ARM_SPE_PKT_DESC_MAX   256
 
#define ARM_SPE_NEED_MORE_BYTES   -1
 
#define ARM_SPE_BAD_PACKET   -2
 

Enumerations

enum  arm_spe_pkt_type {
  ARM_SPE_BAD, ARM_SPE_PAD, ARM_SPE_END, ARM_SPE_TIMESTAMP,
  ARM_SPE_ADDRESS, ARM_SPE_COUNTER, ARM_SPE_CONTEXT, ARM_SPE_OP_TYPE,
  ARM_SPE_EVENTS, ARM_SPE_DATA_SOURCE
}
 

Functions

const char * arm_spe_pkt_name (enum arm_spe_pkt_type)
 
int arm_spe_get_packet (const unsigned char *buf, size_t len, struct arm_spe_pkt *packet)
 
int arm_spe_pkt_desc (const struct arm_spe_pkt *packet, char *buf, size_t len)
 

Macro Definition Documentation

◆ ARM_SPE_BAD_PACKET

#define ARM_SPE_BAD_PACKET   -2

Definition at line 16 of file arm-spe-pkt-decoder.h.

◆ ARM_SPE_NEED_MORE_BYTES

#define ARM_SPE_NEED_MORE_BYTES   -1

Definition at line 15 of file arm-spe-pkt-decoder.h.

◆ ARM_SPE_PKT_DESC_MAX

#define ARM_SPE_PKT_DESC_MAX   256

Definition at line 13 of file arm-spe-pkt-decoder.h.

Enumeration Type Documentation

◆ arm_spe_pkt_type

Enumerator
ARM_SPE_BAD 
ARM_SPE_PAD 
ARM_SPE_END 
ARM_SPE_TIMESTAMP 
ARM_SPE_ADDRESS 
ARM_SPE_COUNTER 
ARM_SPE_CONTEXT 
ARM_SPE_OP_TYPE 
ARM_SPE_EVENTS 
ARM_SPE_DATA_SOURCE 

Definition at line 18 of file arm-spe-pkt-decoder.h.

Function Documentation

◆ arm_spe_get_packet()

int arm_spe_get_packet ( const unsigned char *  buf,
size_t  len,
struct arm_spe_pkt packet 
)

Definition at line 258 of file arm-spe-pkt-decoder.c.

Here is the call graph for this function:

◆ arm_spe_pkt_desc()

int arm_spe_pkt_desc ( const struct arm_spe_pkt packet,
char *  buf,
size_t  len 
)

Definition at line 274 of file arm-spe-pkt-decoder.c.

Here is the call graph for this function:

◆ arm_spe_pkt_name()

const char* arm_spe_pkt_name ( enum  arm_spe_pkt_type)

Definition at line 68 of file arm-spe-pkt-decoder.c.