mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
23 lines
345 B
C
23 lines
345 B
C
![]() |
// SPDX-License-Identifier: GPL-2.0-only
|
||
|
/* Copyright (c) 2025 Meta Platforms Inc. */
|
||
|
|
||
|
#include <linux/bpf.h>
|
||
|
#include <bpf/bpf_helpers.h>
|
||
|
#include "bpf_misc.h"
|
||
|
|
||
|
char _license[] SEC("license") = "GPL";
|
||
|
|
||
|
__noinline static void f0(void)
|
||
|
{
|
||
|
__u64 a = 1;
|
||
|
|
||
|
__sink(a);
|
||
|
}
|
||
|
|
||
|
SEC("xdp")
|
||
|
__u64 global_func(struct xdp_md *xdp)
|
||
|
{
|
||
|
f0();
|
||
|
return XDP_DROP;
|
||
|
}
|