Skip to main content

Crate counters_abi

Crate counters_abi 

Source
Expand description

This module describes how the kernel exposes its internal counters to userland. This is a PRIVATE UNSTABLE ABI that may change at any time! The layouts used here; the set of counters; their names, meanings, and types; and the set of available types; are all subject to change in every kernel version and are not meant to be any kind of stable ABI between the kernel and userland.

The expectation is that these layouts will be used only by a single privileged service that is tightly-coupled with the kernel, i.e. always built from source when building the kernel.

The counters exist only for kernel-specific diagnostic and logging purposes.

Structs§

Descriptor
Binary-stable C-compatible representation of a kernel counter descriptor.
DescriptorVmo
Header layout of the kernel counter descriptor VMO (counters::DescriptorVmo).

Enums§

Type
The aggregation type of a kernel counter.

Constants§

ARENA_VMO_NAME
PA_VMO_KERNEL_FILE with this name holds an array of SMP_MAX_CPUS arrays, each of which is i64[num_counters()] indexed by the index into DescriptorVmo’s descriptor table (counters::kArenaVmoName).
DESCRIPTOR_VMO_NAME
Name of the kernel counter descriptor VMO (counters::DescriptorVmo::kVmoName).