tracermetadata

package
v0.0.0-...-e89087f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tracermetadata contains helper functions to parse the tracer memfd file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTracerMetadata

func GetTracerMetadata(pid int, procRoot string) (model.TracerMetadata, error)

GetTracerMetadata parses the tracer-generated metadata according to https://docs.google.com/document/d/1kcW6BLdYxXeTSUz31cBqoqfW1Jjs0IDljfKeUfIRQp4/

func GetTracerMetadataFromPath

func GetTracerMetadataFromPath(fdPath string) (model.TracerMetadata, error)

GetTracerMetadataFromPath reads and parses tracer metadata from a known fd path. The fdPath should be the full path to the fd (e.g., /proc/1234/fd/5).

func IsTracerMemfdPath

func IsTracerMemfdPath(linkTarget string) bool

IsTracerMemfdPath checks if the given readlink path is a tracer memfd file. The linkTarget should be the result of reading a symlink from /proc/PID/fd/.

Types

This section is empty.

Directories

Path Synopsis
Package language bridges the tracer metadata and the language detection package.
Package language bridges the tracer metadata and the language detection package.
model module

Jump to

Keyboard shortcuts

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