Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
SystemTap - Beginners Guide

SystemTap - Beginners Guide

Ratings: (0)|Views: 303 |Likes:
Published by lupin88
Systemtap 1.0 SystemTap Beginners Guide
Introduction to SystemTap (for Fedora 10)

Don Domingo William Cohen

SystemTap Beginners Guide

Systemtap 1.0 SystemTap Beginners Guide Introduction to SystemTap (for Fedora 10) Edition 2.0
Author Author Copyright © 2009 Red Hat, Inc Don Domingo William Cohen ddomingo@redhat.com wcohen@redhat.com

This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the F
Systemtap 1.0 SystemTap Beginners Guide
Introduction to SystemTap (for Fedora 10)

Don Domingo William Cohen

SystemTap Beginners Guide

Systemtap 1.0 SystemTap Beginners Guide Introduction to SystemTap (for Fedora 10) Edition 2.0
Author Author Copyright © 2009 Red Hat, Inc Don Domingo William Cohen ddomingo@redhat.com wcohen@redhat.com

This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the F

More info:

Published by: lupin88 on Sep 02, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

09/24/2010

pdf

 
Systemtap 1.0SystemTapBeginners Guide
Introduction to SystemTap (for Fedora 10)Don DomingoWilliam Cohen
 
SystemTap Beginners Guide
Systemtap 1.0 SystemTap Beginners GuideIntroduction to SystemTap (for Fedora 10)Edition 2.0
AuthorDon Domingo
ddomingo@redhat.com
AuthorWilliam Cohen
wcohen@redhat.com
Copyright
©
2009 Red Hat, IncThis documentation is free software; you can redistribute it and/or modify it under the terms of theGNU General Public License version 2 as published by the Free Software Foundation.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; withouteven the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Seethe GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USAFor more details see the file COPYING in the source distribution of Linux.This guide provides basic instructions on how to use SystemTap to monitor different subsystems ofFedora 10 in finer detail. The
SystemTap Beginners Guide
is recommended for users who have taken
RHCT 
1
or have a similar level of expertise in Fedora 10.
1
https://www.redhat.com/courses/rh133_red_hat_linux_system_administration_and_rhct_exam/
 
iii
Preface v
1. Document Conventions ................................................................................................... v1.1. Typographic Conventions ...................................................................................... v1.2. Pull-quote Conventions ........................................................................................ vi1.3. Notes and Warnings ............................................................................................ vii2. We Need Feedback! ...................................................................................................... vii
1. Introduction 1
1.1. Documentation Goals ................................................................................................... 11.2. SystemTap Capabilities ................................................................................................. 1
2. Using SystemTap 3
2.1. Installation and Setup ................................................................................................... 32.1.1. Installing SystemTap .......................................................................................... 32.1.2. Installing Required Kernel Information RPMs ....................................................... 32.1.3. Initial Testing..................................................................................................... 52.2. Generating Instrumentation for Other Computers ........................................................... 52.3. Running SystemTapScripts .......................................................................................... 7
3. Understanding How SystemTap Works11
3.1. Architecture ................................................................................................................ 113.2. SystemTap Scripts ...................................................................................................... 113.2.1. Event .............................................................................................................. 133.2.2. Systemtap Handler/Body .................................................................................. 153.3. Basic SystemTap Handler Constructs .......................................................................... 183.3.1. Variables ......................................................................................................... 183.3.2. Conditional Statements .................................................................................... 193.3.3. Command-Line Arguments ............................................................................... 213.4. Associative Arrays ...................................................................................................... 213.5. Array Operations inSystemTap ................................................................................... 223.5.1. Assigning an Associated Value ......................................................................... 223.5.2. Reading Values From Arrays ............................................................................ 223.5.3. IncrementingAssociated Values ....................................................................... 233.5.4. Processing Multiple Elements in an Array .......................................................... 233.5.5. Clearing/Deleting Arrays andArray Elements .................................................... 243.5.6. Using Arrays in Conditional Statements ............................................................ 253.5.7. Computing for Statistical Aggregates ................................................................ 263.6. Tapsets ...................................................................................................................... 28
4. Useful SystemTap Scripts29
4.1. Network ..................................................................................................................... 294.1.1. Network Profiling ............................................................................................. 294.1.2. TracingFunctions Called in Network Socket Code ............................................. 314.1.3. Monitoring Incoming TCP Connections .............................................................. 324.1.4. Monitoring TCP Packets .................................................................................. 324.1.5. Monitoring Network Packets Drops in Kernel ..................................................... 344.2. Disk ........................................................................................................................... 354.2.1. Summarizing Disk Read/Write Traffic ................................................................ 354.2.2. Tracking I/O Time For Each File Read or Write .................................................. 374.2.3. Track Cumulative IO ........................................................................................ 394.2.4. I/O Monitoring (By Device) ............................................................................... 414.2.5. Monitoring Reads and Writes to aFile .............................................................. 424.2.6. Monitoring Changes to File Attributes ................................................................ 43

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Li Jie liked this
lupin88 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->