s5z / zsim

A fast and scalable x86-64 multicore simulator
GNU General Public License v2.0
317 stars 183 forks source link

Not able to enable debug logger #263

Closed abhishekk06 closed 2 years ago

abhishekk06 commented 2 years ago

Hi,

Can someone explain how to enable debug logger? I did uncomment the following line in Sconstruct but I still don't see cache debug prints. :/

env["CPPFLAGS"] += " -D_LOG_TRACE_=1"

abhishekk06 commented 2 years ago

In src/log.h:156

-    if ( LOG_##type == LOG_Sched) { \
+    if ( LOG_##type == LOG_Cache) { \

We have to also modify the filter as per our needs by changing the line given above. I wish it can be done run-time or there should be a filter like LOG_ALL.