rxrpc: Add tracepoint for ACK proposal
authorDavid Howells <dhowells@redhat.com>
Fri, 23 Sep 2016 12:50:40 +0000 (13:50 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 23 Sep 2016 14:49:19 +0000 (15:49 +0100)
commit9c7ad434441da6b5d4ac878cac368fbdaec99b56
treea86f83d437f8772c0865df213f27265bc826ed60
parent89b475abdb107a74f57497b65becaf837a0e5b6b
rxrpc: Add tracepoint for ACK proposal

Add a tracepoint to log proposed ACKs, including whether the proposal is
used to update a pending ACK or is discarded in favour of an easlier,
higher priority ACK.

Whilst we're at it, get rid of the rxrpc_acks() function and access the
name array directly.  We do, however, need to validate the ACK reason
number given to trace_rxrpc_rx_ack() to make sure we don't overrun the
array.

Signed-off-by: David Howells <dhowells@redhat.com>
include/rxrpc/packet.h
include/trace/events/rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/call_event.c
net/rxrpc/input.c
net/rxrpc/misc.c
net/rxrpc/output.c
net/rxrpc/recvmsg.c