sharedlibraries

package
v0.0.0-...-463c776 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package sharedlibraries contains implementation for monitoring of shared libraries opened by other programs

Index

Constants

View Source
const (
	LibPathMaxSize = 0xdc
)

Variables

View Source
var LibsetToLibSuffixes = map[Libset][]string{
	LibsetCrypto: {"libssl", "crypto", "gnutls"},
	LibsetGPU:    {"libcudart"},
}

LibsetToLibSuffixes maps a libset to a list of regexes that match the shared libraries that belong to that libset. Should be the same as in the probes.h file

Functions

func IsLibsetValid

func IsLibsetValid(libset Libset) bool

IsLibsetValid checks if the given libset is valid (i.e., it's in the LibsetToLibSuffixes map)

Types

type LibPath

type LibPath struct {
	Pid uint32
	Len uint32
	Buf [220]byte
}

type Libset

type Libset string

Libset is a type to represent sets of shared libraries that share the same filtering eBPF program

const (
	// LibsetCrypto is the libset that contains the crypto libraries (libssl, libcrypto, libgnutls)
	LibsetCrypto Libset = "crypto"

	// LibsetGPU contains the libraryes for GPU monitoring (libcudart)
	LibsetGPU Libset = "gpu"
)

Directories

Path Synopsis
testutil
fmapper
Package main is used for testing purposes and it essentially maps into memory
Package main is used for testing purposes and it essentially maps into memory

Jump to

Keyboard shortcuts

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