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 return long, both can give you zero, and neither one is out here guessing. periodt. πŸ‘‘

🌈 SEE ALSO 🌈


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