Bae Soukjin | 2cff74e | 2020-08-19 08:30:51 +0900 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | #undef TRACE_SYSTEM |
| 4 | #define TRACE_SYSTEM net |
| 5 | #define TRACE_INCLUDE_PATH trace/hooks |
| 6 | |
| 7 | #if !defined(_TRACE_HOOK_NET_VH_H) || defined(TRACE_HEADER_MULTI_READ) |
| 8 | #define _TRACE_HOOK_NET_VH_H |
| 9 | #include <linux/tracepoint.h> |
| 10 | #include <trace/hooks/vendor_hooks.h> |
| 11 | |
| 12 | struct packet_type; |
| 13 | struct list_head; |
| 14 | struct sk_buff; |
| 15 | DECLARE_HOOK(android_vh_ptype_head, |
| 16 | TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt), |
| 17 | TP_ARGS(pt, vendor_pt)); |
| 18 | DECLARE_HOOK(android_vh_kfree_skb, |
| 19 | TP_PROTO(struct sk_buff *skb), TP_ARGS(skb)); |
| 20 | |
Greg Kroah-Hartman | d8fe0b1 | 2021-10-20 16:56:32 +0200 | [diff] [blame] | 21 | struct nf_conn; /* needed for CRC preservation */ |
Greg Kroah-Hartman | 92ab2ae | 2021-10-20 16:06:41 +0200 | [diff] [blame] | 22 | struct sock; /* needed for CRC preservation */ |
Vignesh Saravanaperumal | 4d30956 | 2021-07-08 12:00:53 -0700 | [diff] [blame] | 23 | |
Bae Soukjin | 2cff74e | 2020-08-19 08:30:51 +0900 | [diff] [blame] | 24 | /* macro versions of hooks are no longer required */ |
| 25 | |
| 26 | #endif /* _TRACE_HOOK_NET_VH_H */ |
| 27 | /* This part must be outside protection */ |
| 28 | #include <trace/define_trace.h> |