...

Text file src/github.com/cilium/ebpf/testdata/invalid_map.c

Documentation: github.com/cilium/ebpf/testdata

     1/* This file excercises the ELF loader. It is not a valid BPF program.
     2 */
     3
     4#include "common.h"
     5
     6char __license[] __section("license") = "MIT";
     7
     8struct {
     9	struct bpf_map_def def;
    10	uint32_t dummy;
    11} invalid_map __section("maps") = {
    12	.def =
    13		{
    14			.type        = BPF_MAP_TYPE_HASH,
    15			.key_size    = 4,
    16			.value_size  = 2,
    17			.max_entries = 1,
    18		},
    19	.dummy = 1,
    20};

View as plain text