Debian Codegraph @

EXAMPLES/memory/mmfilepage.meta

raw
1 title: Track Virtual Memory System Actions on File Backed Pages
2 name: mmfilepage.stp
3 version: 1.0
4 author: Red Hat
5 keywords: memory bpf
6 subsystem: memory
7 status: experimental
8 exit: user-controlled
9 output: sorted-list
10 scope: system-wide
11 description: The mmfilepage.stp script uses the virtual memory tracepoints available in some kernels to track the number of faults, copy on writes mapping, and unmapping operations for file backed pages. When the script is terminated the counts are printed for each process that allocated pages while the script was running. The mmfilepage.stp script is useful in debugging leaks in the mapped file regions of a process.
12 test_support: (stap -l 'kernel.trace("mm_page_alloc")' || stap -l 'kernel.trace("mm_page_allocation")') && (stap -l 'kernel.trace("mm_page_free")' || stap -l 'kernel.trace("mm_page_free_direct")')
13 test_check: stap -p4 mmfilepage.stp
14 test_installcheck: stap mmfilepage.stp -T 1
15 test_check_bpf: stap --bpf -p4 mmfilepage.stp
16 test_installcheck_bpf: stap --bpf mmfilepage.stp -T 1