sunrpc.h (7f5667a5f8c4ff85b14ccce9d41f9244bd30ab68) sunrpc.h (0c77668ddb4e7bdfbca462c6185d154d0b8889ae)
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM sunrpc
4
5#if !defined(_TRACE_SUNRPC_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_SUNRPC_H
7
8#include <linux/sunrpc/sched.h>

--- 641 unchanged lines hidden (view full) ---

650 const struct rpc_xprt *xprt, \
651 __be32 xid, \
652 int status \
653 ), \
654 TP_ARGS(xprt, xid, status))
655
656DEFINE_RPC_XPRT_EVENT(timer);
657DEFINE_RPC_XPRT_EVENT(lookup_rqst);
1/* SPDX-License-Identifier: GPL-2.0 */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM sunrpc
4
5#if !defined(_TRACE_SUNRPC_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_SUNRPC_H
7
8#include <linux/sunrpc/sched.h>

--- 641 unchanged lines hidden (view full) ---

650 const struct rpc_xprt *xprt, \
651 __be32 xid, \
652 int status \
653 ), \
654 TP_ARGS(xprt, xid, status))
655
656DEFINE_RPC_XPRT_EVENT(timer);
657DEFINE_RPC_XPRT_EVENT(lookup_rqst);
658DEFINE_RPC_XPRT_EVENT(transmit);
659DEFINE_RPC_XPRT_EVENT(complete_rqst);
660
658DEFINE_RPC_XPRT_EVENT(complete_rqst);
659
660TRACE_EVENT(xprt_transmit,
661 TP_PROTO(
662 const struct rpc_rqst *rqst,
663 int status
664 ),
665
666 TP_ARGS(rqst, status),
667
668 TP_STRUCT__entry(
669 __field(unsigned int, task_id)
670 __field(unsigned int, client_id)
671 __field(u32, xid)
672 __field(u32, seqno)
673 __field(int, status)
674 ),
675
676 TP_fast_assign(
677 __entry->task_id = rqst->rq_task->tk_pid;
678 __entry->client_id = rqst->rq_task->tk_client->cl_clid;
679 __entry->xid = be32_to_cpu(rqst->rq_xid);
680 __entry->seqno = rqst->rq_seqno;
681 __entry->status = status;
682 ),
683
684 TP_printk(
685 "task:%u@%u xid=0x%08x seqno=%u status=%d",
686 __entry->task_id, __entry->client_id, __entry->xid,
687 __entry->seqno, __entry->status)
688);
689
690TRACE_EVENT(xprt_enq_xmit,
691 TP_PROTO(
692 const struct rpc_task *task,
693 int stage
694 ),
695
696 TP_ARGS(task, stage),
697
698 TP_STRUCT__entry(
699 __field(unsigned int, task_id)
700 __field(unsigned int, client_id)
701 __field(u32, xid)
702 __field(u32, seqno)
703 __field(int, stage)
704 ),
705
706 TP_fast_assign(
707 __entry->task_id = task->tk_pid;
708 __entry->client_id = task->tk_client->cl_clid;
709 __entry->xid = be32_to_cpu(task->tk_rqstp->rq_xid);
710 __entry->seqno = task->tk_rqstp->rq_seqno;
711 __entry->stage = stage;
712 ),
713
714 TP_printk(
715 "task:%u@%u xid=0x%08x seqno=%u stage=%d",
716 __entry->task_id, __entry->client_id, __entry->xid,
717 __entry->seqno, __entry->stage)
718);
719
661TRACE_EVENT(xprt_ping,
662 TP_PROTO(const struct rpc_xprt *xprt, int status),
663
664 TP_ARGS(xprt, status),
665
666 TP_STRUCT__entry(
667 __field(int, status)
668 __string(addr, xprt->address_strings[RPC_DISPLAY_ADDR])

--- 381 unchanged lines hidden ---
720TRACE_EVENT(xprt_ping,
721 TP_PROTO(const struct rpc_xprt *xprt, int status),
722
723 TP_ARGS(xprt, status),
724
725 TP_STRUCT__entry(
726 __field(int, status)
727 __string(addr, xprt->address_strings[RPC_DISPLAY_ADDR])

--- 381 unchanged lines hidden ---