summaryrefslogtreecommitdiffstats
path: root/SystemTap_Beginners_Guide/threadtimessect.html
diff options
authorfche <fche>2014-12-22 17:29:33 +0000
committerfche <fche>2014-12-22 17:29:33 +0000
commit37d569d36747707abe7b672bfa89a543fb89c585 (patch)
treec829cf82d3e4238bf69cb9dbeb7a91f662d54907 /SystemTap_Beginners_Guide/threadtimessect.html
parentadd new langref/*.html (diff)
added new man pages
Diffstat (limited to 'SystemTap_Beginners_Guide/threadtimessect.html')
-rw-r--r--SystemTap_Beginners_Guide/threadtimessect.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/SystemTap_Beginners_Guide/threadtimessect.html b/SystemTap_Beginners_Guide/threadtimessect.html
index 3b269312..270456d2 100644
--- a/SystemTap_Beginners_Guide/threadtimessect.html
+++ b/SystemTap_Beginners_Guide/threadtimessect.html
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">5.3.3. Determining Time Spent in Kernel and User Space</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.1.3" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="SystemTap-SystemTap_Beginners_Guide-2.7-en-US-2.0-1" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-profiling.html" title="5.3. Profiling" /><link rel="prev" href="paracallgraph.html" title="5.3.2. Call Graph Tracing" /><link rel="next" href="timeoutssect.html" title="5.3.4. Monitoring Polling Applications" /></head><body><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="https://fedorahosted.org/publican"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="paracallgraph.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="timeoutssect.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="threadtimessect"> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">5.3.3. Determining Time Spent in Kernel and User Space</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.1.3" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="SystemTap-SystemTap_Beginners_Guide-2.7-en-US-2.0-1" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-profiling.html" title="5.3. Profiling" /><link rel="prev" href="paracallgraph.html" title="5.3.2. Call Graph Tracing" /><link rel="next" href="timeoutssect.html" title="5.3.4. Monitoring Polling Applications" /></head><body><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="https://fedorahosted.org/publican"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="paracallgraph.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="timeoutssect.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="threadtimessect">
3 ⁠</a>5.3.3. Determining Time Spent in Kernel and User Space</h3></div></div></div><a id="idm47722990877808" class="indexterm"></a><a id="idm47723005446736" class="indexterm"></a><a id="idm47722988712144" class="indexterm"></a><a id="idm47723001297200" class="indexterm"></a><a id="idm47722990800416" class="indexterm"></a><a id="idm47722999144112" class="indexterm"></a><div class="para"> 3 ⁠</a>5.3.3. Determining Time Spent in Kernel and User Space</h3></div></div></div><a id="idm47650191053984" class="indexterm"></a><a id="idm47650187922336" class="indexterm"></a><a id="idm47650191275936" class="indexterm"></a><a id="idm47650183483104" class="indexterm"></a><a id="idm47650191378336" class="indexterm"></a><a id="idm47650145370832" class="indexterm"></a><div class="para">
4 This section illustrates how to determine the amount of time any given thread is spending in either kernel or user-space. 4 This section illustrates how to determine the amount of time any given thread is spending in either kernel or user-space.
5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">thread-times.stp</div> 5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">thread-times.stp</div>
6 6
@@ -40,7 +40,7 @@ probe timer.s(5), end {
40 delete tids 40 delete tids
41} 41}
42</pre> 42</pre>
43 </div><a id="idm47723009119936" class="indexterm"></a><a id="idm47722995213632" class="indexterm"></a><a id="idm47722951181136" class="indexterm"></a><div class="para"> 43 </div><a id="idm47650180862528" class="indexterm"></a><a id="idm47650183346960" class="indexterm"></a><a id="idm47650154336912" class="indexterm"></a><div class="para">
44 <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a> lists the top 20 processes currently taking up CPU time within a 5-second sample, along with the total number of CPU ticks made during the sample. The output of this script also notes the percentage of CPU time each process used, as well as whether that time was spent in kernel space or user space. 44 <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a> lists the top 20 processes currently taking up CPU time within a 5-second sample, along with the total number of CPU ticks made during the sample. The output of this script also notes the percentage of CPU time each process used, as well as whether that time was spent in kernel space or user space.
45 </div><div class="para"> 45 </div><div class="para">
46 <a class="xref" href="threadtimessect.html#threadtimesoutput">Example 5.15, “thread-times.stp Sample Output”</a> contains a 5-second sample of the output for <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a>: 46 <a class="xref" href="threadtimessect.html#threadtimesoutput">Example 5.15, “thread-times.stp Sample Output”</a> contains a 5-second sample of the output for <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a>: