/usr/share/systemtap/examples/memory
NameSizeModeActions
cachestat.meta5450644editdlrm
cachestat.stp13180755editdlrm
glibc-malloc.meta3810644editdlrm
glibc-malloc.stp24860755editdlrm
hugepage_clear_delays.meta9460644editdlrm
hugepage_clear_delays.stp4830755editdlrm
hugepage_collapse.meta7180644editdlrm
hugepage_collapse.stp1590755editdlrm
hugepage_cow_delays.meta11060644editdlrm
hugepage_cow_delays.stp4750755editdlrm
hugepage_split.meta7560644editdlrm
hugepage_split.stp1530755editdlrm
hw_watch_addr.meta7870644editdlrm
hw_watch_addr.stp1670755editdlrm
hw_watch_addr.tcl970644editdlrm
hw_watch_sym.meta7150644editdlrm
hw_watch_sym.stp1670755editdlrm
hw_watch_sym.tcl970644editdlrm
kmalloc-top38880755editdlrm
kmalloc-top.meta6950644editdlrm
last_100_frees.meta4200644editdlrm
last_100_frees.stp8030755editdlrm
last_100_frees.tcl790644editdlrm
last_100_frees.txt7740644editdlrm
mmanonpage.meta12250644editdlrm
mmanonpage.stp18160755editdlrm
mmfilepage.meta10330644editdlrm
mmfilepage.stp35370755editdlrm
mmreclaim.meta6060644editdlrm
mmreclaim.stp52320755editdlrm
mmwriteback.meta11140644editdlrm
mmwriteback.stp19000755editdlrm
numa_faults.meta7020644editdlrm
numa_faults.stp9730755editdlrm
numa_faults.txt17100644editdlrm
overcommit.meta5840644editdlrm
overcommit.stp2170755editdlrm
pfaults.meta7440644editdlrm
pfaults.stp8750755editdlrm
pfaults.txt5580644editdlrm
vm.tracepoints.meta6080644editdlrm
vm.tracepoints.stp4140755editdlrm
vm.tracepoints.txt5570644editdlrm
Edit: /usr/share/systemtap/examples/memory/numa_faults.stp (973B)
#!/usr/bin/stap global execnames, page_faults, node_faults, nodes probe vm.pagefault { execnames[pid()] = execname() page_faults[pid(), write_access ? 1 : 0] <<< 1 try { n=addr_to_node(address) node_faults[pid(), n] <<< 1 nodes[n] <<< 1 } catch { } } function print_pf () { printf ("\n") printf ("%-16s %-6s %10s %10s %-20s\n", "Execname", "PID", "RD Faults", "WR Faults", "Node:Faults") print ("======================= ========== ========== =============\n") foreach (pid in execnames) { printf ("%-16s %6d %10d %10d ", execnames[pid], pid, @count(page_faults[pid,0]), @count(page_faults[pid,1])) foreach ([node+] in nodes) { if ([pid, node] in node_faults) printf ("%d:%d ", node, @count(node_faults[pid, node])) } printf ("\n") } printf("\n") } probe begin { printf("Starting pagefault counters \n") } probe end { printf("Printing counters: \n") print_pf () printf("Done\n") }