blob: 393153424d836b21ae23d7aaa3924102168a3415 [file] [log] [blame]
Jim Flynn4e755a52020-03-29 17:48:26 +01001//
Jim Flynnbbfe6032020-07-20 16:57:44 +01002// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
Jim Flynn4e755a52020-03-29 17:48:26 +01003// SPDX-License-Identifier: MIT
4//
5
6#include "PrintPacketHeaderHandler.hpp"
7
8#include <iostream>
Jim Flynnbbfe6032020-07-20 16:57:44 +01009#include <sstream>
Jim Flynn4e755a52020-03-29 17:48:26 +010010
Cathal Corbett5aa9fd72022-02-25 15:33:28 +000011namespace arm
Jim Flynn4e755a52020-03-29 17:48:26 +010012{
13
Cathal Corbett5aa9fd72022-02-25 15:33:28 +000014namespace pipe
Jim Flynn4e755a52020-03-29 17:48:26 +010015{
16
17std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted()
18{
19 return std::vector<uint32_t>();
20}
21
Jim Flynnbbfe6032020-07-20 16:57:44 +010022void PrintPacketHeaderHandler::HandlePacket(const arm::pipe::Packet& packet)
Jim Flynn4e755a52020-03-29 17:48:26 +010023{
24 std::stringstream ss;
25 ss << "Handler Received Outgoing Packet [" << packet.GetPacketFamily() << ":" << packet.GetPacketId() << "]";
26 ss << " Length [" << packet.GetLength() << "]" << std::endl;
27 std::cout << ss.str() << std::endl;
28};
29
Cathal Corbett5aa9fd72022-02-25 15:33:28 +000030} // namespace pipe
Jim Flynn4e755a52020-03-29 17:48:26 +010031
Cathal Corbett5aa9fd72022-02-25 15:33:28 +000032} // namespace arm