proc

package
v0.0.0-...-3b12f0d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 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 libpf.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