tls_trace

package
v0.0.0-...-3a4805e Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageMaxBuffer = 10000

	DefaultUprobeEntry = "entry"
	DefaultUprobeRet   = "return"
	SSLRead            = 0
	SSLWrite           = 1
)

Constants used within the package

Variables

This section is empty.

Functions

This section is empty.

Types

type TlsMessage

type TlsMessage struct {
	Elapsed      uint64
	Pid          uint32
	Tid          uint32
	Result       int32
	FunctionName [20]byte // New field to store the function name
	ProcessName  [16]byte
	Message      [MessageMaxBuffer]byte
	EndIdx       int
}

TlsMessage struct to handle each message data

func (*TlsMessage) HasContent

func (t *TlsMessage) HasContent() bool

HasContent checks if the TLS message has content

func (*TlsMessage) Print

func (t *TlsMessage) Print(jsonOutput bool)

Print prints the message info either as a table or JSON based on jsonOutput flag

type Tracer

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

Tracer struct for TLS tracing

func New

func New(jsonOutput bool, sources string, binaryPaths map[string]string, pid *int) *Tracer

New returns a new tracer instance

func (*Tracer) TraceMessageChannel

func (t *Tracer) TraceMessageChannel() (<-chan TlsMessage, error)

TraceMessageChannel retrieves the trace in a channel from BPF program

Jump to

Keyboard shortcuts

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