FUNCTION::LINUXMIB_F(3stap)
β¨ FUNCTION::LINUXMIB_F(3stap) β¨
okay so bestie, we're in the SNMP Information Tapset section of the SystemTap Tapset Reference, and this little function is literally the default bouncer at the door of your linuxmib.* probes π
πΈ NAME πΈ
function::linuxmib_filter_key β the default filter function for linuxmib.* probes π
π¦ SYNOPSIS π¦
linuxmib_filter_key:long(sk:long,op:long)
π ARGUMENTS π
skβ a pointer to thestruct sock. yes, that whole struct, she's pointing at it π«Άopβ the value that gets counted ifskpasses the filter. like, op is just sitting there waiting for permission, no cap π
π DESCRIPTION π
okay so here's the tea, bestie β
This function is a default filter function. The way that works is β you, yes you, can replace this function with your own. Iconic behavior, honestly β¨
Your user-supplied filter function gets to return an index key based on the values in sk. That's the whole vibe: you look at sk, you decide what key it maps to, and you hand that key back.
β οΈ and listen, this part matters β if your function returns0, that means this particularskshould not be counted. zero = you're not invited to the party, sorry not sorry π
π SEE ALSO π
SystemTap Tapset Reference Ver πΈ September 2026 π
k byeee, go count some sockets bestie, ily π«Άπβ¨
π¦ 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