From d113ceaefa4dc24df10ffa1591e2315c1268b759 Mon Sep 17 00:00:00 2001 From: wcohen Date: Tue, 24 Apr 2007 15:21:01 +0000 Subject: * tapset/memory.stp: Add matching vm.pagefault.return * testsuite/buildok/memory.stp: Test vm.pagefault.return. --- tapset/memory.stp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tapset/memory.stp') diff --git a/tapset/memory.stp b/tapset/memory.stp index a3ed628f..61c77dff 100644 --- a/tapset/memory.stp +++ b/tapset/memory.stp @@ -26,6 +26,23 @@ probe vm.pagefault = kernel.function( address = $address } +/* probe vm.pagefault.return + * + * Records type of fault that occurred. + * + * Context: + * The process which triggered the fault. + * + * Arguments: + * fault_type - type of fault + */ +probe vm.pagefault.return = kernel.function( + %( kernel_v >= "2.6.13" %? "__handle_mm_fault" %: "handle_mm_fault" %) + ).return +{ + fault_type = $return +} + /* Return which node the given address belongs to in a NUMA system */ function addr_to_node:long(addr:long) /* pure */ %{ -- cgit