]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - tools/testing/selftests/bpf/progs/loop2.c
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2019 Facebook
3 #include <linux/sched.h>
4 #include <linux/ptrace.h>
9 #include "bpf_helpers.h"
11 char _license
[] SEC("license") = "GPL";
13 SEC("raw_tracepoint/consume_skb")
14 int while_true(volatile struct pt_regs
* ctx
)
19 if (PT_REGS_RC(ctx
) & 1)