cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCPUAffinityCommand

func NewCPUAffinityCommand(knitOpts *KnitOptions) *cobra.Command

func NewIRQAffinityCommand

func NewIRQAffinityCommand(knitOpts *KnitOptions) *cobra.Command

func NewIRQWatchCommand

func NewIRQWatchCommand(knitOpts *KnitOptions) *cobra.Command

func NewRootCommand

func NewRootCommand(extraCmds ...NewCommandFunc) *cobra.Command

NewRootCommand returns entrypoint command to interact with all other commands

func NewWaitCommand

func NewWaitCommand(_ *KnitOptions) *cobra.Command

func ShowHelp

func ShowHelp(cmd *cobra.Command, args []string) error

Types

type IRQReporter

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

func NewIRQReporter

func NewIRQReporter(jsonOutput bool, verbose int, cpus cpuset.CPUSet) IRQReporter

type KnitOptions

type KnitOptions struct {
	Cpus       cpuset.CPUSet
	ProcFSRoot string
	SysFSRoot  string
	JsonOutput bool
	Debug      bool
	Log        *log.Logger
	// contains filtered or unexported fields
}

type NewCommandFunc

type NewCommandFunc func(ko *KnitOptions) *cobra.Command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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