mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
SUNRPC: Replace connect dprintk call sites with a tracepoint
This trace event can be used to audit transport connections from the client. 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
0ec36cc9cd
commit
db0a86c426
@@ -983,6 +983,7 @@ DECLARE_EVENT_CLASS(rpc_xprt_lifetime_class,
|
|||||||
TP_ARGS(xprt))
|
TP_ARGS(xprt))
|
||||||
|
|
||||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(create);
|
DEFINE_RPC_XPRT_LIFETIME_EVENT(create);
|
||||||
|
DEFINE_RPC_XPRT_LIFETIME_EVENT(connect);
|
||||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_auto);
|
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_auto);
|
||||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_done);
|
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_done);
|
||||||
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_force);
|
DEFINE_RPC_XPRT_LIFETIME_EVENT(disconnect_force);
|
||||||
|
@@ -2055,10 +2055,6 @@ call_connect(struct rpc_task *task)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dprintk("RPC: %5u call_connect xprt %p %s connected\n",
|
|
||||||
task->tk_pid, xprt,
|
|
||||||
(xprt_connected(xprt) ? "is" : "is not"));
|
|
||||||
|
|
||||||
task->tk_action = call_connect_status;
|
task->tk_action = call_connect_status;
|
||||||
if (task->tk_status < 0)
|
if (task->tk_status < 0)
|
||||||
return;
|
return;
|
||||||
|
@@ -834,8 +834,7 @@ void xprt_connect(struct rpc_task *task)
|
|||||||
{
|
{
|
||||||
struct rpc_xprt *xprt = task->tk_rqstp->rq_xprt;
|
struct rpc_xprt *xprt = task->tk_rqstp->rq_xprt;
|
||||||
|
|
||||||
dprintk("RPC: %5u xprt_connect xprt %p %s connected\n", task->tk_pid,
|
trace_xprt_connect(xprt);
|
||||||
xprt, (xprt_connected(xprt) ? "is" : "is not"));
|
|
||||||
|
|
||||||
if (!xprt_bound(xprt)) {
|
if (!xprt_bound(xprt)) {
|
||||||
task->tk_status = -EAGAIN;
|
task->tk_status = -EAGAIN;
|
||||||
|
Reference in New Issue
Block a user