diff options
author | David Howells <dhowells@redhat.com> | 2016-09-23 16:22:36 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-23 16:49:19 +0200 |
commit | fc7ab6d29a3af0b7f6df7c095509378c8caf85b5 (patch) | |
tree | c24fa070339e72ef88edce50a9f3f64f01818b7c /net/rxrpc/call_object.c | |
parent | rxrpc: Don't call the tx_ack tracepoint if don't generate an ACK (diff) | |
download | linux-fc7ab6d29a3af0b7f6df7c095509378c8caf85b5.tar.xz linux-fc7ab6d29a3af0b7f6df7c095509378c8caf85b5.zip |
rxrpc: Add a tracepoint for the call timer
Add a tracepoint to log call timer initiation, setting and expiry.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_object.c')
-rw-r--r-- | net/rxrpc/call_object.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c index f2fadf667e19..a53f4c2c0025 100644 --- a/net/rxrpc/call_object.c +++ b/net/rxrpc/call_object.c @@ -76,8 +76,10 @@ static void rxrpc_call_timer_expired(unsigned long _call) _enter("%d", call->debug_id); - if (call->state < RXRPC_CALL_COMPLETE) + if (call->state < RXRPC_CALL_COMPLETE) { + trace_rxrpc_timer(call, rxrpc_timer_expired, jiffies); rxrpc_queue_call(call); + } } /* @@ -200,7 +202,7 @@ static void rxrpc_start_call_timer(struct rxrpc_call *call) call->ack_at = expire_at; call->resend_at = expire_at; call->timer.expires = expire_at + 1; - rxrpc_set_timer(call); + rxrpc_set_timer(call, rxrpc_timer_begin); } /* |