fd: dlm: trace send/recv of dlm message and rcom
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Oct 2022 20:45:15 +0000 (16:45 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 8 Nov 2022 18:59:41 +0000 (12:59 -0600)
commite01c4b7bd41522ae0299c07e2ee8c721fee02595
tree28f0f0a773a1a56c3a285c52a24bbe4254b98855
parent5b787667e87a373a2f8f70e6be2b5d99c408462f
fd: dlm: trace send/recv of dlm message and rcom

This patch adds tracepoints for send and recv cases of dlm messages and
dlm rcom messages. In case of send and dlm message we add the dlm rsb
resource name this dlm messages belongs to. This has the advantage to
follow dlm messages on a per lock basis. In case of recv message the
resource name can be extracted by follow the send message sequence
number.

The dlm message DLM_MSG_PURGE doesn't belong to a lock request and will
not set the resource name in a dlm_message trace. The same for all rcom
messages.

There is additional handling required for this debugging functionality
which is tried to be small as possible. Also the midcomms layer gets
aware of lock resource names, for now this is required to make a
connection between sequence number and lock resource names. It is for
debugging purpose only.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c
fs/dlm/midcomms.c
fs/dlm/midcomms.h
fs/dlm/rcom.c
include/trace/events/dlm.h