1 /* AF_RXRPC tracepoints
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
12 #define TRACE_SYSTEM rxrpc
14 #if !defined(_TRACE_RXRPC_H) || defined(TRACE_HEADER_MULTI_READ)
15 #define _TRACE_RXRPC_H
17 #include <linux/tracepoint.h>
19 TRACE_EVENT(rxrpc_call,
20 TP_PROTO(struct rxrpc_call *call, enum rxrpc_call_trace op,
22 const void *where, const void *aux),
24 TP_ARGS(call, op, usage, nskb, where, aux),
27 __field(struct rxrpc_call *, call )
31 __field(const void *, where )
32 __field(const void *, aux )
38 __entry->usage = usage;
40 __entry->where = where;
44 TP_printk("c=%p %s u=%d s=%d p=%pSR a=%p",
46 rxrpc_call_traces[__entry->op],
53 TRACE_EVENT(rxrpc_skb,
54 TP_PROTO(struct sk_buff *skb, int op, int usage, int mod_count,
57 TP_ARGS(skb, op, usage, mod_count, where),
60 __field(struct sk_buff *, skb )
63 __field(int, mod_count )
64 __field(const void *, where )
70 __entry->usage = usage;
71 __entry->mod_count = mod_count;
72 __entry->where = where;
75 TP_printk("s=%p %s u=%d m=%d p=%pSR",
77 (__entry->op == 0 ? "NEW" :
78 __entry->op == 1 ? "SEE" :
79 __entry->op == 2 ? "GET" :
80 __entry->op == 3 ? "FRE" :
87 #endif /* _TRACE_RXRPC_H */
89 /* This part must be outside protection */
90 #include <trace/define_trace.h>