File: probetype_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 (24 lines) | stat: -rw-r--r-- 629 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
// Code generated by "stringer -type=ProbeType -linecomment"; DO NOT EDIT.

package tracefs

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[Kprobe-0]
	_ = x[Uprobe-1]
}

const _ProbeType_name = "kprobeuprobe"

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

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