util

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeOutputToError

func EncodeOutputToError(output []byte, err error) error

func GetChildProcesses

func GetChildProcesses(ppid uint32, logger logr.Logger) ([]uint32, error)

GetChildProcesses will return all child processes's pid. Include all generations. only return error when /proc/pid/tasks cannot be read

func ReadCommName

func ReadCommName(pid int) (string, error)

ReadCommName returns the command name of process

Types

This section is empty.

Jump to

Keyboard shortcuts

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