github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/internal/sys/mapflags_string.go (about) 1 // Code generated by "stringer -type MapFlags"; DO NOT EDIT. 2 3 package sys 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[BPF_F_NO_PREALLOC-1] 12 _ = x[BPF_F_NO_COMMON_LRU-2] 13 _ = x[BPF_F_NUMA_NODE-4] 14 _ = x[BPF_F_RDONLY-8] 15 _ = x[BPF_F_WRONLY-16] 16 _ = x[BPF_F_STACK_BUILD_ID-32] 17 _ = x[BPF_F_ZERO_SEED-64] 18 _ = x[BPF_F_RDONLY_PROG-128] 19 _ = x[BPF_F_WRONLY_PROG-256] 20 _ = x[BPF_F_CLONE-512] 21 _ = x[BPF_F_MMAPABLE-1024] 22 _ = x[BPF_F_PRESERVE_ELEMS-2048] 23 _ = x[BPF_F_INNER_MAP-4096] 24 _ = x[BPF_F_LINK-8192] 25 _ = x[BPF_F_PATH_FD-16384] 26 } 27 28 const _MapFlags_name = "BPF_F_NO_PREALLOCBPF_F_NO_COMMON_LRUBPF_F_NUMA_NODEBPF_F_RDONLYBPF_F_WRONLYBPF_F_STACK_BUILD_IDBPF_F_ZERO_SEEDBPF_F_RDONLY_PROGBPF_F_WRONLY_PROGBPF_F_CLONEBPF_F_MMAPABLEBPF_F_PRESERVE_ELEMSBPF_F_INNER_MAPBPF_F_LINKBPF_F_PATH_FD" 29 30 var _MapFlags_map = map[MapFlags]string{ 31 1: _MapFlags_name[0:17], 32 2: _MapFlags_name[17:36], 33 4: _MapFlags_name[36:51], 34 8: _MapFlags_name[51:63], 35 16: _MapFlags_name[63:75], 36 32: _MapFlags_name[75:95], 37 64: _MapFlags_name[95:110], 38 128: _MapFlags_name[110:127], 39 256: _MapFlags_name[127:144], 40 512: _MapFlags_name[144:155], 41 1024: _MapFlags_name[155:169], 42 2048: _MapFlags_name[169:189], 43 4096: _MapFlags_name[189:204], 44 8192: _MapFlags_name[204:214], 45 16384: _MapFlags_name[214:227], 46 } 47 48 func (i MapFlags) String() string { 49 if str, ok := _MapFlags_map[i]; ok { 50 return str 51 } 52 return "MapFlags(" + strconv.FormatInt(int64(i), 10) + ")" 53 }