mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Merge tag 'nfsd-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd updates from Chuck Lever: - Clean-ups in the READ path in anticipation of MSG_SPLICE_PAGES - Better NUMA awareness when allocating pages and other objects - A number of minor clean-ups to XDR encoding - Elimination of a race when accepting a TCP socket - Numerous observability enhancements * tag 'nfsd-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: (46 commits) nfsd: remove redundant assignments to variable len svcrdma: Fix stale comment NFSD: Distinguish per-net namespace initialization nfsd: move init of percpu reply_cache_stats counters back to nfsd_init_net SUNRPC: Address RCU warning in net/sunrpc/svc.c SUNRPC: Use sysfs_emit in place of strlcpy/sprintf SUNRPC: Remove transport class dprintk call sites SUNRPC: Fix comments for transport class registration svcrdma: Remove an unused argument from __svc_rdma_put_rw_ctxt() svcrdma: trace cc_release calls svcrdma: Convert "might sleep" comment into a code annotation NFSD: Add an nfsd4_encode_nfstime4() helper SUNRPC: Move initialization of rq_stime SUNRPC: Optimize page release in svc_rdma_sendto() svcrdma: Prevent page release when nothing was received svcrdma: Revert2a1e4f21d8
("svcrdma: Normalize Send page handling") SUNRPC: Revert579900670a
("svcrdma: Remove unused sc_pages field") SUNRPC: Revertcc93ce9529
("svcrdma: Retain the page backing rq_res.head[0].iov_base") NFSD: add encoding of op_recall flag for write delegation NFSD: Add "official" reviewers for this subsystem ...
This commit is contained in:
@@ -2112,6 +2112,14 @@ DEFINE_POST_CHUNK_EVENT(read);
|
||||
DEFINE_POST_CHUNK_EVENT(write);
|
||||
DEFINE_POST_CHUNK_EVENT(reply);
|
||||
|
||||
DEFINE_EVENT(svcrdma_post_chunk_class, svcrdma_cc_release,
|
||||
TP_PROTO(
|
||||
const struct rpc_rdma_cid *cid,
|
||||
int sqecount
|
||||
),
|
||||
TP_ARGS(cid, sqecount)
|
||||
);
|
||||
|
||||
TRACE_EVENT(svcrdma_wc_read,
|
||||
TP_PROTO(
|
||||
const struct ib_wc *wc,
|
||||
|
@@ -2104,31 +2104,46 @@ DEFINE_SVC_DEFERRED_EVENT(drop);
|
||||
DEFINE_SVC_DEFERRED_EVENT(queue);
|
||||
DEFINE_SVC_DEFERRED_EVENT(recv);
|
||||
|
||||
TRACE_EVENT(svcsock_new_socket,
|
||||
DECLARE_EVENT_CLASS(svcsock_lifetime_class,
|
||||
TP_PROTO(
|
||||
const void *svsk,
|
||||
const struct socket *socket
|
||||
),
|
||||
|
||||
TP_ARGS(socket),
|
||||
|
||||
TP_ARGS(svsk, socket),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, netns_ino)
|
||||
__field(const void *, svsk)
|
||||
__field(const void *, sk)
|
||||
__field(unsigned long, type)
|
||||
__field(unsigned long, family)
|
||||
__field(bool, listener)
|
||||
__field(unsigned long, state)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->type = socket->type;
|
||||
__entry->family = socket->sk->sk_family;
|
||||
__entry->listener = (socket->sk->sk_state == TCP_LISTEN);
|
||||
),
|
||||
struct sock *sk = socket->sk;
|
||||
|
||||
TP_printk("type=%s family=%s%s",
|
||||
show_socket_type(__entry->type),
|
||||
__entry->netns_ino = sock_net(sk)->ns.inum;
|
||||
__entry->svsk = svsk;
|
||||
__entry->sk = sk;
|
||||
__entry->type = socket->type;
|
||||
__entry->family = sk->sk_family;
|
||||
__entry->state = sk->sk_state;
|
||||
),
|
||||
TP_printk("svsk=%p type=%s family=%s%s",
|
||||
__entry->svsk, show_socket_type(__entry->type),
|
||||
rpc_show_address_family(__entry->family),
|
||||
__entry->listener ? " (listener)" : ""
|
||||
__entry->state == TCP_LISTEN ? " (listener)" : ""
|
||||
)
|
||||
);
|
||||
#define DEFINE_SVCSOCK_LIFETIME_EVENT(name) \
|
||||
DEFINE_EVENT(svcsock_lifetime_class, name, \
|
||||
TP_PROTO( \
|
||||
const void *svsk, \
|
||||
const struct socket *socket \
|
||||
), \
|
||||
TP_ARGS(svsk, socket))
|
||||
|
||||
DEFINE_SVCSOCK_LIFETIME_EVENT(svcsock_new);
|
||||
DEFINE_SVCSOCK_LIFETIME_EVENT(svcsock_free);
|
||||
|
||||
TRACE_EVENT(svcsock_marker,
|
||||
TP_PROTO(
|
||||
|
Reference in New Issue
Block a user