github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/invalid_map.c (about)

     1  /* This file excercises the ELF loader. It is not a valid BPF program.
     2   */
     3  
     4  #include "common.h"
     5  
     6  char __license[] __section("license") = "MIT";
     7  
     8  struct {
     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  };