lkml.org 
[lkml]   [2021]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 64/67] netfs: Display the netfs inode number in the netfs_read tracepoint
    From
    Date
    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>
    ---

    include/trace/events/netfs.h | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h
    index 4d470bffd9f1..e6f4ebbb4c69 100644
    --- a/include/trace/events/netfs.h
    +++ b/include/trace/events/netfs.h
    @@ -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)
    );


    \
     
     \ /
      Last update: 2021-10-18 17:09    [W:3.805 / U:0.224 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site