diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-07-23 00:15:52 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-07-23 00:15:52 -0400 |
commit | 4f8612e0cf105dc69229d5fce71b4747586e68fd (patch) | |
tree | df929f41094b55e6c1a21aa8ad926d16506fb296 /sim | |
parent | b443aeb7cb6c9a04109e8f4616cd29501eea26e1 (diff) | |
download | gem5-4f8612e0cf105dc69229d5fce71b4747586e68fd.tar.xz |
a little bit more info when dumping the event queue.
add a function that can be called from the debugger to dump
the event queue
--HG--
extra : convert_revision : 2a8bb9b948abf611e8dc8cefe208a33b7a3c2c90
Diffstat (limited to 'sim')
-rw-r--r-- | sim/eventq.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sim/eventq.cc b/sim/eventq.cc index 6b4ccc827..f975c5e97 100644 --- a/sim/eventq.cc +++ b/sim/eventq.cc @@ -208,6 +208,13 @@ EventQueue::dump() cprintf("============================================================\n"); } +extern "C" +void +dumpMainQueue() +{ + mainEventQueue.dump(); +} + const char * Event::description() @@ -235,16 +242,18 @@ Event::trace(const char *action) void Event::dump() { + cprintf("Event (%s)\n", description()); + cprintf("Flags: %#x\n", _flags); #if TRACING_ON - cprintf(" Created: %d\n", when_created); + cprintf("Created: %d\n", when_created); #endif if (scheduled()) { #if TRACING_ON - cprintf(" Scheduled at %d\n", when_scheduled); + cprintf("Scheduled at %d\n", when_scheduled); #endif - cprintf(" Scheduled for %d\n", when()); + cprintf("Scheduled for %d, priority %d\n", when(), _priority); } else { - cprintf(" Not Scheduled\n"); + cprintf("Not Scheduled\n"); } } |