tracefs

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(relname string, flag int, perm os.FileMode) (*os.File, error)

OpenFile opens the relative path provided, using the detected root of tracefs or debugfs

func ReadFile

func ReadFile(relname string) ([]byte, error)

ReadFile reads the relative path provided, using the detected root of tracefs or debugfs

func Root

func Root() (string, error)

Root returns the tracing root path in use, `/sys/kernel/tracing` (tracefs) or `/sys/kernel/debug/tracing` (debugfs)

Types

This section is empty.

Jump to

Keyboard shortcuts

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