]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
netfs: Display the netfs inode number in the netfs_read tracepoint
authorDavid Howells <dhowells@redhat.com>
Tue, 12 Oct 2021 11:05:27 +0000 (12:05 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:51 +0000 (14:28 +0000)
Display the netfs inode number in the netfs_read tracepoint so that this
can be used to correlate with the cachefiles_prep_read tracepoint.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com

include/trace/events/netfs.h

index 4d470bffd9f136e8bbd08aab06c3f6fbac91e200..e6f4ebbb4c69e52f4fc97797a272b198772d2c6a 100644 (file)
@@ -135,6 +135,7 @@ TRACE_EVENT(netfs_read,
                    __field(loff_t,                     start           )
                    __field(size_t,                     len             )
                    __field(enum netfs_read_trace,      what            )
+                   __field(unsigned int,               netfs_inode     )
                             ),
 
            TP_fast_assign(
@@ -143,12 +144,14 @@ TRACE_EVENT(netfs_read,
                    __entry->start      = start;
                    __entry->len        = len;
                    __entry->what       = what;
+                   __entry->netfs_inode = rreq->inode->i_ino;
                           ),
 
-           TP_printk("R=%08x %s c=%08x s=%llx %zx",
+           TP_printk("R=%08x %s c=%08x ni=%x s=%llx %zx",
                      __entry->rreq,
                      __print_symbolic(__entry->what, netfs_read_traces),
                      __entry->cookie,
+                     __entry->netfs_inode,
                      __entry->start, __entry->len)
            );