From 7735320dcc4008bb5bf8777942ecc5e215fd1a29 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 29 Jun 2009 21:42:19 -0400 Subject: Update memory and ioscheduler tapset for 2.6.31 * tapset/ioscheduler.stp (elv_next_request): Change to blk_peek_request. * tapset/memory.stp (vm.pagefault): Replace $write_access. --- tapset/memory.stp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tapset/memory.stp') diff --git a/tapset/memory.stp b/tapset/memory.stp index 83875aa4..a855fbcb 100644 --- a/tapset/memory.stp +++ b/tapset/memory.stp @@ -15,6 +15,7 @@ global VM_FAULT_OOM=0, VM_FAULT_SIGBUS=1, VM_FAULT_MINOR=2, VM_FAULT_MAJOR=3 global VM_FAULT_NOPAGE=4, VM_FAULT_LOCKED=5, VM_FAULT_ERROR=6 +global FAULT_FLAG_WRITE=1 /** * sfunction vm_fault_contains - Test return value for page fault reason @@ -64,7 +65,11 @@ function vm_fault_contains:long (value:long, test:long) probe vm.pagefault = kernel.function("__handle_mm_fault@mm/memory.c") ?, kernel.function("handle_mm_fault@mm/memory.c") ? { +%( kernel_v >= "2.6.31" %? + write_access = $flags & FAULT_FLAG_WRITE +%: write_access = $write_access +%) address = $address } -- cgit