ruby: cleaning up RubyQueue and RubyNetwork dprintfs
Review Request #489 - Created Feb. 14, 2011 and submitted
| Information | |
|---|---|
| Korey Sewell | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
| ali, gblack, nate, stever | |
ruby: cleaning up RubyQueue and RubyNetwork dprintfs Overall, continue to progress Ruby debug messages to more of the normal M5 debug message style - add a name() to the Ruby Throttle & PerfectSwitch objects so that the debug output isn't littered w/"global:" everywhere. - clean up messages that print over multiple lines when possible - clean up duplicate prints in the message buffer
Posted (Feb. 14, 2011, 6:04 a.m.)
Seems like a reasonable idea to me, but a Ruby person has to agree.
-
src/mem/ruby/buffers/MessageBuffer.cc (Diff revision 1) -
If you're going to change this, you should change it to a ccprintf :) Totally not necessary if you don't feel like it.
-
src/mem/ruby/network/simple/PerfectSwitch.hh (Diff revision 1) -
probably not worth storing m_name. You may as well just generate it in name().
-
src/mem/ruby/network/simple/PerfectSwitch.cc (Diff revision 1) -
IMHO, You may as well just stick this in the header.
-
src/mem/ruby/network/simple/Throttle.hh (Diff revision 1) -
Please put system headers above M5 headers.
-
src/mem/ruby/network/simple/Throttle.hh (Diff revision 1) -
Same as above.
-
src/mem/ruby/network/simple/Throttle.cc (Diff revision 1) -
header file.
Review request changed
Updated (Feb. 18, 2011, 1:18 a.m.)
Summary: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+32 -30) |
Posted (Feb. 18, 2011, 5:33 a.m.)
-
src/mem/ruby/buffers/MessageBuffer.hh (Diff revision 2) -
You have random whitespace here. Please remove it.
-
src/mem/ruby/buffers/MessageBuffer.cc (Diff revision 2) -
How does the name get set now?
-
src/mem/ruby/buffers/MessageBuffer.cc (Diff revision 2) -
no space after \n
-
src/mem/ruby/network/simple/PerfectSwitch.hh (Diff revision 2) -
use csprintf()
-
src/mem/ruby/network/simple/Throttle.hh (Diff revision 2) -
System includes before M5 includes
-
src/mem/ruby/network/simple/Throttle.hh (Diff revision 2) -
csprintf()
-
src/mem/ruby/network/simple/Throttle.cc (Diff revision 2) -
ccprintf()
Review request changed
Updated (Feb. 22, 2011, 5:06 a.m.)
Diff: |
Revision 3 (+32 -31) |
|---|
Review request changed
Updated (Feb. 22, 2011, 5:11 a.m.)
Diff: |
Revision 4 (+32 -31) |
|---|
