From 11b4229ae5bebfa15a3a742b31fe9c346a462650 Mon Sep 17 00:00:00 2001 From: ddomingo Date: Tue, 16 Sep 2008 13:35:57 +1000 Subject: minor edits as per david smith, flavio leitner --- doc/SystemTap_Beginners_Guide/en-US/Scripts.xml | 73 +++++++++++++++++++++++++ 1 file changed, 73 insertions(+) (limited to 'doc/SystemTap_Beginners_Guide') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Scripts.xml b/doc/SystemTap_Beginners_Guide/en-US/Scripts.xml index 8426dc70..bbd265c2 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Scripts.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Scripts.xml @@ -122,6 +122,29 @@ probe timer.ms(4000) + + module("[module]").function("[function]") + + Allows you to probe functions within modules. For example: + +Module Probe + +probe module("ext3").function("*") { } +probe module("ext3").function("*").return { } + + + + + The first probe in points to the entry of all functions for the ext3 module. The second probe points to the exits of all entries for that same module; the use of the .return suffix is similar to kernel.function(). Note that the probes in also do not contain probe bodies, and as such will not print any useful data (as in ). + + + + A system's loaded modules are typically located in /lib/modules/[kernel version], where kernel version refers to the currently loaded kernel. Modules use the filename extension .ko. + + + + +