From 9ddaa7a839385ea194d958295ac330350147c52c Mon Sep 17 00:00:00 2001 From: mmason Date: Wed, 25 Jul 2007 18:39:18 +0000 Subject: Another fix for PR4836. --- testsuite/systemtap.samples/pfaults.stp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'testsuite/systemtap.samples') 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] ++ } -- cgit