summaryrefslogtreecommitdiffstats
path: root/tapset/memory.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-06-30 09:21:36 -0400
committerDave Brolley <brolley@redhat.com>2009-06-30 09:21:36 -0400
commite5a9a77a535be94e915470eab5453e8976bc911c (patch)
tree3ee34a4f1c777c9671cea3e2f593eebe5afa8e9c /tapset/memory.stp
parentb2b6260ce7093deb44a70835a38fd7199f0b0954 (diff)
parent735e0540b865b9d6ba6d4e3baee61e1210b88810 (diff)
downloadsystemtap-steved-e5a9a77a535be94e915470eab5453e8976bc911c.tar.gz
systemtap-steved-e5a9a77a535be94e915470eab5453e8976bc911c.tar.xz
systemtap-steved-e5a9a77a535be94e915470eab5453e8976bc911c.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/memory.stp')
-rw-r--r--tapset/memory.stp5
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
}