File: perf_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 (19 lines) | stat: -rw-r--r-- 382 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
// +build !linux

package elf

type PerfMap struct{}

func InitPerfMap(b *Module, mapName string, receiverChan chan []byte, lostChan chan uint64) (*PerfMap, error) {
	return nil, errNotSupported
}

func (pm *PerfMap) SetTimestampFunc(timestamp func(*[]byte) uint64) {}

func (pm *PerfMap) PollStart() {}

func (pm *PerfMap) PollStop() {}

func NowNanoseconds() uint64 {
	return 0
}