File Index
Files and directories
Sign in
FILE

bad_struct_ops2.c

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/bpf/progs/bad_struct_ops2.c C
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include <linux/bpf.h>
 4#include <bpf/bpf_helpers.h>
 5
 6char _license[] SEC("license") = "GPL";
 7
 8/* This is an unused struct_ops program, it lacks corresponding
 9 * struct_ops map, which provides attachment information.
10 * W/o additional configuration attempt to load such
11 * BPF object file would fail.
12 */
13SEC("struct_ops/foo")
14void foo(void) {}
~/ Read-only file preview.