File: btf_types_string.go

package info (click to toggle)
golang-github-cilium-ebpf 0.17.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,684 kB
  • sloc: ansic: 1,259; makefile: 127; python: 113; awk: 29; sh: 24
file content (80 lines) | stat: -rw-r--r-- 2,392 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Code generated by "stringer -linecomment -output=btf_types_string.go -type=FuncLinkage,VarLinkage,btfKind"; DO NOT EDIT.

package btf

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[StaticFunc-0]
	_ = x[GlobalFunc-1]
	_ = x[ExternFunc-2]
}

const _FuncLinkage_name = "staticglobalextern"

var _FuncLinkage_index = [...]uint8{0, 6, 12, 18}

func (i FuncLinkage) String() string {
	if i < 0 || i >= FuncLinkage(len(_FuncLinkage_index)-1) {
		return "FuncLinkage(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _FuncLinkage_name[_FuncLinkage_index[i]:_FuncLinkage_index[i+1]]
}
func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[StaticVar-0]
	_ = x[GlobalVar-1]
	_ = x[ExternVar-2]
}

const _VarLinkage_name = "staticglobalextern"

var _VarLinkage_index = [...]uint8{0, 6, 12, 18}

func (i VarLinkage) String() string {
	if i < 0 || i >= VarLinkage(len(_VarLinkage_index)-1) {
		return "VarLinkage(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _VarLinkage_name[_VarLinkage_index[i]:_VarLinkage_index[i+1]]
}
func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[kindUnknown-0]
	_ = x[kindInt-1]
	_ = x[kindPointer-2]
	_ = x[kindArray-3]
	_ = x[kindStruct-4]
	_ = x[kindUnion-5]
	_ = x[kindEnum-6]
	_ = x[kindForward-7]
	_ = x[kindTypedef-8]
	_ = x[kindVolatile-9]
	_ = x[kindConst-10]
	_ = x[kindRestrict-11]
	_ = x[kindFunc-12]
	_ = x[kindFuncProto-13]
	_ = x[kindVar-14]
	_ = x[kindDatasec-15]
	_ = x[kindFloat-16]
	_ = x[kindDeclTag-17]
	_ = x[kindTypeTag-18]
	_ = x[kindEnum64-19]
}

const _btfKind_name = "UnknownIntPointerArrayStructUnionEnumForwardTypedefVolatileConstRestrictFuncFuncProtoVarDatasecFloatDeclTagTypeTagEnum64"

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}

func (i btfKind) String() string {
	if i >= btfKind(len(_btfKind_index)-1) {
		return "btfKind(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _btfKind_name[_btfKind_index[i]:_btfKind_index[i+1]]
}