add a trace mechanism to trace sql stuff
authorNathan Binkert <binkertn@umich.edu>
Fri, 23 Jul 2004 19:52:28 +0000 (15:52 -0400)
committerNathan Binkert <binkertn@umich.edu>
Fri, 23 Jul 2004 19:52:28 +0000 (15:52 -0400)
base/mysql.hh:
    Trace sql queries
base/traceflags.py:
    Add a trace flag to trace sql queries

--HG--
extra : convert_revision : dc25abb474db7334529b791a7aa90f8178ea59ea

base/mysql.hh
base/traceflags.py

index 89bec73d08ae24ef14576babb4640149d2820d19..23edb878c652262366ce1ec86d4c291a763589f7 100644 (file)
@@ -180,6 +180,7 @@ class Connection
     bool
     query(const std::string &sql)
     {
+        DPRINTF(SQL, "Sending SQL query to server:\n%s", sql);
         error.clear();
         if (mysql_real_query(&mysql, sql.c_str(), sql.size()))
             error.set(mysql_error(&mysql));
index e073f96c1bc6a3b99b53a4d8e763e1a2b45a152a..4be61d7ee97811288c4cf974a324cf9f6db1ee00 100644 (file)
@@ -121,7 +121,8 @@ baseFlags = [
     'IdeDisk',
     'Tsunami',
     'Uart',
-    'Split'
+    'Split',
+    'SQL'
     ]
 
 #