summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
authormmason <mmason>2007-07-25 18:39:18 +0000
committermmason <mmason>2007-07-25 18:39:18 +0000
commit9ddaa7a839385ea194d958295ac330350147c52c (patch)
tree30c8d09d7a5514a0b29470e1bd043666edc84d98 /testsuite/systemtap.samples
parent7f4d628d6285195e19c692485d21928c85088b45 (diff)
downloadsystemtap-steved-9ddaa7a839385ea194d958295ac330350147c52c.tar.gz
systemtap-steved-9ddaa7a839385ea194d958295ac330350147c52c.tar.xz
systemtap-steved-9ddaa7a839385ea194d958295ac330350147c52c.zip
Another fix for PR4836.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/pfaults.stp7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuite/systemtap.samples/pfaults.stp b/testsuite/systemtap.samples/pfaults.stp
index ababaa10..525aa511 100644
--- a/testsuite/systemtap.samples/pfaults.stp
+++ b/testsuite/systemtap.samples/pfaults.stp
@@ -2,9 +2,7 @@
global pidnames, faults, fault_types
-probe kernel.function(%( kernel_v > "2.6.9" %? "__handle_mm_fault"
- %: "handle_mm_fault" %)) {
-
+probe vm.pagefault {
# Maintain a pid-to-execname mapping. This logic should get transplanted
# into a tapset script that is automatically included upon reference to
# its exported global variable.
@@ -13,8 +11,7 @@ probe kernel.function(%( kernel_v > "2.6.9" %? "__handle_mm_fault"
faults [pid(), $write_access ? 1 : 0] ++
}
-probe kernel.function(%( kernel_v > "2.6.9" %? "__handle_mm_fault"
- %: "handle_mm_fault" %)).return {
+probe vm.pagefault.return {
fault_types [pid(), $return] ++
}