github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/invalid_btf_map_init.c (about) 1 /* This file excercises the ELF loader. It is not a valid BPF program. */ 2 3 #include "common.h" 4 5 struct { 6 __uint(type, BPF_MAP_TYPE_HASH); 7 __type(key, uint32_t); 8 __type(value, uint64_t); 9 __uint(max_entries, 1); 10 } hash_map __section(".maps") = { 11 /* This forces a non-zero byte into the .maps section. */ 12 .key = (void *)1, 13 };