misc: Collapse all uses of DTRACE(x) to Debug::x.

Also mark the DTRACE macro as deprecated.

Change-Id: I99d9a9544b539117b375186e3e425d73d3c5cab7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45009
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
Gabe Black
2021-04-29 22:47:31 -07:00
parent 2af00af0f6
commit 41d934cf18
38 changed files with 63 additions and 62 deletions

View File

@@ -70,7 +70,7 @@ DrainManager::tryDrain()
_state = DrainState::Draining;
for (auto *obj : _allDrainable) {
DrainState status = obj->dmDrain();
if (DTRACE(Drain) && status != DrainState::Drained) {
if (Debug::Drain && status != DrainState::Drained) {
SimObject *temp = dynamic_cast<SimObject*>(obj);
if (temp)
DPRINTF(Drain, "Failed to drain %s\n", temp->name());

View File

@@ -216,7 +216,7 @@ EventQueue::serviceOne()
if (!event->squashed()) {
// forward current cycle to the time when this event occurs.
setCurTick(event->when());
if (DTRACE(Event))
if (Debug::Event)
event->trace("executed");
event->process();
if (event->isExitEvent()) {

View File

@@ -781,7 +781,7 @@ class EventQueue
event->flags.set(Event::Scheduled);
event->acquire();
if (DTRACE(Event))
if (Debug::Event)
event->trace("scheduled");
}
@@ -802,7 +802,7 @@ class EventQueue
event->flags.clear(Event::Squashed);
event->flags.clear(Event::Scheduled);
if (DTRACE(Event))
if (Debug::Event)
event->trace("descheduled");
event->release();
@@ -833,7 +833,7 @@ class EventQueue
event->flags.clear(Event::Squashed);
event->flags.set(Event::Scheduled);
if (DTRACE(Event))
if (Debug::Event)
event->trace("rescheduled");
}