FUNCTION::ASSERT(3stap)
π FUNCTION::ASSERT π (that's a 3stap page, bestie, section 3 of the SystemTap tapsets)
β¨ NAME β¨
function::assert β evaluate assertion π
πΈ SYNOPSIS πΈ
1) assert(expression:long)
2) assert(expression:long,msg:string)
π¦ ARGUMENTS π¦
expressionβ the expression we're evaluating, like the vibe check itself πmsgβ the formatted message string, aka the little note it leaves you π
π DESCRIPTION π
- This function checks the expression, and if that expression evaluates to zero it aborts the current running probe, no cap π. It uses
error, and it can get caught bytry{} catch{}β so your probe isn't necessarily doomed forever, it's giving catchable energy. A default message will be displayed. π - Same situation, same energy: this function checks the expression and aborts the current running probe if the expression evaluates to zero. It uses
errorand may be caught bytry{} catch{}. The difference? The specified message will be displayed instead of the default one. π
Lowkey important: zero = abort, so if you're not about that probe-stopping life, wrap it up in try{} catch{}. β¨
π SEE ALSO π
That's the whole page, periodt. This was the SystemTap Tapset Reference, version September 2026 β thanks for reading, bestie, ily, go assert responsibly π«Άπβ¨
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms