]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: moved performance counter enums to common location
authorJason Dillaman <dillaman@redhat.com>
Tue, 17 Oct 2017 19:49:22 +0000 (15:49 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 29 Oct 2017 12:13:27 +0000 (08:13 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc
src/librbd/ImageWatcher.cc
src/librbd/Operations.cc
src/librbd/Types.h
src/librbd/internal.h
src/librbd/io/AioCompletion.cc
src/librbd/io/ImageRequest.cc

index 2008a07a7695b3eaeda6544a42fe5093ac6b379f..822e7e9f96e0be5a18bf76c32136a2680d54558e 100644 (file)
@@ -22,6 +22,7 @@
 #include "librbd/ObjectMap.h"
 #include "librbd/Operations.h"
 #include "librbd/operation/ResizeRequest.h"
+#include "librbd/Types.h"
 #include "librbd/Utils.h"
 #include "librbd/LibrbdWriteback.h"
 #include "librbd/exclusive_lock/AutomaticPolicy.h"
index 487eabaa69c18f5c7b374362982ce071b40de1b2..f8ffda4a75c624719b8c78997754411df33b90ab 100644 (file)
@@ -8,6 +8,7 @@
 #include "librbd/internal.h"
 #include "librbd/Operations.h"
 #include "librbd/TaskFinisher.h"
+#include "librbd/Types.h"
 #include "librbd/Utils.h"
 #include "librbd/exclusive_lock/Policy.h"
 #include "librbd/image_watcher/NotifyLockOwner.h"
index 65dea8f8c41ee1e7a5abb138bc8f16a816898d40..f6073b5787759ee164aab78d07e22ff1886d5b26 100644 (file)
@@ -12,6 +12,7 @@
 #include "librbd/ImageState.h"
 #include "librbd/ImageWatcher.h"
 #include "librbd/ObjectMap.h"
+#include "librbd/Types.h"
 #include "librbd/Utils.h"
 #include "librbd/journal/DisabledPolicy.h"
 #include "librbd/journal/StandardPolicy.h"
index 8efe8a7763c421064b25823cca5369db804d3c8b..9cc16b7987731bad3e5e9e427059edbd0910199c 100644 (file)
 
 namespace librbd {
 
+// Performance counters
+enum {
+  l_librbd_first = 26000,
+
+  l_librbd_rd,               // read ops
+  l_librbd_rd_bytes,         // bytes read
+  l_librbd_rd_latency,       // average latency
+  l_librbd_wr,
+  l_librbd_wr_bytes,
+  l_librbd_wr_latency,
+  l_librbd_discard,
+  l_librbd_discard_bytes,
+  l_librbd_discard_latency,
+  l_librbd_flush,
+  l_librbd_flush_latency,
+
+  l_librbd_ws,
+  l_librbd_ws_bytes,
+  l_librbd_ws_latency,
+
+  l_librbd_cmp,
+  l_librbd_cmp_bytes,
+  l_librbd_cmp_latency,
+
+  l_librbd_snap_create,
+  l_librbd_snap_remove,
+  l_librbd_snap_rollback,
+  l_librbd_snap_rename,
+
+  l_librbd_notify,
+  l_librbd_resize,
+
+  l_librbd_readahead,
+  l_librbd_readahead_bytes,
+
+  l_librbd_invalidate_cache,
+
+  l_librbd_last,
+};
+
 /** @brief Unique identification of a parent in clone relationship.
  * Cloning an image creates a child image that keeps a reference
  * to its parent. This allows copy-on-write images. */
index daedaa42e2fa9ab1cd97b2d6caeed9f5346c2e02..d6401380557be25ed800f81e8eebb2640b9acddc 100644 (file)
 #include "common/WorkQueue.h"
 #include "librbd/Types.h"
 
-enum {
-  l_librbd_first = 26000,
-
-  l_librbd_rd,               // read ops
-  l_librbd_rd_bytes,         // bytes read
-  l_librbd_rd_latency,       // average latency
-  l_librbd_wr,
-  l_librbd_wr_bytes,
-  l_librbd_wr_latency,
-  l_librbd_discard,
-  l_librbd_discard_bytes,
-  l_librbd_discard_latency,
-  l_librbd_flush,
-  l_librbd_flush_latency,
-  l_librbd_ws,
-  l_librbd_ws_bytes,
-  l_librbd_ws_latency,
-
-  l_librbd_cmp,
-  l_librbd_cmp_bytes,
-  l_librbd_cmp_latency,
-
-  l_librbd_snap_create,
-  l_librbd_snap_remove,
-  l_librbd_snap_rollback,
-  l_librbd_snap_rename,
-
-  l_librbd_notify,
-  l_librbd_resize,
-
-  l_librbd_readahead,
-  l_librbd_readahead_bytes,
-
-  l_librbd_invalidate_cache,
-
-  l_librbd_last,
-};
-
 namespace librbd {
 
   struct ImageCtx;
index e668ecd9cc709382eb7f7c818457cddd7cbbcc56..e30a083e136596e6630ca8370c8b4cf6fec4c9a8 100644 (file)
@@ -12,8 +12,8 @@
 
 #include "librbd/ImageCtx.h"
 #include "librbd/internal.h"
-
 #include "librbd/Journal.h"
+#include "librbd/Types.h"
 
 #ifdef WITH_LTTNG
 #include "tracing/librbd.h"
index c38300a53937ea0689a44aef785003227f9efe82..f4a10094ecb0a6e7ba874581f9511f7107ab13ae 100644 (file)
@@ -5,6 +5,7 @@
 #include "librbd/ImageCtx.h"
 #include "librbd/internal.h"
 #include "librbd/Journal.h"
+#include "librbd/Types.h"
 #include "librbd/Utils.h"
 #include "librbd/cache/ImageCache.h"
 #include "librbd/io/AioCompletion.h"