Repository navigation
Releases
HFIM 1.17.0
Exact stack window for .stack-live, and fault sampling without repeats.
hfim update- Exact stack envelope. A
.stack-livecampaign inicountortimermode draws faults from the deepest stack point the golden run saw. That point used to come from a few stops near the top of the stack, so the deep frames were never hit. The golden run now measures it exactly, in a probe pass of its own before the timed run: a breakpoint after every instruction that lowers the stack pointer, handled inside GDB.hfim rundoes this by itself for those campaigns only, andtimeout: autois unaffected.--sp-probe-budget(default 30 minutes) bounds the probe pass on call-heavy programs. sampling_with_replacement.falsedraws each complete fault at most once in a campaign. The defaulttruekeeps faultlists exactly as before.- QEMU golden runs are measured again. The golden format changed (measurement version 4), so every existing QEMU golden is redone on its next use.
- hfim-server 1.7.4 runs with hfim-cli
>=1.17.0,<1.18.
HFIM 1.16.2
Install and update hfim without pipx.
# with pipx (sudo apt install pipx, or brew install pipx)
pipx install hfim-cli
# without pipx, in a virtual environment of its own
python3 -m venv ~/.hfim # Debian/Ubuntu: sudo apt install python3-venv first
~/.hfim/bin/pip install hfim-cli
echo 'export PATH="$HOME/.hfim/bin:$PATH"' >> ~/.bashrc # ~/.zshrc on macOSA plain pip install hfim-cli outside a virtual environment is refused on current Debian, Ubuntu and Homebrew Pythons. On Apple's own python3 it installs, but into ~/Library/Python/3.9/bin, which is not on PATH.
hfim updatenow also updates apip install --userinstallation, instead of refusing it.hfim doctorsays when that installation's command is not on PATH and prints the line that adds it.- The README and the install page give pipx or a virtual environment.
HFIM 1.16.1
hfim update now works with pipx's uv backend.
pipx can create its environments with uv (pipx 1.14 with uv installed, common on macOS with Homebrew). uv refuses to reinstall over an existing environment, so hfim update stopped with "A virtual environment already exists". When that happens, hfim update now installs the requested version into the existing environment with pipx runpip.
If you are on 1.16.0 or older and hfim update stops with that message, run this once:
pipx upgrade hfim-cliFrom 1.16.1 on, hfim update handles it.
HFIM 1.16.0
pipx install hfim-cli # or: pipx upgrade hfim-cli / hfim updategem5 full system on the Nezha D1. gem5_platform: d1 runs an unmodified bare-metal D1 image in full system, with the T-Head instructions of the C906; gem5_args passes extra options to gem5. Full-system campaigns restore the golden checkpoint, and a gem5 container that times out is removed.
Cache faults hit lines that hold data. cache_lines: valid, the new default, draws the faulty line among the lines that are valid at the injection, from the campaign seed. A faultlist CSV replays the same cache cell, and cache_lines: all keeps the whole array. Each report names the valid count, for example cache[set=197,way=0,off=37,valid=238/512].
This needs hfim-sim-gem5 23.2.0 (released with its prebuilt image). With an older package, a campaign that draws among valid lines is refused with the command to fix it: hfim sim install gem5, or set cache_lines: all.
Changed results. With the same seed, a cache campaign hits different lines than in 1.15.
Server. hfim-server 1.7.3 runs with hfim-cli >=1.16.0,<1.17. The server administration guide now installs hfim on the server before hfim server install.
The Nezha C906 gem5 template moves to hfim-sim-gem5 23.2.0 and hfim 1.16 (template 1.2.0).
HFIM 1.15.6
HFIM is now on PyPI as hfim-cli. The command it installs is still hfim.
pipx install hfim-cli # or: python3 -m pip install hfim-cli
hfim initPyPI refuses the name hfim as too similar to an existing project, so the package takes the name hfim-cli. hfim update, hfim uninstall and the server's dependency use the new name. Nothing else changes from 1.15.5.
HFIM 1.15.5
First public release of HFIM, a fault-injection framework for early reliability assessment of embedded processors.
- Campaigns on QEMU, gem5, OVP and real boards, reproducible from a seed.
hfim initpicks a board template and installs everything it needs; prebuilt simulator images download instead of compiling.- Fault targets from registers and memory to caches, DRAM, pipeline structures and coherence; single-bit, multi-bit, stuck-at and permanent fault models.
- Documentation: https://hi-rest.github.io/hfim/
Install:
pipx install hfim
hfim initThe SHA256SUMS file lists the checksums of the wheel and the source archive.