FUNCTION::PROC_MEM_S(3stap)
π FUNCTION::PROC_MEM_S π
okay bestie, welcome to the Memory Tapset, section 3stap of the SystemTap Tapset Reference β¨ this is the manual page for function::proc_mem_shr, aka the little probe helper that tells you how many shared pages (from shared mappings) a process is rocking. no cap.
πΈ NAME πΈ
function::proc_mem_shr β Program shared pages (from shared mappings) π«Ά
β¨ SYNOPSIS β¨
1) proc_mem_shr:long()
2) proc_mem_shr:long(pid:long)
two flavors, both iconic π
π ARGUMENTS π
pidβ the pid of the process you wanna examine π
π DESCRIPTION π
1) returns the shared pages (from shared mappings) of the current process π«Ά and it hands you zero when there's no current process, or when the number of pages just couldn't be retrieved. tragic but honest π
2) returns the shared pages (from shared mappings) of the given process β the one you passed as pid β and again, zero when the process doesn't exist, or when the number of pages couldn't be retrieved π
both forms returnlong, both can give youzero, and neither one is out here guessing. periodt. π
π SEE ALSO π
tapset::proc_mem(3stap)β go read the whole tapset family, iykyk π
and that's the page, bestie π¦ this one's from the SystemTap Tapset Reference, manual section 3stap, and the footer is stamped September 2026 (the version line literally just says Ver, no shade, that's what it says π). go forth and count those shared pages, you ate. πβ¨π
π¦ 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