Skip to main content

Crate detcore_model

Crate detcore_model 

Source
Expand description

Widely-shared type definitions.

Modules§

backend_engagement
Machine-readable evidence that the selected backend performed its own work.
build_info
Machine-readable facts about a Hermit binary.
bundled_signal_facts
Named readings of one bundled backend capability.
canonical_test_epoch
The one virtual-time epoch tests and E2E cells pass when they need a fixed one, as --epoch or HERMIT_EPOCH: hermit run --strict refuses a run whose epoch would come from the host clock. Bump it here and nowhere else.
collections
config
Detcore configuration and widely used types.
container_mounts
The guest’s container mount table: the mounts /proc/<pid>/mountinfo and /proc/<pid>/mounts show, which hermit-cli builds once, in the completed container namespace before the guest starts, and Detcore renders on every backend (package K slice K3a, https://github.com/rrnewton/hermit/issues/4213).
cpu_profile
The virtual CPU a guest sees (https://github.com/rrnewton/hermit/issues/4243).
fd
futex
happens_before
Happens-before edges: a sparse, authored partial order over dynamic events.
host_capability
Closed host-capability vocabulary and probes shared by validation records.
host_input
The host identity of a file a guest opened.
liteinst_initial_image
Bounded InitialImage launch packet shared by the host and private runtime.
liteinst_native_exec_input
Separate, inactive native Initial/Successor bootstrap input data.
liteinst_native_exec_runtime
Exact native runtime/dispatch-sequence envelope, separate from admission. Exact fixed runtime envelope shared by native consumer and coordinator. Decoding shape is not authority to restore counters or publish an image.
liteinst_native_exec_state
Exact versioned neutral cut envelope outside opaque Tool state. Exact neutral identity envelope around opaque Tool and backend state.
logdiff_policy
Shared policy tokens for the log comparator and report consumers.
network_engine
The pure state machine behind network record and replay.
network_trace
Versioned data model for schedule-independent external network input.
pedigree
An example that tracks thread pedigree using local state.
pid
procfs
Types and parsers shared by procfs producers and consumers.
schedule
summary
Summaries of complete hermit runs.
time

Macros§

canonical_test_epoch
The canonical test epoch as a string literal, for concat!.
v3_residual
The residual as a literal, so that the command-line help can include it with concat! while V3_RESIDUAL stays the one source of its words.

Constants§

HERMIT_POLICY_REFUSAL_EXIT
Exit status for a run HERMIT DELIBERATELY REFUSED, as distinct from one where hermit itself broke.
HERMIT_SIGINT_DEATH_EXIT
128 + SIGINT. Spelled from the shared helper so it cannot drift from the band, and pinned below so it cannot drift from 130.
SIGNAL_EXIT_BASE
The shell’s base for “killed by signal N”: a process killed by signal N is conventionally reported as 128 + N.

Functions§

signal_exit_status
The status a signal-terminated run reports, 128 + signo.
signal_from_exit_status
Recover the signal from a 128 + signo status, or None if it is not in the band.