* [PATCH net-next] rxrpc: Add missing "new peer" trace
@ 2019-10-03 16:45 David Howells
2019-10-04 20:59 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2019-10-03 16:45 UTC (permalink / raw)
To: netdev; +Cc: dhowells, linux-afs, linux-kernel
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>
---
net/rxrpc/peer_object.c | 2 ++
1 file changed, 2 insertions(+)
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] rxrpc: Add missing "new peer" trace
2019-10-03 16:45 [PATCH net-next] rxrpc: Add missing "new peer" trace David Howells
@ 2019-10-04 20:59 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-10-04 20:59 UTC (permalink / raw)
To: dhowells; +Cc: netdev, linux-afs, linux-kernel
From: David Howells <dhowells@redhat.com>
Date: Thu, 03 Oct 2019 17:45:57 +0100
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-04 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 16:45 [PATCH net-next] rxrpc: Add missing "new peer" trace David Howells
2019-10-04 20:59 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).