diff options
author | David Howells <dhowells@redhat.com> | 2018-05-10 23:26:01 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-05-10 23:26:01 +0100 |
commit | 6b47fe1d1ca3aec3a1a8623439c22fbf51016cd8 (patch) | |
tree | 1947f6871f93fe343bea644289b4243519c3ef6f /net/rxrpc/rxkad.c | |
parent | 494337c918403db5743af0348d963cafb9b20cee (diff) | |
download | linux-stable-6b47fe1d1ca3aec3a1a8623439c22fbf51016cd8.tar.gz linux-stable-6b47fe1d1ca3aec3a1a8623439c22fbf51016cd8.tar.bz2 linux-stable-6b47fe1d1ca3aec3a1a8623439c22fbf51016cd8.zip |
rxrpc: Trace UDP transmission failure
Add a tracepoint to log transmission failure from the UDP transport socket
being used by AF_RXRPC.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/rxkad.c')
-rw-r--r-- | net/rxrpc/rxkad.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 588fea0dd362..6c0ae27fff84 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c @@ -664,7 +664,8 @@ static int rxkad_issue_challenge(struct rxrpc_connection *conn) ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); if (ret < 0) { - _debug("sendmsg failed: %d", ret); + trace_rxrpc_tx_fail(conn->debug_id, serial, ret, + rxrpc_tx_fail_conn_challenge); return -EAGAIN; } @@ -719,7 +720,8 @@ static int rxkad_send_response(struct rxrpc_connection *conn, ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 3, len); if (ret < 0) { - _debug("sendmsg failed: %d", ret); + trace_rxrpc_tx_fail(conn->debug_id, serial, ret, + rxrpc_tx_fail_conn_response); return -EAGAIN; } |