]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: dump allocator state at lowest debug level
authorSage Weil <sage@redhat.com>
Fri, 2 Dec 2016 16:01:08 +0000 (11:01 -0500)
committerSage Weil <sage@redhat.com>
Fri, 2 Dec 2016 16:01:08 +0000 (11:01 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BitMapAllocator.cc
src/os/bluestore/StupidAllocator.cc

index 4011d01654c4c4ef1e56beeea20d31ee32fc0d32..7992c8f30d4f62c977760d71fd50de784cb46117 100644 (file)
@@ -255,24 +255,24 @@ uint64_t BitMapAllocator::get_free()
 void BitMapAllocator::dump()
 {
   std::lock_guard<std::mutex> l(m_lock);
-  dout(30) << __func__ << " instance " << (uint64_t) this
+  dout(0) << __func__ << " instance " << (uint64_t) this
            << " committing: " << m_committing.num_intervals() << " extents"
            << dendl;
 
   for (auto p = m_committing.begin();
     p != m_committing.end(); ++p) {
-    dout(30) << __func__ << " instance " << (uint64_t) this
+    dout(0) << __func__ << " instance " << (uint64_t) this
              << " 0x" << std::hex << p.get_start()
              << "~" << p.get_len() << std::dec
              << dendl;
   }
-  dout(30) << __func__ << " instance " << (uint64_t) this
+  dout(0) << __func__ << " instance " << (uint64_t) this
            << " uncommitted: " << m_uncommitted.num_intervals() << " extents"
            << dendl;
 
   for (auto p = m_uncommitted.begin();
     p != m_uncommitted.end(); ++p) {
-    dout(30) << __func__ << " 0x" << std::hex << p.get_start()
+    dout(0) << __func__ << " 0x" << std::hex << p.get_start()
              << "~" << p.get_len() << std::dec
              << dendl;
   }
index fe57e17fa0562d20abc02f87481585be69505d63..82aeb21688541fff3f9aa24f7650c1dad17235d1 100644 (file)
@@ -265,30 +265,30 @@ void StupidAllocator::dump()
 {
   std::lock_guard<std::mutex> l(lock);
   for (unsigned bin = 0; bin < free.size(); ++bin) {
-    dout(30) << __func__ << " free bin " << bin << ": "
-            << free[bin].num_intervals() << " extents" << dendl;
+    dout(0) << __func__ << " free bin " << bin << ": "
+           << free[bin].num_intervals() << " extents" << dendl;
     for (auto p = free[bin].begin();
         p != free[bin].end();
         ++p) {
-      dout(30) << __func__ << "  0x" << std::hex << p.get_start() << "~"
-              << p.get_len() << std::dec << dendl;
+      dout(0) << __func__ << "  0x" << std::hex << p.get_start() << "~"
+             << p.get_len() << std::dec << dendl;
     }
   }
-  dout(30) << __func__ << " committing: "
-          << committing.num_intervals() << " extents" << dendl;
+  dout(0) << __func__ << " committing: "
+         << committing.num_intervals() << " extents" << dendl;
   for (auto p = committing.begin();
        p != committing.end();
        ++p) {
-    dout(30) << __func__ << "  0x" << std::hex << p.get_start() << "~"
-            << p.get_len() << std::dec << dendl;
+    dout(0) << __func__ << "  0x" << std::hex << p.get_start() << "~"
+           << p.get_len() << std::dec << dendl;
   }
-  dout(30) << __func__ << " uncommitted: "
-          << uncommitted.num_intervals() << " extents" << dendl;
+  dout(0) << __func__ << " uncommitted: "
+         << uncommitted.num_intervals() << " extents" << dendl;
   for (auto p = uncommitted.begin();
        p != uncommitted.end();
        ++p) {
-    dout(30) << __func__ << "  0x" << std::hex << p.get_start() << "~"
-            << p.get_len() << std::dec << dendl;
+    dout(0) << __func__ << "  0x" << std::hex << p.get_start() << "~"
+           << p.get_len() << std::dec << dendl;
   }
 }