| .. | .. |
|---|
| 95 | 95 | __get_str(name), __entry->skbaddr, __entry->len, __entry->rc) |
|---|
| 96 | 96 | ); |
|---|
| 97 | 97 | |
|---|
| 98 | +TRACE_EVENT(net_dev_xmit_timeout, |
|---|
| 99 | + |
|---|
| 100 | + TP_PROTO(struct net_device *dev, |
|---|
| 101 | + int queue_index), |
|---|
| 102 | + |
|---|
| 103 | + TP_ARGS(dev, queue_index), |
|---|
| 104 | + |
|---|
| 105 | + TP_STRUCT__entry( |
|---|
| 106 | + __string( name, dev->name ) |
|---|
| 107 | + __string( driver, netdev_drivername(dev)) |
|---|
| 108 | + __field( int, queue_index ) |
|---|
| 109 | + ), |
|---|
| 110 | + |
|---|
| 111 | + TP_fast_assign( |
|---|
| 112 | + __assign_str(name, dev->name); |
|---|
| 113 | + __assign_str(driver, netdev_drivername(dev)); |
|---|
| 114 | + __entry->queue_index = queue_index; |
|---|
| 115 | + ), |
|---|
| 116 | + |
|---|
| 117 | + TP_printk("dev=%s driver=%s queue=%d", |
|---|
| 118 | + __get_str(name), __get_str(driver), __entry->queue_index) |
|---|
| 119 | +); |
|---|
| 120 | + |
|---|
| 98 | 121 | DECLARE_EVENT_CLASS(net_dev_template, |
|---|
| 99 | 122 | |
|---|
| 100 | 123 | TP_PROTO(struct sk_buff *skb), |
|---|
| .. | .. |
|---|
| 244 | 267 | TP_ARGS(skb) |
|---|
| 245 | 268 | ); |
|---|
| 246 | 269 | |
|---|
| 270 | +DECLARE_EVENT_CLASS(net_dev_rx_exit_template, |
|---|
| 271 | + |
|---|
| 272 | + TP_PROTO(int ret), |
|---|
| 273 | + |
|---|
| 274 | + TP_ARGS(ret), |
|---|
| 275 | + |
|---|
| 276 | + TP_STRUCT__entry( |
|---|
| 277 | + __field(int, ret) |
|---|
| 278 | + ), |
|---|
| 279 | + |
|---|
| 280 | + TP_fast_assign( |
|---|
| 281 | + __entry->ret = ret; |
|---|
| 282 | + ), |
|---|
| 283 | + |
|---|
| 284 | + TP_printk("ret=%d", __entry->ret) |
|---|
| 285 | +); |
|---|
| 286 | + |
|---|
| 287 | +DEFINE_EVENT(net_dev_rx_exit_template, napi_gro_frags_exit, |
|---|
| 288 | + |
|---|
| 289 | + TP_PROTO(int ret), |
|---|
| 290 | + |
|---|
| 291 | + TP_ARGS(ret) |
|---|
| 292 | +); |
|---|
| 293 | + |
|---|
| 294 | +DEFINE_EVENT(net_dev_rx_exit_template, napi_gro_receive_exit, |
|---|
| 295 | + |
|---|
| 296 | + TP_PROTO(int ret), |
|---|
| 297 | + |
|---|
| 298 | + TP_ARGS(ret) |
|---|
| 299 | +); |
|---|
| 300 | + |
|---|
| 301 | +DEFINE_EVENT(net_dev_rx_exit_template, netif_receive_skb_exit, |
|---|
| 302 | + |
|---|
| 303 | + TP_PROTO(int ret), |
|---|
| 304 | + |
|---|
| 305 | + TP_ARGS(ret) |
|---|
| 306 | +); |
|---|
| 307 | + |
|---|
| 308 | +DEFINE_EVENT(net_dev_rx_exit_template, netif_rx_exit, |
|---|
| 309 | + |
|---|
| 310 | + TP_PROTO(int ret), |
|---|
| 311 | + |
|---|
| 312 | + TP_ARGS(ret) |
|---|
| 313 | +); |
|---|
| 314 | + |
|---|
| 315 | +DEFINE_EVENT(net_dev_rx_exit_template, netif_rx_ni_exit, |
|---|
| 316 | + |
|---|
| 317 | + TP_PROTO(int ret), |
|---|
| 318 | + |
|---|
| 319 | + TP_ARGS(ret) |
|---|
| 320 | +); |
|---|
| 321 | + |
|---|
| 322 | +DEFINE_EVENT(net_dev_rx_exit_template, netif_receive_skb_list_exit, |
|---|
| 323 | + |
|---|
| 324 | + TP_PROTO(int ret), |
|---|
| 325 | + |
|---|
| 326 | + TP_ARGS(ret) |
|---|
| 327 | +); |
|---|
| 328 | + |
|---|
| 247 | 329 | #endif /* _TRACE_NET_H */ |
|---|
| 248 | 330 | |
|---|
| 249 | 331 | /* This part must be outside protection */ |
|---|