H A D | spe_decoder.cpp | 58 unsigned char extHdr, struct SpePkt *packet) in SpeGetPayload() 60 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetPayload() 68 case LEN_TYPE_BYTE: packet->payload = *(reinterpret_cast<const uint8_t *>(buf)); break; in SpeGetPayload() 69 case LEN_TYPE_HLFWRD: packet->payload = LE16_TO_CPU(*reinterpret_cast<const uint16_t *>(buf)); break; in SpeGetPayload() 70 case LEN_TYPE_WORD: packet->payload = LE32_TO_CPU(*reinterpret_cast<const uint32_t *>(buf)); break; in SpeGetPayload() 71 case LEN_TYPE_DBLEWRD: packet->payload = LE64_TO_CPU(*reinterpret_cast<const uint64_t *>(buf)); break; in SpeGetPayload() 78 static int SpeGetPad(struct SpePkt *packet) in SpeGetPad() argument 80 CHECK_TRUE(packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetPad() 81 packet->type = PERF_SPE_PAD; in SpeGetPad() 86 struct SpePkt *packet) in SpeGetAlignment() 57 SpeGetPayload(const unsigned char *buf, size_t len, unsigned char extHdr, struct SpePkt *packet) SpeGetPayload() argument 85 SpeGetAlignment(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetAlignment() argument 98 SpeGetEnd(struct SpePkt *packet) SpeGetEnd() argument 105 SpeGetTimestamp(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetTimestamp() argument 113 SpeGetEvents(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetEvents() argument 122 SpeGetDataSource(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetDataSource() argument 130 SpeGetContext(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetContext() argument 139 SpeGetOpType(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetOpType() argument 148 SpeGetCounter(const unsigned char *buf, size_t len, const unsigned char extHdr, struct SpePkt *packet) SpeGetCounter() argument 162 SpeGetAddr(const unsigned char *buf, size_t len, const unsigned char extHdr, struct SpePkt *packet) SpeGetAddr() argument 176 SpeDoGetPacket(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeDoGetPacket() argument 235 SpeGetPacket(const unsigned char *buf, size_t len, struct SpePkt *packet) SpeGetPacket() argument 294 SpePktDescEvent(const struct SpePkt *packet, char *buf, size_t bufLen) SpePktDescEvent() argument 348 SpePktDescOpType(const struct SpePkt *packet, char *buf, size_t bufLen) SpePktDescOpType() argument 444 SpePktDescAddr(const struct SpePkt *packet, char *buf, size_t bufLen) SpePktDescAddr() argument 490 SpePktDesCont(const struct SpePkt *packet, char *buf, size_t bufLen) SpePktDesCont() argument 518 SpePktDesc(const struct SpePkt *packet, char *buf, size_t bufLen) SpePktDesc() argument 834 struct SpePkt packet; SpeDumpRawData() local [all...] |