aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/peer_object.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-10-03 17:45:57 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-04 13:58:33 -0700
commit033b2c7f0f26d236f5e87888aca3d5ecb6a64cb7 (patch)
tree9fd938e5e01088c60b01d885f7aec3869d9bd397 /net/rxrpc/peer_object.c
parentMerge branch 'devlink-allow-devlink-instances-to-change-network-namespace' (diff)
downloadlinux-dev-033b2c7f0f26d236f5e87888aca3d5ecb6a64cb7.tar.xz
linux-dev-033b2c7f0f26d236f5e87888aca3d5ecb6a64cb7.zip
rxrpc: Add missing "new peer" trace
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>
Diffstat (limited to '')
-rw-r--r--net/rxrpc/peer_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/peer_object.c b/net/rxrpc/peer_object.c
index 9c3ac96f71cb..bf4dd6cf79a0 100644
--- a/net/rxrpc/peer_object.c
+++ b/net/rxrpc/peer_object.c
@@ -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);