filetracer

package
v0.19.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package filetracer provides an eBPF-based tracer for file operations performed by the dagger-engine process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (dagebpf.Tracer, error)

New creates a new file operations tracer. It loads the BPF program and attaches to the necessary tracepoints. The tracer filters by process name.

Types

type Event

type Event struct {
	TimestampNs uint64
	DurationNs  uint64
	Stack       [maxStackDepth]uint64
	Error       int32
	Tgid        uint32
	Op          uint32
	Flags       uint32
	StackSize   uint32
	Comm        [16]byte
	Path        [maxPathLen]byte
	Path2       [maxPathLen]byte
}

Event represents a file operation event captured by the BPF program.

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

Tracer is an eBPF-based tracer for file operations.

func (*Tracer) Close

func (t *Tracer) Close() error

Close releases all resources held by the tracer.

func (*Tracer) Run

func (t *Tracer) Run(ctx context.Context)

Run starts reading events from the ring buffer and logs them. It blocks until the context is cancelled.

Jump to

Keyboard shortcuts

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