* testsuite/buildok/memory.stp: Test vm.pagefault.return.
+2007-04-24 Will Cohen <wcohen@redhat.com>
+
+ * tapset/memory.stp: Add matching vm.pagefault.return
+ * testsuite/buildok/memory.stp: Test vm.pagefault.return.
+
2007-04-24 Martin Hunt <hunt@redhat.com>
* stp_check.in: More tweaking of mount statement.
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 */
%{
{
printf("ppname: %s, %d, %p\n", probefunc(), write_access, address)
}
+
+probe vm.pagefault.return
+{
+ printf("ppname: %s, %d\n", probefunc(), fault_type)
+}