]> 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)
commitc7d775593d19d7138bc816a94a0afe4edfc5ed24
tree0e197c62aa5e22b95b7032d34c9c69969d84316c
parent88da1ddbc50d7c9b4092e13ad97e4351bf9e6596
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