rxrpc, afs: Use debug_ids rather than pointers in traces
authorDavid Howells <dhowells@redhat.com>
Tue, 27 Mar 2018 22:03:00 +0000 (23:03 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 27 Mar 2018 22:03:00 +0000 (23:03 +0100)
commita25e21f0bcd25673b91b97b9805db33350feec0f
tree0e197c62aa5e22b95b7032d34c9c69969d84316c
parent827efed6a66ef8a1c071400b5952fee4a5ffedf9
rxrpc, afs: Use debug_ids rather than pointers in traces

In rxrpc and afs, use the debug_ids that are monotonically allocated to
various objects as they're allocated rather than pointers as kernel
pointers are now hashed making them less useful.  Further, the debug ids
aren't reused anywhere nearly as quickly.

In addition, allow kernel services that use rxrpc, such as afs, to take
numbers from the rxrpc counter, assign them to their own call struct and
pass them in to rxrpc for both client and service calls so that the trace
lines for each will have the same ID tag.

Signed-off-by: David Howells <dhowells@redhat.com>
12 files changed:
fs/afs/internal.h
fs/afs/rxrpc.c
include/net/af_rxrpc.h
include/trace/events/afs.h
include/trace/events/rxrpc.h
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-internal.h
net/rxrpc/call_accept.c
net/rxrpc/call_object.c
net/rxrpc/conn_event.c
net/rxrpc/input.c
net/rxrpc/sendmsg.c