Ciro Santilli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/22005 )
Change subject: base: create DPRINTF_UNCONDITIONAL
......................................................................
base: create DPRINTF_UNCONDITIONAL
This is similar to DPRINTFN, but it also prints a given flag to allow
communicating to users which flag enabled a given log.
This is useful for logs which are enabled with DTRACE instead of directly
with DPRINTF.
Change-Id: Ife2d2ea88aede1cdcb713f143340a8788a755b01
---
M src/base/trace.hh
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/base/trace.hh b/src/base/trace.hh
index 1e77415..8351222 100644
--- a/src/base/trace.hh
+++ b/src/base/trace.hh
@@ -213,6 +213,11 @@
Trace::getDebugLogger()->dprintf(curTick(), name(), __VA_ARGS__); \
} while (0)
+#define DPRINTF_UNCONDITIONAL(x, ...) do { \
+ Trace::getDebugLogger()->dprintf_flag( \
+ curTick(), name(), #x, __VA_ARGS__); \
+} while (0)
+
#define DPRINTFNR(...) do { \
Trace::getDebugLogger()->dprintf((Tick)-1, string(), __VA_ARGS__); \
} while (0)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/22005
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ife2d2ea88aede1cdcb713f143340a8788a755b01
Gerrit-Change-Number: 22005
Gerrit-PatchSet: 1
Gerrit-Owner: Ciro Santilli <ciro.santi...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev