blob: acb2fd2c7e07d1cbe021e2b28338b75bb70eb94a [file] [log] [blame]
Bae Soukjin2cff74e2020-08-19 08:30:51 +09001/* 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
12struct packet_type;
13struct list_head;
14struct sk_buff;
15DECLARE_HOOK(android_vh_ptype_head,
16 TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt),
17 TP_ARGS(pt, vendor_pt));
18DECLARE_HOOK(android_vh_kfree_skb,
19 TP_PROTO(struct sk_buff *skb), TP_ARGS(skb));
20
Greg Kroah-Hartmand8fe0b12021-10-20 16:56:32 +020021struct nf_conn; /* needed for CRC preservation */
Greg Kroah-Hartman92ab2ae2021-10-20 16:06:41 +020022struct sock; /* needed for CRC preservation */
Vignesh Saravanaperumal4d309562021-07-08 12:00:53 -070023
Bae Soukjin2cff74e2020-08-19 08:30:51 +090024/* 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>