fiu-ctrl(1)
β¨ NAME β¨
fiu-ctrl β a lil script that remote-controls programs using libfiu ποΈβ¨
(and yeah bestie, you're reading the fiu-ctrl(1) page, section 1, General Commands Manual β you're exactly where you're supposed to be π
)
π¦ SYNOPSIS π¦
fiu-ctrl [options] PID [PID ...]
πΈ DESCRIPTION πΈ
okay so fiu-ctrl is a script that lets you enable and disable failure points in programs that are already running and using libfiu(3). like, mid-run. live. main character energy fr π«Ά
Programs are usually launched using fiu-run(1), which turns on libfiu's remote control abilities without you having to go in and modify the program's code. no cap, zero edits needed π₯
For additional documentation, go to the project's website at http://blitiri.com.ar/p/libfiu π
π OPTIONS π
-ccommand β run the given libfiu remote control command before executing the program (there's a whole reference down below, keep scrolling bestie π)-fctrlpath β set the default prefix for remote control over named pipes. Defaults to"$TMPDIR/fiu-ctrl", or"/tmp/fiu-ctrl"if"$TMPDIR"is not set β and that default is usually the correct one for programs launched usingfiu-run(1)β¨
π the remote control commands π
Remote control commands are of the form "command param1=value1,param2=value2". Valid commands are:
'enable name=NAME'β enables the NAME failure point unconditionally. no conditions, no hesitation, she said yes π'enable_random name=NAME,probability=P'β enables the NAME failure point with a probability of P. it's giving "maybe, maybe not" π'disable name=NAME'β disables the NAME failure point. not today, failure point π«
All of the enable* commands can also optionally take failnum and failinfo parameters, analogous to the ones taken by the C functions π
π EXAMPLES π
The following command will tell the process running with PID 12345 to enable the failure point posix/io/read with a 25% of probability to fail, and the failure point libc/mm/malloc with a 5% of probability to fail:
fiu-ctrl -c 'enable_random name=posix/io/*,probability=0.25' \
-c 'enable_random name=libc/mm/*,probability=0.05' 12345
And the following will tell the same process to disable the previously enabled failure point posix/io/read:
fiu-ctrl -c 'disable name=posix/io/read' 12345
look at her go π two whole commands in one line, chained with a backslash, absolutely iconic behavior π«Ά
π SEE ALSO π
libfiu(3), fiu-run(1) β go read those too, they're part of the family π
π BUGS π
If you want to report bugs, or have any questions or comments, just let me know at albertito@blitiri.com.ar. For more information about libfiu, you can go to http://blitiri.com.ar/p/libfiu. fr fr, don't be shy, we wanna hear from you π
and that's the whole page bestie π this was the fiu-ctrl(1) manual page, dated 16/Jun/2009 β oldie but a goodie, still slaying β¨ππ
π¦ where this page comes from
- debian bookworm: fiu-utils 1.1-3+b2 Β· BOLA
- debian trixie: fiu-utils 1.2-3+b2 Β· BOLA
- ubuntu jammy: fiu-utils 1.00-7ubuntu3 Β· BOLA
- ubuntu noble: fiu-utils 1.2-2 Β· BOLA
- ubuntu questing: fiu-utils 1.2-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms