Retired. HFIM-client is replaced by
hfim run --on <server>from hfim-core (phase R-4). Its scripts print the hfim command that replaces them and exit 2. Set up a Server and run a campaign there: hfim-docs,guides/run-on-a-server.md. The table of every old command and its replacement is in that guide.
Write bare-metal benchmarks and run fault-injection campaigns on the FIM server. This client uploads your benchmark, builds it, runs a golden reference, injects faults, and downloads the results, all from one command.
./run.sh benchmarks/mmult -n 20- Set up your connection (
config.yaml+ SSH key). - Write a benchmark (
main.c+fim.yaml), or copybenchmarks/template. - Run a campaign with
./run.sh. - Read the results in
results/<campaign>/.
| Topic | What's in it |
|---|---|
| Setup | Connect the client to the server |
| Writing Benchmarks | main.c rules, the fault window, observables |
| Running Campaigns | run.sh, CLI flags, parallel workers, seeds |
| Background Jobs | --background, status.sh, the submit/download lifecycle |
| Batch Campaigns | Run a whole sweep from one YAML file |
| Notifications | Telegram alerts when a background run finishes |
| fim.yaml Reference | Every config field and its allowed values |
| Register Injection | Register sets, the float-register gotcha |
| Memory Injection | Address ranges and ELF-section targeting |
| Serial Feeder | External simulators, per-fault trajectory files |
| Results | Output layout, outcome classes, download.sh |
| Deterministic Campaigns | Reproducible timing, witnesses, lifecycle hooks, checkpoints |
| Advanced (gem5) Targets | Cache / DRAM / microarchitecture injection |
fim_init()/fim_exit(0)bracket the code under test, faults land only between them.- Observable outputs are file-scope
volatileand listed infim.yaml. - No stdlib: bare-metal, you get
<stdint.h>and the FIM SDK. - Float-heavy code? Override
target_registersto includefa*/fs*/ft*, or nearly everything reports MASKED. See Register Injection. - Benchmark talks to an external simulator? Use
injection_mode: breakpointplusinjection_pc_excludeon the UART wait loop, or your campaign is not reproducible: absolute instruction counts drift with how fast the host started the simulator. See Deterministic Campaigns. - Scripts called from hooks/coprocess must live inside the benchmark
directory and be referenced with
{benchmark_dir}. That directory is what gets uploaded; anything outside it never reaches the server.
| Outcome | Meaning |
|---|---|
| MASKED | Fault had no observable effect |
| SDC | Silent Data Corruption: wrong result, undetected |
| DETECTED | The benchmark's own checks caught it |
| CRASH | Program crashed |
| TIMEOUT | Exceeded the time limit (often a fault-induced hang) |
config.yaml your server connection (from config.yaml.example)
run.sh upload + build + golden + run a campaign
status.sh check running campaigns (status-only, --watch to poll)
download.sh pull a finished campaign (and golden, with --with-golden)
build.sh local cross-compile (optional; the server builds on run)
campaign.yaml.example example batch campaign
sdk/ FIM SDK (don't modify)
benchmarks/ your benchmarks (start from template/)
results/ downloaded campaign results
golden/ downloaded golden references
docs/ this documentation
If you use HFIM in academic work, please cite it. Machine-readable metadata
lives in CITATION.cff (GitHub renders a "Cite this repository" button from
it). BibTeX:
@software{hfim,
title = {{HFIM: Hardware Fault Injection Manager}},
author = {Cuenca-Asensi, S. and Abma-Romero, E. and Serrano-Cases, A.},
year = {2026},
url = {https://github.com/HI-REST/HFIM-client},
version = {0.1.0},
note = {Universidad de Alicante}
}