Linux Perf
arm-spe-pkt-decoder.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0 */
2
/*
3
* Arm Statistical Profiling Extensions (SPE) support
4
* Copyright (c) 2017-2018, Arm Ltd.
5
*/
6
7
#ifndef INCLUDE__ARM_SPE_PKT_DECODER_H__
8
#define INCLUDE__ARM_SPE_PKT_DECODER_H__
9
10
#include <stddef.h>
11
#include <stdint.h>
12
13
#define ARM_SPE_PKT_DESC_MAX 256
14
15
#define ARM_SPE_NEED_MORE_BYTES -1
16
#define ARM_SPE_BAD_PACKET -2
17
18
enum
arm_spe_pkt_type
{
19
ARM_SPE_BAD
,
20
ARM_SPE_PAD
,
21
ARM_SPE_END
,
22
ARM_SPE_TIMESTAMP
,
23
ARM_SPE_ADDRESS
,
24
ARM_SPE_COUNTER
,
25
ARM_SPE_CONTEXT
,
26
ARM_SPE_OP_TYPE
,
27
ARM_SPE_EVENTS
,
28
ARM_SPE_DATA_SOURCE
,
29
};
30
31
struct
arm_spe_pkt
{
32
enum
arm_spe_pkt_type
type
;
33
unsigned
char
index
;
34
uint64_t
payload
;
35
};
36
37
const
char
*
arm_spe_pkt_name
(
enum
arm_spe_pkt_type
);
38
39
int
arm_spe_get_packet
(
const
unsigned
char
*buf,
size_t
len,
40
struct
arm_spe_pkt
*packet);
41
42
int
arm_spe_pkt_desc
(
const
struct
arm_spe_pkt
*packet,
char
*buf,
size_t
len);
43
#endif
ARM_SPE_DATA_SOURCE
Definition:
arm-spe-pkt-decoder.h:28
ARM_SPE_END
Definition:
arm-spe-pkt-decoder.h:21
ARM_SPE_BAD
Definition:
arm-spe-pkt-decoder.h:19
arm_spe_pkt::type
enum arm_spe_pkt_type type
Definition:
arm-spe-pkt-decoder.h:32
ARM_SPE_OP_TYPE
Definition:
arm-spe-pkt-decoder.h:26
ARM_SPE_COUNTER
Definition:
arm-spe-pkt-decoder.h:24
ARM_SPE_EVENTS
Definition:
arm-spe-pkt-decoder.h:27
arm_spe_pkt::payload
uint64_t payload
Definition:
arm-spe-pkt-decoder.h:34
arm_spe_pkt_type
arm_spe_pkt_type
Definition:
arm-spe-pkt-decoder.h:18
ARM_SPE_TIMESTAMP
Definition:
arm-spe-pkt-decoder.h:22
arm_spe_pkt_desc
int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t len)
Definition:
arm-spe-pkt-decoder.c:274
arm_spe_pkt
Definition:
arm-spe-pkt-decoder.h:31
arm_spe_pkt_name
const char * arm_spe_pkt_name(enum arm_spe_pkt_type)
Definition:
arm-spe-pkt-decoder.c:68
arm_spe_get_packet
int arm_spe_get_packet(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet)
Definition:
arm-spe-pkt-decoder.c:258
ARM_SPE_CONTEXT
Definition:
arm-spe-pkt-decoder.h:25
ARM_SPE_ADDRESS
Definition:
arm-spe-pkt-decoder.h:23
ARM_SPE_PAD
Definition:
arm-spe-pkt-decoder.h:20
arm_spe_pkt::index
unsigned char index
Definition:
arm-spe-pkt-decoder.h:33
util
arm-spe-pkt-decoder.h
Generated by
1.8.13