policystats

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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

Index

Constants

View Source
const (
	PolicySelectorStatsMapName = "selector_stats"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyAction

type PolicyAction uint8
const (
	// NB: values below should match the ones in bpf/lib/policy_stats.h
	InvalidAction               PolicyAction = 0
	PolicyPost                  PolicyAction = 1
	PolicySignal                PolicyAction = 2
	PolicyMonitorSignal         PolicyAction = 3
	PolicyOverride              PolicyAction = 4
	PolicyMonitorOverride       PolicyAction = 5
	PolicyNotifyEnforcer        PolicyAction = 6
	PolicyMonitorNotifyEnforcer PolicyAction = 7
	PolicySet                   PolicyAction = 8
	PolicyMonitorSet            PolicyAction = 9
	PolicyNoPost                PolicyAction = 10
	PolicyActionsNr                          = 11
)

type PolicyStats

type PolicyStats struct {
	ActionsCount [PolicyActionsNr]uint64
}

func GetPolicySelectorStats added in v1.8.0

func GetPolicySelectorStats(tp tracingpolicy.TracingPolicy) ([]*PolicyStats, error)

func GetPolicyStats

func GetPolicyStats(tp tracingpolicy.TracingPolicy) (*PolicyStats, error)

func StatsFromBPFMapRange added in v1.8.0

func StatsFromBPFMapRange(fname string) ([]*PolicyStats, error)

func (*PolicyStats) Empty added in v1.8.0

func (s *PolicyStats) Empty() bool

Jump to

Keyboard shortcuts

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