1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Arm Statistical Profiling Extensions (SPE) support
4 * Copyright (c) 2017-2018, Arm Ltd.
7 #ifndef INCLUDE__ARM_SPE_PKT_DECODER_H__
8 #define INCLUDE__ARM_SPE_PKT_DECODER_H__
13 #define ARM_SPE_PKT_DESC_MAX 256
15 #define ARM_SPE_NEED_MORE_BYTES -1
16 #define ARM_SPE_BAD_PACKET -2
18 enum arm_spe_pkt_type
{
32 enum arm_spe_pkt_type type
;
37 const char *arm_spe_pkt_name(enum arm_spe_pkt_type
);
39 int arm_spe_get_packet(const unsigned char *buf
, size_t len
,
40 struct arm_spe_pkt
*packet
);
42 int arm_spe_pkt_desc(const struct arm_spe_pkt
*packet
, char *buf
, size_t len
);