FUNCTION::PROC\_MEM\_S(3stap) Memory Tapset FUNCTION::PROC\_MEM\_S(3stap)

# [NAME](#NAME)

function::proc\_mem\_shr - Program shared pages (from shared mappings)

# [SYNOPSIS](#SYNOPSIS)

```
1) proc_mem_shr:long()
```

```
2) proc_mem_shr:long(pid:long)
```

# [ARGUMENTS](#ARGUMENTS)

*pid*

The pid of process to examine

# [DESCRIPTION](#DESCRIPTION)

1\) Returns the shared pages (from shared mappings) of the current process, or zero when there is no current process or the number of pages couldn't be retrieved.

2\) Returns the shared pages (from shared mappings) of the given process, or zero when the process doesn't exist or the number of pages couldn't be retrieved.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::proc\_mem*(3stap)](/man/enterprise-packages/systemtap/tapset::proc_mem.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::proc_mem_shr(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
