FUNCTION::PROC_MEM_T(3stap)
π FUNCTION::PROC_MEM_T(3stap) π
okay bestie, so this one lives in the Memory Tapset of the SystemTap Tapset Reference and it's literally about how much code your process is carrying around. no cap. π§
β¨ NAME β¨
function::proc_mem_txt β Program text (code) size in pages π
like, the text segment. the actual instructions. the brain cells. π§
πΈ SYNOPSIS πΈ
1) proc_mem_txt:long()
2) proc_mem_txt:long(pid:long)
two whole flavors, bestie. pick your fighter. π
π¦ ARGUMENTS π¦
pidβ The pid of process to examine π
that's it. that's the whole argument list. one (1) number and she's done.
π DESCRIPTION π
So there are two versions and they are not the same vibe, okay, let's go:
proc_mem_txt:long()β Returns the current process text (code) size in pages, or zero when there is no current process or the number of pages couldn't be retrieved. π«Άproc_mem_txt:long(pid:long)β Returns the given process text (code) size in pages, or zero when the process doesn't exist or the number of pages couldn't be retrieved. β¨
lowkey important: both of them hand you a zero when things go sideways. zero current process? zero. process not there? zero. pages just not retrievable? you guessed it, zero. so don't be out here reading a 0 as "this process has no code," because it might be saying "girl, i couldn't get the number." π
the "in pages" thing is doing a lot of work here β it's pages, not bytes, not kilobytes, not a vibe. pages. periodt. π
π₯ SEE ALSO π₯
tapset::proc_mem(3stap)β go read the whole fam, she has siblings π
and that's the whole page, bestie!! πβπ
this gorgeous little number comes to you from the SystemTap Tapset Reference, version dated September 2026 β yes, the future, we're ahead of schedule, we ate. π π
mwah, go measure some text segments. ππ¦β¨
π¦ 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