SUNRPC: Clean up call_bind_status() observability
Time to remove dprintk call sites in here. Regarding the rpc_bind_status tracepoint: It's friendlier to administrators if they don't have to look up the error code to figure out what went wrong. Replace trace_rpc_bind_status with a set of tracepoints that report more specifically what the problem was, and what RPC program/version was being queried. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
committed by
Anna Schumaker
parent
fd66e2a79d
commit
42ebfc2cbf
@@ -259,7 +259,6 @@ DECLARE_EVENT_CLASS(rpc_task_status,
|
||||
TP_ARGS(task))
|
||||
|
||||
DEFINE_RPC_STATUS_EVENT(call);
|
||||
DEFINE_RPC_STATUS_EVENT(bind);
|
||||
DEFINE_RPC_STATUS_EVENT(connect);
|
||||
DEFINE_RPC_STATUS_EVENT(timeout);
|
||||
DEFINE_RPC_STATUS_EVENT(retry_refresh);
|
||||
@@ -520,6 +519,19 @@ DEFINE_RPC_REPLY_EVENT(stale_creds);
|
||||
DEFINE_RPC_REPLY_EVENT(bad_creds);
|
||||
DEFINE_RPC_REPLY_EVENT(auth_tooweak);
|
||||
|
||||
#define DEFINE_RPCB_ERROR_EVENT(name) \
|
||||
DEFINE_EVENT(rpc_reply_event, rpcb_##name##_err, \
|
||||
TP_PROTO( \
|
||||
const struct rpc_task *task \
|
||||
), \
|
||||
TP_ARGS(task))
|
||||
|
||||
DEFINE_RPCB_ERROR_EVENT(prog_unavail);
|
||||
DEFINE_RPCB_ERROR_EVENT(timeout);
|
||||
DEFINE_RPCB_ERROR_EVENT(bind_version);
|
||||
DEFINE_RPCB_ERROR_EVENT(unreachable);
|
||||
DEFINE_RPCB_ERROR_EVENT(unrecognized);
|
||||
|
||||
TRACE_EVENT(rpc_buf_alloc,
|
||||
TP_PROTO(
|
||||
const struct rpc_task *task,
|
||||
|
||||
Reference in New Issue
Block a user