usdt

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 16 Imported by: 1

README

usdt

Go Report Card Go Reference CI

Introduction

usdt is a Go library for linking cilium/ebpf's Program to userspace statically defined tracepoints.

Getting started

TODO: examples

Testing

Install dev dependencies

make -C testdata
go test -exec sudo -v ./

License

The code and docs are released under the MIT.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type USDT

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

USDT is a userspace statically defined tracepoint.

func New

func New(prog *ebpf.Program, provider, probe string, pid int) (*USDT, error)

New opens an USDT for the provided provider, probe and pid and attaches it to prog.

func (*USDT) Close

func (u *USDT) Close() error

Close closes the underlying uprobe.

Directories

Path Synopsis
examples module

Jump to

Keyboard shortcuts

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