File: elf_unsupported.go

package info (click to toggle)
golang-github-iovisor-gobpf 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 732 kB
  • sloc: ansic: 2,716; makefile: 17; sh: 7
file content (36 lines) | stat: -rw-r--r-- 657 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
// +build !linux

package elf

// not supported; dummy struct
type BPFKProbePerf struct{}
type SectionParams struct{}
type Map struct{}

func (b *Module) Load(parameters map[string]SectionParams) error {
	return errNotSupported
}

func NewBpfPerfEvent(fileName string) *BPFKProbePerf {
	// not supported
	return nil
}

func (b *BPFKProbePerf) Load() error {
	return errNotSupported
}

func (b *BPFKProbePerf) PollStart(mapName string, receiverChan chan []byte, lostChan chan uint64) {
	// not supported
	return
}

func (b *BPFKProbePerf) PollStop(mapName string) {
	// not supported
	return
}

func (m *Map) Fd() int {
        // not supported
	return -1
}