summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@arm.com>2019-10-11 17:03:05 +0100
committerCiro Santilli <ciro.santilli@arm.com>2019-11-26 12:46:59 +0000
commit50768bb9580066bb5982d4b4e62b974d72d24746 (patch)
tree0787f48d2c40f15ebcc4ff5d3bb98859b858c06a /src/sim
parentffd75f5942c6654950810a95dd07326ea85a5084 (diff)
downloadgem5-50768bb9580066bb5982d4b4e62b974d72d24746.tar.xz
sim: prefix --debug-flags Event logs with the flag name
Sample output of FmtFlag,ExecAll,Event: 0: Event: Event_70: generic event rescheduled @ 18446744073709551615 0: ExecEnable: system.cpu: A0 T0 : @asm_main_after_prologue 0: Event: AtomicSimpleCPU tick.wrapped_function_event 500: ExecEnable: system.cpu: A0 T0 : @asm_main_after_prologue+4 500: Event: AtomicSimpleCPU tick.wrapped_function_event 1000: ExecEnable: system.cpu: A0 T0 : @asm_main_after_prologue+8 1000: Event: AtomicSimpleCPU tick.wrapped_function_event 1500: ExecEnable: system.cpu: A0 T0 : @asm_main_after_prologue+12 1500: Event: AtomicSimpleCPU tick.wrapped_function_event Change-Id: I7f252b57d7778a15a3dda40d909bdb4425557a40 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22009 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/eventq.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc
index 80de1808f..b682325aa 100644
--- a/src/sim/eventq.cc
+++ b/src/sim/eventq.cc
@@ -392,7 +392,8 @@ Event::trace(const char *action)
// more informative message in the trace, override this method on
// the particular subclass where you have the information that
// needs to be printed.
- DPRINTFN("%s event %s @ %d\n", description(), action, when());
+ DPRINTF_UNCONDITIONAL(Event, "%s event %s @ %d\n",
+ description(), action, when());
}
void