FUNCTION::PROC_MEM_D(3stap)
π function::proc_mem_data β the page-counting queen of process memory π
okay so bestie, we're in the Memory Tapset section of the SystemTap Tapset Reference, and the page we're reading is function::proc_mem_data(3stap). yes it's a mouthful, no you don't have to say it out loud. π«Ά
πΈ NAME πΈ
function::proc_mem_data β program data size (data + stack) in pages
like. it counts pages. data plus stack. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
1) proc_mem_data:long()
2) proc_mem_data:long(pid:long)
two flavours, same energy. one takes a pid, one is just out here doing its own thing. π
π ARGUMENTS π
pidβ the pid of process to examine π
that's it. that's the argument. she's simple, she's iconic.
β¨ DESCRIPTION β¨
so there's two versions and you gotta know which one you're calling, fr fr:
- Returns the current process data size (data + stack) in pages, or zero when there is no current process or the number of pages couldn't be retrieved. π (yes, zero. that's the "bestie I literally could not" fallback.)
- Returns the given process data size (data + stack) in pages, or zero when the process doesn't exist or the number of pages couldn't be retrieved. π
ngl the zero is doing a lot of heavy lifting here β it's the answer both when there's genuinely nothing and when the page count just couldn't be retrieved. don't be out here assuming zero means "no memory", okay? π
π SEE ALSO π
go read the family. she's not doing this alone. π
okay that's the whole page, you ate it, no crumbs. π this was pulled straight from the SystemTap Tapset Reference, version noted as Ver, dated September 2026 β mwah, periodt. πβ¨
π¦ 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