util

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUGFS = "/sys/kernel/debug/tracing"
View Source
const KPROBELIST = "/sys/kernel/debug/kprobes/blacklist"
View Source
const TRACEFS = "/sys/kernel/tracing"

Variables

This section is empty.

Functions

func CpuGet

func CpuGet() ([]uint, error)

Get returns a slice with the online CPUs, for example `[0, 2, 3]`

func KprobeExists

func KprobeExists(name string) bool

func PrintStack

func PrintStack()

func PrintStructFields

func PrintStructFields(s interface{})

func TracePointExists

func TracePointExists(category string, event string) bool

Types

type AggregationType

type AggregationType string
const (
	AverageAggregationType AggregationType = "average"
	SumAggregationType     AggregationType = "sum"
)

func (AggregationType) String

func (a AggregationType) String() string

type Metadata

type Metadata struct {
	SpyName         string
	SampleRate      uint32
	Units           Units
	AggregationType AggregationType
}

type Units

type Units string
const (
	SamplesUnits         Units = "samples"
	ObjectsUnits         Units = "objects"
	GoroutinesUnits      Units = "goroutines"
	BytesUnits           Units = "bytes"
	LockNanosecondsUnits Units = "lock_nanoseconds"
	LockSamplesUnits     Units = "lock_samples"
)

func (Units) String

func (u Units) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL