rxrpc: Add missing "new peer" trace
authorDavid Howells <dhowells@redhat.com>
Thu, 3 Oct 2019 16:45:57 +0000 (17:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 20:58:33 +0000 (13:58 -0700)
There was supposed to be a trace indicating that a new peer had been
created.  Add it.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/peer_object.c

index 9c3ac96f71cbf8202ccdeca3af388ad8a2ae08b3..bf4dd6cf79a0c1f2fb964458c8dfafbcdd2df377 100644 (file)
@@ -209,6 +209,7 @@ static void rxrpc_assess_MTU_size(struct rxrpc_sock *rx,
  */
 struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
 {
+       const void *here = __builtin_return_address(0);
        struct rxrpc_peer *peer;
 
        _enter("");
@@ -230,6 +231,7 @@ struct rxrpc_peer *rxrpc_alloc_peer(struct rxrpc_local *local, gfp_t gfp)
                        peer->cong_cwnd = 3;
                else
                        peer->cong_cwnd = 4;
+               trace_rxrpc_peer(peer, rxrpc_peer_new, 1, here);
        }
 
        _leave(" = %p", peer);