Skip to content

Releases

HFIM 1.17.0

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 14:44
006cfcc

Exact stack window for .stack-live, and fault sampling without repeats.

hfim update
  • Exact stack envelope. A .stack-live campaign in icount or timer mode 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 run does this by itself for those campaigns only, and timeout: auto is unaffected. --sp-probe-budget (default 30 minutes) bounds the probe pass on call-heavy programs.
  • sampling_with_replacement. false draws each complete fault at most once in a campaign. The default true keeps 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.

Thanks to Sergio Cuenca for both changes (#4, #5).

HFIM 1.16.2

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 08:56
7cf4ef9

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 macOS

A 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 update now also updates a pip install --user installation, instead of refusing it.
  • hfim doctor says 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

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 08:34
9a22be9

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-cli

From 1.16.1 on, hfim update handles it.

HFIM 1.16.0

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 07:47
ca2feae
pipx install hfim-cli            # or: pipx upgrade hfim-cli / hfim update

gem5 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

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 06:51

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 init

PyPI 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

Choose a tag to compare

@HeavenlyDevv HeavenlyDevv released this 30 Nov 00:17

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 init picks 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 init

The SHA256SUMS file lists the checksums of the wheel and the source archive.