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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/trace/events/net.h (Version linux-6.12-rc7) and /include/trace/events/net.h (Version linux-4.18.20)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM                                 2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM net                            3 #define TRACE_SYSTEM net
  4                                                     4 
  5 #if !defined(_TRACE_NET_H) || defined(TRACE_HE      5 #if !defined(_TRACE_NET_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_NET_H                                6 #define _TRACE_NET_H
  7                                                     7 
  8 #include <linux/skbuff.h>                           8 #include <linux/skbuff.h>
  9 #include <linux/netdevice.h>                        9 #include <linux/netdevice.h>
 10 #include <linux/if_vlan.h>                         10 #include <linux/if_vlan.h>
 11 #include <linux/ip.h>                              11 #include <linux/ip.h>
 12 #include <linux/tracepoint.h>                      12 #include <linux/tracepoint.h>
 13                                                    13 
 14 TRACE_EVENT(net_dev_start_xmit,                    14 TRACE_EVENT(net_dev_start_xmit,
 15                                                    15 
 16         TP_PROTO(const struct sk_buff *skb, co     16         TP_PROTO(const struct sk_buff *skb, const struct net_device *dev),
 17                                                    17 
 18         TP_ARGS(skb, dev),                         18         TP_ARGS(skb, dev),
 19                                                    19 
 20         TP_STRUCT__entry(                          20         TP_STRUCT__entry(
 21                 __string(       name,              21                 __string(       name,                   dev->name       )
 22                 __field(        u16,               22                 __field(        u16,                    queue_mapping   )
 23                 __field(        const void *,      23                 __field(        const void *,           skbaddr         )
 24                 __field(        bool,              24                 __field(        bool,                   vlan_tagged     )
 25                 __field(        u16,               25                 __field(        u16,                    vlan_proto      )
 26                 __field(        u16,               26                 __field(        u16,                    vlan_tci        )
 27                 __field(        u16,               27                 __field(        u16,                    protocol        )
 28                 __field(        u8,                28                 __field(        u8,                     ip_summed       )
 29                 __field(        unsigned int,      29                 __field(        unsigned int,           len             )
 30                 __field(        unsigned int,      30                 __field(        unsigned int,           data_len        )
 31                 __field(        int,               31                 __field(        int,                    network_offset  )
 32                 __field(        bool,              32                 __field(        bool,                   transport_offset_valid)
 33                 __field(        int,               33                 __field(        int,                    transport_offset)
 34                 __field(        u8,                34                 __field(        u8,                     tx_flags        )
 35                 __field(        u16,               35                 __field(        u16,                    gso_size        )
 36                 __field(        u16,               36                 __field(        u16,                    gso_segs        )
 37                 __field(        u16,               37                 __field(        u16,                    gso_type        )
 38         ),                                         38         ),
 39                                                    39 
 40         TP_fast_assign(                            40         TP_fast_assign(
 41                 __assign_str(name);            !!  41                 __assign_str(name, dev->name);
 42                 __entry->queue_mapping = skb->     42                 __entry->queue_mapping = skb->queue_mapping;
 43                 __entry->skbaddr = skb;            43                 __entry->skbaddr = skb;
 44                 __entry->vlan_tagged = skb_vla     44                 __entry->vlan_tagged = skb_vlan_tag_present(skb);
 45                 __entry->vlan_proto = ntohs(sk     45                 __entry->vlan_proto = ntohs(skb->vlan_proto);
 46                 __entry->vlan_tci = skb_vlan_t     46                 __entry->vlan_tci = skb_vlan_tag_get(skb);
 47                 __entry->protocol = ntohs(skb-     47                 __entry->protocol = ntohs(skb->protocol);
 48                 __entry->ip_summed = skb->ip_s     48                 __entry->ip_summed = skb->ip_summed;
 49                 __entry->len = skb->len;           49                 __entry->len = skb->len;
 50                 __entry->data_len = skb->data_     50                 __entry->data_len = skb->data_len;
 51                 __entry->network_offset = skb_     51                 __entry->network_offset = skb_network_offset(skb);
 52                 __entry->transport_offset_vali     52                 __entry->transport_offset_valid =
 53                         skb_transport_header_w     53                         skb_transport_header_was_set(skb);
 54                 __entry->transport_offset = sk !!  54                 __entry->transport_offset = skb_transport_offset(skb);
 55                         skb_transport_offset(s << 
 56                 __entry->tx_flags = skb_shinfo     55                 __entry->tx_flags = skb_shinfo(skb)->tx_flags;
 57                 __entry->gso_size = skb_shinfo     56                 __entry->gso_size = skb_shinfo(skb)->gso_size;
 58                 __entry->gso_segs = skb_shinfo     57                 __entry->gso_segs = skb_shinfo(skb)->gso_segs;
 59                 __entry->gso_type = skb_shinfo     58                 __entry->gso_type = skb_shinfo(skb)->gso_type;
 60         ),                                         59         ),
 61                                                    60 
 62         TP_printk("dev=%s queue_mapping=%u skb     61         TP_printk("dev=%s queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d len=%u data_len=%u network_offset=%d transport_offset_valid=%d transport_offset=%d tx_flags=%d gso_size=%d gso_segs=%d gso_type=%#x",
 63                   __get_str(name), __entry->qu     62                   __get_str(name), __entry->queue_mapping, __entry->skbaddr,
 64                   __entry->vlan_tagged, __entr     63                   __entry->vlan_tagged, __entry->vlan_proto, __entry->vlan_tci,
 65                   __entry->protocol, __entry->     64                   __entry->protocol, __entry->ip_summed, __entry->len,
 66                   __entry->data_len,               65                   __entry->data_len,
 67                   __entry->network_offset, __e     66                   __entry->network_offset, __entry->transport_offset_valid,
 68                   __entry->transport_offset, _     67                   __entry->transport_offset, __entry->tx_flags,
 69                   __entry->gso_size, __entry->     68                   __entry->gso_size, __entry->gso_segs, __entry->gso_type)
 70 );                                                 69 );
 71                                                    70 
 72 TRACE_EVENT(net_dev_xmit,                          71 TRACE_EVENT(net_dev_xmit,
 73                                                    72 
 74         TP_PROTO(struct sk_buff *skb,              73         TP_PROTO(struct sk_buff *skb,
 75                  int rc,                           74                  int rc,
 76                  struct net_device *dev,           75                  struct net_device *dev,
 77                  unsigned int skb_len),            76                  unsigned int skb_len),
 78                                                    77 
 79         TP_ARGS(skb, rc, dev, skb_len),            78         TP_ARGS(skb, rc, dev, skb_len),
 80                                                    79 
 81         TP_STRUCT__entry(                          80         TP_STRUCT__entry(
 82                 __field(        void *,            81                 __field(        void *,         skbaddr         )
 83                 __field(        unsigned int,      82                 __field(        unsigned int,   len             )
 84                 __field(        int,               83                 __field(        int,            rc              )
 85                 __string(       name,              84                 __string(       name,           dev->name       )
 86         ),                                         85         ),
 87                                                    86 
 88         TP_fast_assign(                            87         TP_fast_assign(
 89                 __entry->skbaddr = skb;            88                 __entry->skbaddr = skb;
 90                 __entry->len = skb_len;            89                 __entry->len = skb_len;
 91                 __entry->rc = rc;                  90                 __entry->rc = rc;
 92                 __assign_str(name);            !!  91                 __assign_str(name, dev->name);
 93         ),                                         92         ),
 94                                                    93 
 95         TP_printk("dev=%s skbaddr=%p len=%u rc     94         TP_printk("dev=%s skbaddr=%p len=%u rc=%d",
 96                 __get_str(name), __entry->skba     95                 __get_str(name), __entry->skbaddr, __entry->len, __entry->rc)
 97 );                                                 96 );
 98                                                    97 
 99 TRACE_EVENT(net_dev_xmit_timeout,              << 
100                                                << 
101         TP_PROTO(struct net_device *dev,       << 
102                  int queue_index),             << 
103                                                << 
104         TP_ARGS(dev, queue_index),             << 
105                                                << 
106         TP_STRUCT__entry(                      << 
107                 __string(       name,          << 
108                 __string(       driver,        << 
109                 __field(        int,           << 
110         ),                                     << 
111                                                << 
112         TP_fast_assign(                        << 
113                 __assign_str(name);            << 
114                 __assign_str(driver);          << 
115                 __entry->queue_index = queue_i << 
116         ),                                     << 
117                                                << 
118         TP_printk("dev=%s driver=%s queue=%d", << 
119                 __get_str(name), __get_str(dri << 
120 );                                             << 
121                                                << 
122 DECLARE_EVENT_CLASS(net_dev_template,              98 DECLARE_EVENT_CLASS(net_dev_template,
123                                                    99 
124         TP_PROTO(struct sk_buff *skb),            100         TP_PROTO(struct sk_buff *skb),
125                                                   101 
126         TP_ARGS(skb),                             102         TP_ARGS(skb),
127                                                   103 
128         TP_STRUCT__entry(                         104         TP_STRUCT__entry(
129                 __field(        void *,           105                 __field(        void *,         skbaddr         )
130                 __field(        unsigned int,     106                 __field(        unsigned int,   len             )
131                 __string(       name,             107                 __string(       name,           skb->dev->name  )
132         ),                                        108         ),
133                                                   109 
134         TP_fast_assign(                           110         TP_fast_assign(
135                 __entry->skbaddr = skb;           111                 __entry->skbaddr = skb;
136                 __entry->len = skb->len;          112                 __entry->len = skb->len;
137                 __assign_str(name);            !! 113                 __assign_str(name, skb->dev->name);
138         ),                                        114         ),
139                                                   115 
140         TP_printk("dev=%s skbaddr=%p len=%u",     116         TP_printk("dev=%s skbaddr=%p len=%u",
141                 __get_str(name), __entry->skba    117                 __get_str(name), __entry->skbaddr, __entry->len)
142 )                                                 118 )
143                                                   119 
144 DEFINE_EVENT(net_dev_template, net_dev_queue,     120 DEFINE_EVENT(net_dev_template, net_dev_queue,
145                                                   121 
146         TP_PROTO(struct sk_buff *skb),            122         TP_PROTO(struct sk_buff *skb),
147                                                   123 
148         TP_ARGS(skb)                              124         TP_ARGS(skb)
149 );                                                125 );
150                                                   126 
151 DEFINE_EVENT(net_dev_template, netif_receive_s    127 DEFINE_EVENT(net_dev_template, netif_receive_skb,
152                                                   128 
153         TP_PROTO(struct sk_buff *skb),            129         TP_PROTO(struct sk_buff *skb),
154                                                   130 
155         TP_ARGS(skb)                              131         TP_ARGS(skb)
156 );                                                132 );
157                                                   133 
158 DEFINE_EVENT(net_dev_template, netif_rx,          134 DEFINE_EVENT(net_dev_template, netif_rx,
159                                                   135 
160         TP_PROTO(struct sk_buff *skb),            136         TP_PROTO(struct sk_buff *skb),
161                                                   137 
162         TP_ARGS(skb)                              138         TP_ARGS(skb)
163 );                                                139 );
164                                                   140 
165 DECLARE_EVENT_CLASS(net_dev_rx_verbose_templat    141 DECLARE_EVENT_CLASS(net_dev_rx_verbose_template,
166                                                   142 
167         TP_PROTO(const struct sk_buff *skb),      143         TP_PROTO(const struct sk_buff *skb),
168                                                   144 
169         TP_ARGS(skb),                             145         TP_ARGS(skb),
170                                                   146 
171         TP_STRUCT__entry(                         147         TP_STRUCT__entry(
172                 __string(       name,             148                 __string(       name,                   skb->dev->name  )
173                 __field(        unsigned int,     149                 __field(        unsigned int,           napi_id         )
174                 __field(        u16,              150                 __field(        u16,                    queue_mapping   )
175                 __field(        const void *,     151                 __field(        const void *,           skbaddr         )
176                 __field(        bool,             152                 __field(        bool,                   vlan_tagged     )
177                 __field(        u16,              153                 __field(        u16,                    vlan_proto      )
178                 __field(        u16,              154                 __field(        u16,                    vlan_tci        )
179                 __field(        u16,              155                 __field(        u16,                    protocol        )
180                 __field(        u8,               156                 __field(        u8,                     ip_summed       )
181                 __field(        u32,              157                 __field(        u32,                    hash            )
182                 __field(        bool,             158                 __field(        bool,                   l4_hash         )
183                 __field(        unsigned int,     159                 __field(        unsigned int,           len             )
184                 __field(        unsigned int,     160                 __field(        unsigned int,           data_len        )
185                 __field(        unsigned int,     161                 __field(        unsigned int,           truesize        )
186                 __field(        bool,             162                 __field(        bool,                   mac_header_valid)
187                 __field(        int,              163                 __field(        int,                    mac_header      )
188                 __field(        unsigned char,    164                 __field(        unsigned char,          nr_frags        )
189                 __field(        u16,              165                 __field(        u16,                    gso_size        )
190                 __field(        u16,              166                 __field(        u16,                    gso_type        )
191         ),                                        167         ),
192                                                   168 
193         TP_fast_assign(                           169         TP_fast_assign(
194                 __assign_str(name);            !! 170                 __assign_str(name, skb->dev->name);
195 #ifdef CONFIG_NET_RX_BUSY_POLL                    171 #ifdef CONFIG_NET_RX_BUSY_POLL
196                 __entry->napi_id = skb->napi_i    172                 __entry->napi_id = skb->napi_id;
197 #else                                             173 #else
198                 __entry->napi_id = 0;             174                 __entry->napi_id = 0;
199 #endif                                            175 #endif
200                 __entry->queue_mapping = skb->    176                 __entry->queue_mapping = skb->queue_mapping;
201                 __entry->skbaddr = skb;           177                 __entry->skbaddr = skb;
202                 __entry->vlan_tagged = skb_vla    178                 __entry->vlan_tagged = skb_vlan_tag_present(skb);
203                 __entry->vlan_proto = ntohs(sk    179                 __entry->vlan_proto = ntohs(skb->vlan_proto);
204                 __entry->vlan_tci = skb_vlan_t    180                 __entry->vlan_tci = skb_vlan_tag_get(skb);
205                 __entry->protocol = ntohs(skb-    181                 __entry->protocol = ntohs(skb->protocol);
206                 __entry->ip_summed = skb->ip_s    182                 __entry->ip_summed = skb->ip_summed;
207                 __entry->hash = skb->hash;        183                 __entry->hash = skb->hash;
208                 __entry->l4_hash = skb->l4_has    184                 __entry->l4_hash = skb->l4_hash;
209                 __entry->len = skb->len;          185                 __entry->len = skb->len;
210                 __entry->data_len = skb->data_    186                 __entry->data_len = skb->data_len;
211                 __entry->truesize = skb->trues    187                 __entry->truesize = skb->truesize;
212                 __entry->mac_header_valid = sk    188                 __entry->mac_header_valid = skb_mac_header_was_set(skb);
213                 __entry->mac_header = skb_mac_    189                 __entry->mac_header = skb_mac_header(skb) - skb->data;
214                 __entry->nr_frags = skb_shinfo    190                 __entry->nr_frags = skb_shinfo(skb)->nr_frags;
215                 __entry->gso_size = skb_shinfo    191                 __entry->gso_size = skb_shinfo(skb)->gso_size;
216                 __entry->gso_type = skb_shinfo    192                 __entry->gso_type = skb_shinfo(skb)->gso_type;
217         ),                                        193         ),
218                                                   194 
219         TP_printk("dev=%s napi_id=%#x queue_ma    195         TP_printk("dev=%s napi_id=%#x queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u mac_header_valid=%d mac_header=%d nr_frags=%d gso_size=%d gso_type=%#x",
220                   __get_str(name), __entry->na    196                   __get_str(name), __entry->napi_id, __entry->queue_mapping,
221                   __entry->skbaddr, __entry->v    197                   __entry->skbaddr, __entry->vlan_tagged, __entry->vlan_proto,
222                   __entry->vlan_tci, __entry->    198                   __entry->vlan_tci, __entry->protocol, __entry->ip_summed,
223                   __entry->hash, __entry->l4_h    199                   __entry->hash, __entry->l4_hash, __entry->len,
224                   __entry->data_len, __entry->    200                   __entry->data_len, __entry->truesize,
225                   __entry->mac_header_valid, _    201                   __entry->mac_header_valid, __entry->mac_header,
226                   __entry->nr_frags, __entry->    202                   __entry->nr_frags, __entry->gso_size, __entry->gso_type)
227 );                                                203 );
228                                                   204 
229 DEFINE_EVENT(net_dev_rx_verbose_template, napi    205 DEFINE_EVENT(net_dev_rx_verbose_template, napi_gro_frags_entry,
230                                                   206 
231         TP_PROTO(const struct sk_buff *skb),      207         TP_PROTO(const struct sk_buff *skb),
232                                                   208 
233         TP_ARGS(skb)                              209         TP_ARGS(skb)
234 );                                                210 );
235                                                   211 
236 DEFINE_EVENT(net_dev_rx_verbose_template, napi    212 DEFINE_EVENT(net_dev_rx_verbose_template, napi_gro_receive_entry,
237                                                   213 
238         TP_PROTO(const struct sk_buff *skb),      214         TP_PROTO(const struct sk_buff *skb),
239                                                   215 
240         TP_ARGS(skb)                              216         TP_ARGS(skb)
241 );                                                217 );
242                                                   218 
243 DEFINE_EVENT(net_dev_rx_verbose_template, neti    219 DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_entry,
244                                                   220 
245         TP_PROTO(const struct sk_buff *skb),      221         TP_PROTO(const struct sk_buff *skb),
246                                                   222 
247         TP_ARGS(skb)                              223         TP_ARGS(skb)
248 );                                                224 );
249                                                   225 
250 DEFINE_EVENT(net_dev_rx_verbose_template, neti !! 226 DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_entry,
251                                                   227 
252         TP_PROTO(const struct sk_buff *skb),      228         TP_PROTO(const struct sk_buff *skb),
253                                                   229 
254         TP_ARGS(skb)                              230         TP_ARGS(skb)
255 );                                                231 );
256                                                   232 
257 DEFINE_EVENT(net_dev_rx_verbose_template, neti !! 233 DEFINE_EVENT(net_dev_rx_verbose_template, netif_rx_ni_entry,
258                                                   234 
259         TP_PROTO(const struct sk_buff *skb),      235         TP_PROTO(const struct sk_buff *skb),
260                                                   236 
261         TP_ARGS(skb)                              237         TP_ARGS(skb)
262 );                                             << 
263                                                << 
264 DECLARE_EVENT_CLASS(net_dev_rx_exit_template,  << 
265                                                << 
266         TP_PROTO(int ret),                     << 
267                                                << 
268         TP_ARGS(ret),                          << 
269                                                << 
270         TP_STRUCT__entry(                      << 
271                 __field(int,    ret)           << 
272         ),                                     << 
273                                                << 
274         TP_fast_assign(                        << 
275                 __entry->ret = ret;            << 
276         ),                                     << 
277                                                << 
278         TP_printk("ret=%d", __entry->ret)      << 
279 );                                             << 
280                                                << 
281 DEFINE_EVENT(net_dev_rx_exit_template, napi_gr << 
282                                                << 
283         TP_PROTO(int ret),                     << 
284                                                << 
285         TP_ARGS(ret)                           << 
286 );                                             << 
287                                                << 
288 DEFINE_EVENT(net_dev_rx_exit_template, napi_gr << 
289                                                << 
290         TP_PROTO(int ret),                     << 
291                                                << 
292         TP_ARGS(ret)                           << 
293 );                                             << 
294                                                << 
295 DEFINE_EVENT(net_dev_rx_exit_template, netif_r << 
296                                                << 
297         TP_PROTO(int ret),                     << 
298                                                << 
299         TP_ARGS(ret)                           << 
300 );                                             << 
301                                                << 
302 DEFINE_EVENT(net_dev_rx_exit_template, netif_r << 
303                                                << 
304         TP_PROTO(int ret),                     << 
305                                                << 
306         TP_ARGS(ret)                           << 
307 );                                             << 
308                                                << 
309 DEFINE_EVENT(net_dev_rx_exit_template, netif_r << 
310                                                << 
311         TP_PROTO(int ret),                     << 
312                                                << 
313         TP_ARGS(ret)                           << 
314 );                                                238 );
315                                                   239 
316 #endif /* _TRACE_NET_H */                         240 #endif /* _TRACE_NET_H */
317                                                   241 
318 /* This part must be outside protection */        242 /* This part must be outside protection */
319 #include <trace/define_trace.h>                   243 #include <trace/define_trace.h>
320                                                   244 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php