Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/45005 )

Change subject: base: Collapse the DTRACE macro in DPRINTF.
......................................................................

base: Collapse the DTRACE macro in DPRINTF.

We've already checked if TRACING_ON is set, so we can just check the
value of Debug::x directly.

Change-Id: Ifcc183b9e56fd45a2c6278ab5739ae2fbe2b32c0
---
M src/base/trace.hh
1 file changed, 4 insertions(+), 4 deletions(-)



diff --git a/src/base/trace.hh b/src/base/trace.hh
index 21a5ead..2e560b9 100644
--- a/src/base/trace.hh
+++ b/src/base/trace.hh
@@ -167,27 +167,27 @@
  */

 #define DDUMP(x, data, count) do {               \
-    if (M5_UNLIKELY(TRACING_ON && DTRACE(x)))    \
+    if (M5_UNLIKELY(TRACING_ON && Debug::x))     \
         Trace::getDebugLogger()->dump(           \
             curTick(), name(), data, count, #x); \
 } while (0)

 #define DPRINTF(x, ...) do {                     \
-    if (M5_UNLIKELY(TRACING_ON && DTRACE(x))) {  \
+    if (M5_UNLIKELY(TRACING_ON && Debug::x)) {   \
         Trace::getDebugLogger()->dprintf_flag(   \
             curTick(), name(), #x, __VA_ARGS__); \
     }                                            \
 } while (0)

 #define DPRINTFS(x, s, ...) do {                        \
-    if (M5_UNLIKELY(TRACING_ON && DTRACE(x))) {         \
+    if (M5_UNLIKELY(TRACING_ON && Debug::x)) {          \
         Trace::getDebugLogger()->dprintf_flag(          \
                 curTick(), s->name(), #x, __VA_ARGS__); \
     }                                                   \
 } while (0)

 #define DPRINTFR(x, ...) do {                          \
-    if (M5_UNLIKELY(TRACING_ON && DTRACE(x))) {        \
+    if (M5_UNLIKELY(TRACING_ON && Debug::x)) {         \
         Trace::getDebugLogger()->dprintf_flag(         \
             (Tick)-1, std::string(), #x, __VA_ARGS__); \
     }                                                  \

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45005
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ifcc183b9e56fd45a2c6278ab5739ae2fbe2b32c0
Gerrit-Change-Number: 45005
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to