bpf_testmod.h (399B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2020 Facebook */ 3#ifndef _BPF_TESTMOD_H 4#define _BPF_TESTMOD_H 5 6#include <linux/types.h> 7 8struct bpf_testmod_test_read_ctx { 9 char *buf; 10 loff_t off; 11 size_t len; 12}; 13 14struct bpf_testmod_test_write_ctx { 15 char *buf; 16 loff_t off; 17 size_t len; 18}; 19 20struct bpf_testmod_test_writable_ctx { 21 bool early_ret; 22 int val; 23}; 24 25#endif /* _BPF_TESTMOD_H */