halter

package
v0.0.0-...-653efa9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InodeFlushInodesEntry
	InodeFlushInodesExit
)

Variables

View Source
var (
	HaltLabelStrings = []string{
		"halter.testHaltLabel1",
		"halter.testHaltLabel2",
		"inode.flushInodes_Entry",
		"inode.flushInodes_Exit",
	}
)

Functions

func Arm

func Arm(haltLabelString string, haltAfterCount uint32)

Arm sets up a HALT on the haltAfterCount'd call to Trigger()

func Disarm

func Disarm(haltLabelString string)

Disarm removes a previously armed trigger via a call to Arm()

func Dump

func Dump() (armedTriggers map[string]uint32)

Dump returns a map of currently armed triggers and their remaining trigger count

func List

func List() (availableTriggers []string)

List returns a slice of available triggers

func Stat

func Stat(haltLabelString string) (haltAfterCount uint32, err error)

Stat returns the remaining haltAfterCount for the specified haltLabelString

func Trigger

func Trigger(haltLabel uint32)

Trigger decrements the haltAfterCount if armed and, should it reach 0, HALTs

Types

This section is empty.

Jump to

Keyboard shortcuts

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