]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0224dc7326c74062806346c68b8418bb1896244c
tree0e197c62aa5e22b95b7032d34c9c69969d84316c
parent1f45e3a4d0ae22e3e7dbe879a80295e0c31acc80
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