procstatus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package procstatus holds what the e2e testserver's procstatus subcommand prints: the kernel's view of processes on a worker, read from /proc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	PID  int `json:"pid"`
	PPID int `json:"ppid"`
	// Name is the base name of argv[0].
	Name       string   `json:"name"`
	CapPrm     uint64   `json:"capPrm"`
	CapEff     uint64   `json:"capEff"`
	CapBnd     uint64   `json:"capBnd"`
	CapAmb     uint64   `json:"capAmb"`
	NoNewPrivs int      `json:"noNewPrivs"`
	Seccomp    int      `json:"seccomp"`
	Threads    []Thread `json:"threads"`
}

Process is one process's /proc/<pid>/status, reduced to the fields the worker security tests compare. The capability sets are the raw 64-bit masks. Seccomp is the main thread's mode; Threads has every thread's.

type Thread

type Thread struct {
	TID int `json:"tid"`
	// Name is the thread's comm. cloud-hypervisor names each thread it
	// starts, such as "vmm" and "vcpu0".
	Name    string `json:"name"`
	Seccomp int    `json:"seccomp"`
}

Thread is one thread of a process, read from /proc/<pid>/task/<tid>/status.

Jump to

Keyboard shortcuts

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