public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* pfaults.stp fix (for 2.6.13 and beyond)
@ 2005-10-05 15:21 Badari Pulavarty
  2005-10-05 16:14 ` William Cohen
  0 siblings, 1 reply; 4+ messages in thread
From: Badari Pulavarty @ 2005-10-05 15:21 UTC (permalink / raw)
  To: systemtap

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

Hi,

handle_mm_fault() became a inline function now (2.6.13 & beyond). 
So pfaults.stp should use __handle_mm_fault() instead.

Thanks,
Badari

[root@elm3b23 systemtap.samples]# stap -g pfaults.stp
semantic error: no match for probe point
         while: resolving probe point kernel.function("handle_mm_fault")
semantic error: no match for probe point
         while: resolving probe point kernel.function
("handle_mm_fault").return
Pass 2: analysis failed.  Try again with '-v' (verbose) option.




[-- Attachment #2: pfaults.patch --]
[-- Type: text/x-patch, Size: 818 bytes --]

--- tests/testsuite/systemtap.samples/pfaults.stp	2005-10-05 08:13:29.000000000 -0700
+++ tests.new/testsuite/systemtap.samples/pfaults.stp	2005-10-05 08:11:27.000000000 -0700
@@ -2,7 +2,7 @@
 
 global pidnames, faults, fault_types
 
-probe kernel.function("handle_mm_fault") {
+probe kernel.function("__handle_mm_fault") {
 
    # Maintain a pid-to-execname mapping.  This logic should get transplanted
    # into a tapset script that is automatically included upon reference to
@@ -15,7 +15,7 @@ probe kernel.function("handle_mm_fault")
 # (needed only until bug 1132 supports $retvalue)
 function get_retvalue:long () %{ THIS->__retvalue = fetch_register(0); %}
 
-probe kernel.function("handle_mm_fault").return {
+probe kernel.function("__handle_mm_fault").return {
   fault_types [pid(), get_retvalue()] ++
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-05 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-05 15:21 pfaults.stp fix (for 2.6.13 and beyond) Badari Pulavarty
2005-10-05 16:14 ` William Cohen
2005-10-05 17:36   ` Badari Pulavarty
2005-10-05 18:18     ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).