~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/events/skb.h

Version: ~ [ linux-5.11-rc3 ] ~ [ linux-5.10.7 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.89 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.167 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.215 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.251 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.251 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM skb
  4 
  5 #if !defined(_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_SKB_H
  7 
  8 #include <linux/skbuff.h>
  9 #include <linux/netdevice.h>
 10 #include <linux/tracepoint.h>
 11 
 12 /*
 13  * Tracepoint for free an sk_buff:
 14  */
 15 TRACE_EVENT(kfree_skb,
 16 
 17         TP_PROTO(struct sk_buff *skb, void *location),
 18 
 19         TP_ARGS(skb, location),
 20 
 21         TP_STRUCT__entry(
 22                 __field(        void *,         skbaddr         )
 23                 __field(        void *,         location        )
 24                 __field(        unsigned short, protocol        )
 25         ),
 26 
 27         TP_fast_assign(
 28                 __entry->skbaddr = skb;
 29                 __entry->location = location;
 30                 __entry->protocol = ntohs(skb->protocol);
 31         ),
 32 
 33         TP_printk("skbaddr=%p protocol=%u location=%p",
 34                 __entry->skbaddr, __entry->protocol, __entry->location)
 35 );
 36 
 37 TRACE_EVENT(consume_skb,
 38 
 39         TP_PROTO(struct sk_buff *skb),
 40 
 41         TP_ARGS(skb),
 42 
 43         TP_STRUCT__entry(
 44                 __field(        void *, skbaddr )
 45         ),
 46 
 47         TP_fast_assign(
 48                 __entry->skbaddr = skb;
 49         ),
 50 
 51         TP_printk("skbaddr=%p", __entry->skbaddr)
 52 );
 53 
 54 TRACE_EVENT(skb_copy_datagram_iovec,
 55 
 56         TP_PROTO(const struct sk_buff *skb, int len),
 57 
 58         TP_ARGS(skb, len),
 59 
 60         TP_STRUCT__entry(
 61                 __field(        const void *,           skbaddr         )
 62                 __field(        int,                    len             )
 63         ),
 64 
 65         TP_fast_assign(
 66                 __entry->skbaddr = skb;
 67                 __entry->len = len;
 68         ),
 69 
 70         TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)
 71 );
 72 
 73 #endif /* _TRACE_SKB_H */
 74 
 75 /* This part must be outside protection */
 76 #include <trace/define_trace.h>
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp