trace: reimplement the DTRACE function so it doesn't use a vector
Review Request #352 - Created Dec. 21, 2010 and submitted
| Information | |
|---|---|
| Nathan Binkert | |
| gem5 | |
| Reviewers | |
| Default | |
| ali, gblack, nate, stever | |
trace: reimplement the DTRACE function so it doesn't use a vector One question I have about this stuff is if I should call everything trace, or debug? This diff is somewhat confused about that (some things are trace and some things are debug) and I expect to fix it. We always called this stuff "trace flags" in the past, but we I would like to start using these flags for other things. For example, turning on and off debugging breakpoints of different kinds. Execution tracing is a totally different mechanism but does use trace flags. My personal inclination is that trace flag is probably a bad name, but perhaps debug is a bad name too. Just call it "flags"? Or SimFlags?
Description: |
|
|---|
I notice that most places include only one or two trace flag header files. There are a few places, though, where there are a bunch of trace flags included which are all related, something like "Ethernet,EthernetIntr". I'm assuming the base trace flag is a compound flag that includes the other ones. Would it make sense for the "trace/Enthernet.hh" header file to include the other ones and cut down on the header file sprawl?
The name "trace flags" doesn't bother me, but "debug flags" is OK too. I wouldn't want to be more generic than that though.
-
src/base/trace.hh (Diff revision 1) -
If you're going to put the 'using namespace' here, why not delete 'Trace::' where it's currently used?
-
src/base/debug.hh (Diff revision 1) -
This file needs doxygen comments. Minimally an @file comment, but preferably documenting each class as well.
-
src/base/debug.hh (Diff revision 1) -
The things we do to not use varargs....
-
src/base/debug.cc (Diff revision 1) -
These comments should really be doxygen comments and there should be ones for the various functions below (e.g. findFlag)
-
src/base/debug.cc (Diff revision 1) -
More comments please
-
src/base/remote_gdb.cc (Diff revision 1) -
Mabye emitting the individual header files and the compound header file and the user can choose?
-
src/base/trace.hh (Diff revision 1) -
Doxygen
-
src/python/m5/debug.py (Diff revision 1) -
More comments please, at least what this file exists to do
