github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/btf/btf_types_string.go (about) 1 // Code generated by "stringer -linecomment -output=btf_types_string.go -type=FuncLinkage,VarLinkage,btfKind"; DO NOT EDIT. 2 3 package btf 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[StaticFunc-0] 12 _ = x[GlobalFunc-1] 13 _ = x[ExternFunc-2] 14 } 15 16 const _FuncLinkage_name = "staticglobalextern" 17 18 var _FuncLinkage_index = [...]uint8{0, 6, 12, 18} 19 20 func (i FuncLinkage) String() string { 21 if i < 0 || i >= FuncLinkage(len(_FuncLinkage_index)-1) { 22 return "FuncLinkage(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _FuncLinkage_name[_FuncLinkage_index[i]:_FuncLinkage_index[i+1]] 25 } 26 func _() { 27 // An "invalid array index" compiler error signifies that the constant values have changed. 28 // Re-run the stringer command to generate them again. 29 var x [1]struct{} 30 _ = x[StaticVar-0] 31 _ = x[GlobalVar-1] 32 _ = x[ExternVar-2] 33 } 34 35 const _VarLinkage_name = "staticglobalextern" 36 37 var _VarLinkage_index = [...]uint8{0, 6, 12, 18} 38 39 func (i VarLinkage) String() string { 40 if i < 0 || i >= VarLinkage(len(_VarLinkage_index)-1) { 41 return "VarLinkage(" + strconv.FormatInt(int64(i), 10) + ")" 42 } 43 return _VarLinkage_name[_VarLinkage_index[i]:_VarLinkage_index[i+1]] 44 } 45 func _() { 46 // An "invalid array index" compiler error signifies that the constant values have changed. 47 // Re-run the stringer command to generate them again. 48 var x [1]struct{} 49 _ = x[kindUnknown-0] 50 _ = x[kindInt-1] 51 _ = x[kindPointer-2] 52 _ = x[kindArray-3] 53 _ = x[kindStruct-4] 54 _ = x[kindUnion-5] 55 _ = x[kindEnum-6] 56 _ = x[kindForward-7] 57 _ = x[kindTypedef-8] 58 _ = x[kindVolatile-9] 59 _ = x[kindConst-10] 60 _ = x[kindRestrict-11] 61 _ = x[kindFunc-12] 62 _ = x[kindFuncProto-13] 63 _ = x[kindVar-14] 64 _ = x[kindDatasec-15] 65 _ = x[kindFloat-16] 66 _ = x[kindDeclTag-17] 67 _ = x[kindTypeTag-18] 68 _ = x[kindEnum64-19] 69 } 70 71 const _btfKind_name = "UnknownIntPointerArrayStructUnionEnumForwardTypedefVolatileConstRestrictFuncFuncProtoVarDatasecFloatDeclTagTypeTagEnum64" 72 73 var _btfKind_index = [...]uint8{0, 7, 10, 17, 22, 28, 33, 37, 44, 51, 59, 64, 72, 76, 85, 88, 95, 100, 107, 114, 120} 74 75 func (i btfKind) String() string { 76 if i >= btfKind(len(_btfKind_index)-1) { 77 return "btfKind(" + strconv.FormatInt(int64(i), 10) + ")" 78 } 79 return _btfKind_name[_btfKind_index[i]:_btfKind_index[i+1]] 80 }