summaryrefslogtreecommitdiffstats
path: root/src/tracing
diff options
context:
space:
mode:
authorYang Honggang <joseph.yang@xtaotech.com>2018-03-13 02:54:35 +0100
committerYang Honggang <joseph.yang@xtaotech.com>2018-03-20 07:15:50 +0100
commit6930e9f3caa5f87728abae57b858c1722a4b86b1 (patch)
tree3a0221ad550006691afb2318ca3cae2bd559fcf3 /src/tracing
parentMerge pull request #20831 from zhsj/fix-spelling (diff)
downloadceph-6930e9f3caa5f87728abae57b858c1722a4b86b1.tar.xz
ceph-6930e9f3caa5f87728abae57b858c1722a4b86b1.zip
lttng: Trace rgw data transfer, bi entry and object header update processes
Signed-off-by: Yang Honggang <joseph.yang@xtaotech.com>
Diffstat (limited to 'src/tracing')
-rw-r--r--src/tracing/CMakeLists.txt4
-rw-r--r--src/tracing/rgw_op.c6
-rw-r--r--src/tracing/rgw_op.tp36
-rw-r--r--src/tracing/rgw_rados.c6
-rw-r--r--src/tracing/rgw_rados.tp50
5 files changed, 101 insertions, 1 deletions
diff --git a/src/tracing/CMakeLists.txt b/src/tracing/CMakeLists.txt
index ec2a8b4f0ac..d63399d589f 100644
--- a/src/tracing/CMakeLists.txt
+++ b/src/tracing/CMakeLists.txt
@@ -45,8 +45,10 @@ set(osd_traces oprequest.tp osd.tp pg.tp)
add_tracing_library(osd_tp "${osd_traces}" 1.0.0)
add_tracing_library(rados_tp librados.tp 2.0.0)
add_tracing_library(os_tp objectstore.tp 1.0.0)
+add_tracing_library(rgw_op_tp rgw_op.tp 1.0.0)
+add_tracing_library(rgw_rados_tp rgw_rados.tp 1.0.0)
-install(TARGETS rados_tp osd_tp os_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS rados_tp osd_tp os_tp rgw_rados_tp rgw_op_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
if(WITH_RBD)
add_tracing_library(rbd_tp librbd.tp 1.0.0)
install(TARGETS rbd_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
diff --git a/src/tracing/rgw_op.c b/src/tracing/rgw_op.c
new file mode 100644
index 00000000000..0a3c1f96a79
--- /dev/null
+++ b/src/tracing/rgw_op.c
@@ -0,0 +1,6 @@
+
+#define TRACEPOINT_CREATE_PROBES
+/*
+ * The header containing our TRACEPOINT_EVENTs.
+ */
+#include "tracing/rgw_op.h"
diff --git a/src/tracing/rgw_op.tp b/src/tracing/rgw_op.tp
new file mode 100644
index 00000000000..2d46d6b94de
--- /dev/null
+++ b/src/tracing/rgw_op.tp
@@ -0,0 +1,36 @@
+#include "tracing/tracing-common.h"
+#include "include/int_types.h"
+
+TRACEPOINT_EVENT(rgw_op, before_data_transfer,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_op, after_data_transfer,
+ TP_ARGS(
+ const char*, req_id,
+ long, ofs),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ ctf_integer(long, ofs, ofs)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_op, processor_complete_enter,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_op, processor_complete_exit,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
diff --git a/src/tracing/rgw_rados.c b/src/tracing/rgw_rados.c
new file mode 100644
index 00000000000..e58b350d5f0
--- /dev/null
+++ b/src/tracing/rgw_rados.c
@@ -0,0 +1,6 @@
+
+#define TRACEPOINT_CREATE_PROBES
+/*
+ * The header containing our TRACEPOINT_EVENTs.
+ */
+#include "tracing/rgw_rados.h"
diff --git a/src/tracing/rgw_rados.tp b/src/tracing/rgw_rados.tp
new file mode 100644
index 00000000000..14465f292bd
--- /dev/null
+++ b/src/tracing/rgw_rados.tp
@@ -0,0 +1,50 @@
+#include "tracing/tracing-common.h"
+#include "include/int_types.h"
+
+TRACEPOINT_EVENT(rgw_rados, prepare_enter,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_rados, prepare_exit,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_rados, operate_enter,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_rados, operate_exit,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_rados, complete_enter,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)
+
+TRACEPOINT_EVENT(rgw_rados, complete_exit,
+ TP_ARGS(
+ const char*, req_id),
+ TP_FIELDS(
+ ctf_string(req_id, req_id)
+ )
+)