tracehook

package
v0.0.0-...-a3c466b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-2.0, GPL-2.0-or-later Imports: 9 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-2.0-or-later

  • Copyright (C) 2022 VMware, Inc. Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> *
  • Internal in-memory database with all available trace helper applications.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultHookPath = "trace-hooks"
	EnvProcfs       = "TRACER_PROCFS_PATH"
	EnvSysfs        = "TRACER_SYSFS_PATH"
	EnvHooks        = "TRACER_HOOKS"
)

Functions

This section is empty.

Types

type HookConfig

type HookConfig struct {
	HooksPath *string /* Path to directory with trace hooks. */
	Sysfs     *string /* /sys fs  mountpoint. */
	Procfs    *string /* /proc fs  mountpoint. */
}

type Session

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

func (*Session) GetOutput

func (s *Session) GetOutput() (*[]string, *[]string)

type TraceHook

type TraceHook struct {
	Name string

	Description []string `json:"Description"`
	// contains filtered or unexported fields
}

type TraceHooks

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

func NewTraceHooksDb

func NewTraceHooksDb(cfg *HookConfig) (*TraceHooks, error)

Create a new database with trace hooks in given directory

func (*TraceHooks) Get

func (h *TraceHooks) Get() *map[string]*hookManager

func (*TraceHooks) GetHook

func (h *TraceHooks) GetHook(name *string) (*TraceHook, error)

func (*TraceHooks) ResetAll

func (h *TraceHooks) ResetAll()

Reset all tracing subsystems

func (*TraceHooks) Run

func (h *TraceHooks) Run(th *TraceHook, pids *[]int, parent *[]int, params *[]string, user *string) (*Session, error)

func (*TraceHooks) Stop

func (h *TraceHooks) Stop(s *Session, wait bool) error

Jump to

Keyboard shortcuts

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