Throttle.cc (9866:94dac7d7bb88) Throttle.cc (10074:0e013fa647ac)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

155
156 DPRINTF(RubyNetwork, "throttle: %d my bw %d bw spent "
157 "enqueueing net msg %d time: %lld.\n",
158 m_node, getLinkBandwidth(), m_units_remaining[vnet],
159 g_system_ptr->curCycle());
160
161 // Move the message
162 m_out[vnet]->enqueue(m_in[vnet]->peekMsgPtr(), m_link_latency);
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

155
156 DPRINTF(RubyNetwork, "throttle: %d my bw %d bw spent "
157 "enqueueing net msg %d time: %lld.\n",
158 m_node, getLinkBandwidth(), m_units_remaining[vnet],
159 g_system_ptr->curCycle());
160
161 // Move the message
162 m_out[vnet]->enqueue(m_in[vnet]->peekMsgPtr(), m_link_latency);
163 m_in[vnet]->pop();
163 m_in[vnet]->dequeue();
164
165 // Count the message
166 m_msg_counts[net_msg_ptr->getMessageSize()][vnet]++;
167
168 DPRINTF(RubyNetwork, "%s\n", *m_out[vnet]);
169 }
170
171 // Calculate the amount of bandwidth we spent on this message

--- 97 unchanged lines hidden ---
164
165 // Count the message
166 m_msg_counts[net_msg_ptr->getMessageSize()][vnet]++;
167
168 DPRINTF(RubyNetwork, "%s\n", *m_out[vnet]);
169 }
170
171 // Calculate the amount of bandwidth we spent on this message

--- 97 unchanged lines hidden ---