diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-06-29 21:42:19 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-06-29 21:42:19 -0400 |
commit | 7735320dcc4008bb5bf8777942ecc5e215fd1a29 (patch) | |
tree | 2665eb5d766db374eb4952d001bd82db393150e0 /tapset/memory.stp | |
parent | 2fd285e65eb8e1f77cb5b70a1f81377896ad6b2c (diff) | |
download | systemtap-steved-7735320dcc4008bb5bf8777942ecc5e215fd1a29.tar.gz systemtap-steved-7735320dcc4008bb5bf8777942ecc5e215fd1a29.tar.xz systemtap-steved-7735320dcc4008bb5bf8777942ecc5e215fd1a29.zip |
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.
Diffstat (limited to 'tapset/memory.stp')
-rw-r--r-- | tapset/memory.stp | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |