Skip to content

Output files

Every campaign writes one directory, <output_dir>/<campaign_id>/. output_dir defaults to results. The campaign ID is the benchmark name and the start time: fibonacci_20260916_124622_491942.

Directory layout

results/fibonacci_20260916_124622_491942/
├── injections.csv          one row per injection
├── faultlist.json          what each injection was asked to do
├── metadata.json           campaign identity and outcome counts
├── provenance.json         inputs, tool versions and hashes
├── report.tsv              tab-separated summary, one line per injection
├── results.txt             human-readable summary
├── report.html             written by `hfim report`
├── marker_readback.csv     only with record_at_injection
├── infra_diagnostics/      only when a run never reached its injection point
│   └── injection_0076.txt
├── source/                 benchmark sources and the injected ELF
└── injections/
    ├── 0001/
    │   ├── output.txt
    │   └── state.json
    └── 0002/
File Written Contents
injections.csv always one row per injection: target, bit, values, outcome. See injections.csv
faultlist.json always, before the first injection the drawn faults. See faultlist.json
metadata.json always campaign ID, benchmark, seed, fault model, outcome counts. See metadata.json
provenance.json always hashes of every input, tool versions, parameters. See provenance.json
report.tsv always the main columns of injections.csv, tab-separated. See report.tsv
results.txt always outcome table, per-register and per-hart breakdown, error margin. See results.txt
report.html by hfim report [campaign_id] HTML report with charts
marker_readback.csv when an observable sets record_at_injection: true the value of each observable at the injection point, before the fault. See marker_readback.csv
infra_diagnostics/injection_NNNN.txt when a run timed out waiting for its injection point whether it reached fim_init, the PC and registers of every hart, the end of the consoles
source/ parallel and server campaigns the benchmark's .c, .h, .S, .rs, .py, Makefile, Cargo.toml, and the ELF under source/build/
injections/NNNN/ with results.save_per_injection: true (default) per-injection files, see Per-injection files

The results: block of the campaign controls the per-injection files:

Key Default Effect
results.save_per_injection true a directory per injection
results.save_uart_output true output.txt
results.save_register_dump false registers.json
results.save_observable_state true state.json for sdc injections
results.cleanup_injections false delete injections/ after injections.csv and report.tsv are written

The four save_* keys are read only under results:. At the top level of the campaign file they are ignored.

injections.csv

One row per injection, sorted by injection_id. The header is the union of every backend's columns. A column outside the always-present set is dropped when it is empty in every row, so a QEMU register campaign has no cache or power columns.

Core columns

Column Filled by Meaning
injection_id all 1-based index; equals the faultlist index plus 1
timestamp all ISO 8601 time the row was recorded
instruction_count all icount mode: the retired-instruction count at which the fault was applied. breakpoint mode: the drawn program counter, in decimal. gem5: committed-instruction count
target_type all register, memory, or a gem5 target such as cache, dram, phys_reg
target_name all register name (x14, fa0), byte address (0x80000210), or gem5 structure (cache_l1d)
original_value all value read before the fault, hex
faulty_value all value written after the fault, hex
bit_position all the bit that was flipped or forced; the first one for a multi-bit fault
hit_instance all breakpoint mode: which execution of the drawn address the fault fired on, 0 = first. 0 in other modes
actual_pc QEMU address where execution stopped. QEMU honours a pending stop only at the end of a translation block, so in a tight loop it can differ from the requested point. Empty for a backend that reports no stop address
outcome classifier masked, sdc, detected, crash, timeout, or one of the other outcomes
execution_time all wall-clock seconds of the run
exit_code all the program's exit code; empty when the run did not end (timeout, crash pattern)
timed_out all True when the run was stopped by a time or instruction limit
hang_cutoff QEMU True when the instruction limit (hang_icount_factor) stopped the run, False otherwise
sdc_details classifier for sdc: which observable differed, for example result[6]: expected 8, got 24
state_match classifier True when the observables equal the golden run, False when not, empty when no state was compared

hit_instance, actual_pc and hang_cutoff are outside the always-kept set but carry a value in every QEMU row, so they appear in every QEMU campaign.

Present when filled

Column Filled by Meaning
bit_positions all ;-separated bits of a multi-bit fault (multi_bit_count above 1)
target_core QEMU, gem5 multicore: the hart whose registers took the fault, numbered within target_cluster
target_cluster QEMU, gem5 multicore: the cluster of that hart
target_pc QEMU multicore register fault: where the targeted hart was when the fault landed; can differ from actual_pc, the hart that reached the injection point
error_message all reason for crash, infrastructure_failure or unknown
cache_level gem5 l1d, l1i or l2
set gem5 cache set index
way gem5 cache way index
block_offset gem5 byte offset in the cache line
cache_ecc_corrected gem5 True when the cache ECC model undid the fault
cache_ecc_detected_bits gem5 number of flipped bits the ECC model saw when it detected but did not correct
cache_ecc_engaged gem5 True when the faulty line was read while the fault was present
cache_evicted_unread gem5 True when the faulty line was evicted without being read
ecc_false_correct gem5 ECC check-bit fault: True when the decoder flipped a clean data bit
tag_fault_engaged gem5 tag fault: True when a lookup used the corrupted tag
dram_energy_J gem5, DRAMsim3 DRAM energy, joules
dram_writes_per_cell_max gem5, NVMain highest write count of any cell
endurance_failed gem5, NVMain True when a cell exceeded its write endurance
ecp_corrected_count gem5, NVMain corrections made by the active NVMain fault model (ECP)
total_power_W gem5, McPAT total power, watts
core_power_W, l1d_power_W, l2_power_W gem5, McPAT power per block, watts
total_area_mm2 gem5, McPAT area, mm²
power_model gem5, McPAT the power model, for example mcpat_c906_inorder
power_model_note gem5, McPAT known bias of that power model
total_power_W_silicon_typ gem5, McPAT datasheet typical power for comparison, watts

Other outcome values

Value Meaning Counted in rates
infrastructure_failure the injection was not carried out: the simulator did not start, GDB did not connect, or the run never reached its injection point no
unknown the run could not be classified no
stuck_after_wear NVMain: a cell exceeded its write endurance yes
latent_clean, latent_dirty gem5 cache ECC: the faulty line was evicted unread, clean or dirty yes
ecc_false_correct gem5 ECC check-bit fault: the decoder miscorrected a clean bit yes
tag_false_miss, tag_false_hit, tag_latent gem5 tag fault: a hit became a miss, a miss matched the wrong line, or the tag was never looked up yes

Percentages in results.txt and metadata.json are taken over the valid rows: all rows minus infrastructure_failure and unknown.

Reading a row

A memory campaign on fibonacci, icount mode:

injection_id,timestamp,instruction_count,target_type,target_name,original_value,faulty_value,bit_position,hit_instance,actual_pc,outcome,...
2,2026-09-16T12:46:43,942,memory,0x80000210,0x8,0x18,4,0,0x8000021e,sdc,...
Column Value Reads as
instruction_count 942 the fault was applied after 942 retired instructions
target_name 0x80000210 one byte at this address, inside result[]
original_value, faulty_value 0x8, 0x18 the byte held 8 and holds 24 after the flip
bit_position 4 0x8 XOR (1 << 4) = 0x18
actual_pc 0x8000021e execution stopped at this instruction
outcome sdc the program ended with fim_exit(0) and its observables differ
sdc_details result[6]: expected 8, got 24 element 6 of result carries the corruption

A multicore campaign on PolarFire, breakpoint mode:

injection_id,timestamp,instruction_count,target_type,target_name,original_value,faulty_value,bit_position,hit_instance,actual_pc,target_core,target_cluster,outcome,execution_time,exit_code,timed_out,hang_cutoff,sdc_details,state_match
1,2026-10-14T00:30:36.811049,2147509430,memory,0x80021098,0x10,0x4010,14,1963,0x800064b6,0,1,timeout,38.655,,True,False,,

instruction_count 2147509430 is 0x800064b6, the drawn address, equal to actual_pc. The fault fired on execution 1964 of that address (hit_instance 1963, counted from 0). Bit 14 of the 8-byte word at 0x80021098 was flipped (0x10 to 0x4010). The run then exceeded the 30 s wall-clock limit (timed_out True, hang_cutoff False) and never called fim_exit, so exit_code and state_match are empty. target_core 0 in target_cluster 1 is U54_1. For a memory fault in shared memory this only names the first hart of the cluster; the fault itself lands in memory every hart reads.

faultlist.json

Written before the first injection. It is a pure function of the seed, the ELF and the configuration, so the same inputs give the same file on any machine.

{
  "campaign_id": "fibonacci_20260916_124622_491942",
  "benchmark": "fibonacci",
  "seed": 7,
  "num_injections": 20,
  "faults": [
    { "index": 0, "instruction_count": 607, "target_type": "memory",
      "target_name": "0x80000278", "bit_position": 1, "hit_instance": 0 }
  ]
}
Field of faults[] Meaning
index 0-based; injection_id is index + 1
instruction_count instruction count, or the address in breakpoint mode
target_type, target_name, bit_position as in injections.csv
hit_instance which execution of the address, 0 = first
bit_positions multi-bit faults only
target_core multicore only: the drawn hart

metadata.json

Field Meaning
campaign_id, benchmark, seed, num_injections, fault_model, target_types from the campaign
config_path the campaign file
num_workers injections run at once
multi_bit_count bits per fault
detection_string the console line that ends a run as detected, if set
statistics total, valid_total, and per outcome count and percentage
completed_at end time
target memory campaigns: the resolved address range and its size in bytes
expected_injections, partial parallel and server campaigns: the planned count, and whether rows are missing

provenance.json

Binds the result to the exact inputs and tools that produced it. Two campaigns with the same integrity.manifest_hash had identical inputs, tools and parameters.

Field Contents
schema_version fim/provenance/v1
campaign_id the campaign ID
inputs.benchmark name, elf_path, elf_sha256, elf_size_bytes, section_hashes, entry_point, embedded_provenance
inputs.golden_run SHA-256 of the golden run's trace.json, expected_output.txt, observable_state.json
inputs.config path and SHA-256 of the campaign file
inputs.included_files every file of the campaign's include chain, in the order it was read: path and SHA-256 of the content the run used
inputs.qemu_plugin icount mode: path and SHA-256 of the icount plugin
toolchain.fim hfim version, source_tree_sha256, and git state
toolchain.qemu, toolchain.gdb path, binary SHA-256, version string
toolchain.qemu_resolved the simulator package used: simulator, form, image, qemu_path, gdb_path, icount_plugin
toolchain.python version and interpreter
parameters seed, num_injections, fault_model, injection_mode, target_types, target_registers, bit_width, timeout, and when set campaign_name, description, memory_start, memory_end, board_spec, board_qemu_clock
environment platform, arch, kernel, hostname_sha256
execution started_at, completed_at, injections_completed, injections_failed
outputs path and SHA-256 of injections.csv, report.tsv, faultlist.json
artifacts the build, golden-run and campaign records the result was made from, with their keys
campaign_machine server campaigns: machine, core_identity, server_release, submission_id, snapshot_identity, transport
fleet parallel and server campaigns: indices_with_provenance, reference_index, consistent, differing_indices
integrity.manifest_hash SHA-256 over every field above
snapshot_time, benchmark, elf, restore_hint added with source/: when it was taken and how to restore it

board_spec and board_qemu_clock record the board description and the QEMU clock arguments it asked for. Both change what the guest does without appearing in the campaign file.

fleet.consistent is false when the per-injection provenance files disagree, for example after a rebuild or a new golden run during the campaign. differing_indices lists those injections.

report.tsv

One line per injection, tab-separated, for grep and awk.

index   target_type target_name instruction_count   bit_position    original_value  faulty_value    outcome exit_code   execution_time  timed_out   state_match error_message

Multicore campaigns append target_core, target_cluster, target_pc. index is injection_id. timed_out is lowercase true or false.

results.txt

Sections, in order:

Section Contents
header benchmark, architecture, fault model, injection mode, seed, total, duration, average time per injection
OUTCOME DISTRIBUTION count and percentage per outcome, VALID and TOTAL
DMR effectiveness when the campaign has detected rows: detected / (detected + sdc + crash)
PER-REGISTER BREAKDOWN outcome counts per target_name
PER-HART BREAKDOWN (target_core) multicore: outcome counts per hart, named as in board.yaml
STATISTICAL CONFIDENCE sample size, error margin at 95 % and 99 %, injections needed for ±1 %
PROVENANCE campaign ID, date, benchmark, ELF, seed, fault model, targets; what ran: the simulator package with its form and image, the QEMU binary with its machine and CPU (on the hardware backend, the probe), and the GDB; injection mode and timeout

marker_readback.csv

One row per observable with record_at_injection: true, per injection. The value is read with the machine halted at the injection point, before the fault is applied.

Column Meaning
format row format version
symbol the observable
pc where the machine was halted
hit_instance which execution of that address
size bytes read, at most 64
size_source elf, or fallback (4 bytes) when the symbol has no size
truncated yes when the symbol is larger than 64 bytes
raw_hex the bytes
value little-endian integer, for sizes 1, 2, 4, 8
typed_value the value decoded with the declared or debug-info type

Per-injection files

QEMU: injections/NNNN/

File Written Contents
output.txt save_uart_output: true the console output of the run
state.json save_observable_state: true and outcome sdc the observables as the faulty run left them
registers.json save_register_dump: true register dump
injections.csv parallel and server campaigns this injection's row, merged into the campaign's injections.csv
provenance.json parallel and server campaigns this injection's provenance, merged into the campaign's
{
  "variables": {
    "result": {
      "address": "0x800001e0",
      "size": 512,
      "value": [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 8388752, 233]
    }
  }
}

In this state.json, entry 12 should be 144. A masked run writes no state.json: its state equals the golden run.

gem5: injection_NNNN/

File Contents
injection_report.json what the gem5 controller planned and applied; the authoritative record of the fault
state_dump.json registers and observables at fim_exit
gem5_stdout.log, gem5_stderr.log simulator output
stats.txt gem5 statistics (simInsts, simTicks)

Golden run files

A golden run is stored under golden/<benchmark>/<record key>/. The key identifies the inputs that produced the run.

File Contents
trace.json the golden run's trace, including fim_init and fim_exit instruction counts
expected_output.txt the console output
observable_state.json the observables at fim_exit
initial_registers.json, final_registers.json registers at the start and end
icount.json instruction counts from the icount plugin
checkpoints/<key>/snapshot.qcow2 the QEMU checkpoint image, for campaigns with checkpoint:

Files kept in git

A campaign repository commits injections.csv, faultlist.json, metadata.json, provenance.json, report.tsv and results.txt. The per-injection tree is ignored and goes to a results store with hfim results push, see Boards.