comm_monitor.hh (9398:6a348f61220c) comm_monitor.hh (9542:683991c46ac8)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 93 unchanged lines hidden (view full) ---

102 * packets with a transmit time and receive time.
103 */
104 class CommMonitorSenderState : public Packet::SenderState
105 {
106
107 public:
108
109 /**
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 93 unchanged lines hidden (view full) ---

102 * packets with a transmit time and receive time.
103 */
104 class CommMonitorSenderState : public Packet::SenderState
105 {
106
107 public:
108
109 /**
110 * Construct a new sender state and remember the original one
111 * so that we can implement a stack.
110 * Construct a new sender state and store the time so we can
111 * calculate round-trip latency.
112 *
112 *
113 * @param _origSenderState Sender state to remember
114 * @param _transmitTime Time of packet transmission
115 */
113 * @param _transmitTime Time of packet transmission
114 */
116 CommMonitorSenderState(SenderState* _origSenderState,
117 Tick _transmitTime)
118 : origSenderState(_origSenderState), transmitTime(_transmitTime)
115 CommMonitorSenderState(Tick _transmitTime)
116 : transmitTime(_transmitTime)
119 { }
120
121 /** Destructor */
122 ~CommMonitorSenderState() { }
123
117 { }
118
119 /** Destructor */
120 ~CommMonitorSenderState() { }
121
124 /** Pointer to old sender state of packet */
125 SenderState* origSenderState;
126
127 /** Tick when request is transmitted */
128 Tick transmitTime;
129
130 };
131
132 /**
133 * This is the master port of the communication monitor. All recv
134 * functions call a function in CommMonitor, where the

--- 308 unchanged lines hidden ---
122 /** Tick when request is transmitted */
123 Tick transmitTime;
124
125 };
126
127 /**
128 * This is the master port of the communication monitor. All recv
129 * functions call a function in CommMonitor, where the

--- 308 unchanged lines hidden ---