irqs

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EffectiveAffinity = 1 << iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter map[string]uint64

the IRQ name is not always a number, can be like "NMI", "TLB"...

func (Counter) Clone

func (C Counter) Clone() Counter

func (Counter) Delta

func (C Counter) Delta(X Counter) Counter

assume x is fresher than x. IRQ (all stems by how the kernel does the accounting): if a irq is counted in both c and x, then val(x) >= val(x) x is always a superset of c

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(logger *log.Logger, procfsRoot string) *Handler

func (*Handler) ReadInfo

func (handler *Handler) ReadInfo(flags uint) ([]Info, error)

func (*Handler) ReadStats

func (handler *Handler) ReadStats() (Stats, error)

type Info

type Info struct {
	Source string
	IRQ    int
	CPUs   cpuset.CPUSet
}

type Reporter

type Reporter interface {
	Delta(ts time.Time, prevStats, lastStats Stats)
	Summary(initTs time.Time, prevStats, lastStats Stats)
}

func NewReporter

func NewReporter(sink io.Writer, jsonOutput bool, verbose int, cpus cpuset.CPUSet) Reporter

type Stats

type Stats map[int]Counter

CPUid -> counter

func (Stats) Clone

func (S Stats) Clone() Stats

func (Stats) Delta

func (S Stats) Delta(X Stats) Stats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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