Hello,
We are writing to you regarding an issue we encountered while attempting to trace Ceph with LTTng-UST. Below are the steps we have followed so far:
Compiling Ceph with LTTng Support:
debian/rules file to enable LTTng support using the following flags: -DWITH_LTTNG=ON and -DWITH_OSD_INSTRUMENT_FUNCTIONS=ON.Deploying a Ceph Cluster:
Attempting to Trace with LTTng-UST:
# lttng list -u
UST events: ------------- NONE
Preloading liblttng-ust-fork.so:
liblttng-ust-fork.so before starting the Ceph daemons (MON, OSD, MGR) as follows:# systemctl edit ceph-mon@debian
[Service] Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/liblttng-ust-fork.so
lttng list -u, which displayed tracepoints related to the libraries (lttng_ust_lib:*), trace logs (lttng_ust_tracelog:*), and state dump events (lttng_ust_statedump:*), instead of the expected Ceph-related tracepoints.Expected Result:
UST events:
-------------
PID: 100859 - Name: /path/to/ceph-osd
pg:queue_op (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
osd:do_osd_op_post (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
osd:do_osd_op_pre_unknown (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
osd:do_osd_op_pre_copy_from (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
osd:do_osd_op_pre_copy_get (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
... Actual Result:
UST events: ------------- lttng_ust_lib:* lttng_ust_tracelog:* lttng_ust_statedump:*
We would greatly appreciate any help you could provide to resolve this problem.