Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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