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
This commit is contained in:
Nathan Binkert 2004-07-23 00:15:52 -04:00
parent b443aeb7cb
commit 4f8612e0cf

View file

@ -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");
}
}