modus
Menu
On this page

The entry operation_sequence_runner

The runner of one operation sequence (Fuzzing of the kernel operations in the repository, "The processes in the machine"). The process operation_fuzzing starts one new runner for each sequence, with the budget of that sequence.

What it is for. It runs each sequence step as one command record of its kernel ring, and writes what the kernel answered, so that the tool checks the answers against the forms of the kernel operations.

Start: only operation_fuzzing starts it, from the boot image of the operation sequences. Its row of start_grant_sets has no grant. It writes nothing on the log, unless a step writes there.

operation_sequence_runner module with an entry

Hash
a42e6658b5c813445d0a989bb77323ecd6ee789f77ceb93880401f5adabbb84f
Size
24576 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The runner of one operation sequence

FactValue
KindModules with an entry
Sourcesrc/modules/tests/operation_sequence_runner
Boot imageno: not in the boot image
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()The entry of the runner: it checks its sequence, runs each kernel entry of it, writes the results after each one, then writes its end Ran and stops itself with Done

entry

entry()

The entry of the runner: it checks its sequence, runs each kernel entry of it, writes the results after each one, then writes its end Ran and stops itself with Done. A refusal of its sequence writes its end and stops with Refused; a refusal of a batch, with Failed.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/operation_sequence_runner/main.odin:59

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsnoneA runner of operation_fuzzing: its starter gives it its handles.
Other terms of its start grant setnone
Budget that it asks for
  • the least budget
No MODULE_BUDGET in its source: it asks for the least budget.

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).

start_grant_sets global variable of the package root

start_grant_sets := [?]Start_Grant_Set_Row {...}

The start grant set of each module of the boot image, with the reason of each.

src/modules/system/root/start_grant_sets.odin:73