From a5f9c6cd906fd8079aeb427db8023913f277cac5 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mon, 8 Dec 2008 14:07:40 -0500 Subject: Minor edits in Chapter 2 and avoid using using yum file that may not be there. --- .../en-US/CrossInstrumenting.xml | 15 ++++++++------- doc/SystemTap_Beginners_Guide/en-US/Using_SystemTap.xml | 14 +++++++------- .../en-US/extras/rheldebugurl.sh | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) (limited to 'doc/SystemTap_Beginners_Guide/en-US') diff --git a/doc/SystemTap_Beginners_Guide/en-US/CrossInstrumenting.xml b/doc/SystemTap_Beginners_Guide/en-US/CrossInstrumenting.xml index c4b643d3..fab33217 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/CrossInstrumenting.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/CrossInstrumenting.xml @@ -42,7 +42,7 @@ When users run a SystemTap script, SystemTap builds a kernel module out of - that script. SystemTap then loads the module onto the kernel, allowing it to + that script. SystemTap then loads the module into the kernel, allowing it to extract the specified data directly from the kernel (refer to in for more information). @@ -217,17 +217,18 @@ Determine the kernel running on each target system - by running the by running uname -r on each + by running uname -r on each target system. - Install SystemTap on the host system. It is from - this machine that you will be building the instrumentation - module (to be used on target - systems). For instructions on how to install SystemTap, refer + Install SystemTap on the host system. + You will be building the instrumentation + module for the target + systems on the host system. + For instructions on how to install SystemTap, refer to . @@ -293,7 +294,7 @@ stap -r kernel_version script Once the the instrumentation module is compiled, copy - it to the target system and load it using: + it to the target system and then load it using: diff --git a/doc/SystemTap_Beginners_Guide/en-US/Using_SystemTap.xml b/doc/SystemTap_Beginners_Guide/en-US/Using_SystemTap.xml index 2b5384c4..acaf0e17 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Using_SystemTap.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Using_SystemTap.xml @@ -166,13 +166,6 @@ - - -e 'script' - - Run given script. - - - -x process ID @@ -194,6 +187,13 @@ --> + + -e 'script' + + Use script + string rather than a file as input for systemtap translator. + + You can also instruct stap to run scripts from standard input using the switch -. To illustrate: diff --git a/doc/SystemTap_Beginners_Guide/en-US/extras/rheldebugurl.sh b/doc/SystemTap_Beginners_Guide/en-US/extras/rheldebugurl.sh index 72b03bcd..0449843e 100755 --- a/doc/SystemTap_Beginners_Guide/en-US/extras/rheldebugurl.sh +++ b/doc/SystemTap_Beginners_Guide/en-US/extras/rheldebugurl.sh @@ -1,5 +1,5 @@ #! /bin/bash -pkg=`grep distroverpkg /etc/yum.conf |awk -F= '{print $2}'` +pkg="redhat-release" releasever=`rpm -q --qf "%{version}" $pkg` base=`uname -m` echo "ftp://ftp.redhat.com/pub/redhat/linux/\ -- cgit