rxrpc: Change rx_packet tracepoint to display securityIndex not type twice
authorDavid Howells <dhowells@redhat.com>
Mon, 5 Dec 2022 17:38:31 +0000 (17:38 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 31 Jan 2023 16:38:35 +0000 (16:38 +0000)
Change the rx_packet tracepoint to display the securityIndex from the
packet header instead of displaying the type in numeric form.  There's no
need for the latter, as the display of the type in symbolic form will fall
back automatically to displaying the hex value if no symbol is available.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org

include/trace/events/rxrpc.h

index b6adec9111e15f23f5e1e502690a783b40209424..d7bb4acf45807a9f918c37ce35d9e7baa1a01800 100644 (file)
@@ -752,9 +752,8 @@ TRACE_EVENT(rxrpc_rx_packet,
                      __entry->hdr.epoch, __entry->hdr.cid,
                      __entry->hdr.callNumber, __entry->hdr.serviceId,
                      __entry->hdr.serial, __entry->hdr.seq,
-                     __entry->hdr.type, __entry->hdr.flags,
-                     __entry->hdr.type <= 15 ?
-                     __print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
+                     __entry->hdr.securityIndex, __entry->hdr.flags,
+                     __print_symbolic(__entry->hdr.type, rxrpc_pkts))
            );
 
 TRACE_EVENT(rxrpc_rx_done,