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 ¶
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.
Click to show internal directories.
Click to hide internal directories.