summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/pfaults.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/pfaults.stp')
-rw-r--r--testsuite/systemtap.samples/pfaults.stp5
1 files changed, 1 insertions, 4 deletions
diff --git a/testsuite/systemtap.samples/pfaults.stp b/testsuite/systemtap.samples/pfaults.stp
index 753409ba..ababaa10 100644
--- a/testsuite/systemtap.samples/pfaults.stp
+++ b/testsuite/systemtap.samples/pfaults.stp
@@ -13,12 +13,9 @@ probe kernel.function(%( kernel_v > "2.6.9" %? "__handle_mm_fault"
faults [pid(), $write_access ? 1 : 0] ++
}
-# (needed only until bug 1132 supports $retvalue)
-function get_retvalue:long () %{ THIS->__retvalue = fetch_register(0); %}
-
probe kernel.function(%( kernel_v > "2.6.9" %? "__handle_mm_fault"
%: "handle_mm_fault" %)).return {
- fault_types [pid(), get_retvalue()] ++
+ fault_types [pid(), $return] ++
}