traffic_gen.cc (11222:c6461e8dfc0a) | traffic_gen.cc (11393:48b748cc6497) |
---|---|
1/* 2 * Copyright (c) 2012-2013 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 --- 49 unchanged lines hidden (view full) --- 58 configFile(p->config_file), 59 elasticReq(p->elastic_req), 60 nextTransitionTick(0), 61 nextPacketTick(0), 62 currState(0), 63 port(name() + ".port", *this), 64 retryPkt(NULL), 65 retryPktTick(0), | 1/* 2 * Copyright (c) 2012-2013 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 --- 49 unchanged lines hidden (view full) --- 58 configFile(p->config_file), 59 elasticReq(p->elastic_req), 60 nextTransitionTick(0), 61 nextPacketTick(0), 62 currState(0), 63 port(name() + ".port", *this), 64 retryPkt(NULL), 65 retryPktTick(0), |
66 updateEvent(this) | 66 updateEvent(this), 67 numSuppressed(0) |
67{ 68} 69 70TrafficGen* 71TrafficGenParams::create() 72{ 73 return new TrafficGen(this); 74} --- 118 unchanged lines hidden (view full) --- 193 numPackets++; 194 if (!port.sendTimingReq(pkt)) { 195 retryPkt = pkt; 196 retryPktTick = curTick(); 197 } 198 } else { 199 DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n", 200 pkt->cmdString(), pkt->getAddr()); | 68{ 69} 70 71TrafficGen* 72TrafficGenParams::create() 73{ 74 return new TrafficGen(this); 75} --- 118 unchanged lines hidden (view full) --- 194 numPackets++; 195 if (!port.sendTimingReq(pkt)) { 196 retryPkt = pkt; 197 retryPktTick = curTick(); 198 } 199 } else { 200 DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n", 201 pkt->cmdString(), pkt->getAddr()); |
202 203 ++numSuppressed; 204 if (numSuppressed % 10000) 205 warn("%s suppressed %d packets with non-memory addresses\n", 206 name(), numSuppressed); 207 |
|
201 delete pkt->req; 202 delete pkt; 203 pkt = nullptr; 204 } 205 } 206 207 // if we are waiting for a retry, do not schedule any further 208 // events, in the case of a transition or a successful send, go --- 325 unchanged lines hidden --- | 208 delete pkt->req; 209 delete pkt; 210 pkt = nullptr; 211 } 212 } 213 214 // if we are waiting for a retry, do not schedule any further 215 // events, in the case of a transition or a successful send, go --- 325 unchanged lines hidden --- |