aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-23 10:22:36 -0400
committerDavid Howells <dhowells@redhat.com>2016-09-23 10:49:19 -0400
commitfc7ab6d29a3af0b7f6df7c095509378c8caf85b5 (patch)
treec24fa070339e72ef88edce50a9f3f64f01818b7c /include
parentb86e218e0d422488e0febb07620fa97ae9713779 (diff)
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 'include')
-rw-r--r--include/trace/events/rxrpc.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/trace/events/rxrpc.h b/include/trace/events/rxrpc.h
index e8f2afbbe0bf..57322897d745 100644
--- a/include/trace/events/rxrpc.h
+++ b/include/trace/events/rxrpc.h
@@ -414,6 +414,42 @@ TRACE_EVENT(rxrpc_rtt_rx,
414 __entry->avg) 414 __entry->avg)
415 ); 415 );
416 416
417TRACE_EVENT(rxrpc_timer,
418 TP_PROTO(struct rxrpc_call *call, enum rxrpc_timer_trace why,
419 unsigned long now),
420
421 TP_ARGS(call, why, now),
422
423 TP_STRUCT__entry(
424 __field(struct rxrpc_call *, call )
425 __field(enum rxrpc_timer_trace, why )
426 __field(unsigned long, now )
427 __field(unsigned long, expire_at )
428 __field(unsigned long, ack_at )
429 __field(unsigned long, resend_at )
430 __field(unsigned long, timer )
431 ),
432
433 TP_fast_assign(
434 __entry->call = call;
435 __entry->why = why;
436 __entry->now = now;
437 __entry->expire_at = call->expire_at;
438 __entry->ack_at = call->ack_at;
439 __entry->resend_at = call->resend_at;
440 __entry->timer = call->timer.expires;
441 ),
442
443 TP_printk("c=%p %s now=%lx x=%ld a=%ld r=%ld t=%ld",
444 __entry->call,
445 rxrpc_timer_traces[__entry->why],
446 __entry->now,
447 __entry->expire_at - __entry->now,
448 __entry->ack_at - __entry->now,
449 __entry->resend_at - __entry->now,
450 __entry->timer - __entry->now)
451 );
452
417#endif /* _TRACE_RXRPC_H */ 453#endif /* _TRACE_RXRPC_H */
418 454
419/* This part must be outside protection */ 455/* This part must be outside protection */