execsched

package
v1.0.0-beta.24 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package execsched is the exec_sched eBPF program (see engine/ebpf/wcbpf). For each profiled exec it records the parts of its container's life as ops under the exec's exec.run op, from the kernel's process events, so without the engine's own reports (the exec.* phases) or a tracer's stops:

  • exec_sched.containerSetup: from crun's child's creation in the container's cgroup to its exec of the engine's init (/.init), or of the workload in an exec without the init;
  • exec_sched.initStart: from there to the workload's exec;
  • exec_sched.workload: from there to the workload process's exit;
  • exec_sched.initExit: from there to the init's exit.

It also records, as the exec's exec_sched reading, the time all its threads (its container's, in every cgroup below it, and its mount helpers') waited runnable for a CPU, how many such waits ended, and the time they ran.

Index

Constants

View Source
const (
	ClassContainerSetup = "exec_sched.containerSetup"
	ClassInitStart      = "exec_sched.initStart"
	ClassWorkload       = "exec_sched.workload"
	ClassInitExit       = "exec_sched.initExit"
)

The classes of the ops the program records.

View Source
const Name = "exec_sched"

Name is how recordings ask for the program.

Variables

View Source
var Program = wcbpf.Program{Name: Name, Load: load}

Program is exec_sched, registered at engine start.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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