proc

package
v0.0.0-...-6ad74a7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package proc provides functionality for retrieving kallsyms, modules and executable mappings via /proc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKallsyms

func GetKallsyms(kallsymsPath string) (*libpf.SymbolMap, error)

GetKallsyms returns SymbolMap for kernel symbols from /proc/kallsyms.

func GetKernelModules

func GetKernelModules(modulesPath string,
	kernelSymbols *libpf.SymbolMap) (*libpf.SymbolMap, error)

GetKernelModules returns SymbolMap for kernel modules from /proc/modules.

func IsPIDLive

func IsPIDLive(pid libpf.PID) (bool, error)

IsPIDLive checks if a PID belongs to a live process. It will never produce a false negative but may produce a false positive (e.g. due to permissions) in which case an error will also be returned.

func ListPIDs

func ListPIDs() ([]libpf.PID, error)

ListPIDs from the proc filesystem mount point and return a list of util.PID to be processed

Types

This section is empty.

Jump to

Keyboard shortcuts

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