xref: /openbmc/linux/net/core/net-traces.c (revision 2a598d0b)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * consolidates trace point definitions
4  *
5  * Copyright (C) 2009 Neil Horman <nhorman@tuxdriver.com>
6  */
7 
8 #include <linux/netdevice.h>
9 #include <linux/etherdevice.h>
10 #include <linux/string.h>
11 #include <linux/if_arp.h>
12 #include <linux/inetdevice.h>
13 #include <linux/inet.h>
14 #include <linux/interrupt.h>
15 #include <linux/export.h>
16 #include <linux/netpoll.h>
17 #include <linux/sched.h>
18 #include <linux/delay.h>
19 #include <linux/rcupdate.h>
20 #include <linux/types.h>
21 #include <linux/workqueue.h>
22 #include <linux/netlink.h>
23 #include <linux/net_dropmon.h>
24 #include <linux/slab.h>
25 
26 #include <asm/unaligned.h>
27 #include <asm/bitops.h>
28 
29 #define CREATE_TRACE_POINTS
30 #include <trace/events/skb.h>
31 #include <trace/events/net.h>
32 #include <trace/events/napi.h>
33 #include <trace/events/sock.h>
34 #include <trace/events/udp.h>
35 #include <trace/events/tcp.h>
36 #include <trace/events/fib.h>
37 #include <trace/events/qdisc.h>
38 #if IS_ENABLED(CONFIG_BRIDGE)
39 #include <trace/events/bridge.h>
40 EXPORT_TRACEPOINT_SYMBOL_GPL(br_fdb_add);
41 EXPORT_TRACEPOINT_SYMBOL_GPL(br_fdb_external_learn_add);
42 EXPORT_TRACEPOINT_SYMBOL_GPL(fdb_delete);
43 EXPORT_TRACEPOINT_SYMBOL_GPL(br_fdb_update);
44 EXPORT_TRACEPOINT_SYMBOL_GPL(br_mdb_full);
45 #endif
46 
47 #if IS_ENABLED(CONFIG_PAGE_POOL)
48 #include <trace/events/page_pool.h>
49 #endif
50 
51 #include <trace/events/neigh.h>
52 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_update);
53 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_update_done);
54 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_timer_handler);
55 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_event_send_done);
56 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_event_send_dead);
57 EXPORT_TRACEPOINT_SYMBOL_GPL(neigh_cleanup_and_release);
58 
59 EXPORT_TRACEPOINT_SYMBOL_GPL(kfree_skb);
60 
61 EXPORT_TRACEPOINT_SYMBOL_GPL(napi_poll);
62 
63 EXPORT_TRACEPOINT_SYMBOL_GPL(tcp_send_reset);
64 EXPORT_TRACEPOINT_SYMBOL_GPL(tcp_bad_csum);
65 
66 EXPORT_TRACEPOINT_SYMBOL_GPL(sk_data_ready);
67