Whamcloud - gitweb
b=17682 Improve debug capability for production systems
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Fri, 20 Aug 2010 14:44:44 +0000 (18:44 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 19:48:19 +0000 (23:48 +0400)
 Improve performance of D_RPCTRACE debugging.

 i=andreas.dilger
 i=andrew.perepechko

lustre/ptlrpc/client.c
lustre/ptlrpc/events.c

index 60d6206..ea4f2e2 100644 (file)
@@ -2285,7 +2285,7 @@ void ptlrpc_free_committed(struct obd_import *imp)
 
         if (imp->imp_peer_committed_transno == imp->imp_last_transno_checked &&
             imp->imp_generation == imp->imp_last_generation_checked) {
-                CDEBUG(D_RPCTRACE, "%s: skip recheck: last_committed "LPU64"\n",
+                CDEBUG(D_INFO, "%s: skip recheck: last_committed "LPU64"\n",
                        imp->imp_obd->obd_name, imp->imp_peer_committed_transno);
                 EXIT;
                 return;
@@ -2324,7 +2324,7 @@ void ptlrpc_free_committed(struct obd_import *imp)
                         break;
                 }
 
-                DEBUG_REQ(D_RPCTRACE, req, "commit (last_committed "LPU64")",
+                DEBUG_REQ(D_INFO, req, "commit (last_committed "LPU64")",
                           imp->imp_peer_committed_transno);
 free_req:
                 cfs_spin_lock(&req->rq_lock);
index 69716b3..2c93be1 100644 (file)
@@ -117,7 +117,7 @@ void reply_in_callback(lnet_event_t *ev)
 
         if (ev->type == LNET_EVENT_UNLINK) {
                 LASSERT(ev->unlinked);
-                DEBUG_REQ(D_RPCTRACE, req, "unlink");
+                DEBUG_REQ(D_NET, req, "unlink");
                 goto out_wake;
         }
 
@@ -280,7 +280,7 @@ void request_in_callback(lnet_event_t *ev)
         CFS_INIT_LIST_HEAD(&req->rq_timed_list);
         cfs_atomic_set(&req->rq_refcount, 1);
         if (ev->type == LNET_EVENT_PUT)
-                CDEBUG(D_RPCTRACE, "incoming req@%p x"LPU64" msgsize %u\n",
+                CDEBUG(D_INFO, "incoming req@%p x"LPU64" msgsize %u\n",
                        req, req->rq_xid, ev->mlength);
 
         CDEBUG(D_RPCTRACE, "peer: %s\n", libcfs_id2str(req->rq_peer));