Throttle.cc (10918:dd3ab1f109ad) Throttle.cc (10919:80069a602c83)
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;

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

123 MsgPtr msg_ptr = in->peekMsgPtr();
124 Message *net_msg_ptr = msg_ptr.get();
125 m_units_remaining[vnet] +=
126 network_message_to_size(net_msg_ptr);
127
128 DPRINTF(RubyNetwork, "throttle: %d my bw %d bw spent "
129 "enqueueing net msg %d time: %lld.\n",
130 m_node, getLinkBandwidth(), m_units_remaining[vnet],
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;

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

123 MsgPtr msg_ptr = in->peekMsgPtr();
124 Message *net_msg_ptr = msg_ptr.get();
125 m_units_remaining[vnet] +=
126 network_message_to_size(net_msg_ptr);
127
128 DPRINTF(RubyNetwork, "throttle: %d my bw %d bw spent "
129 "enqueueing net msg %d time: %lld.\n",
130 m_node, getLinkBandwidth(), m_units_remaining[vnet],
131 g_system_ptr->curCycle());
131 m_ruby_system->curCycle());
132
133 // Move the message
134 in->dequeue();
135 out->enqueue(msg_ptr, m_link_latency);
136
137 // Count the message
138 m_msg_counts[net_msg_ptr->getMessageSize()][vnet]++;
139 DPRINTF(RubyNetwork, "%s\n", *out);

--- 134 unchanged lines hidden ---
132
133 // Move the message
134 in->dequeue();
135 out->enqueue(msg_ptr, m_link_latency);
136
137 // Count the message
138 m_msg_counts[net_msg_ptr->getMessageSize()][vnet]++;
139 DPRINTF(RubyNetwork, "%s\n", *out);

--- 134 unchanged lines hidden ---