aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/local_event.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-07-23 17:18:37 +0100
committerDavid Howells <dhowells@redhat.com>2018-08-01 13:28:23 +0100
commit4764c0da69dc500791c840c88dfd940d13b452e7 (patch)
tree6870400a379223221d6a3838f0188affa9a441b7 /net/rxrpc/local_event.c
parentrxrpc: Fix the trace for terminal ACK (re)transmission (diff)
downloadlinux-dev-4764c0da69dc500791c840c88dfd940d13b452e7.tar.xz
linux-dev-4764c0da69dc500791c840c88dfd940d13b452e7.zip
rxrpc: Trace packet transmission
Trace successful packet transmission (kernel_sendmsg() succeeded, that is) in AF_RXRPC. We can share the enum that defines the transmission points with the trace_rxrpc_tx_fail() tracepoint, so rename its constants to be applicable to both. Also, save the internal call->debug_id in the rxrpc_channel struct so that it can be used in retransmission trace lines. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to '')
-rw-r--r--net/rxrpc/local_event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/rxrpc/local_event.c b/net/rxrpc/local_event.c
index 8325f1b86840..13bd8a4dfac7 100644
--- a/net/rxrpc/local_event.c
+++ b/net/rxrpc/local_event.c
@@ -72,7 +72,10 @@ static void rxrpc_send_version_request(struct rxrpc_local *local,
ret = kernel_sendmsg(local->socket, &msg, iov, 2, len);
if (ret < 0)
trace_rxrpc_tx_fail(local->debug_id, 0, ret,
- rxrpc_tx_fail_version_reply);
+ rxrpc_tx_point_version_reply);
+ else
+ trace_rxrpc_tx_packet(local->debug_id, &whdr,
+ rxrpc_tx_point_version_reply);
_leave("");
}