1*17d3f386SJiri Olsa // SPDX-License-Identifier: GPL-2.0 2*17d3f386SJiri Olsa // Copyright (c) 2019 Facebook 3*17d3f386SJiri Olsa #include <linux/bpf.h> 4*17d3f386SJiri Olsa #include <stdbool.h> 5*17d3f386SJiri Olsa #include <bpf/bpf_helpers.h> 6*17d3f386SJiri Olsa #include <bpf/bpf_endian.h> 7*17d3f386SJiri Olsa #include <bpf/bpf_tracing.h> 8*17d3f386SJiri Olsa 9*17d3f386SJiri Olsa __u64 ext_called = 0; 10*17d3f386SJiri Olsa 11*17d3f386SJiri Olsa SEC("freplace/test_pkt_md_access") test_pkt_md_access_new(struct __sk_buff * skb)12*17d3f386SJiri Olsaint test_pkt_md_access_new(struct __sk_buff *skb) 13*17d3f386SJiri Olsa { 14*17d3f386SJiri Olsa ext_called = skb->len; 15*17d3f386SJiri Olsa return 0; 16*17d3f386SJiri Olsa } 17*17d3f386SJiri Olsa 18*17d3f386SJiri Olsa char _license[] SEC("license") = "GPL"; 19