PROBE::VM.KMALLOC(3stap)
π probe::vm.kmalloc β the 3stap moment π
okay bestie, so this is a page from the SystemTap Tapset Reference (that's the 3stap manual, iykyk), and we're talking about the vm.kmalloc probe. it's giving memory-allocated realness. let's go β¨
β¨ NAME β¨
probe::vm.kmalloc β Fires when kmalloc is requested π
like. the second somebody asks the kernel for some kmemory, this probe is UP and it is READY. main character energy fr fr π
π¦ SYNOPSIS π¦
probe vm.kmalloc {}
no args, no drama, just vibes. she takes nothing and she fires anyway. iconic π«Ά
πΈ VALUES πΈ
these are the lil' goodies the probe hands you when it fires. every single one, no skips, no cap π
ptrβ a pointer to the kmemory that got allocated. that's your address bestie, hold onto it πcaller_functionβ the name of the caller function. as in, who ordered this allocation. we found them πgfp_flagsβ the type of kmemory to allocate. flags, but make it allocation-coded β¨bytes_allocβ the allocated Bytes. what you actually got πgfp_flag_nameβ the type of kmemory to allocate, but in String format. same energy asgfp_flags, just dressed up cute πnameβ the name of the probe point. hi, it's me, the probe point πbytes_reqβ the requested Bytes. what you asked for (not always what you get, and that's the tea π)call_siteβ the address of the kmemory function. where the whole thing went down π
ngl,bytes_reqandbytes_allocbeing two separate values is the plot twist of this entire page. requested vs. allocated. they're not the same and we love that for them π
π SEE ALSO π
tapset::memory(3stap)β go read this one too, bestie, it's the whole memory tapset and it ATE πΈ
and that's the page!! this was SystemTap Tapset Reference, version dated September 2026, and honestly? she served. thanks for coming to my ted talk, now go instrument some kmalloc calls ππ§β¨
π¦ 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