From 0dc23d1d3435d0a1b8721618e6c898b9216a27e2 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mon, 31 Aug 2009 16:53:40 -0400 Subject: Add virtual memory subsystem tracepoint examples. --- testsuite/systemtap.examples/memory/mmanonpage.meta | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/systemtap.examples/memory/mmanonpage.meta (limited to 'testsuite/systemtap.examples/memory/mmanonpage.meta') diff --git a/testsuite/systemtap.examples/memory/mmanonpage.meta b/testsuite/systemtap.examples/memory/mmanonpage.meta new file mode 100644 index 00000000..496d10d8 --- /dev/null +++ b/testsuite/systemtap.examples/memory/mmanonpage.meta @@ -0,0 +1,13 @@ +title: Track Virtual Memory System Actions on Anonymous Pages +name: mmanonpage.stp +version: 1.0 +author: Red Hat +keywords: memory +subsystem: memory +status: experimental +exit: user-controlled +output: sorted-list +scope: system-wide +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. Its useful in debugging leaks in the anonymous regions of a process. +test_check: stap -p4 mmanonpage.stp +test_installcheck: stap mmanonpage.stp -c "sleep 1" -- cgit