ceph: add trace points to the MDS client
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 25 Sep 2025 10:45:12 +0000 (12:45 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 10 Dec 2025 10:50:54 +0000 (11:50 +0100)
commitd927a595ab2f6de4e10b3e3962bc70ab61d8f907
treecfae4e2c696e6be7b4a05011205a4d71a2ad02d8
parentd6c2f41eb99cdf41f050f5e41405d2ed143ff4ef
ceph: add trace points to the MDS client

This patch adds trace points to the Ceph filesystem MDS client:

- request submission (CEPH_MSG_CLIENT_REQUEST) and completion
  (CEPH_MSG_CLIENT_REPLY)
- capabilities (CEPH_MSG_CLIENT_CAPS)

These are the central pieces that are useful for analyzing MDS
latency/performance problems from the client's perspective.

In the long run, all doutc() calls should be replaced with
tracepoints.  This way, the Ceph filesystem can be traced at any time
(without spamming the kernel log).  Additionally, trace points can be
used in BPF programs (which can even deference the pointer parameters
and extract more values).

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/super.c
include/trace/events/ceph.h [new file with mode: 0644]