ruby: extend dprintfs for RubyGenerated TraceFlag
authorKorey Sewell <ksewell@umich.edu>
Wed, 23 Feb 2011 05:58:42 +0000 (00:58 -0500)
committerKorey Sewell <ksewell@umich.edu>
Wed, 23 Feb 2011 05:58:42 +0000 (00:58 -0500)
"executing" isnt a very descriptive debug message and in going through the
output you get multiple messages that say "executing" but nothing to help
you parse through the code/execution.

So instead, at least print out the name of the action that is taking
place in these functions.

src/mem/slicc/symbols/StateMachine.py

index 6a5817d5542b5217c93197d7587ec489fe26e8f9..1251196c91ae111573e15c68c09dab25b8f4378e 100644 (file)
@@ -883,7 +883,7 @@ $c_ident::unset_tbe(${{self.TBEType.c_ident}}*& m_tbe_ptr)
 void
 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -898,7 +898,7 @@ $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.Entry
 void
 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -913,7 +913,7 @@ $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const Address
 void
 $c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -928,7 +928,7 @@ $c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, con
 void
 $c_ident::${{action.ident}}(const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }