tracefs

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open added in v0.3.0

func Open(relname string) (*os.File, error)

Open opens the relative path provided (similar to os.Open), using the detected root of tracefs or debugfs

func OpenFile

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

OpenFile opens the relative path provided (similar to os.OpenFile), 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