]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
afs: Add some tracepoints
authorDavid Howells <dhowells@redhat.com>
Thu, 5 Jan 2017 10:38:34 +0000 (10:38 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 9 Jan 2017 09:18:13 +0000 (09:18 +0000)
commit8e8d7f13b6d5a93b3d2cf9a4ceaaf923809fd5ac
tree8d5b1fd4da0dfec6cbaea9a846419fb8b7a1ac15
parent4289e60cb056ccae4311197d8a4a798aca0f8e55
afs: Add some tracepoints

Add three tracepoints to the AFS filesystem:

 (1) The afs_recv_data tracepoint logs data segments that are extracted
     from the data received from the peer through afs_extract_data().

 (2) The afs_notify_call tracepoint logs notification from AF_RXRPC of data
     coming in to an asynchronous call.

 (3) The afs_cb_call tracepoint logs incoming calls that have had their
     operation ID extracted and mapped into a supported cache manager
     service call.

To make (3) work, the name strings in the afs_call_type struct objects have
to be annotated with __tracepoint_string.  This is done with the CM_NAME()
macro.

Further, the AFS call state enum needs a name so that it can be used to
declare parameter types.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/cmservice.c
fs/afs/internal.h
fs/afs/main.c
fs/afs/rxrpc.c
include/trace/events/afs.h [new file with mode: 0644]