Debian Codegraph @

EXAMPLES/memory/mmanonpage.meta

raw
1 title: Track Virtual Memory System Actions on Anonymous Pages
2 name: mmanonpage.stp
3 version: 1.0
4 author: Red Hat
5 keywords: memory
6 subsystem: memory
7 status: experimental
8 exit: user-controlled
9 output: sorted-list
10 scope: system-wide
11 description: The mmanonpage.stp script uses the virtual memory tracepoints available in some kernels to track the number of faults, user space frees, page ins, copy on writes and unmaps for anonymous pages. When the script is terminated the counts are printed for each process that allocated pages while the script was running. This script displays the anonymous page statistics for each process that ran while the script is active. It's useful in debugging leaks in the anonymous 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")') && stap -l 'kernel.trace("mm_anon_fault")' && stap -l 'kernel.trace("mm_anon_pgin")' && stap -l 'kernel.trace("mm_anon_cow")' && stap -l 'kernel.trace("mm_anon_unmap")' && stap -l 'kernel.trace("mm_anon_userfree")'
13 test_check: stap -p4 mmanonpage.stp
14 test_installcheck: stap mmanonpage.stp -T 1