summaryrefslogtreecommitdiffstats
path: root/SystemTap_Beginners_Guide
diff options
authorFrank Ch. Eigler <fche@redhat.com>2024-06-01 10:19:04 -0400
committerFrank Ch. Eigler <fche@redhat.com>2024-06-01 10:19:04 -0400
commit4f6d86506bfb5c93ffb1ca161b0771256da3383b (patch)
treeca0a4e4af255f17fb57d3e471fa0538c191d091f /SystemTap_Beginners_Guide
parentadded new man pages (diff)
regen, replace some subdirs with in-place html (not sure why)
Diffstat (limited to 'SystemTap_Beginners_Guide')
-rw-r--r--SystemTap_Beginners_Guide/Common_Content/images/image_left.svg1774
-rw-r--r--SystemTap_Beginners_Guide/SystemTap_Beginners_Guide-Preface.html8
-rw-r--r--SystemTap_Beginners_Guide/SystemTap_Beginners_Guide.proc0
-rw-r--r--SystemTap_Beginners_Guide/arrayoperators.html4
-rw-r--r--SystemTap_Beginners_Guide/arrayops-aggregates.html12
-rw-r--r--SystemTap_Beginners_Guide/arrayops-conditionals.html4
-rw-r--r--SystemTap_Beginners_Guide/arrayops-deleting.html4
-rw-r--r--SystemTap_Beginners_Guide/arrayops-foreach.html4
-rw-r--r--SystemTap_Beginners_Guide/arrayops-increment.html2
-rw-r--r--SystemTap_Beginners_Guide/arrayops-readvalues.html6
-rw-r--r--SystemTap_Beginners_Guide/associativearrays.html2
-rw-r--r--SystemTap_Beginners_Guide/commandlineargssect.html4
-rw-r--r--SystemTap_Beginners_Guide/cross-compiling.html24
-rw-r--r--SystemTap_Beginners_Guide/errors.html50
-rw-r--r--SystemTap_Beginners_Guide/futexcontentionsect.html6
-rw-r--r--SystemTap_Beginners_Guide/handlerconditionalstatements.html10
-rw-r--r--SystemTap_Beginners_Guide/index.html6
-rw-r--r--SystemTap_Beginners_Guide/inodewatch2sect.html2
-rw-r--r--SystemTap_Beginners_Guide/inodewatchsect.html4
-rw-r--r--SystemTap_Beginners_Guide/intro-systemtap-limitations.html2
-rw-r--r--SystemTap_Beginners_Guide/intro-systemtap-vs-others.html2
-rw-r--r--SystemTap_Beginners_Guide/introduction.html4
-rw-r--r--SystemTap_Beginners_Guide/ioblktimesect.html2
-rw-r--r--SystemTap_Beginners_Guide/iotimesect.html4
-rw-r--r--SystemTap_Beginners_Guide/ix01.html4
-rw-r--r--SystemTap_Beginners_Guide/mainsect-disk.html4
-rw-r--r--SystemTap_Beginners_Guide/mainsect-profiling.html4
-rw-r--r--SystemTap_Beginners_Guide/paracallgraph.html6
-rw-r--r--SystemTap_Beginners_Guide/pr01s02.html4
-rw-r--r--SystemTap_Beginners_Guide/runtimeerror.html34
-rw-r--r--SystemTap_Beginners_Guide/scriptconstructions.html8
-rw-r--r--SystemTap_Beginners_Guide/scripts.html34
-rw-r--r--SystemTap_Beginners_Guide/syscallsbyprocpidsect.html2
-rw-r--r--SystemTap_Beginners_Guide/systemtapscript-handler.html22
-rw-r--r--SystemTap_Beginners_Guide/targetavailable.html2
-rw-r--r--SystemTap_Beginners_Guide/targetvariables.html4
-rw-r--r--SystemTap_Beginners_Guide/threadtimessect.html4
-rw-r--r--SystemTap_Beginners_Guide/timeoutssect.html4
-rw-r--r--SystemTap_Beginners_Guide/topsyssect.html4
-rw-r--r--SystemTap_Beginners_Guide/traceio2sect.html4
-rw-r--r--SystemTap_Beginners_Guide/traceiosect.html4
-rw-r--r--SystemTap_Beginners_Guide/typecasting.html2
-rw-r--r--SystemTap_Beginners_Guide/understanding-how-systemtap-works.html10
-rw-r--r--SystemTap_Beginners_Guide/understanding-tapsets.html2
-rw-r--r--SystemTap_Beginners_Guide/useful-systemtap-scripts.html18
-rw-r--r--SystemTap_Beginners_Guide/userspace-probing.html13
-rw-r--r--SystemTap_Beginners_Guide/using-systemtap.html12
-rw-r--r--SystemTap_Beginners_Guide/using-usage.html16
-rw-r--r--SystemTap_Beginners_Guide/ustack.html2
-rw-r--r--SystemTap_Beginners_Guide/utargetvariable.html2
50 files changed, 1965 insertions, 200 deletions
diff --git a/SystemTap_Beginners_Guide/Common_Content/images/image_left.svg b/SystemTap_Beginners_Guide/Common_Content/images/image_left.svg
new file mode 100644
index 00000000..b9c38f1d
--- /dev/null
+++ b/SystemTap_Beginners_Guide/Common_Content/images/image_left.svg
@@ -0,0 +1,1774 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!-- Created with Inkscape (http://www.inkscape.org/) -->
3<svg
4 xmlns:ns="http://creativecommons.org/ns#"
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:cc="http://web.resource.org/cc/"
7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8 xmlns:svg="http://www.w3.org/2000/svg"
9 xmlns="http://www.w3.org/2000/svg"
10 xmlns:xlink="http://www.w3.org/1999/xlink"
11 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13 id="svg2444"
14 sodipodi:version="0.32"
15 inkscape:version="0.45.1"
16 width="352.42969"
17 height="330.09277"
18 version="1.0"
19 sodipodi:docname="smileytap.svg"
20 inkscape:output_extension="org.inkscape.output.svg.inkscape"
21 style="enable-background:new"
22 inkscape:export-filename="fche-smileytap-tagline.png"
23 inkscape:export-xdpi="510.67462"
24 inkscape:export-ydpi="510.67462"
25 sodipodi:docbase="git">
26 <metadata
27 id="metadata2449">
28 <rdf:RDF>
29 <ns:Work
30 rdf:about="">
31 <dc:format />
32 <dc:type
33 rdf:resource="" />
34 <dc:title />
35 <dc:date />
36 <dc:creator>
37 <ns:Agent>
38 <dc:title />
39 </ns:Agent>
40 </dc:creator>
41 <dc:rights>
42 <ns:Agent>
43 <dc:title />
44 </ns:Agent>
45 </dc:rights>
46 <dc:publisher>
47 <ns:Agent>
48 <dc:title />
49 </ns:Agent>
50 </dc:publisher>
51 <dc:identifier />
52 <dc:source />
53 <dc:relation />
54 <dc:language />
55 <dc:subject>
56 <rdf:Bag />
57 </dc:subject>
58 <dc:coverage />
59 <dc:description />
60 <dc:contributor>
61 <ns:Agent>
62 <dc:title />
63 </ns:Agent>
64 </dc:contributor>
65 <ns:license
66 rdf:resource="" />
67 </ns:Work>
68 <cc:Work
69 rdf:about="">
70 <dc:format>image/svg+xml</dc:format>
71 <dc:type
72 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
73 <cc:license
74 rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
75 <dc:title>systemtap logo</dc:title>
76 <dc:creator>
77 <cc:Agent>
78 <dc:title>Andy Fitzsimon, Red Hat</dc:title>
79 </cc:Agent>
80 </dc:creator>
81 <dc:date>2008</dc:date>
82 </cc:Work>
83 <cc:License
84 rdf:about="http://creativecommons.org/licenses/GPL/2.0/ and http://www.eclipse.org/legal/epl-v10.html">
85 </cc:License>
86 </rdf:RDF>
87 </metadata>
88 <defs
89 id="defs2447">
90 <linearGradient
91 inkscape:collect="always"
92 id="linearGradient3899">
93 <stop
94 style="stop-color:#090909;stop-opacity:1;"
95 offset="0"
96 id="stop3901" />
97 <stop
98 style="stop-color:#090909;stop-opacity:0;"
99 offset="1"
100 id="stop3903" />
101 </linearGradient>
102 <linearGradient
103 id="linearGradient3426"
104 inkscape:collect="always">
105 <stop
106 id="stop3428"
107 offset="0"
108 style="stop-color:#2e3436;stop-opacity:1" />
109 <stop
110 id="stop3430"
111 offset="1"
112 style="stop-color:#333532;stop-opacity:1" />
113 </linearGradient>
114 <inkscape:perspective
115 sodipodi:type="inkscape:persp3d"
116 inkscape:vp_x="-50 : 600 : 1"
117 inkscape:vp_y="0 : 1000 : 0"
118 inkscape:vp_z="700 : 600 : 1"
119 inkscape:persp3d-origin="300 : 400 : 1"
120 id="perspective242" />
121 <inkscape:perspective
122 sodipodi:type="inkscape:persp3d"
123 inkscape:vp_x="-50 : 600 : 1"
124 inkscape:vp_y="0 : 1000 : 0"
125 inkscape:vp_z="700 : 600 : 1"
126 inkscape:persp3d-origin="300 : 400 : 1"
127 id="perspective235" />
128 <linearGradient
129 id="linearGradient3833">
130 <stop
131 id="stop3836"
132 offset="0"
133 style="stop-color:#2e3436;stop-opacity:1" />
134 <stop
135 style="stop-color:#babdb6;stop-opacity:1"
136 offset="0.29007247"
137 id="stop3838" />
138 <stop
139 id="stop3840"
140 offset="0.43263254"
141 style="stop-color:#d3d7cf;stop-opacity:1" />
142 <stop
143 style="stop-color:#9a9b9a;stop-opacity:1;"
144 offset="0.58694303"
145 id="stop3842" />
146 <stop
147 id="stop3844"
148 offset="1"
149 style="stop-color:#eeeeec;stop-opacity:1" />
150 </linearGradient>
151 <linearGradient
152 inkscape:collect="always"
153 id="linearGradient3749">
154 <stop
155 style="stop-color:#babdb6;stop-opacity:1;"
156 offset="0"
157 id="stop3751" />
158 <stop
159 style="stop-color:#babdb6;stop-opacity:0;"
160 offset="1"
161 id="stop3753" />
162 </linearGradient>
163 <linearGradient
164 inkscape:collect="always"
165 id="linearGradient3529">
166 <stop
167 style="stop-color:#2e3436;stop-opacity:1;"
168 offset="0"
169 id="stop3531" />
170 <stop
171 style="stop-color:#2e3436;stop-opacity:0;"
172 offset="1"
173 id="stop3533" />
174 </linearGradient>
175 <linearGradient
176 inkscape:collect="always"
177 id="linearGradient3475">
178 <stop
179 style="stop-color:#babdb6;stop-opacity:1;"
180 offset="0"
181 id="stop3477" />
182 <stop
183 style="stop-color:#babdb6;stop-opacity:0;"
184 offset="1"
185 id="stop3479" />
186 </linearGradient>
187 <linearGradient
188 inkscape:collect="always"
189 id="linearGradient4303">
190 <stop
191 style="stop-color:#eeeeec;stop-opacity:1;"
192 offset="0"
193 id="stop4305" />
194 <stop
195 style="stop-color:#eeeeec;stop-opacity:0;"
196 offset="1"
197 id="stop4307" />
198 </linearGradient>
199 <linearGradient
200 id="linearGradient4265">
201 <stop
202 id="stop4267"
203 offset="0"
204 style="stop-color:#888a85;stop-opacity:1" />
205 <stop
206 style="stop-color:#babdb6;stop-opacity:1"
207 offset="0.29007247"
208 id="stop4269" />
209 <stop
210 id="stop4271"
211 offset="0.43263254"
212 style="stop-color:#d3d7cf;stop-opacity:1" />
213 <stop
214 style="stop-color:#9a9b9a;stop-opacity:1;"
215 offset="0.58694303"
216 id="stop4273" />
217 <stop
218 id="stop4275"
219 offset="1"
220 style="stop-color:#5c5c5c;stop-opacity:1;" />
221 </linearGradient>
222 <linearGradient
223 id="linearGradient4251">
224 <stop
225 id="stop4253"
226 offset="0"
227 style="stop-color:#babdb6;stop-opacity:1" />
228 <stop
229 style="stop-color:#2e3436;stop-opacity:1"
230 offset="0.83025926"
231 id="stop4259" />
232 <stop
233 id="stop4261"
234 offset="1"
235 style="stop-color:#888a85;stop-opacity:1" />
236 </linearGradient>
237 <linearGradient
238 inkscape:collect="always"
239 id="linearGradient4237">
240 <stop
241 style="stop-color:#eeeeec;stop-opacity:1"
242 offset="0"
243 id="stop4239" />
244 <stop
245 style="stop-color:#babdb6;stop-opacity:1"
246 offset="1"
247 id="stop4241" />
248 </linearGradient>
249 <linearGradient
250 id="linearGradient4181">
251 <stop
252 style="stop-color:#555753;stop-opacity:1"
253 offset="0"
254 id="stop4183" />
255 <stop
256 id="stop4189"
257 offset="0.29007247"
258 style="stop-color:#babdb6;stop-opacity:1" />
259 <stop
260 style="stop-color:#d3d7cf;stop-opacity:1"
261 offset="0.43263254"
262 id="stop4199" />
263 <stop
264 id="stop4201"
265 offset="0.58694303"
266 style="stop-color:#9a9b9a;stop-opacity:1;" />
267 <stop
268 style="stop-color:#5c5c5c;stop-opacity:1;"
269 offset="1"
270 id="stop4185" />
271 </linearGradient>
272 <linearGradient
273 inkscape:collect="always"
274 id="linearGradient4143">
275 <stop
276 style="stop-color:#eeeeec;stop-opacity:1;"
277 offset="0"
278 id="stop4145" />
279 <stop
280 style="stop-color:#eeeeec;stop-opacity:0;"
281 offset="1"
282 id="stop4147" />
283 </linearGradient>
284 <linearGradient
285 inkscape:collect="always"
286 id="linearGradient4057">
287 <stop
288 style="stop-color:#eeeeec;stop-opacity:1;"
289 offset="0"
290 id="stop4059" />
291 <stop
292 style="stop-color:#eeeeec;stop-opacity:0;"
293 offset="1"
294 id="stop4061" />
295 </linearGradient>
296 <linearGradient
297 id="linearGradient4020">
298 <stop
299 style="stop-color:#aeb0ac;stop-opacity:1;"
300 offset="0"
301 id="stop4022" />
302 <stop
303 style="stop-color:#7f817c;stop-opacity:1;"
304 offset="1"
305 id="stop4024" />
306 </linearGradient>
307 <linearGradient
308 inkscape:collect="always"
309 id="linearGradient3964">
310 <stop
311 style="stop-color:#eeeeec;stop-opacity:1;"
312 offset="0"
313 id="stop3966" />
314 <stop
315 style="stop-color:#eeeeec;stop-opacity:0;"
316 offset="1"
317 id="stop3968" />
318 </linearGradient>
319 <linearGradient
320 inkscape:collect="always"
321 id="linearGradient3954">
322 <stop
323 style="stop-color:#eeeeec;stop-opacity:1;"
324 offset="0"
325 id="stop3956" />
326 <stop
327 style="stop-color:#eeeeec;stop-opacity:0;"
328 offset="1"
329 id="stop3958" />
330 </linearGradient>
331 <linearGradient
332 inkscape:collect="always"
333 id="linearGradient3902">
334 <stop
335 style="stop-color:#eeeeec;stop-opacity:1;"
336 offset="0"
337 id="stop3904" />
338 <stop
339 style="stop-color:#eeeeec;stop-opacity:0;"
340 offset="1"
341 id="stop3906" />
342 </linearGradient>
343 <linearGradient
344 inkscape:collect="always"
345 id="linearGradient3869">
346 <stop
347 style="stop-color:#ffffff;stop-opacity:1"
348 offset="0"
349 id="stop3871" />
350 <stop
351 style="stop-color:#ffffff;stop-opacity:0"
352 offset="1"
353 id="stop3873" />
354 </linearGradient>
355 <linearGradient
356 inkscape:collect="always"
357 id="linearGradient3839">
358 <stop
359 style="stop-color:#ffffff;stop-opacity:1;"
360 offset="0"
361 id="stop3841" />
362 <stop
363 style="stop-color:#ffffff;stop-opacity:0;"
364 offset="1"
365 id="stop3843" />
366 </linearGradient>
367 <linearGradient
368 inkscape:collect="always"
369 xlink:href="#linearGradient3839"
370 id="linearGradient3845"
371 x1="2389"
372 y1="-1378.597"
373 x2="2389"
374 y2="-1290.3927"
375 gradientUnits="userSpaceOnUse"
376 gradientTransform="translate(0,-689)" />
377 <filter
378 inkscape:collect="always"
379 id="filter4133">
380 <feGaussianBlur
381 inkscape:collect="always"
382 stdDeviation="1.5412676"
383 id="feGaussianBlur4135" />
384 </filter>
385 <filter
386 inkscape:collect="always"
387 id="filter4285">
388 <feGaussianBlur
389 inkscape:collect="always"
390 stdDeviation="0.83627643"
391 id="feGaussianBlur4287" />
392 </filter>
393 <filter
394 inkscape:collect="always"
395 id="filter3523">
396 <feGaussianBlur
397 inkscape:collect="always"
398 stdDeviation="0.71744723"
399 id="feGaussianBlur3525" />
400 </filter>
401 <linearGradient
402 inkscape:collect="always"
403 xlink:href="#linearGradient3839"
404 id="linearGradient3735"
405 gradientUnits="userSpaceOnUse"
406 gradientTransform="translate(0,-1697)"
407 x1="2389"
408 y1="-1378.597"
409 x2="2389"
410 y2="-1290.3927" />
411 <radialGradient
412 inkscape:collect="always"
413 xlink:href="#linearGradient3749"
414 id="radialGradient3755"
415 cx="2450"
416 cy="-2733.3928"
417 fx="2257.6848"
418 fy="-2591.0503"
419 r="300"
420 gradientUnits="userSpaceOnUse" />
421 <linearGradient
422 inkscape:collect="always"
423 xlink:href="#linearGradient3839"
424 id="linearGradient3868"
425 gradientUnits="userSpaceOnUse"
426 gradientTransform="matrix(0.4806026,0,0,0.4806026,-458.9566,717.5776)"
427 x1="2389"
428 y1="-1378.597"
429 x2="2389"
430 y2="-1290.3927" />
431 <radialGradient
432 r="22.98708"
433 fy="270.2345"
434 fx="251.73764"
435 cy="270.2345"
436 cx="251.73764"
437 gradientTransform="matrix(0.2925599,1.0369149,1.2784981,-3.1321826e-2,-194.17278,-1.3333034)"
438 gradientUnits="userSpaceOnUse"
439 id="radialGradient3433"
440 xlink:href="#linearGradient3588"
441 inkscape:collect="always" />
442 <linearGradient
443 y2="325.23526"
444 x2="248.91736"
445 y1="339.76562"
446 x1="249.93015"
447 gradientTransform="translate(0,-6)"
448 gradientUnits="userSpaceOnUse"
449 id="linearGradient3431"
450 xlink:href="#linearGradient5450"
451 inkscape:collect="always" />
452 <linearGradient
453 y2="325.23526"
454 x2="248.91736"
455 y1="339.76562"
456 x1="249.93015"
457 gradientTransform="translate(0,-6)"
458 gradientUnits="userSpaceOnUse"
459 id="linearGradient3429"
460 xlink:href="#linearGradient5450"
461 inkscape:collect="always" />
462 <linearGradient
463 y2="314.78635"
464 x2="244.02618"
465 y1="343.35193"
466 x1="245.14857"
467 gradientTransform="translate(0,-6)"
468 gradientUnits="userSpaceOnUse"
469 id="linearGradient3427"
470 xlink:href="#linearGradient5450"
471 inkscape:collect="always" />
472 <radialGradient
473 r="122.527"
474 fy="73.899117"
475 fx="211.94524"
476 cy="73.899117"
477 cx="211.94524"
478 gradientTransform="matrix(0,0.7436368,-1,0,296.89912,-109.13727)"
479 gradientUnits="userSpaceOnUse"
480 id="radialGradient3425"
481 xlink:href="#linearGradient3394"
482 inkscape:collect="always" />
483 <radialGradient
484 r="105.85726"
485 fy="267.06989"
486 fx="237.78722"
487 cy="329.08261"
488 cx="273.34"
489 gradientTransform="matrix(-1.5189227,0,0,0.312383,582.14364,155.79911)"
490 gradientUnits="userSpaceOnUse"
491 id="radialGradient3423"
492 xlink:href="#linearGradient6157"
493 inkscape:collect="always" />
494 <filter
495 id="filter3604"
496 inkscape:collect="always">
497 <feGaussianBlur
498 id="feGaussianBlur3606"
499 stdDeviation="2.4656103"
500 inkscape:collect="always" />
501 </filter>
502 <filter
503 height="1.3160409"
504 y="-0.15802044"
505 width="1.080309"
506 x="-0.040154509"
507 id="filter3600"
508 inkscape:collect="always">
509 <feGaussianBlur
510 id="feGaussianBlur3602"
511 stdDeviation="3.0534157"
512 inkscape:collect="always" />
513 </filter>
514 <radialGradient
515 r="121"
516 fy="97.065582"
517 fx="259.50607"
518 cy="171"
519 cx="223"
520 gradientUnits="userSpaceOnUse"
521 id="radialGradient4148"
522 xlink:href="#linearGradient4875"
523 inkscape:collect="always" />
524 <radialGradient
525 r="121"
526 fy="97.065582"
527 fx="259.50607"
528 cy="171"
529 cx="223"
530 gradientUnits="userSpaceOnUse"
531 id="radialGradient4146"
532 xlink:href="#linearGradient4875"
533 inkscape:collect="always" />
534 <linearGradient
535 y2="241.30777"
536 x2="249.69576"
537 y1="263.64444"
538 x1="232.35976"
539 gradientTransform="translate(-4,-2)"
540 gradientUnits="userSpaceOnUse"
541 id="linearGradient4144"
542 xlink:href="#linearGradient5158"
543 inkscape:collect="always" />
544 <linearGradient
545 y2="89.209633"
546 x2="191.3078"
547 y1="294.8075"
548 x1="233.11443"
549 gradientTransform="matrix(0.1772873,-6.3297445e-2,7.1344677e-2,0.1998265,155.77466,181.18074)"
550 gradientUnits="userSpaceOnUse"
551 id="linearGradient4142"
552 xlink:href="#linearGradient4892"
553 inkscape:collect="always" />
554 <linearGradient
555 y2="226.50774"
556 x2="241.83052"
557 y1="278.37762"
558 x1="241.83052"
559 gradientTransform="translate(20,-4)"
560 gradientUnits="userSpaceOnUse"
561 id="linearGradient4140"
562 xlink:href="#linearGradient4061"
563 inkscape:collect="always" />
564 <radialGradient
565 r="121"
566 fy="171"
567 fx="223"
568 cy="171"
569 cx="223"
570 gradientUnits="userSpaceOnUse"
571 id="radialGradient4138"
572 xlink:href="#linearGradient4061"
573 inkscape:collect="always" />
574 <filter
575 id="filter3546">
576 <feGaussianBlur
577 inkscape:collect="always"
578 stdDeviation="1.3189297"
579 id="feGaussianBlur3548" />
580 </filter>
581 <filter
582 id="filter3536">
583 <feGaussianBlur
584 inkscape:collect="always"
585 stdDeviation="0.93765437"
586 id="feGaussianBlur3538" />
587 </filter>
588 <filter
589 id="filter3408">
590 <feGaussianBlur
591 inkscape:collect="always"
592 stdDeviation="4.2336683"
593 id="feGaussianBlur3410" />
594 </filter>
595 <filter
596 id="filter3759">
597 <feGaussianBlur
598 inkscape:collect="always"
599 stdDeviation="1.6460979"
600 id="feGaussianBlur3761" />
601 </filter>
602 <filter
603 id="filter3698"
604 x="-0.17973556"
605 width="1.3594711"
606 y="-0.32149041"
607 height="1.6429808">
608 <feGaussianBlur
609 inkscape:collect="always"
610 stdDeviation="2.494376"
611 id="feGaussianBlur3700" />
612 </filter>
613 <filter
614 id="filter3549"
615 x="-0.034198053"
616 width="1.0683961"
617 y="-0.12438303"
618 height="1.2487661">
619 <feGaussianBlur
620 inkscape:collect="always"
621 stdDeviation="2.9834772"
622 id="feGaussianBlur3551" />
623 </filter>
624 <filter
625 id="filter3403">
626 <feGaussianBlur
627 inkscape:collect="always"
628 stdDeviation="0.97703684"
629 id="feGaussianBlur3405" />
630 </filter>
631 <filter
632 id="filter5616"
633 x="-0.087686583"
634 width="1.1753732"
635 y="-0.29251608"
636 height="1.5850322">
637 <feGaussianBlur
638 inkscape:collect="always"
639 stdDeviation="7.733109"
640 id="feGaussianBlur5618" />
641 </filter>
642 <filter
643 id="filter5276">
644 <feGaussianBlur
645 inkscape:collect="always"
646 stdDeviation="4.88068"
647 id="feGaussianBlur5278" />
648 </filter>
649 <filter
650 id="filter5030"
651 x="-0.24510914"
652 width="1.4902183"
653 y="-0.21322298"
654 height="1.426446">
655 <feGaussianBlur
656 inkscape:collect="always"
657 stdDeviation="5.3972768"
658 id="feGaussianBlur5032" />
659 </filter>
660 <filter
661 id="filter4928"
662 x="-0.073140927"
663 width="1.1462818"
664 y="-0.12909859"
665 height="1.2581972">
666 <feGaussianBlur
667 inkscape:collect="always"
668 stdDeviation="1.3104416"
669 id="feGaussianBlur4930" />
670 </filter>
671 <filter
672 id="filter4515"
673 x="-0.49860975"
674 width="1.9972194"
675 y="-0.49860975"
676 height="1.9972194">
677 <feGaussianBlur
678 inkscape:collect="always"
679 stdDeviation="50.276483"
680 id="feGaussianBlur4517" />
681 </filter>
682 <filter
683 id="filter4057"
684 x="-0.27202874"
685 width="1.5440575"
686 y="-0.27202874"
687 height="1.5440575">
688 <feGaussianBlur
689 inkscape:collect="always"
690 stdDeviation="27.429564"
691 id="feGaussianBlur4059" />
692 </filter>
693 <filter
694 id="filter3820">
695 <feGaussianBlur
696 inkscape:collect="always"
697 stdDeviation="4.1830695"
698 id="feGaussianBlur3822" />
699 </filter>
700 <linearGradient
701 id="linearGradient3159">
702 <stop
703 offset="0"
704 style="stop-color:#fffbd9;stop-opacity:1"
705 id="stop3161" />
706 <stop
707 offset="0.33126342"
708 style="stop-color:#ffd615;stop-opacity:1"
709 id="stop3167" />
710 <stop
711 offset="0.55432773"
712 style="stop-color:#eeaf07;stop-opacity:1"
713 id="stop3179" />
714 <stop
715 offset="0.82875061"
716 style="stop-color:#ea7c04;stop-opacity:1"
717 id="stop3543" />
718 <stop
719 offset="1"
720 style="stop-color:#996518;stop-opacity:1"
721 id="stop3163" />
722 </linearGradient>
723 <linearGradient
724 id="linearGradient3187">
725 <stop
726 offset="0"
727 style="stop-color:#2e3436;stop-opacity:0"
728 id="stop3189" />
729 <stop
730 offset="0.69437116"
731 style="stop-color:#272c2e;stop-opacity:0"
732 id="stop3195" />
733 <stop
734 offset="1"
735 style="stop-color:#000000;stop-opacity:1"
736 id="stop3191" />
737 </linearGradient>
738 <linearGradient
739 id="linearGradient3293">
740 <stop
741 offset="0"
742 style="stop-color:#eeeeec;stop-opacity:1"
743 id="stop3295" />
744 <stop
745 offset="1"
746 style="stop-color:#eeeeec;stop-opacity:0"
747 id="stop3297" />
748 </linearGradient>
749 <linearGradient
750 id="linearGradient3315">
751 <stop
752 offset="0"
753 style="stop-color:#eeeeec;stop-opacity:1"
754 id="stop3317" />
755 <stop
756 offset="1"
757 style="stop-color:#eeeeec;stop-opacity:0"
758 id="stop3319" />
759 </linearGradient>
760 <linearGradient
761 id="linearGradient3406">
762 <stop
763 offset="0"
764 style="stop-color:#e2be88;stop-opacity:1"
765 id="stop3408" />
766 <stop
767 offset="1"
768 style="stop-color:#fce94f;stop-opacity:0"
769 id="stop3410" />
770 </linearGradient>
771 <linearGradient
772 id="linearGradient3828">
773 <stop
774 offset="0"
775 style="stop-color:#ffffff;stop-opacity:1"
776 id="stop3830" />
777 <stop
778 offset="1"
779 style="stop-color:#ffffff;stop-opacity:0"
780 id="stop3832" />
781 </linearGradient>
782 <linearGradient
783 id="linearGradient3935">
784 <stop
785 offset="0"
786 style="stop-color:#fce94f;stop-opacity:1"
787 id="stop3937" />
788 <stop
789 offset="1"
790 style="stop-color:#ffffff;stop-opacity:0"
791 id="stop3939" />
792 </linearGradient>
793 <linearGradient
794 id="linearGradient4025">
795 <stop
796 offset="0"
797 style="stop-color:#2e3436;stop-opacity:1"
798 id="stop4027" />
799 <stop
800 offset="1"
801 style="stop-color:#2e3436;stop-opacity:0"
802 id="stop4029" />
803 </linearGradient>
804 <linearGradient
805 id="linearGradient4061">
806 <stop
807 offset="0"
808 style="stop-color:#000000;stop-opacity:1"
809 id="stop4063" />
810 <stop
811 offset="1"
812 style="stop-color:#2e3436;stop-opacity:0"
813 id="stop4065" />
814 </linearGradient>
815 <linearGradient
816 id="linearGradient4213">
817 <stop
818 offset="0"
819 style="stop-color:#1a0d02;stop-opacity:1"
820 id="stop4215" />
821 <stop
822 offset="1"
823 style="stop-color:#984c15;stop-opacity:1"
824 id="stop4217" />
825 </linearGradient>
826 <linearGradient
827 id="linearGradient4566">
828 <stop
829 offset="0"
830 style="stop-color:#ffffff;stop-opacity:1"
831 id="stop4568" />
832 <stop
833 offset="1"
834 style="stop-color:#ffffff;stop-opacity:0"
835 id="stop4570" />
836 </linearGradient>
837 <linearGradient
838 id="linearGradient4672">
839 <stop
840 offset="0"
841 style="stop-color:#e9dd6f;stop-opacity:1"
842 id="stop4674" />
843 <stop
844 offset="1"
845 style="stop-color:#fce94f;stop-opacity:0"
846 id="stop4676" />
847 </linearGradient>
848 <linearGradient
849 id="linearGradient4875">
850 <stop
851 offset="0"
852 style="stop-color:#eeeeec;stop-opacity:1"
853 id="stop4877" />
854 <stop
855 offset="1"
856 style="stop-color:#eeeeec;stop-opacity:0"
857 id="stop4879" />
858 </linearGradient>
859 <linearGradient
860 id="linearGradient4892">
861 <stop
862 offset="0"
863 style="stop-color:#7e0000;stop-opacity:1"
864 id="stop4894" />
865 <stop
866 offset="1"
867 style="stop-color:#cc0000;stop-opacity:1"
868 id="stop4896" />
869 </linearGradient>
870 <linearGradient
871 id="linearGradient5050">
872 <stop
873 offset="0"
874 style="stop-color:#ffffff;stop-opacity:1"
875 id="stop5052" />
876 <stop
877 offset="0.53032744"
878 style="stop-color:#efc652;stop-opacity:1"
879 id="stop5054" />
880 <stop
881 offset="1"
882 style="stop-color:#a85715;stop-opacity:1"
883 id="stop5056" />
884 </linearGradient>
885 <linearGradient
886 id="linearGradient5158">
887 <stop
888 offset="0"
889 style="stop-color:#eb5858;stop-opacity:1"
890 id="stop5160" />
891 <stop
892 offset="1"
893 style="stop-color:#ef2929;stop-opacity:0"
894 id="stop5162" />
895 </linearGradient>
896 <linearGradient
897 id="linearGradient5450">
898 <stop
899 offset="0"
900 style="stop-color:#ffffff;stop-opacity:1"
901 id="stop5452" />
902 <stop
903 offset="1"
904 style="stop-color:#ffffff;stop-opacity:0"
905 id="stop5454" />
906 </linearGradient>
907 <linearGradient
908 id="linearGradient6157">
909 <stop
910 offset="0"
911 style="stop-color:#9bbbdd;stop-opacity:1"
912 id="stop6159" />
913 <stop
914 offset="1"
915 style="stop-color:#3465a4;stop-opacity:1"
916 id="stop6161" />
917 </linearGradient>
918 <linearGradient
919 id="linearGradient3394">
920 <stop
921 offset="0"
922 style="stop-color:#846c00;stop-opacity:1"
923 id="stop3396" />
924 <stop
925 offset="1"
926 style="stop-color:#fce94f;stop-opacity:0"
927 id="stop3398" />
928 </linearGradient>
929 <linearGradient
930 id="linearGradient3588">
931 <stop
932 offset="0"
933 style="stop-color:#a40505;stop-opacity:1"
934 id="stop3590" />
935 <stop
936 offset="1"
937 style="stop-color:#a40505;stop-opacity:0"
938 id="stop3592" />
939 </linearGradient>
940 <inkscape:perspective
941 id="perspective3700"
942 inkscape:persp3d-origin="300 : 400 : 1"
943 inkscape:vp_z="700 : 600 : 1"
944 inkscape:vp_y="0 : 1000 : 0"
945 inkscape:vp_x="-50 : 600 : 1"
946 sodipodi:type="inkscape:persp3d" />
947 <linearGradient
948 inkscape:collect="always"
949 xlink:href="#linearGradient3899"
950 id="linearGradient3905"
951 x1="626.95715"
952 y1="-147.53772"
953 x2="626.95715"
954 y2="-183.33588"
955 gradientUnits="userSpaceOnUse"
956 gradientTransform="translate(0,-2.7497892)" />
957 <radialGradient
958 inkscape:collect="always"
959 xlink:href="#linearGradient3529"
960 id="radialGradient3013"
961 gradientUnits="userSpaceOnUse"
962 cx="1332"
963 cy="-1667.3927"
964 fx="1338.0131"
965 fy="-1829.1115"
966 r="230" />
967 <radialGradient
968 inkscape:collect="always"
969 xlink:href="#linearGradient4025"
970 id="radialGradient3015"
971 gradientUnits="userSpaceOnUse"
972 gradientTransform="matrix(1.1357961,0,0,0.2745524,-108.28254,206.48343)"
973 cx="223"
974 cy="171"
975 fx="223"
976 fy="171"
977 r="121" />
978 <radialGradient
979 inkscape:collect="always"
980 xlink:href="#linearGradient3187"
981 id="radialGradient3017"
982 gradientUnits="userSpaceOnUse"
983 gradientTransform="matrix(0.7942349,-2.0004787e-8,2.0005502e-8,0.7942067,-32.114417,20.018569)"
984 cx="223"
985 cy="171"
986 fx="223.00002"
987 fy="101.13282"
988 r="121" />
989 <radialGradient
990 inkscape:collect="always"
991 xlink:href="#linearGradient4061"
992 id="radialGradient3019"
993 gradientUnits="userSpaceOnUse"
994 cx="223"
995 cy="171"
996 fx="223"
997 fy="171"
998 r="121" />
999 <radialGradient
1000 inkscape:collect="always"
1001 xlink:href="#linearGradient3159"
1002 id="radialGradient3021"
1003 gradientUnits="userSpaceOnUse"
1004 gradientTransform="matrix(0.8395234,0,0,0.7646906,-42.231779,26.198605)"
1005 cx="223.0215"
1006 cy="151.42078"
1007 fx="223.0215"
1008 fy="110.79985"
1009 r="121.5" />
1010 <linearGradient
1011 inkscape:collect="always"
1012 xlink:href="#linearGradient3935"
1013 id="linearGradient3023"
1014 gradientUnits="userSpaceOnUse"
1015 x1="216"
1016 y1="284"
1017 x2="216"
1018 y2="237.61398" />
1019 <radialGradient
1020 inkscape:collect="always"
1021 xlink:href="#linearGradient3293"
1022 id="radialGradient3025"
1023 gradientUnits="userSpaceOnUse"
1024 gradientTransform="matrix(0.5403153,0,0,-0.2136548,24.509668,199.36717)"
1025 cx="223"
1026 cy="171"
1027 fx="222.38663"
1028 fy="80.007324"
1029 r="121" />
1030 <linearGradient
1031 inkscape:collect="always"
1032 xlink:href="#linearGradient4672"
1033 id="linearGradient3027"
1034 gradientUnits="userSpaceOnUse"
1035 x1="230.42981"
1036 y1="293.0614"
1037 x2="230.42981"
1038 y2="47.642467" />
1039 <linearGradient
1040 inkscape:collect="always"
1041 xlink:href="#linearGradient5050"
1042 id="linearGradient3029"
1043 gradientUnits="userSpaceOnUse"
1044 x1="233.27283"
1045 y1="-147.21091"
1046 x2="227.56693"
1047 y2="247.7711" />
1048 <linearGradient
1049 inkscape:collect="always"
1050 xlink:href="#linearGradient4213"
1051 id="linearGradient3031"
1052 gradientUnits="userSpaceOnUse"
1053 gradientTransform="matrix(0.2366865,0,0,-0.2078438,92.218869,258.52353)"
1054 x1="101.99998"
1055 y1="611.09839"
1056 x2="319.78278"
1057 y2="-176.81487" />
1058 <radialGradient
1059 inkscape:collect="always"
1060 xlink:href="#linearGradient3293"
1061 id="radialGradient3033"
1062 gradientUnits="userSpaceOnUse"
1063 cx="223"
1064 cy="292"
1065 fx="223"
1066 fy="292"
1067 r="121" />
1068 <radialGradient
1069 inkscape:collect="always"
1070 xlink:href="#linearGradient3293"
1071 id="radialGradient3035"
1072 gradientUnits="userSpaceOnUse"
1073 gradientTransform="matrix(0.5975643,5.9637031e-8,2.8386204e-8,-0.2844304,36.45947,116.97025)"
1074 cx="223.00407"
1075 cy="299.64993"
1076 fx="223.00407"
1077 fy="336.12305"
1078 r="121" />
1079 <radialGradient
1080 inkscape:collect="always"
1081 xlink:href="#linearGradient3293"
1082 id="radialGradient3037"
1083 gradientUnits="userSpaceOnUse"
1084 cx="223"
1085 cy="171"
1086 fx="223"
1087 fy="171"
1088 r="121" />
1089 <radialGradient
1090 inkscape:collect="always"
1091 xlink:href="#linearGradient4566"
1092 id="radialGradient3039"
1093 gradientUnits="userSpaceOnUse"
1094 cx="223"
1095 cy="171"
1096 fx="223"
1097 fy="171"
1098 r="121" />
1099 <linearGradient
1100 inkscape:collect="always"
1101 xlink:href="#linearGradient3315"
1102 id="linearGradient3041"
1103 gradientUnits="userSpaceOnUse"
1104 x1="240.92592"
1105 y1="-198.00484"
1106 x2="240.92592"
1107 y2="220.56108" />
1108 <linearGradient
1109 inkscape:collect="always"
1110 xlink:href="#linearGradient3406"
1111 id="linearGradient3043"
1112 gradientUnits="userSpaceOnUse"
1113 x1="188.5"
1114 y1="170.88872"
1115 x2="188.5"
1116 y2="152.17625" />
1117 <linearGradient
1118 inkscape:collect="always"
1119 xlink:href="#linearGradient3828"
1120 id="linearGradient3045"
1121 gradientUnits="userSpaceOnUse"
1122 x1="243.98932"
1123 y1="98.219536"
1124 x2="74.505676"
1125 y2="453.04877" />
1126 <radialGradient
1127 inkscape:collect="always"
1128 xlink:href="#linearGradient3293"
1129 id="radialGradient3047"
1130 gradientUnits="userSpaceOnUse"
1131 cx="223"
1132 cy="171"
1133 fx="223"
1134 fy="171"
1135 r="121" />
1136 <radialGradient
1137 inkscape:collect="always"
1138 xlink:href="#linearGradient4566"
1139 id="radialGradient3049"
1140 gradientUnits="userSpaceOnUse"
1141 cx="223"
1142 cy="171"
1143 fx="223"
1144 fy="171"
1145 r="121" />
1146 <linearGradient
1147 inkscape:collect="always"
1148 xlink:href="#linearGradient3315"
1149 id="linearGradient3051"
1150 gradientUnits="userSpaceOnUse"
1151 x1="240.92592"
1152 y1="-198.00484"
1153 x2="240.92592"
1154 y2="220.56108" />
1155 <linearGradient
1156 inkscape:collect="always"
1157 xlink:href="#linearGradient3406"
1158 id="linearGradient3053"
1159 gradientUnits="userSpaceOnUse"
1160 x1="188.5"
1161 y1="170.88872"
1162 x2="188.5"
1163 y2="152.17625" />
1164 <linearGradient
1165 inkscape:collect="always"
1166 xlink:href="#linearGradient3828"
1167 id="linearGradient3055"
1168 gradientUnits="userSpaceOnUse"
1169 x1="243.98932"
1170 y1="98.219536"
1171 x2="74.505676"
1172 y2="453.04877" />
1173 <linearGradient
1174 inkscape:collect="always"
1175 xlink:href="#linearGradient4020"
1176 id="linearGradient3180"
1177 gradientUnits="userSpaceOnUse"
1178 x1="453.96951"
1179 y1="1197.55"
1180 x2="453.96951"
1181 y2="1277.848" />
1182 <linearGradient
1183 inkscape:collect="always"
1184 xlink:href="#linearGradient4057"
1185 id="linearGradient3182"
1186 gradientUnits="userSpaceOnUse"
1187 gradientTransform="translate(-3,0)"
1188 x1="453.50223"
1189 y1="1224.1053"
1190 x2="497.6478"
1191 y2="1272.2051" />
1192 <linearGradient
1193 inkscape:collect="always"
1194 xlink:href="#linearGradient4057"
1195 id="linearGradient3184"
1196 gradientUnits="userSpaceOnUse"
1197 gradientTransform="translate(-3,0)"
1198 x1="432.78024"
1199 y1="1251.7627"
1200 x2="461.86926"
1201 y2="1284.887" />
1202 <linearGradient
1203 inkscape:collect="always"
1204 xlink:href="#linearGradient4020"
1205 id="linearGradient3186"
1206 gradientUnits="userSpaceOnUse"
1207 x1="437.53387"
1208 y1="1205.671"
1209 x2="475.05185"
1210 y2="1230.8967" />
1211 <linearGradient
1212 inkscape:collect="always"
1213 xlink:href="#linearGradient4020"
1214 id="linearGradient3188"
1215 gradientUnits="userSpaceOnUse"
1216 x1="464.98941"
1217 y1="1188.0459"
1218 x2="487.96823"
1219 y2="1199.5918" />
1220 <linearGradient
1221 inkscape:collect="always"
1222 xlink:href="#linearGradient4020"
1223 id="linearGradient3190"
1224 gradientUnits="userSpaceOnUse"
1225 x1="433.03326"
1226 y1="1157.1986"
1227 x2="468.79407"
1228 y2="1185.8439" />
1229 <radialGradient
1230 inkscape:collect="always"
1231 xlink:href="#linearGradient4303"
1232 id="radialGradient3192"
1233 gradientUnits="userSpaceOnUse"
1234 gradientTransform="matrix(-3.6550626e-7,0.4971302,-1.5377072,-8.2697769e-7,2202.0057,921.33517)"
1235 cx="445.62894"
1236 cy="1142.2048"
1237 fx="445.62894"
1238 fy="1142.2048"
1239 r="32.057484" />
1240 <radialGradient
1241 inkscape:collect="always"
1242 xlink:href="#linearGradient4303"
1243 id="radialGradient3194"
1244 gradientUnits="userSpaceOnUse"
1245 gradientTransform="matrix(-3.6550626e-7,0.4971302,-1.5377072,-8.2697769e-7,2202.0057,964.95339)"
1246 cx="445.62894"
1247 cy="1142.2048"
1248 fx="445.62894"
1249 fy="1142.2048"
1250 r="32.057484" />
1251 <radialGradient
1252 inkscape:collect="always"
1253 xlink:href="#linearGradient4303"
1254 id="radialGradient3196"
1255 gradientUnits="userSpaceOnUse"
1256 gradientTransform="matrix(-3.6550626e-7,-0.4971302,-1.5377072,8.2697769e-7,2202.0057,1399.1621)"
1257 cx="445.62894"
1258 cy="1142.2048"
1259 fx="445.62894"
1260 fy="1142.2048"
1261 r="32.057484" />
1262 <radialGradient
1263 inkscape:collect="always"
1264 xlink:href="#linearGradient4303"
1265 id="radialGradient3198"
1266 gradientUnits="userSpaceOnUse"
1267 gradientTransform="matrix(-3.6550626e-7,-0.4971302,-1.5377072,8.2697769e-7,2202.0057,1444.4908)"
1268 cx="445.62894"
1269 cy="1142.2048"
1270 fx="445.62894"
1271 fy="1142.2048"
1272 r="32.057484" />
1273 <linearGradient
1274 inkscape:collect="always"
1275 xlink:href="#linearGradient3902"
1276 id="linearGradient3204"
1277 gradientUnits="userSpaceOnUse"
1278 gradientTransform="translate(0,-1)"
1279 x1="1866"
1280 y1="-1570.3927"
1281 x2="1866"
1282 y2="-1207.4062" />
1283 <radialGradient
1284 inkscape:collect="always"
1285 xlink:href="#linearGradient3475"
1286 id="radialGradient3212"
1287 gradientUnits="userSpaceOnUse"
1288 gradientTransform="matrix(1.337393,-3.0648975e-3,1.4718129e-3,0.6422289,-1613.3898,1457.1036)"
1289 cx="1833.0548"
1290 cy="-1103.9452"
1291 fx="1833.0548"
1292 fy="-1103.9452"
1293 r="114.44783" />
1294 <linearGradient
1295 inkscape:collect="always"
1296 xlink:href="#linearGradient4143"
1297 id="linearGradient3219"
1298 gradientUnits="userSpaceOnUse"
1299 gradientTransform="matrix(0.7656535,0,0,0.4806026,-1291.9114,801.75271)"
1300 x1="1851.387"
1301 y1="-1317.3495"
1302 x2="1891.1913"
1303 y2="-1330.7043" />
1304 <linearGradient
1305 inkscape:collect="always"
1306 xlink:href="#linearGradient4143"
1307 id="linearGradient3223"
1308 gradientUnits="userSpaceOnUse"
1309 gradientTransform="matrix(-0.7656535,0,0,0.4806026,1726.9633,796.75271)"
1310 x1="1930.4543"
1311 y1="-1329.8339"
1312 x2="1899.5142"
1313 y2="-1299.4935" />
1314 <linearGradient
1315 inkscape:collect="always"
1316 xlink:href="#linearGradient3964"
1317 id="linearGradient3227"
1318 gradientUnits="userSpaceOnUse"
1319 gradientTransform="matrix(0.527067,0.1495682,-6.5898436e-2,0.4713434,-858.95067,490.82748)"
1320 x1="2008.0101"
1321 y1="-1586.7006"
1322 x2="2008.0101"
1323 y2="-1552.8285" />
1324 <linearGradient
1325 inkscape:collect="always"
1326 xlink:href="#linearGradient3954"
1327 id="linearGradient3230"
1328 gradientUnits="userSpaceOnUse"
1329 gradientTransform="matrix(0.4589185,-9.4428648e-2,3.580049e-2,0.4769335,-680.26616,980.20136)"
1330 x1="1921.3975"
1331 y1="-1592.9694"
1332 x2="1921.3975"
1333 y2="-1556.5084" />
1334 <linearGradient
1335 inkscape:collect="always"
1336 xlink:href="#linearGradient3426"
1337 id="linearGradient3235"
1338 gradientUnits="userSpaceOnUse"
1339 gradientTransform="matrix(0.680117,0,0,0.4806026,-1115.534,804.51995)"
1340 x1="1855.3298"
1341 y1="-1143.5211"
1342 x2="1780.3766"
1343 y2="-1267.3927" />
1344 <linearGradient
1345 inkscape:collect="always"
1346 xlink:href="#linearGradient3869"
1347 id="linearGradient3241"
1348 gradientUnits="userSpaceOnUse"
1349 gradientTransform="matrix(0.4806026,0,0,0.4806026,-775.48082,804.52009)"
1350 x1="1700.293"
1351 y1="-1464.1487"
1352 x2="1669.9528"
1353 y2="-1464.1487" />
1354 <linearGradient
1355 inkscape:collect="always"
1356 xlink:href="#linearGradient4265"
1357 id="linearGradient3244"
1358 gradientUnits="userSpaceOnUse"
1359 gradientTransform="matrix(0.4806026,0,0,0.4806026,-776.92263,804.52009)"
1360 x1="1694.9799"
1361 y1="-1441.8019"
1362 x2="1576.7756"
1363 y2="-1510.0471" />
1364 <linearGradient
1365 inkscape:collect="always"
1366 xlink:href="#linearGradient4237"
1367 id="linearGradient3260"
1368 gradientUnits="userSpaceOnUse"
1369 gradientTransform="matrix(0.4806026,0,0,0.4806026,-776.92257,804.51995)"
1370 x1="1726.1041"
1371 y1="-1298.4927"
1372 x2="1726.1041"
1373 y2="-1392.9266" />
1374 <linearGradient
1375 inkscape:collect="always"
1376 xlink:href="#linearGradient3833"
1377 id="linearGradient3263"
1378 gradientUnits="userSpaceOnUse"
1379 gradientTransform="matrix(0.4806026,0,0,0.4806026,-776.92263,804.52009)"
1380 x1="1826.2334"
1381 y1="-1339.1434"
1382 x2="1615.4771"
1383 y2="-1394.0178" />
1384 <radialGradient
1385 inkscape:collect="always"
1386 xlink:href="#linearGradient4251"
1387 id="radialGradient3266"
1388 gradientUnits="userSpaceOnUse"
1389 gradientTransform="matrix(0.4413904,9.1095131e-3,-9.7794323e-3,0.4738506,-723.46245,824.58144)"
1390 cx="1724.4362"
1391 cy="-1429.8955"
1392 fx="1688.7296"
1393 fy="-1387.8237"
1394 r="98.288452" />
1395 </defs>
1396 <sodipodi:namedview
1397 inkscape:window-height="1002"
1398 inkscape:window-width="1380"
1399 inkscape:pageshadow="2"
1400 inkscape:pageopacity="1"
1401 guidetolerance="10.0"
1402 gridtolerance="10.0"
1403 objecttolerance="10.0"
1404 borderopacity="1.0"
1405 bordercolor="#666666"
1406 pagecolor="#ffffff"
1407 id="base"
1408 showgrid="false"
1409 showborder="true"
1410 inkscape:zoom="2"
1411 inkscape:cx="213.57302"
1412 inkscape:cy="182.16641"
1413 inkscape:window-x="1808"
1414 inkscape:window-y="120"
1415 inkscape:current-layer="svg2444"
1416 showguides="true"
1417 inkscape:guide-bbox="true"
1418 height="267.83px"
1419 width="352.20215px" />
1420 <g
1421 id="g2854"
1422 transform="translate(12.056884,42.948975)">
1423 <path
1424 sodipodi:type="arc"
1425 style="opacity:0.38222219;fill:url(#radialGradient3013);fill-opacity:1"
1426 id="path3623"
1427 sodipodi:cx="1332"
1428 sodipodi:cy="-1667.3927"
1429 sodipodi:rx="230"
1430 sodipodi:ry="230"
1431 d="M 1562 -1667.3927 A 230 230 0 1 1 1102,-1667.3927 A 230 230 0 1 1 1562 -1667.3927 z"
1432 transform="matrix(0.6394105,0,0,0.1316433,-646.55705,438.03263)" />
1433 <g
1434 id="g3270">
1435 <g
1436 id="g3837"
1437 transform="matrix(0.8316864,0,0,0.8316864,100.23188,-51.021673)">
1438 <path
1439 style="opacity:0.26086958;fill:url(#radialGradient3015);fill-opacity:1"
1440 id="path4052"
1441 d="M 282.43132,253.43189 C 282.43132,271.77925 220.90121,286.65273 144.99999,286.65273 C 69.098769,286.65273 7.5686622,271.77925 7.5686622,253.43189 C 7.5686622,235.08453 69.098769,220.21105 144.99999,220.21105 C 220.90121,220.21105 282.43132,235.08453 282.43132,253.43189 L 282.43132,253.43189 z " />
1442 <g
1443 style="opacity:0.55111108"
1444 id="g3385"
1445 transform="matrix(0.8234077,0,0,0.4862332,205.02601,136.27201)" />
1446 <path
1447 d=""
1448 style="opacity:0.24154591;fill:none;fill-opacity:1;stroke:#ef2929;stroke-width:2.48031497;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1449 id="path5443" />
1450 <g
1451 style="opacity:0.55111108"
1452 id="g4054"
1453 transform="matrix(0.7685977,0,0,0.4538672,204.09547,147.5825)" />
1454 <path
1455 style="opacity:0.24154591;fill:none;fill-opacity:1;stroke:#ef2929;stroke-width:2.39660215;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1456 id="path4056"
1457 d="" />
1458 <path
1459 style="opacity:0.08212562;fill:url(#radialGradient3017);fill-opacity:1"
1460 id="path4058"
1461 d="M 239.48401,155.82792 C 239.48401,208.00815 197.18207,250.30859 144.99998,250.30859 C 92.817889,250.30859 50.515942,208.00815 50.515942,155.82792 C 50.515942,103.64769 92.817889,61.347249 144.99998,61.347249 C 197.18207,61.347249 239.48401,103.64769 239.48401,155.82792 L 239.48401,155.82792 z " />
1462 <path
1463 style="opacity:0.88888891;fill:url(#radialGradient3019);fill-opacity:1;filter:url(#filter4057)"
1464 id="path4060"
1465 transform="matrix(0.6018159,0,0,0.113949,10.795037,226.91914)"
1466 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1467 <path
1468 style="fill:url(#radialGradient3021);fill-opacity:1"
1469 id="path4062"
1470 d="M 239.48401,155.82792 C 239.48401,208.00815 197.18207,250.30859 144.99998,250.30859 C 92.817889,250.30859 50.515942,208.00815 50.515942,155.82792 C 50.515942,103.64769 92.817889,61.347249 144.99998,61.347249 C 197.18207,61.347249 239.48401,103.64769 239.48401,155.82792 L 239.48401,155.82792 z " />
1471 <path
1472 style="opacity:0.19111113;fill:url(#linearGradient3023);fill-opacity:1;filter:url(#filter3600)"
1473 id="path4064"
1474 transform="matrix(0.2981666,0,0,0.4777597,78.508836,98.533501)"
1475 d="M 131.75,237.625 C 152.31256,265.73095 185.53282,284 223,284 C 260.46718,284 293.68744,265.73095 314.25,237.625 C 290.54007,257.05433 258.38838,269 223,269 C 187.61163,269 155.45993,257.05433 131.75,237.625 z " />
1476 <path
1477 style="opacity:0.73333333;fill:url(#radialGradient3025);fill-opacity:1"
1478 id="path4066"
1479 d="M 210.37813,162.8322 C 210.37813,148.55441 181.10733,136.97997 144.99998,136.97997 C 108.89263,136.97997 79.621829,148.55441 79.621829,162.8322 C 79.621829,177.10999 108.89263,188.68443 144.99998,188.68443 C 181.10733,188.68443 210.37813,177.10999 210.37813,162.8322 L 210.37813,162.8322 z " />
1480 <path
1481 style="opacity:0.17300002;fill:none;fill-opacity:1;stroke:url(#linearGradient3027);stroke-width:4.5610323;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter3604)"
1482 id="path4068"
1483 transform="matrix(0.7506586,0,0,0.7506319,-22.396918,25.602979)"
1484 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1485 <path
1486 style="fill:url(#linearGradient3029);fill-opacity:1;filter:url(#filter3408)"
1487 id="path4070"
1488 transform="matrix(0.4162113,0,0,-0.2352153,52.683369,225.05522)"
1489 d="M 293.65106,134.09128 C 293.65106,200.88328 292.08059,288.30474 225.28859,288.30474 C 158.49659,288.30474 161.50329,178.7595 161.50329,111.9675 C 161.50329,45.175498 158.49659,-48.976216 225.28859,-48.976216 C 292.08059,-48.976216 293.65106,67.299283 293.65106,134.09128 z "
1490 sodipodi:nodetypes="csssc" />
1491 <path
1492 style="fill:url(#linearGradient3031);fill-opacity:1"
1493 id="path4072"
1494 d="M 173.639,186.51102 C 173.639,172.6287 160.80871,159.77866 144.99995,159.77866 C 129.19118,159.77866 116.36089,172.6287 116.36089,186.51102 C 116.36089,200.39332 123.18963,233.97153 144.99995,233.97153 C 167.854,233.97153 173.639,200.39332 173.639,186.51102 z "
1495 sodipodi:nodetypes="csssc" />
1496 <path
1497 style="opacity:0.84541063;fill:url(#radialGradient3033);fill-opacity:1;filter:url(#filter5276)"
1498 id="path4074"
1499 transform="matrix(0.4983204,0,0,-0.3845536,33.874513,178.25116)"
1500 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1501 <path
1502 style="fill:url(#radialGradient3035);fill-opacity:1;filter:url(#filter3536)"
1503 id="path4076"
1504 transform="matrix(1.1901771,0,0,1.6982516,-58.310572,15.011734)"
1505 d="M 169.71875,27.84375 C 129.80625,27.843751 97.40625,49.896203 97.40625,77.0625 C 97.40625,78.89038 97.55803,80.692371 97.84375,82.46875 C 113.86438,69.978739 140.08999,61.843751 169.71875,61.84375 C 199.34751,61.84375 225.57312,69.978739 241.59375,82.46875 C 241.87947,80.692371 242.03125,78.89038 242.03125,77.0625 C 242.03124,49.896204 209.63126,27.84375 169.71875,27.84375 z " />
1506 <g
1507 id="g4078"
1508 transform="matrix(0.4678411,0,0,0.6112225,31.36821,48.061663)">
1509 <path
1510 style="opacity:0.71111115;fill:url(#radialGradient3037);fill-opacity:1"
1511 id="path4080"
1512 transform="matrix(0.3875218,0,0,0.2395341,101.58263,114.67306)"
1513 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1514 <path
1515 style="opacity:0.57487925;fill:url(#radialGradient3039);fill-opacity:1"
1516 id="path4082"
1517 transform="matrix(0.3232091,0,0,0.2061665,111.98387,65.76457)"
1518 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1519 <path
1520 style="opacity:1;fill:#000000;fill-opacity:1"
1521 id="path4084"
1522 transform="matrix(0.1390849,0,0,0.2479339,156.4231,89.60331)"
1523 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1524 <path
1525 style="opacity:1;fill:url(#linearGradient3041);fill-opacity:1;filter:url(#filter3820)"
1526 id="path4086"
1527 transform="matrix(0.1251764,0,0,0.2231405,159.52469,91.84298)"
1528 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1529 <path
1530 style="opacity:0.74666592;fill:url(#linearGradient3043);fill-opacity:1;filter:url(#filter4928)"
1531 id="path4088"
1532 transform="matrix(0.4824957,0,0,0.6835737,99.585559,42.480464)"
1533 d="M 160.19907,146.52228 C 160.0745,147.45808 160,148.41428 160,149.38397 C 160,161.25197 169.632,170.88397 181.5,170.88397 C 193.368,170.88398 203,161.25197 203,149.38397 C 203,148.41428 202.9255,147.45808 202.80093,146.52228 C 199.31205,154.27609 191.08982,159.73582 181.5,159.73582 C 171.91018,159.73582 163.68795,154.27609 160.19907,146.52228 z " />
1534 <path
1535 style="opacity:1;fill:url(#linearGradient3045);fill-opacity:1;filter:url(#filter4515)"
1536 id="path4090"
1537 transform="matrix(3.1030328e-2,0,0,3.2898174e-2,180.51926,111.44459)"
1538 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1539 </g>
1540 <g
1541 id="use4092"
1542 transform="matrix(0.4678411,0,0,0.6112225,86.12435,48.061663)">
1543 <path
1544 style="opacity:0.71111115;fill:url(#radialGradient3047);fill-opacity:1"
1545 id="path3634"
1546 transform="matrix(0.3875218,0,0,0.2395341,101.58263,114.67306)"
1547 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1548 <path
1549 style="opacity:0.57487925;fill:url(#radialGradient3049);fill-opacity:1"
1550 id="path3636"
1551 transform="matrix(0.3232091,0,0,0.2061665,111.98387,65.76457)"
1552 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1553 <path
1554 style="opacity:1;fill:#000000;fill-opacity:1"
1555 id="path3638"
1556 transform="matrix(0.1390849,0,0,0.2479339,156.4231,89.60331)"
1557 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1558 <path
1559 style="opacity:1;fill:url(#linearGradient3051);fill-opacity:1;filter:url(#filter3820)"
1560 id="path3640"
1561 transform="matrix(0.1251764,0,0,0.2231405,159.52469,91.84298)"
1562 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1563 <path
1564 style="opacity:0.71111115;fill:url(#linearGradient3053);fill-opacity:1;filter:url(#filter4928)"
1565 id="path3642"
1566 transform="matrix(0.4824957,0,0,0.6835737,99.585559,42.480464)"
1567 d="M 160.19907,146.52228 C 160.0745,147.45808 160,148.41428 160,149.38397 C 160,161.25197 169.632,170.88397 181.5,170.88397 C 193.368,170.88398 203,161.25197 203,149.38397 C 203,148.41428 202.9255,147.45808 202.80093,146.52228 C 199.31205,154.27609 191.08982,159.73582 181.5,159.73582 C 171.91018,159.73582 163.68795,154.27609 160.19907,146.52228 z " />
1568 <path
1569 style="opacity:1;fill:url(#linearGradient3055);fill-opacity:1;filter:url(#filter4515)"
1570 id="path3644"
1571 transform="matrix(3.1030328e-2,0,0,3.2898174e-2,180.51926,111.44459)"
1572 d="M 344,171 C 344,237.82645 289.82645,292 223,292 C 156.17355,292 102,237.82645 102,171 C 102,104.17355 156.17355,50 223,50 C 289.82645,50 344,104.17355 344,171 L 344,171 z " />
1573 </g>
1574 <path
1575 style="fill-opacity:1"
1576 id="path4108"
1577 d="M 120.41155,88.215572 C 110.20003,85.789917 99.94371,92.108588 97.517964,102.31976 C 97.339743,103.06999 97.216539,103.81678 97.130793,104.56437 C 100.40502,95.65765 109.89945,90.391681 119.36072,92.639117 C 128.82199,94.886551 130.62308,90.641216 120.41155,88.215572 z " />
1578 <path
1579 style="fill-opacity:1"
1580 id="use4110"
1581 d="M 167.73219,88.215572 C 177.94371,85.789917 188.20003,92.108588 190.62578,102.31976 C 190.804,103.06999 190.9272,103.81678 191.01295,104.56437 C 187.73872,95.65765 178.24429,90.391681 168.78302,92.639117 C 159.32175,94.886551 157.52066,90.641216 167.73219,88.215572 z " />
1582 <path
1583 style="opacity:0.60888887;fill:#ffffff;fill-opacity:1;filter:url(#filter3698)"
1584 id="path4112"
1585 transform="matrix(0.9058441,0,0,0.9058118,-11.454076,36.89739)"
1586 d="M 145.57211,52.654353 C 134.29918,49.976473 122.97678,56.952173 120.2989,68.225121 C 120.10215,69.053362 119.96614,69.877805 119.87148,70.703131 C 123.48605,60.870273 133.96735,55.056739 144.41205,57.537868 C 154.85675,60.018994 156.84506,55.33222 145.57211,52.654353 z " />
1587 <path
1588 style="opacity:0.37074567;fill:#ffffff;fill-opacity:1;filter:url(#filter3698)"
1589 id="use4114"
1590 transform="matrix(-0.9058441,0,0,0.9058118,298.3901,36.89739)"
1591 d="M 145.57211,52.654353 C 134.29918,49.976473 122.97678,56.952173 120.2989,68.225121 C 120.10215,69.053362 119.96614,69.877805 119.87148,70.703131 C 123.48605,60.870273 133.96735,55.056739 144.41205,57.537868 C 154.85675,60.018994 156.84506,55.33222 145.57211,52.654353 z " />
1592 </g>
1593 <path
1594 sodipodi:nodetypes="cssssssssssssssssssssss"
1595 style="fill:#babdb6;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1596 d="M 139.53711,49.943854 C 125.36592,52.978234 115.26259,59.735904 109.96373,68.191714 C 99.36602,85.103404 105.36345,108.60343 123.48226,132.00676 C 142.27185,156.27652 155.53443,175.12133 169.23007,188.41749 C 176.07793,195.06557 183.08618,200.3733 191.31443,204.14219 C 199.54269,207.91113 209.12453,209.98454 219.59576,209.98454 C 230.92299,209.98454 241.27387,206.90176 250.15017,202.02456 C 259.02638,197.14735 266.77718,190.47024 274.14858,182.53011 C 288.89133,166.64985 302.03951,145.5537 315.94846,123.04049 C 326.29979,106.28582 335.50486,85.336354 328.84497,68.927674 C 325.51506,60.723344 317.13191,53.464084 303.24342,50.274274 C 289.35492,47.084464 288.86377,57.206914 297.97957,59.300574 C 307.09535,61.394274 311.54939,65.237174 314.01043,71.300644 C 318.93243,83.427644 311.4968,103.69484 301.68815,119.57116 C 287.79521,142.05842 274.66579,162.88457 260.91709,177.69405 C 254.04283,185.09879 247.00332,190.96657 240.05304,194.78548 C 233.10282,198.6044 226.6148,200.37249 219.59576,200.37249 C 212.13867,200.37249 206.30915,199.12902 200.33476,196.39247 C 194.36044,193.65597 188.34462,189.27403 182.07875,183.19094 C 169.54697,171.02473 156.14375,152.23354 137.24015,127.81653 C 120.36438,106.0188 116.23329,84.419464 124.20014,71.706174 C 128.18355,65.349484 134.54273,61.170064 144.46601,59.045274 C 154.38924,56.920484 144.85127,48.805984 139.53711,49.943854 z "
1597 id="path3625" />
1598 <path
1599 style="fill:none;fill-rule:evenodd;stroke:#c8c5ac;stroke-width:10.5732584;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1600 d="M 221.57612,203.09741 C 225.14273,276.78293 64.42522,279.38313 56.53871,208.84863"
1601 id="path3627"
1602 sodipodi:nodetypes="cc" />
1603 <path
1604 sodipodi:nodetypes="csssc"
1605 style="fill:url(#radialGradient3266);fill-opacity:1"
1606 d="M 48.30652,211.55418 C 22.23129,211.55424 1.06881,173.61003 1.06881,160.92414 C 1.06881,148.23834 22.23129,137.94254 48.30652,137.94254 C 74.38172,137.94254 95.54419,148.23834 95.54419,160.92414 C 95.54424,173.61003 74.38172,211.55424 48.30652,211.55418 z "
1607 id="path3629" />
1608 <path
1609 style="fill:url(#linearGradient3263);fill-opacity:1"
1610 d="M 48.30648,184.4258 C 21.6413,184.4258 1.4210855e-14,173.89705 1.4210855e-14,160.92414 C -4e-05,147.95128 21.6413,137.42252 48.30652,137.42252 C 74.97171,137.42252 96.613,147.95128 96.613,160.92414 C 96.61305,173.89705 74.97171,184.4258 48.30648,184.4258 z "
1611 id="path3631" />
1612 <path
1613 id="path3633"
1614 d="M 48.30648,180.45776 C 26.14349,180.45776 8.15611,171.7067 8.15611,160.92414 C 8.15607,150.14163 26.14349,141.39057 48.30652,141.39057 C 70.46952,141.39057 88.45689,150.14163 88.45689,160.92414 C 88.45693,171.7067 70.46952,180.45776 48.30648,180.45776 z "
1615 style="fill:url(#linearGradient3260);fill-opacity:1;stroke:#888a85;stroke-width:0.48060265" />
1616 <path
1617 transform="matrix(0.4806026,0,0,0.4806026,-741.83863,804.52009)"
1618 sodipodi:type="arc"
1619 style="fill:#555753;fill-opacity:1;stroke:#2e3436"
1620 id="path3635"
1621 sodipodi:cx="1681"
1622 sodipodi:cy="-1350.3927"
1623 sodipodi:rx="20"
1624 sodipodi:ry="10"
1625 d="M 1701 -1350.3927 A 20 10 0 1 1 1661,-1350.3927 A 20 10 0 1 1 1701 -1350.3927 z" />
1626 <path
1627 transform="matrix(0.4806026,0,0,0.4806026,-776.92263,804.52009)"
1628 d="M 1701 -1350.3927 A 20 10 0 1 1 1661,-1350.3927 A 20 10 0 1 1 1701 -1350.3927 z"
1629 sodipodi:ry="10"
1630 sodipodi:rx="20"
1631 sodipodi:cy="-1350.3927"
1632 sodipodi:cx="1681"
1633 id="path3637"
1634 style="fill:#555753;fill-opacity:1;stroke:#2e3436"
1635 sodipodi:type="arc" />
1636 <g
1637 style="fill:#555753"
1638 transform="matrix(0.4806026,0,0,0.561938,-152.3744,-581.29715)"
1639 id="g3639">
1640 <path
1641 sodipodi:nodetypes="ccssssssssc"
1642 style="fill:url(#linearGradient3180);fill-opacity:1;fill-rule:evenodd"
1643 d="M 432.03039,1204.294 L 422.52395,1208.2166 C 422.52395,1208.2166 419.26917,1209.2858 419.2413,1207.5258 C 419.02597,1193.9282 435.50507,1185.8236 453.20673,1188.1117 C 470.90841,1190.3999 486.9554,1197.3104 488.41349,1209.1972 C 491.78762,1236.7044 464.22881,1239.0746 464.22881,1267.8406 C 464.22881,1278.0588 466.78984,1287.534 466.78984,1307.6869 C 466.78984,1316.7278 438.87445,1321.5643 438.87445,1307.6869 C 438.87445,1288.4974 441.43549,1279.8769 441.43549,1268.0157 C 441.43549,1243.8702 474.9898,1234.3218 474.9898,1211.1391 C 474.9898,1198.4244 432.03039,1190.9874 432.03039,1204.294 z "
1644 id="path3641" />
1645 <path
1646 style="fill:url(#linearGradient3182);fill-opacity:1;fill-rule:evenodd;filter:url(#filter4285)"
1647 d="M 449.93781,1194.0208 C 467.22548,1200.7774 454.39379,1192.2102 469.38606,1205.7239 C 472.88551,1210.4453 475.55771,1219.1089 467.97353,1228.1112 C 459.70688,1237.9235 444.26572,1249.2765 441.79692,1262.1656 C 440.28664,1270.9708 440.87142,1280.0718 440.02719,1288.9868 C 439.87636,1295.8787 439.70187,1302.6849 440.6806,1309.31 C 443.60122,1317.101 447.14685,1315.4346 449.07243,1306.8529 C 450.19009,1300.7615 449.70873,1294.6225 449.55908,1288.7576 C 448.56954,1274.3677 446.39715,1263.5479 452.10198,1250.2849 C 459.62756,1239.9018 478.69953,1230.176 478.3952,1217.553 C 478.48654,1209.6905 473.98925,1202.1978 467.92509,1199.1077 C 462.37066,1195.6254 456.14074,1194.0641 449.93781,1194.0208 z "
1648 id="path3643"
1649 sodipodi:nodetypes="ccsccccccccc"
1650 transform="matrix(0.8189647,0,0,1.0058423,97.213684,-7.6844444)" />
1651 <path
1652 transform="matrix(1,0,0,0.9858952,0,18.551891)"
1653 sodipodi:nodetypes="ccscccccccc"
1654 id="path3645"
1655 d="M 449.93781,1194.0208 C 467.22548,1200.7774 454.39379,1192.2102 469.38606,1205.7239 C 472.88551,1210.4453 475.55771,1219.1089 467.97353,1228.1112 C 459.70688,1237.9235 444.26572,1249.2765 441.79692,1262.1656 C 440.28664,1270.9708 440.87142,1280.0718 440.02719,1288.9868 C 439.72056,1295.9601 439.10143,1302.9985 439.43638,1309.9598 C 441.48014,1318.2088 445.4437,1316.3241 446.53554,1308.1778 C 445.79466,1288.4279 444.3606,1273.0672 451.39487,1253.9654 C 458.92045,1243.5823 476.57821,1230.7894 476.27388,1218.1664 C 476.36522,1210.3039 473.98925,1202.1978 467.92509,1199.1077 C 462.37066,1195.6254 456.14074,1194.0641 449.93781,1194.0208 z "
1656 style="fill:url(#linearGradient3184);fill-opacity:1;fill-rule:evenodd;filter:url(#filter4285)" />
1657 <path
1658 sodipodi:nodetypes="ccccc"
1659 id="path3647"
1660 d="M 470.83429,1199.6173 C 459.08429,1219.8712 432.00259,1217.8842 432.00259,1203.6997 C 431.67479,1198.1427 419.24586,1206.8136 419.24586,1206.8136 C 419.73751,1235.5476 476.67061,1232.9179 482.01293,1200.0167 C 480.37389,1197.0748 473.17868,1197.8123 470.83429,1199.6173 z "
1661 style="fill:url(#linearGradient3186);fill-opacity:1;fill-rule:evenodd" />
1662 <path
1663 sodipodi:nodetypes="cccsscsc"
1664 id="path3649"
1665 d="M 433.12873,1161.7536 L 423.91471,1169.4535 C 423.91471,1169.4535 420.94786,1166.5722 420.94786,1161.6666 C 420.94786,1136.3017 479.8199,1136.8287 487.30427,1173.9341 C 489.29546,1183.8058 486.81056,1195.7667 479.81615,1204.6203 C 478.33708,1206.4925 470.02478,1200.2374 470.02478,1200.2374 C 487.5358,1172.8845 468.0812,1168.4011 462.6446,1160.0831 C 458.16341,1153.2269 433.12873,1152.7535 433.12873,1161.7536 z "
1666 style="fill:url(#linearGradient3188);fill-opacity:1;fill-rule:evenodd" />
1667 <path
1668 sodipodi:nodetypes="cscccs"
1669 id="path3651"
1670 d="M 433.28831,1162.2798 C 430.01894,1173.0954 475.64641,1173.0105 475.64641,1147.3586 C 475.64641,1124.6896 456.25844,1119.3461 442.58978,1116.3078 C 468.11783,1110.7024 497.40433,1134.3041 488.36009,1157.1676 C 477.70216,1186.5643 418.25062,1191.5414 420.8676,1161.4608 C 426.40432,1152.6352 434.48031,1158.3365 433.28831,1162.2798 z "
1671 style="fill:url(#linearGradient3190);fill-rule:evenodd" />
1672 <path
1673 id="path3653"
1674 d="M 445.375,1144.4572 C 436.88582,1144.3066 426.07544,1147.7479 423.96875,1157.1135 C 423.66968,1158.9108 423.68578,1161.1351 424.59375,1162.6759 C 428.35441,1160.36 430.80495,1156.6062 433.40625,1153.3635 C 441.04257,1147.6618 451.8324,1149.0171 460.21875,1152.1759 C 466.27233,1156.1642 470.88168,1161.9966 476.09375,1166.9572 C 482.02394,1174.7632 480.58339,1185.6531 475.625,1193.5509 C 474.17695,1195.493 473.37365,1197.6463 476.25,1198.5197 C 477.90918,1199.9744 479.59932,1198.74 480.03125,1196.8947 C 489.79777,1181.6963 485.12592,1158.435 468.46875,1150.1447 C 461.47803,1146.1038 453.3524,1144.1743 445.375,1144.4572 z "
1675 style="fill:url(#radialGradient3192);fill-opacity:1;fill-rule:evenodd" />
1676 <path
1677 style="fill:url(#radialGradient3194);fill-opacity:1;fill-rule:evenodd"
1678 d="M 445.375,1188.0754 C 436.88582,1187.9248 426.07544,1191.3661 423.96875,1200.7317 C 423.66968,1202.529 423.68578,1204.7533 424.59375,1206.2941 C 428.35441,1203.9782 430.80495,1200.2244 433.40625,1196.9817 C 441.04257,1191.28 451.8324,1192.6353 460.21875,1195.7941 C 466.27233,1199.7824 470.88168,1205.6148 476.09375,1210.5754 C 482.02394,1218.3814 480.58339,1229.2713 475.625,1237.1691 C 474.17695,1239.1112 473.37365,1241.2645 476.25,1242.1379 C 477.90918,1243.5926 479.59932,1242.3582 480.03125,1240.5129 C 489.79777,1225.3145 485.12592,1202.0532 468.46875,1193.7629 C 461.47803,1189.722 453.3524,1187.7925 445.375,1188.0754 z "
1679 id="path3655" />
1680 <path
1681 style="fill:url(#radialGradient3196);fill-opacity:1;fill-rule:evenodd"
1682 d="M 445.375,1176.0401 C 436.88582,1176.1907 426.07544,1172.7494 423.96875,1163.3838 C 423.66968,1161.5865 423.68578,1159.3622 424.59375,1157.8214 C 428.35441,1160.1373 430.80495,1163.8911 433.40625,1167.1338 C 441.04257,1172.8355 451.8324,1171.4802 460.21875,1168.3214 C 466.27233,1164.3331 470.88168,1158.5007 476.09375,1153.5401 C 482.02394,1145.7341 480.58339,1134.8442 475.625,1126.9464 C 474.17695,1125.0043 473.37365,1122.851 476.25,1121.9776 C 477.90918,1120.5229 479.59932,1121.7573 480.03125,1123.6026 C 489.79777,1138.801 485.12592,1162.0623 468.46875,1170.3526 C 461.47803,1174.3935 453.3524,1176.323 445.375,1176.0401 z "
1683 id="path3657" />
1684 <path
1685 id="path3659"
1686 d="M 445.375,1221.3688 C 436.88582,1221.5194 426.07544,1218.0781 423.96875,1208.7125 C 423.66968,1206.9152 423.68578,1204.6909 424.59375,1203.1501 C 428.35441,1205.466 430.80495,1209.2198 433.40625,1212.4625 C 441.04257,1218.1642 451.8324,1216.8089 460.21875,1213.6501 C 466.27233,1209.6618 470.88168,1203.8294 476.09375,1198.8688 C 482.02394,1191.0628 480.58339,1180.1729 475.625,1172.2751 C 474.17695,1170.333 473.37365,1168.1797 476.25,1167.3063 C 477.90918,1165.8516 479.59932,1167.086 480.03125,1168.9313 C 489.79777,1184.1297 485.12592,1207.391 468.46875,1215.6813 C 461.47803,1219.7222 453.3524,1221.6517 445.375,1221.3688 z "
1687 style="fill:url(#radialGradient3198);fill-opacity:1;fill-rule:evenodd" />
1688 </g>
1689 <path
1690 id="path3663"
1691 d="M 35.137,138.52786 C 35.137,142.70176 36.01708,146.60098 36.01708,154.86244 C 36.01708,158.56866 24.57345,160.55134 24.57345,154.86244 C 24.57345,146.99594 25.62333,143.46202 25.62333,138.59966 C 25.62333,125.56698 25.47141,117.67764 18.26314,105.19255 C 6.35717,84.570804 27.51215,45.832734 35.406,41.323054 C 37.19922,45.929244 35.137,80.754574 35.137,138.52786 z "
1692 style="fill:url(#linearGradient3244);fill-opacity:1;fill-rule:evenodd"
1693 sodipodi:nodetypes="csscscs" />
1694 <path
1695 sodipodi:nodetypes="ccccccccc"
1696 id="path3665"
1697 d="M 35.19068,45.453264 C 30.75881,46.363994 33.99716,82.317164 23.23426,107.56086 C 30.07558,120.51459 29.69966,135.83399 28.05676,150.02936 C 28.30961,151.94428 27.09287,154.95563 28.98793,156.15704 C 31.0959,156.97926 34.33151,156.49596 35.59622,154.51996 C 35.13815,145.34594 34.34502,136.07002 34.6403,126.82529 C 34.76674,103.71344 35.38312,80.608524 35.61122,57.498314 C 35.59992,53.382814 35.57781,49.266454 35.44603,45.152884 L 35.19068,45.453264 z "
1698 style="fill:url(#linearGradient3241);fill-opacity:1;fill-rule:evenodd" />
1699 <path
1700 sodipodi:nodetypes="ccccccccccccccccc"
1701 transform="matrix(0.7656537,0,0,0.4585475,-1283.2388,769.80396)"
1702 id="path3667"
1703 d="M 1820.8438,-1523.625 C 1811.5309,-1483.3797 1825.1068,-1442.2453 1842.1478,-1405.9936 C 1859.0621,-1370.2057 1876.114,-1312.5918 1895.0312,-1277.817 C 1907.1538,-1257.6302 1921.6928,-1236.3011 1944.6299,-1228.1076 C 1963.3075,-1221.8933 1985.5757,-1226.399 1999.4375,-1240.8795 C 2026.3142,-1264.7972 2040.1136,-1321.4438 2055.1197,-1353.475 C 2072.2542,-1393.5584 2089.4288,-1434.0694 2099.75,-1476.5312 C 2104.8451,-1501.571 2106.5804,-1530.0808 2092.5938,-1552.5938 C 2080.1586,-1570.204 2054.9935,-1568.1485 2075.4688,-1556.0625 C 2093.4403,-1543.0102 2094.8041,-1518.012 2092.2933,-1497.6357 C 2086.2374,-1444.3382 2061.2331,-1395.8836 2041.25,-1346.875 C 2027.5391,-1316.3168 2012.1446,-1262.6631 1985,-1241.942 C 1967.8646,-1230.7853 1943.5918,-1234.1808 1929.625,-1248.8482 C 1909.0455,-1267.3974 1898.4508,-1315.7376 1885.2833,-1339.5859 C 1868.5956,-1373.3101 1851.4488,-1407.027 1838.0938,-1442.1875 C 1827.9978,-1472.4656 1822.8624,-1507.1254 1835.875,-1537.3438 C 1845.5453,-1556.5373 1825.1246,-1551.2516 1820.8438,-1523.625 z "
1704 style="fill:url(#linearGradient3204);fill-opacity:1;fill-rule:evenodd;stroke:none;filter:url(#filter4133)" />
1705 <path
1706 sodipodi:nodetypes="cccccc"
1707 id="path3670"
1708 d="M 135.38295,46.479584 C 127.98743,45.450354 130.94798,69.582134 135.83194,67.633634 C 137.12631,67.347294 143.64771,65.372024 144.94573,65.462594 C 150.38631,65.042294 155.42337,59.373574 155.31739,53.648964 C 155.42829,48.570054 151.67446,44.228204 146.86043,44.129954 C 144.79848,44.023104 137.46447,46.112744 135.38295,46.479584 z "
1709 style="fill:#2e3436;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:44;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
1710 <path
1711 style="fill:#2e3436;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:44;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1712 d="M 309.55009,47.443764 C 318.17438,47.309914 313.50819,71.020144 307.94727,68.487344 C 306.46171,68.045534 299.00431,65.288394 297.49525,65.222054 C 291.21092,64.146194 285.66289,57.884594 286.07871,52.188024 C 286.21004,47.109234 290.78299,43.232014 296.36763,43.715074 C 298.76295,43.857374 307.15634,46.826664 309.55009,47.443764 z "
1713 id="path3672"
1714 sodipodi:nodetypes="cccccc" />
1715 <path
1716 sodipodi:nodetypes="cc"
1717 id="path3678"
1718 d="M 220.21588,203.09741 C 223.68035,276.85982 61.9309,279.41888 53.98324,208.84863"
1719 style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:url(#linearGradient3235);stroke-width:15.37928391;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
1720 <path
1721 sodipodi:nodetypes="css"
1722 id="path3680"
1723 d="M 149.62812,157.05108 C 172.95436,187.10274 188.63708,203.18135 216.52442,203.18135 C 246.19258,203.18135 268.04349,183.39335 290.0189,152.02932"
1724 style="fill:none;fill-rule:evenodd;stroke:#2e3436;stroke-width:15.37928391;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
1725 <path
1726 style="fill:#2e3436;fill-opacity:0.99894637;fill-rule:evenodd;stroke:none;stroke-width:32;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1727 d="M 246.80044,186.40497 C 236.23915,194.26288 227.0282,197.48887 216.53315,197.48887 C 206.34023,197.48887 199.72636,195.19601 190.78805,188.46253 C 181.84973,181.72909 173.69077,203.4047 190.05431,208.52947 C 200.62738,211.84077 206.51749,216.29927 203.80125,222.66231 C 201.53521,227.97066 229.24844,224.62999 230.45678,220.55299 C 232.36113,214.12787 238.37227,210.81243 244.83837,207.86686 C 259.16099,201.34234 257.36162,178.54707 246.80044,186.40497 z "
1728 id="path3682"
1729 sodipodi:nodetypes="csssssss" />
1730 <path
1731 style="opacity:0.55111108;fill:url(#linearGradient3230);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:44;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1732 d="M 137.62681,46.434724 C 134.98797,46.067454 134.27557,50.380564 134.67175,54.404994 C 133.83782,61.798224 151.22775,54.049994 151.27085,51.341734 C 151.34678,47.865494 148.77751,44.893744 145.48255,44.826524 C 144.07125,44.753364 139.05151,46.183604 137.62681,46.434724 z "
1733 id="path3688"
1734 sodipodi:nodetypes="ccccc" />
1735 <path
1736 sodipodi:nodetypes="ccccc"
1737 id="path3691"
1738 d="M 308.25561,47.512814 C 311.86448,47.456804 312.37889,52.952454 311.40477,57.510984 C 307.44844,62.401554 291.14933,53.384164 290.60364,51.080814 C 290.70239,47.261214 294.14158,44.345344 298.34157,44.708614 C 300.14299,44.815634 306.45534,47.048734 308.25561,47.512814 z "
1739 style="opacity:0.55111108;fill:url(#linearGradient3227);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:44;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
1740 <path
1741 style="opacity:0.61777775;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#radialGradient3212);stroke-width:10.08747578;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter3523)"
1742 d="M 956.7079,666.49988 C 961.2266,779.89428 750.2503,783.82828 739.8838,675.34128"
1743 id="path3693"
1744 sodipodi:nodetypes="cc"
1745 transform="matrix(0.6801171,0,0,0.4806026,-439.83774,-106.65094)" />
1746 <path
1747 sodipodi:nodetypes="cs"
1748 id="path3695"
1749 d="M 288.68277,149.92452 C 274.92635,167.64718 263.38711,181.74935 250.51448,190.33758"
1750 style="opacity:0.56888888;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3223);stroke-width:7.68964195;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
1751 <path
1752 id="path3697"
1753 d="M 53.63591,220.20504 C 41.5503,220.20504 31.74163,206.52511 31.74163,201.95156 C 31.74163,197.3779 41.5503,206.8749 53.63591,206.8749 C 65.72145,206.8749 75.53011,197.3779 75.53011,201.95156 C 75.53011,206.52511 65.72145,220.20504 53.63591,220.20504 z "
1754 style="fill:#2e3436;fill-opacity:1"
1755 sodipodi:nodetypes="csssc" />
1756 <path
1757 style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3219);stroke-width:7.68964195;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
1758 d="M 146.36912,154.92452 C 160.12554,172.64718 171.66478,186.74935 184.53741,195.33758"
1759 id="path3398"
1760 sodipodi:nodetypes="cs" />
1761 </g>
1762 </g>
1763 <text
1764 xml:space="preserve"
1765 style="font-size:48px;font-family:Eras Bd BT"
1766 x="58.48999"
1767 y="30.28125"
1768 id="text2846"><tspan
1769 sodipodi:role="line"
1770 id="tspan2848"
1771 x="58.48999"
1772 y="30.28125"
1773 style="font-size:48px;font-family:Eras Bd BT">systemtap</tspan></text>
1774</svg>
diff --git a/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide-Preface.html b/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide-Preface.html
index 62c529ba..d5588b8a 100644
--- a/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide-Preface.html
+++ b/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide-Preface.html
@@ -1,12 +1,12 @@
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">Preface</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="index.html" title="SystemTap Beginners Guide" /><link rel="next" href="pr01s02.html" title="2. We Need Feedback!" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="index.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="pr01s02.html"><strong>Next</strong></a></li></ul><div class="preface"><div class="titlepage"><div><div><h1 class="title"><a id="SystemTap_Beginners_Guide-Preface"> 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">Preface</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="index.html" title="SystemTap Beginners Guide" /><link rel="next" href="pr01s02.html" title="2. We Need Feedback!" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="index.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="pr01s02.html"><strong>Next</strong></a></li></ul><div class="preface"><div class="titlepage"><div><div><h1 class="title"><a id="SystemTap_Beginners_Guide-Preface">
3 ⁠</a>Preface</h1></div></div></div><div class="para"> 3 ⁠</a>Preface</h1></div></div></div><div class="para">
4 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="idm46413329535680"> 4 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="id1343">
5 ⁠</a>1. Document Conventions</h2></div></div></div><div class="para"> 5 ⁠</a>1. Document Conventions</h2></div></div></div><div class="para">
6 This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. 6 This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.
7 </div><div class="para"> 7 </div><div class="para">
8 In PDF and paper editions, this manual uses typefaces drawn from the <a href="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</a> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later include the Liberation Fonts set by default. 8 In PDF and paper editions, this manual uses typefaces drawn from the <a href="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</a> set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later include the Liberation Fonts set by default.
9 </div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46413327772896"> 9 </div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="id1340">
10 ⁠</a>1.1. Typographic Conventions</h3></div></div></div><div class="para"> 10 ⁠</a>1.1. Typographic Conventions</h3></div></div></div><div class="para">
11 Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows. 11 Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.
12 </div><div class="para"> 12 </div><div class="para">
@@ -55,7 +55,7 @@
55 Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: 55 Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:
56 </div><div class="blockquote"><blockquote class="blockquote"><div class="para"> 56 </div><div class="blockquote"><blockquote class="blockquote"><div class="para">
57 Publican is a <em class="firstterm">DocBook</em> publishing system. 57 Publican is a <em class="firstterm">DocBook</em> publishing system.
58 </div></blockquote></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46413321482400"> 58 </div></blockquote></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="id1341">
59 ⁠</a>1.2. Pull-quote Conventions</h3></div></div></div><div class="para"> 59 ⁠</a>1.2. Pull-quote Conventions</h3></div></div></div><div class="para">
60 Terminal output and source code listings are set off visually from the surrounding text. 60 Terminal output and source code listings are set off visually from the surrounding text.
61 </div><div class="para"> 61 </div><div class="para">
@@ -81,7 +81,7 @@ public class ExClient
81 81
82 System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); 82 System.out.println("Echo.echo('Hello') = " + echo.echo("Hello"));
83 } 83 }
84}</pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46413320348688"> 84}</pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="id1342">
85 ⁠</a>1.3. Notes and Warnings</h3></div></div></div><div class="para"> 85 ⁠</a>1.3. Notes and Warnings</h3></div></div></div><div class="para">
86 Finally, we use three visual styles to draw attention to information that might otherwise be overlooked. 86 Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
87 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para"> 87 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">
diff --git a/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide.proc b/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide.proc
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/SystemTap_Beginners_Guide/SystemTap_Beginners_Guide.proc
diff --git a/SystemTap_Beginners_Guide/arrayoperators.html b/SystemTap_Beginners_Guide/arrayoperators.html
index 80e66d6f..d874d9f5 100644
--- a/SystemTap_Beginners_Guide/arrayoperators.html
+++ b/SystemTap_Beginners_Guide/arrayoperators.html
@@ -1,5 +1,5 @@
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">3.5. Array Operations in SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="associativearrays.html" title="3.4. Associative Arrays" /><link rel="next" href="arrayops-readvalues.html" title="3.5.2. Reading Values From Arrays" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="associativearrays.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-readvalues.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="arrayoperators"> 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">3.5. Array Operations in SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="associativearrays.html" title="3.4. Associative Arrays" /><link rel="next" href="arrayops-readvalues.html" title="3.5.2. Reading Values From Arrays" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="associativearrays.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-readvalues.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="arrayoperators">
3 ⁠</a>3.5. Array Operations in SystemTap</h2></div></div></div><a id="idm46413324203424" class="indexterm"></a><a id="idm46413324201920" class="indexterm"></a><div class="para">This section enumerates some of the most commonly used array operations in SystemTap.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-assignvalue"> 3 ⁠</a>3.5. Array Operations in SystemTap</h2></div></div></div><a id="id3403" class="indexterm"></a><a id="id3406" class="indexterm"></a><div class="para">This section enumerates some of the most commonly used array operations in SystemTap.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-assignvalue">
4 ⁠</a>3.5.1. Assigning an Associated Value</h3></div></div></div><a id="idm46413323718544" class="indexterm"></a><a id="idm46413322849504" class="indexterm"></a><a id="idm46413322847920" class="indexterm"></a><div class="para">Use <code class="command">=</code> to set an associated value to indexed unique pairs, as in:</div><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>] = <em class="replaceable">value</em></pre><div class="para"><a class="xref" href="associativearrays.html#arraysimplestexample">Example 3.13, “Basic Array Statements”</a> shows a very basic example of how to set an explicit associated value to a unique key. You can also use a handler function as both your <code class="command"><em class="replaceable">index_expression</em></code> and <code class="command"><em class="replaceable">value</em></code>. For example, you can use arrays to set a timestamp as the associated value to a process name (which you wish to use as your unique key), as in:</div><a id="idm46413317049520" class="indexterm"></a><a id="idm46413318491968" class="indexterm"></a><a id="idm46413316943440" class="indexterm"></a><a id="idm46413329316928" class="indexterm"></a><a id="idm46413329597920" class="indexterm"></a><a id="idm46413321342624" class="indexterm"></a><div class="example"><a id="arrays-timestampprocessname"> 4 ⁠</a>3.5.1. Assigning an Associated Value</h3></div></div></div><a id="id3412" class="indexterm"></a><a id="id3415" class="indexterm"></a><a id="id3418" class="indexterm"></a><div class="para">Use <code class="command">=</code> to set an associated value to indexed unique pairs, as in:</div><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>] = <em class="replaceable">value</em></pre><div class="para"><a class="xref" href="associativearrays.html#arraysimplestexample">Example 3.13, “Basic Array Statements”</a> shows a very basic example of how to set an explicit associated value to a unique key. You can also use a handler function as both your <code class="command"><em class="replaceable">index_expression</em></code> and <code class="command"><em class="replaceable">value</em></code>. For example, you can use arrays to set a timestamp as the associated value to a process name (which you wish to use as your unique key), as in:</div><a id="id3433" class="indexterm"></a><a id="id3437" class="indexterm"></a><a id="id3441" class="indexterm"></a><a id="id3445" class="indexterm"></a><a id="id3449" class="indexterm"></a><a id="id3453" class="indexterm"></a><div class="example"><a id="arrays-timestampprocessname">
5 ⁠</a><p class="title"><strong>Example 3.14. Associating Timestamps to Process Names</strong></p><div class="example-contents"><pre class="programlisting">foo[tid()] = gettimeofday_s()</pre></div></div><div class="para">Whenever an event invokes the statement in <a class="xref" href="arrayoperators.html#arrays-timestampprocessname">Example 3.14, “Associating Timestamps to Process Names”</a>, SystemTap returns the appropriate <code class="command">tid()</code> value (that is, the ID of a thread, which is then used as the unique key). At the same time, SystemTap also uses the function <code class="command">gettimeofday_s()</code> to set the corresponding timestamp as the associated value to the unique key defined by the function <code class="command">tid()</code>. This creates an array composed of key pairs containing thread IDs and timestamps.</div><div class="para">In this same example, if <code class="command">tid()</code> returns a value that is already defined in the array <code class="command">foo</code>, the operator will discard the original associated value to it, and replace it with the current timestamp from <code class="command">gettimeofday_s()</code>.</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="associativearrays.html"><strong>Prev</strong>3.4. Associative Arrays</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="arrayops-readvalues.html"><strong>Next</strong>3.5.2. Reading Values From Arrays</a></li></ul></body></html> \ No newline at end of file 5 ⁠</a><p class="title"><strong>Example 3.14. Associating Timestamps to Process Names</strong></p><div class="example-contents"><pre class="programlisting">foo[tid()] = gettimeofday_s()</pre></div></div><div class="para">Whenever an event invokes the statement in <a class="xref" href="arrayoperators.html#arrays-timestampprocessname">Example 3.14, “Associating Timestamps to Process Names”</a>, SystemTap returns the appropriate <code class="command">tid()</code> value (that is, the ID of a thread, which is then used as the unique key). At the same time, SystemTap also uses the function <code class="command">gettimeofday_s()</code> to set the corresponding timestamp as the associated value to the unique key defined by the function <code class="command">tid()</code>. This creates an array composed of key pairs containing thread IDs and timestamps.</div><div class="para">In this same example, if <code class="command">tid()</code> returns a value that is already defined in the array <code class="command">foo</code>, the operator will discard the original associated value to it, and replace it with the current timestamp from <code class="command">gettimeofday_s()</code>.</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="associativearrays.html"><strong>Prev</strong>3.4. Associative Arrays</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="arrayops-readvalues.html"><strong>Next</strong>3.5.2. Reading Values From Arrays</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/arrayops-aggregates.html b/SystemTap_Beginners_Guide/arrayops-aggregates.html
index 6b92af1e..e3acbc77 100644
--- a/SystemTap_Beginners_Guide/arrayops-aggregates.html
+++ b/SystemTap_Beginners_Guide/arrayops-aggregates.html
@@ -1,19 +1,19 @@
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">3.5.7. Computing for Statistical Aggregates</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-conditionals.html" title="3.5.6. Using Arrays in Conditional Statements" /><link rel="next" href="understanding-tapsets.html" title="3.6. Tapsets" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-conditionals.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="understanding-tapsets.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-aggregates"> 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">3.5.7. Computing for Statistical Aggregates</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-conditionals.html" title="3.5.6. Using Arrays in Conditional Statements" /><link rel="next" href="understanding-tapsets.html" title="3.6. Tapsets" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-conditionals.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="understanding-tapsets.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-aggregates">
3 ⁠</a>3.5.7. Computing for Statistical Aggregates</h3></div></div></div><a id="idm46413321374544" class="indexterm"></a><a id="idm46413323039808" class="indexterm"></a><a id="idm46413323038176" class="indexterm"></a><a id="idm46413327863024" class="indexterm"></a><a id="idm46413327861392" class="indexterm"></a><div class="para">Statistical aggregates are used to collect statistics on numerical values where it is important to accumulate new data quickly and in large volume (that is, storing only aggregated stream statistics). Statistical aggregates can be used in global variables or as elements in an array.</div><a id="idm46413323080656" class="indexterm"></a><a id="idm46413324693968" class="indexterm"></a><a id="idm46413326826288" class="indexterm"></a><a id="idm46413326824192" class="indexterm"></a><div class="para">To add value to a statistical aggregate, use the operator <code class="command">&lt;&lt;&lt; <em class="replaceable">value</em></code>.</div><div class="example"><a id="simpleaggregates"> 3 ⁠</a>3.5.7. Computing for Statistical Aggregates</h3></div></div></div><a id="id3897" class="indexterm"></a><a id="id3900" class="indexterm"></a><a id="id3903" class="indexterm"></a><a id="id3906" class="indexterm"></a><a id="id3909" class="indexterm"></a><div class="para">Statistical aggregates are used to collect statistics on numerical values where it is important to accumulate new data quickly and in large volume (that is, storing only aggregated stream statistics). Statistical aggregates can be used in global variables or as elements in an array.</div><a id="id3913" class="indexterm"></a><a id="id3917" class="indexterm"></a><a id="id3921" class="indexterm"></a><a id="id3925" class="indexterm"></a><div class="para">To add value to a statistical aggregate, use the operator <code class="command">&lt;&lt;&lt; <em class="replaceable">value</em></code>.</div><div class="example"><a id="simpleaggregates">
4 ⁠</a><p class="title"><strong>Example 3.21. stat-aggregates.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads 4 ⁠</a><p class="title"><strong>Example 3.21. stat-aggregates.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads
5probe vfs.read 5probe vfs.read
6{ 6{
7 reads[execname()] &lt;&lt;&lt; $count 7 reads[execname()] &lt;&lt;&lt; $count
8}</pre></div></div><a id="idm46413324273280" class="indexterm"></a><a id="idm46413324550528" class="indexterm"></a><a id="idm46413314884192" class="indexterm"></a><a id="idm46413314882112" class="indexterm"></a><div class="para">In <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the operator <code class="command">&lt;&lt;&lt; $count</code> <span class="emphasis"><em>stores</em></span> the amount returned by <code class="literal">$count</code> to the associated value of the corresponding <code class="command">execname()</code> in the <code class="literal">reads</code> array. Remember, these values are <span class="emphasis"><em>stored</em></span>; they are not added to the associated values of each unique key, nor are they used to replace the current associated values. In a manner of speaking, think of it as having each unique key (<code class="command">execname()</code>) having multiple associated values, accumulating with each probe handler run.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">In the context of <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, <code class="literal">count</code> returns the amount of data read by the returned <code class="command">execname()</code> to the virtual file system.</div></div></div><a id="idm46413330848960" class="indexterm"></a><a id="idm46413317052912" class="indexterm"></a><a id="idm46413317050864" class="indexterm"></a><a id="idm46413324581040" class="indexterm"></a><a id="idm46413323529008" class="indexterm"></a><div class="para">To extract data collected by statistical aggregates, use the syntax format <code class="command">@<em class="replaceable">extractor</em>(<em class="replaceable">variable/array index expression</em>)</code>. <code class="command"><em class="replaceable">extractor</em></code> can be any of the following integer extractors:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">count</span></dt><dd><a id="idm46413317056416" class="indexterm"></a><a id="idm46413317054320" class="indexterm"></a><a id="idm46413322068336" class="indexterm"></a><a id="idm46413328533296" class="indexterm"></a><div class="para"> 8}</pre></div></div><a id="id3936" class="indexterm"></a><a id="id3940" class="indexterm"></a><a id="id3944" class="indexterm"></a><a id="id3948" class="indexterm"></a><div class="para">In <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the operator <code class="command">&lt;&lt;&lt; $count</code> <span class="emphasis"><em>stores</em></span> the amount returned by <code class="literal">$count</code> to the associated value of the corresponding <code class="command">execname()</code> in the <code class="literal">reads</code> array. Remember, these values are <span class="emphasis"><em>stored</em></span>; they are not added to the associated values of each unique key, nor are they used to replace the current associated values. In a manner of speaking, think of it as having each unique key (<code class="command">execname()</code>) having multiple associated values, accumulating with each probe handler run.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">In the context of <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, <code class="literal">count</code> returns the amount of data read by the returned <code class="command">execname()</code> to the virtual file system.</div></div></div><a id="id3967" class="indexterm"></a><a id="id3971" class="indexterm"></a><a id="id3975" class="indexterm"></a><a id="id3979" class="indexterm"></a><a id="id3983" class="indexterm"></a><div class="para">To extract data collected by statistical aggregates, use the syntax format <code class="command">@<em class="replaceable">extractor</em>(<em class="replaceable">variable/array index expression</em>)</code>. <code class="command"><em class="replaceable">extractor</em></code> can be any of the following integer extractors:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">count</span></dt><dd><a id="id3997" class="indexterm"></a><a id="id4001" class="indexterm"></a><a id="id4005" class="indexterm"></a><a id="id4009" class="indexterm"></a><div class="para">
9 Returns the number of all values stored into the variable/array index expression. Given the sample probe in <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the expression <code class="command">@count(reads[execname()])</code> will return <span class="emphasis"><em>how many values are stored</em></span> in each unique key in array <code class="literal">reads</code>. 9 Returns the number of all values stored into the variable/array index expression. Given the sample probe in <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the expression <code class="command">@count(reads[execname()])</code> will return <span class="emphasis"><em>how many values are stored</em></span> in each unique key in array <code class="literal">reads</code>.
10</div></dd><dt><span class="term">sum</span></dt><dd><a id="idm46413322194208" class="indexterm"></a><a id="idm46413325117552" class="indexterm"></a><a id="idm46413325115568" class="indexterm"></a><a id="idm46413330834560" class="indexterm"></a><div class="para"> 10</div></dd><dt><span class="term">sum</span></dt><dd><a id="id4021" class="indexterm"></a><a id="id4025" class="indexterm"></a><a id="id4029" class="indexterm"></a><a id="id4033" class="indexterm"></a><div class="para">
11 Returns the sum of all values stored into the variable/array index expression. Again, given sample probe in <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the expression <code class="command">@sum(reads[execname()])</code> will return <span class="emphasis"><em>the total of all values stored</em></span> in each unique key in array <code class="literal">reads</code>. 11 Returns the sum of all values stored into the variable/array index expression. Again, given sample probe in <a class="xref" href="arrayops-aggregates.html#simpleaggregates">Example 3.21, “stat-aggregates.stp”</a>, the expression <code class="command">@sum(reads[execname()])</code> will return <span class="emphasis"><em>the total of all values stored</em></span> in each unique key in array <code class="literal">reads</code>.
12</div></dd><dt><span class="term">min</span></dt><dd><a id="idm46413324337568" class="indexterm"></a><a id="idm46413329073136" class="indexterm"></a><a id="idm46413329071088" class="indexterm"></a><a id="idm46413322107408" class="indexterm"></a><div class="para"> 12</div></dd><dt><span class="term">min</span></dt><dd><a id="id4045" class="indexterm"></a><a id="id4049" class="indexterm"></a><a id="id4053" class="indexterm"></a><a id="id4057" class="indexterm"></a><div class="para">
13 Returns the smallest among all the values stored in the variable/array index expression. 13 Returns the smallest among all the values stored in the variable/array index expression.
14</div></dd><dt><span class="term">max</span></dt><dd><a id="idm46413314918688" class="indexterm"></a><a id="idm46413318917984" class="indexterm"></a><a id="idm46413318915888" class="indexterm"></a><a id="idm46413322753824" class="indexterm"></a><div class="para"> 14</div></dd><dt><span class="term">max</span></dt><dd><a id="id4065" class="indexterm"></a><a id="id4069" class="indexterm"></a><a id="id4073" class="indexterm"></a><a id="id4077" class="indexterm"></a><div class="para">
15 Returns the largest among all the values stored in the variable/array index expression. 15 Returns the largest among all the values stored in the variable/array index expression.
16</div></dd><dt><span class="term">avg</span></dt><dd><a id="idm46413327653696" class="indexterm"></a><a id="idm46413316253200" class="indexterm"></a><a id="idm46413321416368" class="indexterm"></a><a id="idm46413321414272" class="indexterm"></a><div class="para"> 16</div></dd><dt><span class="term">avg</span></dt><dd><a id="id4085" class="indexterm"></a><a id="id4089" class="indexterm"></a><a id="id4093" class="indexterm"></a><a id="id4097" class="indexterm"></a><div class="para">
17 Returns the average of all values stored in the variable/array index expression. 17 Returns the average of all values stored in the variable/array index expression.
18</div></dd></dl></div><div class="para"> 18</div></dd></dl></div><div class="para">
19 When using statistical aggregates, you can also build array constructs that use multiple index 19 When using statistical aggregates, you can also build array constructs that use multiple index
diff --git a/SystemTap_Beginners_Guide/arrayops-conditionals.html b/SystemTap_Beginners_Guide/arrayops-conditionals.html
index 91e477ac..f5279abb 100644
--- a/SystemTap_Beginners_Guide/arrayops-conditionals.html
+++ b/SystemTap_Beginners_Guide/arrayops-conditionals.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">3.5.6. Using Arrays in Conditional Statements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-deleting.html" title="3.5.5. Clearing/Deleting Arrays and Array Elements" /><link rel="next" href="arrayops-aggregates.html" title="3.5.7. Computing for Statistical Aggregates" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-deleting.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-aggregates.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-conditionals"> 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">3.5.6. Using Arrays in Conditional Statements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-deleting.html" title="3.5.5. Clearing/Deleting Arrays and Array Elements" /><link rel="next" href="arrayops-aggregates.html" title="3.5.7. Computing for Statistical Aggregates" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-deleting.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-aggregates.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-conditionals">
3 ⁠</a>3.5.6. Using Arrays in Conditional Statements</h3></div></div></div><a id="idm46413318444608" class="indexterm"></a><a id="idm46413321332480" class="indexterm"></a><a id="idm46413321330848" class="indexterm"></a><a id="idm46413326912848" class="indexterm"></a><div class="para">You can also use associative arrays in <code class="command">if</code> statements. This is useful if you want to execute a subroutine once a value in the array matches a certain condition. Consider the following example:</div><div class="example"><a id="simplevfsreadprintif"> 3 ⁠</a>3.5.6. Using Arrays in Conditional Statements</h3></div></div></div><a id="id3837" class="indexterm"></a><a id="id3840" class="indexterm"></a><a id="id3843" class="indexterm"></a><a id="id3846" class="indexterm"></a><div class="para">You can also use associative arrays in <code class="command">if</code> statements. This is useful if you want to execute a subroutine once a value in the array matches a certain condition. Consider the following example:</div><div class="example"><a id="simplevfsreadprintif">
4 ⁠</a><p class="title"><strong>Example 3.19. vfsreads-print-if-1kb.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads 4 ⁠</a><p class="title"><strong>Example 3.19. vfsreads-print-if-1kb.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads
5probe vfs.read 5probe vfs.read
6{ 6{
@@ -15,7 +15,7 @@ probe timer.s(3)
15 printf("%s : %dkB \n", count, reads[count]/1024) 15 printf("%s : %dkB \n", count, reads[count]/1024)
16 else 16 else
17 printf("%s : %dB \n", count, reads[count]) 17 printf("%s : %dB \n", count, reads[count])
18}</pre></div></div><div class="para">Every three seconds, <a class="xref" href="arrayops-conditionals.html#simplevfsreadprintif">Example 3.19, “vfsreads-print-if-1kb.stp”</a> prints out a list of all processes, along with how many times each process performed a VFS read. If the associated value of a process name is equal or greater than 1024, the <code class="command">if</code> statement in the script converts and prints it out in <code class="command">kB</code>.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Testing for Membership</div><a id="idm46413317038304" class="indexterm"></a><a id="idm46413316547696" class="indexterm"></a><a id="idm46413320304368" class="indexterm"></a><a id="idm46413320302320" class="indexterm"></a><a id="idm46413321791936" class="indexterm"></a>You can also test whether a specific unique key is a member of an array. Further, membership in an array can be used in <code class="command">if</code> statements, as in:</div><pre class="screen">if([<em class="replaceable">index_expression</em>] in <em class="replaceable">array_name</em>) <em class="replaceable">statement</em></pre><div class="para">To illustrate this, consider the following example:</div><div class="example"><a id="simplesimplevfsreadprintifmember"> 18}</pre></div></div><div class="para">Every three seconds, <a class="xref" href="arrayops-conditionals.html#simplevfsreadprintif">Example 3.19, “vfsreads-print-if-1kb.stp”</a> prints out a list of all processes, along with how many times each process performed a VFS read. If the associated value of a process name is equal or greater than 1024, the <code class="command">if</code> statement in the script converts and prints it out in <code class="command">kB</code>.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Testing for Membership</div><a id="id3860" class="indexterm"></a><a id="id3864" class="indexterm"></a><a id="id3868" class="indexterm"></a><a id="id3872" class="indexterm"></a><a id="id3876" class="indexterm"></a>You can also test whether a specific unique key is a member of an array. Further, membership in an array can be used in <code class="command">if</code> statements, as in:</div><pre class="screen">if([<em class="replaceable">index_expression</em>] in <em class="replaceable">array_name</em>) <em class="replaceable">statement</em></pre><div class="para">To illustrate this, consider the following example:</div><div class="example"><a id="simplesimplevfsreadprintifmember">
19 ⁠</a><p class="title"><strong>Example 3.20. vfsreads-stop-on-stapio2.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads 19 ⁠</a><p class="title"><strong>Example 3.20. vfsreads-stop-on-stapio2.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads
20 20
21probe vfs.read 21probe vfs.read
diff --git a/SystemTap_Beginners_Guide/arrayops-deleting.html b/SystemTap_Beginners_Guide/arrayops-deleting.html
index 7d890005..5d190f41 100644
--- a/SystemTap_Beginners_Guide/arrayops-deleting.html
+++ b/SystemTap_Beginners_Guide/arrayops-deleting.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">3.5.5. Clearing/Deleting Arrays and Array Elements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-foreach.html" title="3.5.4. Processing Multiple Elements in an Array" /><link rel="next" href="arrayops-conditionals.html" title="3.5.6. Using Arrays in Conditional Statements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-foreach.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-conditionals.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-deleting"> 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">3.5.5. Clearing/Deleting Arrays and Array Elements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-foreach.html" title="3.5.4. Processing Multiple Elements in an Array" /><link rel="next" href="arrayops-conditionals.html" title="3.5.6. Using Arrays in Conditional Statements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-foreach.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-conditionals.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-deleting">
3 ⁠</a>3.5.5. Clearing/Deleting Arrays and Array Elements</h3></div></div></div><a id="idm46413322291120" class="indexterm"></a><a id="idm46413322289488" class="indexterm"></a><a id="idm46413318588192" class="indexterm"></a><a id="idm46413314880368" class="indexterm"></a><a id="idm46413314878736" class="indexterm"></a><div class="para">Sometimes, you may need to clear the associated values in array elements, or reset an entire array for re-use in another probe. <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a> in <a class="xref" href="arrayops-foreach.html">Section 3.5.4, “Processing Multiple Elements in an Array”</a> allows you to track how the number of VFS reads per process grows over time, but it does not show you the number of VFS reads each process makes per 3-second period.</div><a id="idm46413330175280" class="indexterm"></a><a id="idm46413330173200" class="indexterm"></a><a id="idm46413321339424" class="indexterm"></a><a id="idm46413327658288" class="indexterm"></a><div class="para">To do that, you will need to clear the values accumulated by the array. You can accomplish this using the <code class="command">delete</code> operator to delete elements in an array, or an entire array. Consider the following example:</div><a id="idm46413322627184" class="indexterm"></a><a id="idm46413321387328" class="indexterm"></a><a id="idm46413328464304" class="indexterm"></a><a id="idm46413326854320" class="indexterm"></a><div class="example"><a id="simplevfsreadprintnotcumulative"> 3 ⁠</a>3.5.5. Clearing/Deleting Arrays and Array Elements</h3></div></div></div><a id="id3747" class="indexterm"></a><a id="id3750" class="indexterm"></a><a id="id3753" class="indexterm"></a><a id="id3756" class="indexterm"></a><a id="id3759" class="indexterm"></a><div class="para">Sometimes, you may need to clear the associated values in array elements, or reset an entire array for re-use in another probe. <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a> in <a class="xref" href="arrayops-foreach.html">Section 3.5.4, “Processing Multiple Elements in an Array”</a> allows you to track how the number of VFS reads per process grows over time, but it does not show you the number of VFS reads each process makes per 3-second period.</div><a id="id3765" class="indexterm"></a><a id="id3769" class="indexterm"></a><a id="id3773" class="indexterm"></a><a id="id3777" class="indexterm"></a><div class="para">To do that, you will need to clear the values accumulated by the array. You can accomplish this using the <code class="command">delete</code> operator to delete elements in an array, or an entire array. Consider the following example:</div><a id="id3783" class="indexterm"></a><a id="id3787" class="indexterm"></a><a id="id3791" class="indexterm"></a><a id="id3795" class="indexterm"></a><div class="example"><a id="simplevfsreadprintnotcumulative">
4 ⁠</a><p class="title"><strong>Example 3.18. noncumulative-vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads 4 ⁠</a><p class="title"><strong>Example 3.18. noncumulative-vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads
5probe vfs.read 5probe vfs.read
6{ 6{
@@ -11,7 +11,7 @@ probe timer.s(3)
11 foreach (count in reads) 11 foreach (count in reads)
12 printf("%s : %d \n", count, reads[count]) 12 printf("%s : %d \n", count, reads[count])
13 delete reads 13 delete reads
14}</pre></div></div><div class="para">In <a class="xref" href="arrayops-deleting.html#simplevfsreadprintnotcumulative">Example 3.18, “noncumulative-vfsreads.stp”</a>, the second probe prints the number of VFS reads each process made <span class="emphasis"><em>within the probed 3-second period only</em></span>. The <code class="command">delete reads</code> statement clears the <code class="command">reads</code> array within the probe.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="idm46413316675456" class="indexterm"></a><a id="idm46413316673408" class="indexterm"></a><a id="idm46413318755200" class="indexterm"></a><a id="idm46413324159616" class="indexterm"></a><div class="para">You can have multiple array operations within the same probe. Using the examples from <a class="xref" href="arrayops-foreach.html">Section 3.5.4, “Processing Multiple Elements in an Array”</a> and <a class="xref" href="arrayops-deleting.html">Section 3.5.5, “Clearing/Deleting Arrays and Array Elements”</a> , you can track the number of VFS reads each process makes per 3-second period <span class="emphasis"><em>and</em></span> tally the cumulative VFS reads of those same processes. Consider the following example:</div><pre class="screen">global reads, totalreads 14}</pre></div></div><div class="para">In <a class="xref" href="arrayops-deleting.html#simplevfsreadprintnotcumulative">Example 3.18, “noncumulative-vfsreads.stp”</a>, the second probe prints the number of VFS reads each process made <span class="emphasis"><em>within the probed 3-second period only</em></span>. The <code class="command">delete reads</code> statement clears the <code class="command">reads</code> array within the probe.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="id3809" class="indexterm"></a><a id="id3813" class="indexterm"></a><a id="id3817" class="indexterm"></a><a id="id3821" class="indexterm"></a><div class="para">You can have multiple array operations within the same probe. Using the examples from <a class="xref" href="arrayops-foreach.html">Section 3.5.4, “Processing Multiple Elements in an Array”</a> and <a class="xref" href="arrayops-deleting.html">Section 3.5.5, “Clearing/Deleting Arrays and Array Elements”</a> , you can track the number of VFS reads each process makes per 3-second period <span class="emphasis"><em>and</em></span> tally the cumulative VFS reads of those same processes. Consider the following example:</div><pre class="screen">global reads, totalreads
15 15
16probe vfs.read 16probe vfs.read
17{ 17{
diff --git a/SystemTap_Beginners_Guide/arrayops-foreach.html b/SystemTap_Beginners_Guide/arrayops-foreach.html
index 8f12fbdb..daac3c60 100644
--- a/SystemTap_Beginners_Guide/arrayops-foreach.html
+++ b/SystemTap_Beginners_Guide/arrayops-foreach.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">3.5.4. Processing Multiple Elements in an Array</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-increment.html" title="3.5.3. Incrementing Associated Values" /><link rel="next" href="arrayops-deleting.html" title="3.5.5. Clearing/Deleting Arrays and Array Elements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-increment.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-deleting.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-foreach"> 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">3.5.4. Processing Multiple Elements in an Array</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-increment.html" title="3.5.3. Incrementing Associated Values" /><link rel="next" href="arrayops-deleting.html" title="3.5.5. Clearing/Deleting Arrays and Array Elements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-increment.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-deleting.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-foreach">
3 ⁠</a>3.5.4. Processing Multiple Elements in an Array</h3></div></div></div><a id="idm46413324137776" class="indexterm"></a><a id="idm46413323020992" class="indexterm"></a><a id="idm46413321796464" class="indexterm"></a><a id="idm46413321794880" class="indexterm"></a><a id="idm46413330709952" class="indexterm"></a><a id="idm46413330708368" class="indexterm"></a><div class="para">Once you've collected enough information in an array, you will need to retrieve and process all elements in that array to make it useful. Consider <a class="xref" href="arrayops-increment.html#simplesimplevfsread">Example 3.16, “vfsreads.stp”</a>: the script collects information about how many VFS reads each process performs, but does not specify what to do with it. The obvious means for making <a class="xref" href="arrayops-increment.html#simplesimplevfsread">Example 3.16, “vfsreads.stp”</a> useful is to print the key pairs in the array <code class="command">reads</code>, but how?</div><a id="idm46413321980880" class="indexterm"></a><a id="idm46413322775072" class="indexterm"></a><a id="idm46413318599264" class="indexterm"></a><a id="idm46413323064320" class="indexterm"></a><a id="idm46413324574064" class="indexterm"></a><a id="idm46413329320992" class="indexterm"></a><a id="idm46413329318992" class="indexterm"></a><div class="para">The best way to process all key pairs in an array (as an iteration) is to use the <code class="command">foreach</code> statement. Consider the following example:</div><a id="idm46413322735296" class="indexterm"></a><a id="idm46413324256656" class="indexterm"></a><a id="idm46413322197696" class="indexterm"></a><a id="idm46413322195696" class="indexterm"></a><a id="idm46413328182192" class="indexterm"></a><div class="example"><a id="simplevfsreadprint"> 3 ⁠</a>3.5.4. Processing Multiple Elements in an Array</h3></div></div></div><a id="id3615" class="indexterm"></a><a id="id3618" class="indexterm"></a><a id="id3621" class="indexterm"></a><a id="id3624" class="indexterm"></a><a id="id3627" class="indexterm"></a><a id="id3630" class="indexterm"></a><div class="para">Once you've collected enough information in an array, you will need to retrieve and process all elements in that array to make it useful. Consider <a class="xref" href="arrayops-increment.html#simplesimplevfsread">Example 3.16, “vfsreads.stp”</a>: the script collects information about how many VFS reads each process performs, but does not specify what to do with it. The obvious means for making <a class="xref" href="arrayops-increment.html#simplesimplevfsread">Example 3.16, “vfsreads.stp”</a> useful is to print the key pairs in the array <code class="command">reads</code>, but how?</div><a id="id3637" class="indexterm"></a><a id="id3641" class="indexterm"></a><a id="id3645" class="indexterm"></a><a id="id3649" class="indexterm"></a><a id="id3653" class="indexterm"></a><a id="id3657" class="indexterm"></a><a id="id3661" class="indexterm"></a><div class="para">The best way to process all key pairs in an array (as an iteration) is to use the <code class="command">foreach</code> statement. Consider the following example:</div><a id="id3667" class="indexterm"></a><a id="id3671" class="indexterm"></a><a id="id3675" class="indexterm"></a><a id="id3679" class="indexterm"></a><a id="id3683" class="indexterm"></a><div class="example"><a id="simplevfsreadprint">
4 ⁠</a><p class="title"><strong>Example 3.17. cumulative-vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads 4 ⁠</a><p class="title"><strong>Example 3.17. cumulative-vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">global reads
5probe vfs.read 5probe vfs.read
6{ 6{
@@ -10,7 +10,7 @@ probe timer.s(3)
10{ 10{
11 foreach (count in reads) 11 foreach (count in reads)
12 printf("%s : %d \n", count, reads[count]) 12 printf("%s : %d \n", count, reads[count])
13}</pre></div></div><div class="para">In the second probe of <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a>, the <code class="command">foreach</code> statement uses the variable <code class="command">count</code> to reference each iteration of a unique key in the array <code class="command">reads</code>. The <code class="command">reads[count]</code> array statement in the same probe retrieves the associated value of each unique key.</div><div class="para">Given what we know about the first probe in <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a>, the script prints VFS-read statistics every 3 seconds, displaying names of processes that performed a VFS-read along with a corresponding VFS-read count.</div><a id="idm46413322034528" class="indexterm"></a><a id="idm46413322032528" class="indexterm"></a><a id="idm46413327427360" class="indexterm"></a><a id="idm46413318479472" class="indexterm"></a><a id="idm46413325377696" class="indexterm"></a><a id="idm46413324510128" class="indexterm"></a><a id="idm46413324508192" class="indexterm"></a><a id="idm46413324707136" class="indexterm"></a><div class="para">Now, remember that the <code class="command">foreach</code> statement in <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a> prints <span class="emphasis"><em>all</em></span> iterations of process names in the array, and in no particular order. You can instruct the script to process the iterations in a particular order by using <code class="command">+</code> (ascending) or <code class="command">-</code> (descending). In addition, you can also limit the number of iterations the script needs to process with the <code class="command">limit <em class="replaceable">value</em></code> option.</div><div class="para">For example, consider the following replacement probe:</div><pre class="screen">probe timer.s(3) 13}</pre></div></div><div class="para">In the second probe of <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a>, the <code class="command">foreach</code> statement uses the variable <code class="command">count</code> to reference each iteration of a unique key in the array <code class="command">reads</code>. The <code class="command">reads[count]</code> array statement in the same probe retrieves the associated value of each unique key.</div><div class="para">Given what we know about the first probe in <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a>, the script prints VFS-read statistics every 3 seconds, displaying names of processes that performed a VFS-read along with a corresponding VFS-read count.</div><a id="id3698" class="indexterm"></a><a id="id3702" class="indexterm"></a><a id="id3706" class="indexterm"></a><a id="id3710" class="indexterm"></a><a id="id3714" class="indexterm"></a><a id="id3718" class="indexterm"></a><a id="id3722" class="indexterm"></a><a id="id3726" class="indexterm"></a><div class="para">Now, remember that the <code class="command">foreach</code> statement in <a class="xref" href="arrayops-foreach.html#simplevfsreadprint">Example 3.17, “cumulative-vfsreads.stp”</a> prints <span class="emphasis"><em>all</em></span> iterations of process names in the array, and in no particular order. You can instruct the script to process the iterations in a particular order by using <code class="command">+</code> (ascending) or <code class="command">-</code> (descending). In addition, you can also limit the number of iterations the script needs to process with the <code class="command">limit <em class="replaceable">value</em></code> option.</div><div class="para">For example, consider the following replacement probe:</div><pre class="screen">probe timer.s(3)
14{ 14{
15 foreach (count in reads- limit 10) 15 foreach (count in reads- limit 10)
16 printf("%s : %d \n", count, reads[count]) 16 printf("%s : %d \n", count, reads[count])
diff --git a/SystemTap_Beginners_Guide/arrayops-increment.html b/SystemTap_Beginners_Guide/arrayops-increment.html
index ebd560d2..819b55dd 100644
--- a/SystemTap_Beginners_Guide/arrayops-increment.html
+++ b/SystemTap_Beginners_Guide/arrayops-increment.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">3.5.3. Incrementing Associated Values</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-readvalues.html" title="3.5.2. Reading Values From Arrays" /><link rel="next" href="arrayops-foreach.html" title="3.5.4. Processing Multiple Elements in an Array" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-readvalues.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-foreach.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-increment"> 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">3.5.3. Incrementing Associated Values</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayops-readvalues.html" title="3.5.2. Reading Values From Arrays" /><link rel="next" href="arrayops-foreach.html" title="3.5.4. Processing Multiple Elements in an Array" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-readvalues.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-foreach.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-increment">
3 ⁠</a>3.5.3. Incrementing Associated Values</h3></div></div></div><a id="idm46413330552080" class="indexterm"></a><a id="idm46413330550448" class="indexterm"></a><a id="idm46413323893632" class="indexterm"></a><div class="para">Use <code class="command">++</code> to increment the associated value of a unique key in an array, as in:</div><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>] ++</pre><div class="para">Again, you can also use a handler function for your <code class="command"><em class="replaceable">index_expression</em></code>. For example, if you wanted to tally how many times a specific process performed a read to the virtual file system (using the event <code class="command">vfs.read</code>), you can use the following probe:</div><a id="idm46413316571248" class="indexterm"></a><a id="idm46413317080880" class="indexterm"></a><a id="idm46413317078832" class="indexterm"></a><a id="idm46413321404336" class="indexterm"></a><a id="idm46413329292768" class="indexterm"></a><div class="example"><a id="simplesimplevfsread"> 3 ⁠</a>3.5.3. Incrementing Associated Values</h3></div></div></div><a id="id3564" class="indexterm"></a><a id="id3567" class="indexterm"></a><a id="id3570" class="indexterm"></a><div class="para">Use <code class="command">++</code> to increment the associated value of a unique key in an array, as in:</div><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>] ++</pre><div class="para">Again, you can also use a handler function for your <code class="command"><em class="replaceable">index_expression</em></code>. For example, if you wanted to tally how many times a specific process performed a read to the virtual file system (using the event <code class="command">vfs.read</code>), you can use the following probe:</div><a id="id3582" class="indexterm"></a><a id="id3586" class="indexterm"></a><a id="id3590" class="indexterm"></a><a id="id3594" class="indexterm"></a><a id="id3598" class="indexterm"></a><div class="example"><a id="simplesimplevfsread">
4 ⁠</a><p class="title"><strong>Example 3.16. vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">probe vfs.read 4 ⁠</a><p class="title"><strong>Example 3.16. vfsreads.stp</strong></p><div class="example-contents"><pre class="programlisting">probe vfs.read
5{ 5{
6 reads[execname()] ++ 6 reads[execname()] ++
diff --git a/SystemTap_Beginners_Guide/arrayops-readvalues.html b/SystemTap_Beginners_Guide/arrayops-readvalues.html
index e0d02491..ca3a08a8 100644
--- a/SystemTap_Beginners_Guide/arrayops-readvalues.html
+++ b/SystemTap_Beginners_Guide/arrayops-readvalues.html
@@ -1,9 +1,9 @@
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">3.5.2. Reading Values From Arrays</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="next" href="arrayops-increment.html" title="3.5.3. Incrementing Associated Values" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayoperators.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-increment.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-readvalues"> 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">3.5.2. Reading Values From Arrays</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="prev" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /><link rel="next" href="arrayops-increment.html" title="3.5.3. Incrementing Associated Values" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayoperators.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayops-increment.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="arrayops-readvalues">
3 ⁠</a>3.5.2. Reading Values From Arrays</h3></div></div></div><a id="idm46413321527424" class="indexterm"></a><a id="idm46413329596064" class="indexterm"></a><a id="idm46413317165232" class="indexterm"></a><div class="para">You can also read values from an array the same way you would read the value of a variable. 3 ⁠</a>3.5.2. Reading Values From Arrays</h3></div></div></div><a id="id3471" class="indexterm"></a><a id="id3474" class="indexterm"></a><a id="id3477" class="indexterm"></a><div class="para">You can also read values from an array the same way you would read the value of a variable.
4 To do so, include the 4 To do so, include the
5 <code class="command"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>]</code> 5 <code class="command"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>]</code>
6 statement as an element in a mathematical expression. For example:</div><a id="idm46413323943552" class="indexterm"></a><a id="idm46413324833632" class="indexterm"></a><a id="idm46413330694800" class="indexterm"></a><a id="idm46413321806352" class="indexterm"></a><a id="idm46413328939824" class="indexterm"></a><a id="idm46413330022912" class="indexterm"></a><a id="idm46413314872352" class="indexterm"></a><a id="idm46413330625504" class="indexterm"></a><a id="idm46413329388736" class="indexterm"></a><a id="idm46413322805760" class="indexterm"></a><div class="example"><a id="arrayreadingvaluesfrom"> 6 statement as an element in a mathematical expression. For example:</div><a id="id3484" class="indexterm"></a><a id="id3488" class="indexterm"></a><a id="id3492" class="indexterm"></a><a id="id3496" class="indexterm"></a><a id="id3500" class="indexterm"></a><a id="id3504" class="indexterm"></a><a id="id3508" class="indexterm"></a><a id="id3512" class="indexterm"></a><a id="id3516" class="indexterm"></a><a id="id3520" class="indexterm"></a><div class="example"><a id="arrayreadingvaluesfrom">
7 ⁠</a><p class="title"><strong>Example 3.15. Using Array Values in Simple Computations</strong></p><div class="example-contents"><pre class="screen">delta = gettimeofday_s() - foo[tid()]</pre></div></div><div class="para"> 7 ⁠</a><p class="title"><strong>Example 3.15. Using Array Values in Simple Computations</strong></p><div class="example-contents"><pre class="screen">delta = gettimeofday_s() - foo[tid()]</pre></div></div><div class="para">
8 This example assumes that the array <code class="command">foo</code> was built using the construct in 8 This example assumes that the array <code class="command">foo</code> was built using the construct in
9 <a class="xref" href="arrayoperators.html#arrays-timestampprocessname">Example 3.14, “Associating Timestamps to Process Names”</a> (from <a class="xref" href="arrayoperators.html#arrayops-assignvalue">Section 3.5.1, “Assigning an Associated Value”</a>). This 9 <a class="xref" href="arrayoperators.html#arrays-timestampprocessname">Example 3.14, “Associating Timestamps to Process Names”</a> (from <a class="xref" href="arrayoperators.html#arrayops-assignvalue">Section 3.5.1, “Assigning an Associated Value”</a>). This
@@ -16,7 +16,7 @@
16 <span class="emphasis"><em>reading</em></span> the value of <code class="literal">tid()</code> from the array. This particular 16 <span class="emphasis"><em>reading</em></span> the value of <code class="literal">tid()</code> from the array. This particular
17 construct is useful for determining the time between two events, such as the start and completion 17 construct is useful for determining the time between two events, such as the start and completion
18 of a read operation. 18 of a read operation.
19</div><a id="idm46413329375056" class="indexterm"></a><a id="idm46413323737472" class="indexterm"></a><a id="idm46413324253056" class="indexterm"></a><a id="idm46413323580352" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para"> 19</div><a id="id3540" class="indexterm"></a><a id="id3544" class="indexterm"></a><a id="id3548" class="indexterm"></a><a id="id3552" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">
20 If the <code class="command"><em class="replaceable">index_expression</em></code> cannot 20 If the <code class="command"><em class="replaceable">index_expression</em></code> cannot
21 find the unique key, it returns a value of 0 (for numerical operations, such as 21 find the unique key, it returns a value of 0 (for numerical operations, such as
22 <a class="xref" href="arrayops-readvalues.html#arrayreadingvaluesfrom">Example 3.15, “Using Array Values in Simple Computations”</a>) or a null/empty string value (for string operations) by 22 <a class="xref" href="arrayops-readvalues.html#arrayreadingvaluesfrom">Example 3.15, “Using Array Values in Simple Computations”</a>) or a null/empty string value (for string operations) by
diff --git a/SystemTap_Beginners_Guide/associativearrays.html b/SystemTap_Beginners_Guide/associativearrays.html
index 011972d3..dfdc5e46 100644
--- a/SystemTap_Beginners_Guide/associativearrays.html
+++ b/SystemTap_Beginners_Guide/associativearrays.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">3.4. Associative Arrays</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="commandlineargssect.html" title="3.3.4. Command-Line Arguments" /><link rel="next" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="commandlineargssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayoperators.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="associativearrays"> 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">3.4. Associative Arrays</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="commandlineargssect.html" title="3.3.4. Command-Line Arguments" /><link rel="next" href="arrayoperators.html" title="3.5. Array Operations in SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="commandlineargssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="arrayoperators.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="associativearrays">
3 ⁠</a>3.4. Associative Arrays</h2></div></div></div><a id="idm46413324804592" class="indexterm"></a><a id="idm46413329078912" class="indexterm"></a><div class="para">SystemTap also supports the use of associative arrays. While an ordinary variable represents a single value, associative arrays can represent a collection of values. Simply put, an associative array is a collection of unique keys; each key in the array has a value associated with it.</div><a id="idm46413321985776" class="indexterm"></a><a id="idm46413325455104" class="indexterm"></a><a id="idm46413323734960" class="indexterm"></a><a id="idm46413314819136" class="indexterm"></a><a id="idm46413329511424" class="indexterm"></a><a id="idm46413318871152" class="indexterm"></a><a id="idm46413322886768" class="indexterm"></a><a id="idm46413318483808" class="indexterm"></a><div class="para">Since associative arrays are normally processed in multiple probes (as we will demonstrate later), they should be declared as <code class="command">global</code> variables in the SystemTap script. The syntax for accessing an element in an associative array is similar to that of <code class="command">awk</code>, and is as follows:</div><a id="idm46413329601008" class="indexterm"></a><a id="idm46413314894896" class="indexterm"></a><a id="idm46413324293808" class="indexterm"></a><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>]</pre><div class="para">Here, the <code class="command"><em class="replaceable">array_name</em></code> is any arbitrary name the array uses. The <code class="command"><em class="replaceable">index_expression</em></code> is used to refer to a specific unique key in the array. To illustrate, let us try to build an array named <code class="command">foo</code> that specifies the ages of three people <code class="command">tom</code>, <code class="command">dick</code>, and <code class="command">harry</code> (which are unique keys). To assign them the ages (associated values) of 23, 24, and 25 respectively, we'd use the following array statements:</div><a id="idm46413321378560" class="indexterm"></a><a id="idm46413321961328" class="indexterm"></a><div class="example"><a id="arraysimplestexample"> 3 ⁠</a>3.4. Associative Arrays</h2></div></div></div><a id="id3315" class="indexterm"></a><a id="id3318" class="indexterm"></a><div class="para">SystemTap also supports the use of associative arrays. While an ordinary variable represents a single value, associative arrays can represent a collection of values. Simply put, an associative array is a collection of unique keys; each key in the array has a value associated with it.</div><a id="id3322" class="indexterm"></a><a id="id3326" class="indexterm"></a><a id="id3330" class="indexterm"></a><a id="id3334" class="indexterm"></a><a id="id3338" class="indexterm"></a><a id="id3342" class="indexterm"></a><a id="id3346" class="indexterm"></a><a id="id3350" class="indexterm"></a><div class="para">Since associative arrays are normally processed in multiple probes (as we will demonstrate later), they should be declared as <code class="command">global</code> variables in the SystemTap script. The syntax for accessing an element in an associative array is similar to that of <code class="command">awk</code>, and is as follows:</div><a id="id3357" class="indexterm"></a><a id="id3361" class="indexterm"></a><a id="id3365" class="indexterm"></a><pre class="screen"><em class="replaceable">array_name</em>[<em class="replaceable">index_expression</em>]</pre><div class="para">Here, the <code class="command"><em class="replaceable">array_name</em></code> is any arbitrary name the array uses. The <code class="command"><em class="replaceable">index_expression</em></code> is used to refer to a specific unique key in the array. To illustrate, let us try to build an array named <code class="command">foo</code> that specifies the ages of three people <code class="command">tom</code>, <code class="command">dick</code>, and <code class="command">harry</code> (which are unique keys). To assign them the ages (associated values) of 23, 24, and 25 respectively, we'd use the following array statements:</div><a id="id3381" class="indexterm"></a><a id="id3385" class="indexterm"></a><div class="example"><a id="arraysimplestexample">
4 ⁠</a><p class="title"><strong>Example 3.13. Basic Array Statements</strong></p><div class="example-contents"><pre class="screen">foo["tom"] = 23 4 ⁠</a><p class="title"><strong>Example 3.13. Basic Array Statements</strong></p><div class="example-contents"><pre class="screen">foo["tom"] = 23
5foo["dick"] = 24 5foo["dick"] = 24
6foo["harry"] = 25</pre></div></div><div class="para">You can specify up to nine index expressions in an array statement, each one delimited by a comma (<code class="command">,</code>). This is useful if you wish to have a key that contains multiple pieces of information. The following line from <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> uses 5 elements for the key: process ID, executable name, user ID, parent process ID, and string "W". It associates the value of <code class="command">devname</code> with that key.</div><pre class="screen">device[pid(),execname(),uid(),ppid(),"W"] = devname</pre><div xmlns:d="http://docbook.org/ns/docbook" class="important"><div class="admonition_header"><p><strong>Important</strong></p></div><div class="admonition"><div class="para">All associate arrays must be declared as <code class="command">global</code>, regardless of whether the associate array is used in one or multiple probes. </div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="commandlineargssect.html"><strong>Prev</strong>3.3.4. Command-Line Arguments</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="arrayoperators.html"><strong>Next</strong>3.5. Array Operations in SystemTap</a></li></ul></body></html> \ No newline at end of file 6foo["harry"] = 25</pre></div></div><div class="para">You can specify up to nine index expressions in an array statement, each one delimited by a comma (<code class="command">,</code>). This is useful if you wish to have a key that contains multiple pieces of information. The following line from <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> uses 5 elements for the key: process ID, executable name, user ID, parent process ID, and string "W". It associates the value of <code class="command">devname</code> with that key.</div><pre class="screen">device[pid(),execname(),uid(),ppid(),"W"] = devname</pre><div xmlns:d="http://docbook.org/ns/docbook" class="important"><div class="admonition_header"><p><strong>Important</strong></p></div><div class="admonition"><div class="para">All associate arrays must be declared as <code class="command">global</code>, regardless of whether the associate array is used in one or multiple probes. </div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="commandlineargssect.html"><strong>Prev</strong>3.3.4. Command-Line Arguments</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="arrayoperators.html"><strong>Next</strong>3.5. Array Operations in SystemTap</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/commandlineargssect.html b/SystemTap_Beginners_Guide/commandlineargssect.html
index c02149c1..bfb082ed 100644
--- a/SystemTap_Beginners_Guide/commandlineargssect.html
+++ b/SystemTap_Beginners_Guide/commandlineargssect.html
@@ -1,7 +1,7 @@
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">3.3.4. Command-Line Arguments</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="handlerconditionalstatements.html" title="3.3.3. Conditional Statements" /><link rel="next" href="associativearrays.html" title="3.4. Associative Arrays" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="handlerconditionalstatements.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="associativearrays.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="commandlineargssect"> 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">3.3.4. Command-Line Arguments</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="handlerconditionalstatements.html" title="3.3.3. Conditional Statements" /><link rel="next" href="associativearrays.html" title="3.4. Associative Arrays" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="handlerconditionalstatements.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="associativearrays.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="commandlineargssect">
3 ⁠</a>3.3.4. Command-Line Arguments</h3></div></div></div><a id="idm46413317126512" class="indexterm"></a><a id="idm46413316578064" class="indexterm"></a><a id="idm46413329012096" class="indexterm"></a><div class="para">A SystemTap script can also accept simple command-line arguments using a <code class="command">$</code> or <code class="command">@</code> immediately 3 ⁠</a>3.3.4. Command-Line Arguments</h3></div></div></div><a id="id3274" class="indexterm"></a><a id="id3278" class="indexterm"></a><a id="id3282" class="indexterm"></a><div class="para">A SystemTap script can also accept simple command-line arguments using a <code class="command">$</code> or <code class="command">@</code> immediately
4followed by the number of the argument on the command line. Use <code class="command">$</code> if you are expecting the user to enter an integer as a command-line argument, and <code class="command">@</code> if you are expecting a string. 4followed by the number of the argument on the command line. Use <code class="command">$</code> if you are expecting the user to enter an integer as a command-line argument, and <code class="command">@</code> if you are expecting a string.
5</div><div class="example"><a id="commandlineargs"> 5</div><div class="example"><a id="commandlineargs">
6 ⁠</a><p class="title"><strong>Example 3.12. commandlineargs.stp</strong></p><div class="example-contents"><pre class="programlisting">probe kernel.function(@1) { } 6 ⁠</a><p class="title"><strong>Example 3.12. commandlineargs.stp</strong></p><div class="example-contents"><pre class="programlisting">probe kernel.function(@1) { }
7probe kernel.function(@1).return { }</pre></div></div><div class="para"><a class="xref" href="commandlineargssect.html#commandlineargs">Example 3.12, “commandlineargs.stp”</a> is similar to <a class="xref" href="scripts.html#wildcards">Example 3.1, “wildcards.stp”</a>, except that it allows you to pass the kernel function to be probed as a command-line argument (as in <code class="command">stap commandlineargs.stp <em class="replaceable">kernel function</em></code>). You can also specify the script to accept multiple command-line arguments, noting them as <code class="command">@1</code>, <code class="command">@2</code>, and so on, in the order they are entered by the user.</div><a id="idm46413330588976" class="indexterm"></a><a id="idm46413322103600" class="indexterm"></a><a id="idm46413330796688" class="indexterm"></a></div><ul class="docnav"><li class="previous"><a accesskey="p" href="handlerconditionalstatements.html"><strong>Prev</strong>3.3.3. Conditional Statements</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="associativearrays.html"><strong>Next</strong>3.4. Associative Arrays</a></li></ul></body></html> \ No newline at end of file 7probe kernel.function(@1).return { }</pre></div></div><div class="para"><a class="xref" href="commandlineargssect.html#commandlineargs">Example 3.12, “commandlineargs.stp”</a> is similar to <a class="xref" href="scripts.html#wildcards">Example 3.1, “wildcards.stp”</a>, except that it allows you to pass the kernel function to be probed as a command-line argument (as in <code class="command">stap commandlineargs.stp <em class="replaceable">kernel function</em></code>). You can also specify the script to accept multiple command-line arguments, noting them as <code class="command">@1</code>, <code class="command">@2</code>, and so on, in the order they are entered by the user.</div><a id="id3301" class="indexterm"></a><a id="id3305" class="indexterm"></a><a id="id3309" class="indexterm"></a></div><ul class="docnav"><li class="previous"><a accesskey="p" href="handlerconditionalstatements.html"><strong>Prev</strong>3.3.3. Conditional Statements</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="associativearrays.html"><strong>Next</strong>3.4. Associative Arrays</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/cross-compiling.html b/SystemTap_Beginners_Guide/cross-compiling.html
index 1b436d06..7308d888 100644
--- a/SystemTap_Beginners_Guide/cross-compiling.html
+++ b/SystemTap_Beginners_Guide/cross-compiling.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">2.2. Generating Instrumentation for Other Computers</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="prev" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="next" href="using-usage.html" title="2.3. Running SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="using-systemtap.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="using-usage.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="cross-compiling"> 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">2.2. Generating Instrumentation for Other Computers</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="prev" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="next" href="using-usage.html" title="2.3. Running SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="using-systemtap.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="using-usage.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="cross-compiling">
3 ⁠</a>2.2. Generating Instrumentation for Other Computers</h2></div></div></div><a id="idm46413329408112" class="indexterm"></a><a id="idm46413329409392" class="indexterm"></a><a id="idm46413329409776" class="indexterm"></a><a id="idm46413329410032" class="indexterm"></a><a id="idm46413325079392" class="indexterm"></a><a id="idm46413325080288" class="indexterm"></a><a id="idm46413325081696" class="indexterm"></a><a id="idm46413318382960" class="indexterm"></a><div class="para"> 3 ⁠</a>2.2. Generating Instrumentation for Other Computers</h2></div></div></div><a id="id1750" class="indexterm"></a><a id="id1753" class="indexterm"></a><a id="id1757" class="indexterm"></a><a id="id1759" class="indexterm"></a><a id="id1761" class="indexterm"></a><a id="id1763" class="indexterm"></a><a id="id1765" class="indexterm"></a><a id="id1767" class="indexterm"></a><div class="para">
4 When users run a SystemTap script, SystemTap builds a kernel module out of 4 When users run a SystemTap script, SystemTap builds a kernel module out of
5 that script. SystemTap then loads the module into the kernel, allowing it to 5 that script. SystemTap then loads the module into the kernel, allowing it to
6 extract the specified data directly from the kernel (refer to 6 extract the specified data directly from the kernel (refer to
@@ -10,7 +10,7 @@
10 Normally, however, SystemTap scripts can only be run on systems where SystemTap is deployed (as in <a class="xref" href="using-systemtap.html#using-setup">Section 2.1, “Installation and Setup”</a>). This could mean that if you want to run SystemTap on ten systems, you would need to deploy SystemTap on <span class="emphasis"><em>all</em></span> those systems. In some cases, this may be neither feasible nor desired. For instance, corporate policy may prohibit an administrator from installing RPM packages that provide compilers or debug information on specific machines, and thus prevent the deployment of SystemTap. To work around this problem, SystemTap allows you to use <em class="firstterm">cross-instrumentation</em>. 10 Normally, however, SystemTap scripts can only be run on systems where SystemTap is deployed (as in <a class="xref" href="using-systemtap.html#using-setup">Section 2.1, “Installation and Setup”</a>). This could mean that if you want to run SystemTap on ten systems, you would need to deploy SystemTap on <span class="emphasis"><em>all</em></span> those systems. In some cases, this may be neither feasible nor desired. For instance, corporate policy may prohibit an administrator from installing RPM packages that provide compilers or debug information on specific machines, and thus prevent the deployment of SystemTap. To work around this problem, SystemTap allows you to use <em class="firstterm">cross-instrumentation</em>.
11 </div><div class="para"> 11 </div><div class="para">
12 Cross-instrumentation is the process of generating SystemTap instrumentation module from a SystemTap script on one computer to be used on another computer. This process offers the following benefits: 12 Cross-instrumentation is the process of generating SystemTap instrumentation module from a SystemTap script on one computer to be used on another computer. This process offers the following benefits:
13 </div><a id="idm46413321569648" class="indexterm"></a><a id="idm46413324926336" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"> 13 </div><a id="id1778" class="indexterm"></a><a id="id1781" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
14 The kernel information packages for various machines can be installed on a single <span class="emphasis"><em>host machine</em></span>. 14 The kernel information packages for various machines can be installed on a single <span class="emphasis"><em>host machine</em></span>.
15 </div></li><li class="listitem"><div class="para"> 15 </div></li><li class="listitem"><div class="para">
16 Each <span class="emphasis"><em>target machine</em></span> only needs one RPM package to be installed in order to use the generated SystemTap instrumentation module: the <span class="package">systemtap-runtime</span> package. 16 Each <span class="emphasis"><em>target machine</em></span> only needs one RPM package to be installed in order to use the generated SystemTap instrumentation module: the <span class="package">systemtap-runtime</span> package.
@@ -18,9 +18,9 @@
18 For the sake of simplicity, the following terms are used 18 For the sake of simplicity, the following terms are used
19 throughout this section: 19 throughout this section:
20 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"> 20 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
21<a id="idm46413322347328" class="indexterm"></a> 21<a id="id1795" class="indexterm"></a>
22 22
23<a id="idm46413329681904" class="indexterm"></a> 23<a id="id1798" class="indexterm"></a>
24 <span class="emphasis"><em>Instrumentation module</em></span> — the 24 <span class="emphasis"><em>Instrumentation module</em></span> — the
25 kernel module built from a SystemTap script. The 25 kernel module built from a SystemTap script. The
26 <span class="emphasis"><em>SystemTap module</em></span> is built on the <span class="emphasis"><em>host 26 <span class="emphasis"><em>SystemTap module</em></span> is built on the <span class="emphasis"><em>host
@@ -28,25 +28,25 @@
28 kernel</em></span> of <span class="emphasis"><em>target 28 kernel</em></span> of <span class="emphasis"><em>target
29 system</em></span>. 29 system</em></span>.
30 </div></li><li class="listitem"><div class="para"> 30 </div></li><li class="listitem"><div class="para">
31<a id="idm46413327194560" class="indexterm"></a> 31<a id="id1808" class="indexterm"></a>
32 32
33<a id="idm46413330922000" class="indexterm"></a> 33<a id="id1811" class="indexterm"></a>
34 <span class="emphasis"><em>Host system</em></span> — the system on 34 <span class="emphasis"><em>Host system</em></span> — the system on
35 which you compile the <span class="emphasis"><em>instrumentation modules</em></span> from SystemTap 35 which you compile the <span class="emphasis"><em>instrumentation modules</em></span> from SystemTap
36 scripts in order to load them on <span class="emphasis"><em>target 36 scripts in order to load them on <span class="emphasis"><em>target
37 systems</em></span>. 37 systems</em></span>.
38 </div></li><li class="listitem"><div class="para"> 38 </div></li><li class="listitem"><div class="para">
39<a id="idm46413329282144" class="indexterm"></a> 39<a id="id1819" class="indexterm"></a>
40 40
41<a id="idm46413328886880" class="indexterm"></a> 41<a id="id1822" class="indexterm"></a>
42 42
43 <span class="emphasis"><em>Target system</em></span> — the system for which you 43 <span class="emphasis"><em>Target system</em></span> — the system for which you
44 are building the <span class="emphasis"><em>instrumentation modules</em></span> from 44 are building the <span class="emphasis"><em>instrumentation modules</em></span> from
45 SystemTap scripts. 45 SystemTap scripts.
46 </div></li><li class="listitem"><div class="para"> 46 </div></li><li class="listitem"><div class="para">
47<a id="idm46413324103408" class="indexterm"></a> 47<a id="id1829" class="indexterm"></a>
48 48
49<a id="idm46413324909472" class="indexterm"></a> 49<a id="id1832" class="indexterm"></a>
50 <span class="emphasis"><em>Target kernel</em></span> — the kernel of 50 <span class="emphasis"><em>Target kernel</em></span> — the kernel of
51 the <span class="emphasis"><em>target system</em></span>. This is the kernel on which 51 the <span class="emphasis"><em>target system</em></span>. This is the kernel on which
52 you intend to load or run the <span class="emphasis"><em>instrumentation 52 you intend to load or run the <span class="emphasis"><em>instrumentation
@@ -54,7 +54,7 @@
54 </div></li></ul></div><div class="para"> 54 </div></li></ul></div><div class="para">
55 To configure a host system and target systems, complete the following steps: 55 To configure a host system and target systems, complete the following steps:
56 </div><div xmlns:d="http://docbook.org/ns/docbook" class="procedure"><a id="preppingxcompile"> 56 </div><div xmlns:d="http://docbook.org/ns/docbook" class="procedure"><a id="preppingxcompile">
57 ⁠</a><a id="idm46413314828320" class="indexterm"></a><a id="idm46413316677248" class="indexterm"></a><a id="idm46413324059088" class="indexterm"></a><ol class="1"><li class="step"><div class="para"> 57 ⁠</a><a id="id1840" class="indexterm"></a><a id="id1844" class="indexterm"></a><a id="id1848" class="indexterm"></a><ol class="1"><li class="step"><div class="para">
58 Install the <span class="package">systemtap-runtime</span> package on each 58 Install the <span class="package">systemtap-runtime</span> package on each
59 <span class="emphasis"><em>target system</em></span>. 59 <span class="emphasis"><em>target system</em></span>.
60 </div></li><li class="step"><div class="para"> 60 </div></li><li class="step"><div class="para">
@@ -90,7 +90,7 @@
90 be converted into the <span class="emphasis"><em>instrumentation module</em></span>, and 90 be converted into the <span class="emphasis"><em>instrumentation module</em></span>, and
91 <em class="replaceable">module_name</em> is the desired 91 <em class="replaceable">module_name</em> is the desired
92 name of the <span class="emphasis"><em>instrumentation module</em></span>. 92 name of the <span class="emphasis"><em>instrumentation module</em></span>.
93 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="idm46413323341856" class="indexterm"></a><a id="idm46413324884448" class="indexterm"></a><a id="idm46413316522544" class="indexterm"></a><div class="para"> 93 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="id1897" class="indexterm"></a><a id="id1899" class="indexterm"></a><a id="id1901" class="indexterm"></a><div class="para">
94 To determine the architecture notation of a running kernel, you can run the following command: 94 To determine the architecture notation of a running kernel, you can run the following command:
95 </div><pre class="screen"><code class="command">uname -m</code></pre></div></div><div class="para"> 95 </div><pre class="screen"><code class="command">uname -m</code></pre></div></div><div class="para">
96 Once the <span class="emphasis"><em>instrumentation module</em></span> is compiled, copy 96 Once the <span class="emphasis"><em>instrumentation module</em></span> is compiled, copy
diff --git a/SystemTap_Beginners_Guide/errors.html b/SystemTap_Beginners_Guide/errors.html
index 1d65caa4..3f20db4a 100644
--- a/SystemTap_Beginners_Guide/errors.html
+++ b/SystemTap_Beginners_Guide/errors.html
@@ -1,12 +1,12 @@
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">Chapter 6. Understanding SystemTap Errors</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="futexcontentionsect.html" title="5.4. Identifying Contended User-Space Locks" /><link rel="next" href="runtimeerror.html" title="6.2. Runtime Errors and Warnings" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="futexcontentionsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="runtimeerror.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="errors"> 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">Chapter 6. Understanding SystemTap Errors</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="futexcontentionsect.html" title="5.4. Identifying Contended User-Space Locks" /><link rel="next" href="runtimeerror.html" title="6.2. Runtime Errors and Warnings" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="futexcontentionsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="runtimeerror.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="errors">
3 ⁠</a>Chapter 6. Understanding SystemTap Errors</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="errors.html#parsetype">6.1. Parse and Semantic Errors</a></span></dt><dt><span class="section"><a href="runtimeerror.html">6.2. Runtime Errors and Warnings</a></span></dt></dl></div><div class="para">This chapter explains the most common errors you may encounter while using SystemTap.</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="parsetype"> 3 ⁠</a>Chapter 6. Understanding SystemTap Errors</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="errors.html#parsetype">6.1. Parse and Semantic Errors</a></span></dt><dt><span class="section"><a href="runtimeerror.html">6.2. Runtime Errors and Warnings</a></span></dt></dl></div><div class="para">This chapter explains the most common errors you may encounter while using SystemTap.</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="parsetype">
4 ⁠</a>6.1. Parse and Semantic Errors</h2></div></div></div><a id="idm46413328696384" class="indexterm"></a><a id="idm46413330574080" class="indexterm"></a><a id="idm46413336529440" class="indexterm"></a><div class="para">Parse and semantic errors occur while SystemTap attempts to parse and 4 ⁠</a>6.1. Parse and Semantic Errors</h2></div></div></div><a id="id5461" class="indexterm"></a><a id="id5464" class="indexterm"></a><a id="id5467" class="indexterm"></a><div class="para">Parse and semantic errors occur while SystemTap attempts to parse and
5 translate the script into C, before converting it into a kernel 5 translate the script into C, before converting it into a kernel
6 module. For example, type errors result from operations that assign invalid 6 module. For example, type errors result from operations that assign invalid
7 values to variables or arrays. 7 values to variables or arrays.
8</div><h3><a id="idm46413324867216"> 8</div><h3><a id="id5471">
9 ⁠</a>parse error: expected <em class="replaceable">foo</em>, saw <em class="replaceable">bar</em></h3><a id="idm46413328220048" class="indexterm"></a><a id="idm46413329143360" class="indexterm"></a><a id="idm46413324059440" class="indexterm"></a><a id="idm46413321289920" class="indexterm"></a><a id="idm46413321287648" class="indexterm"></a><a id="idm46413325884144" class="indexterm"></a><a id="idm46413325882176" class="indexterm"></a><a id="idm46413324365520" class="indexterm"></a><a id="idm46413324363136" class="indexterm"></a><div class="para">The script contains a grammatical or typographical error. SystemTap detected the type of the construct that is incorrect, given the context of the probe. 9 ⁠</a>parse error: expected <em class="replaceable">foo</em>, saw <em class="replaceable">bar</em></h3><a id="id5474" class="indexterm"></a><a id="id5478" class="indexterm"></a><a id="id5482" class="indexterm"></a><a id="id5486" class="indexterm"></a><a id="id5490" class="indexterm"></a><a id="id5494" class="indexterm"></a><a id="id5498" class="indexterm"></a><a id="id5502" class="indexterm"></a><a id="id5506" class="indexterm"></a><div class="para">The script contains a grammatical or typographical error. SystemTap detected the type of the construct that is incorrect, given the context of the probe.
10</div><div class="para"> 10</div><div class="para">
11 For example, the following invalid SystemTap script is missing its probe 11 For example, the following invalid SystemTap script is missing its probe
12 handlers: 12 handlers:
@@ -23,22 +23,22 @@ probe vfs.write
23<pre class="programlisting">parse error: expected one of '. , ( ? ! { = +=' 23<pre class="programlisting">parse error: expected one of '. , ( ? ! { = +='
24 saw: keyword at perror.stp:2:1 24 saw: keyword at perror.stp:2:1
251 parse error(s).</pre> 251 parse error(s).</pre>
26</div><h3><a id="idm46413327433440"> 26</div><h3><a id="id5519">
27 ⁠</a>parse error: embedded code in unprivileged script</h3><a id="idm46413327432464" class="indexterm"></a><a id="idm46413327430368" class="indexterm"></a><a id="idm46413322538496" class="indexterm"></a><a id="idm46413322536512" class="indexterm"></a><a id="idm46413322534416" class="indexterm"></a><a id="idm46413321200720" class="indexterm"></a><div class="para"> 27 ⁠</a>parse error: embedded code in unprivileged script</h3><a id="id5520" class="indexterm"></a><a id="id5524" class="indexterm"></a><a id="id5528" class="indexterm"></a><a id="id5532" class="indexterm"></a><a id="id5536" class="indexterm"></a><a id="id5540" class="indexterm"></a><div class="para">
28 The script contains unsafe embedded C code, that is, blocks of code 28 The script contains unsafe embedded C code, that is, blocks of code
29 surrounded by <code class="command">%{</code> and <code class="command">%}</code>. SystemTap 29 surrounded by <code class="command">%{</code> and <code class="command">%}</code>. SystemTap
30 allows you to embed C code in a script, which is useful if there are no 30 allows you to embed C code in a script, which is useful if there are no
31 tapsets to suit your purposes. However, embedded C constructs are not 31 tapsets to suit your purposes. However, embedded C constructs are not
32 safe and SystemTap reports this error to warn you if such constructs 32 safe and SystemTap reports this error to warn you if such constructs
33 appear in the script. 33 appear in the script.
34</div><a id="idm46413318970560" class="indexterm"></a><a id="idm46413318968480" class="indexterm"></a><a id="idm46413323807472" class="indexterm"></a><a id="idm46413323805440" class="indexterm"></a><div class="para"> 34</div><a id="id5547" class="indexterm"></a><a id="id5551" class="indexterm"></a><a id="id5555" class="indexterm"></a><a id="id5559" class="indexterm"></a><div class="para">
35 If you are sure that any similar constructs in the script are safe 35 If you are sure that any similar constructs in the script are safe
36 <span class="emphasis"><em>and</em></span> you 36 <span class="emphasis"><em>and</em></span> you
37 are a member of the <code class="systemitem">stapdev</code> 37 are a member of the <code class="systemitem">stapdev</code>
38 group (or have root privileges), 38 group (or have root privileges),
39 run the script in "guru" mode by using the <code class="option">-g</code> option: 39 run the script in "guru" mode by using the <code class="option">-g</code> option:
40</div><pre class="screen"><code class="command">stap -g <em class="replaceable">script</em></code></pre><h3><a id="idm46413323454288"> 40</div><pre class="screen"><code class="command">stap -g <em class="replaceable">script</em></code></pre><h3><a id="id5570">
41 ⁠</a>semantic error: type mismatch for identifier '<em class="replaceable">foo</em>' ... string vs. long</h3><a id="idm46413323452864" class="indexterm"></a><a id="idm46413324369936" class="indexterm"></a><a id="idm46413324367856" class="indexterm"></a><a id="idm46413325053168" class="indexterm"></a><a id="idm46413325051072" class="indexterm"></a><div class="para"> 41 ⁠</a>semantic error: type mismatch for identifier '<em class="replaceable">foo</em>' ... string vs. long</h3><a id="id5572" class="indexterm"></a><a id="id5576" class="indexterm"></a><a id="id5580" class="indexterm"></a><a id="id5584" class="indexterm"></a><a id="id5588" class="indexterm"></a><div class="para">
42 The function <em class="replaceable">foo</em> in the 42 The function <em class="replaceable">foo</em> in the
43 script used the wrong type 43 script used the wrong type
44 (such as <code class="literal">%s</code> or <code class="literal">%d</code>). 44 (such as <code class="literal">%s</code> or <code class="literal">%d</code>).
@@ -48,40 +48,40 @@ probe vfs.write
48</div><pre class="programlisting">probe syscall.open 48</div><pre class="programlisting">probe syscall.open
49{ 49{
50 printf ("%d(%d) open\n", execname(), pid()) 50 printf ("%d(%d) open\n", execname(), pid())
51}</pre><h3><a id="idm46413324196416"> 51}</pre><h3><a id="id5600">
52 ⁠</a>semantic error: unresolved type for identifier '<em class="replaceable">foo</em>'</h3><a id="idm46413324194992" class="indexterm"></a><a id="idm46413324192896" class="indexterm"></a><a id="idm46413328551952" class="indexterm"></a><a id="idm46413328549968" class="indexterm"></a><div class="para">The identifier (variable) was used, but no type (integer or 52 ⁠</a>semantic error: unresolved type for identifier '<em class="replaceable">foo</em>'</h3><a id="id5602" class="indexterm"></a><a id="id5606" class="indexterm"></a><a id="id5610" class="indexterm"></a><a id="id5614" class="indexterm"></a><div class="para">The identifier (variable) was used, but no type (integer or
53 string) could be determined. This occurs, for instance, if you use a 53 string) could be determined. This occurs, for instance, if you use a
54 variable in a <code class="command">printf</code> statement while 54 variable in a <code class="command">printf</code> statement while
55 the script never assigns a value to the variable.</div><h3><a id="idm46413321871104"> 55 the script never assigns a value to the variable.</div><h3><a id="id5620">
56 ⁠</a>semantic error: Expecting symbol or array index expression</h3><a id="idm46413321870128" class="indexterm"></a><a id="idm46413321868032" class="indexterm"></a><a id="idm46413324761968" class="indexterm"></a><a id="idm46413324759872" class="indexterm"></a><div class="para"> 56 ⁠</a>semantic error: Expecting symbol or array index expression</h3><a id="id5621" class="indexterm"></a><a id="id5625" class="indexterm"></a><a id="id5629" class="indexterm"></a><a id="id5633" class="indexterm"></a><div class="para">
57 SystemTap could not assign a value to a variable or to a location in an 57 SystemTap could not assign a value to a variable or to a location in an
58 array. The destination for the assignment is not a valid destination. 58 array. The destination for the assignment is not a valid destination.
59 The following example code would generate this error: 59 The following example code would generate this error:
60</div><pre class="programlisting">probe begin { printf("x") = 1 } 60</div><pre class="programlisting">probe begin { printf("x") = 1 }
61</pre><h3><a id="idm46413326335744"> 61</pre><h3><a id="id5639">
62 ⁠</a>while searching for arity <em class="replaceable">N</em> function, semantic error: unresolved function call</h3><a id="idm46413326334304" class="indexterm"></a><a id="idm46413318848144" class="indexterm"></a><a id="idm46413318846064" class="indexterm"></a><a id="idm46413318843968" class="indexterm"></a><a id="idm46413329032640" class="indexterm"></a><div class="para">A function call or array index expression in the script used an invalid 62 ⁠</a>while searching for arity <em class="replaceable">N</em> function, semantic error: unresolved function call</h3><a id="id5641" class="indexterm"></a><a id="id5645" class="indexterm"></a><a id="id5649" class="indexterm"></a><a id="id5653" class="indexterm"></a><a id="id5657" class="indexterm"></a><div class="para">A function call or array index expression in the script used an invalid
63 number of arguments or parameters. In SystemTap, 63 number of arguments or parameters. In SystemTap,
64 <em class="firstterm">arity</em> can either refer to the number of indices 64 <em class="firstterm">arity</em> can either refer to the number of indices
65 for an array, or the number of parameters to a function.</div><h3><a id="idm46413329029600"> 65 for an array, or the number of parameters to a function.</div><h3><a id="id5663">
66 ⁠</a>semantic error: array locals not supported, missing global declaration?</h3><a id="idm46413318346528" class="indexterm"></a><a id="idm46413318344432" class="indexterm"></a><a id="idm46413318342352" class="indexterm"></a><a id="idm46413329610288" class="indexterm"></a><a id="idm46413329608208" class="indexterm"></a><div class="para">The script used an array operation without declaring the array as 66 ⁠</a>semantic error: array locals not supported, missing global declaration?</h3><a id="id5664" class="indexterm"></a><a id="id5668" class="indexterm"></a><a id="id5672" class="indexterm"></a><a id="id5676" class="indexterm"></a><a id="id5680" class="indexterm"></a><div class="para">The script used an array operation without declaring the array as
67 a global variable (global variables can be declared after their use in 67 a global variable (global variables can be declared after their use in
68 SystemTap scripts). Similar messages appear if an array is used, but with inconsistent arities.</div><h3><a id="idm46413323109888"> 68 SystemTap scripts). Similar messages appear if an array is used, but with inconsistent arities.</div><h3><a id="id5685">
69 ⁠</a>semantic error: variable '<em class="replaceable">foo</em>' modified during 'foreach' iteration</h3><a id="idm46413323108400" class="indexterm"></a><a id="idm46413323106304" class="indexterm"></a><a id="idm46413323002512" class="indexterm"></a><a id="idm46413323000528" class="indexterm"></a><div class="para">The array <em class="replaceable">foo</em> is being modified (being assigned to or deleted from) within an active <code class="command">foreach</code> loop. This error also displays if an operation within the script performs a function call within the <code class="command">foreach</code> loop.</div><h3><a id="idm46413329684384"> 69 ⁠</a>semantic error: variable '<em class="replaceable">foo</em>' modified during 'foreach' iteration</h3><a id="id5687" class="indexterm"></a><a id="id5691" class="indexterm"></a><a id="id5695" class="indexterm"></a><a id="id5699" class="indexterm"></a><div class="para">The array <em class="replaceable">foo</em> is being modified (being assigned to or deleted from) within an active <code class="command">foreach</code> loop. This error also displays if an operation within the script performs a function call within the <code class="command">foreach</code> loop.</div><h3><a id="id5707">
70 ⁠</a>semantic error: probe point mismatch at position <em class="replaceable">N</em>, while resolving probe point <em class="replaceable">foo</em></h3><a id="idm46413329682608" class="indexterm"></a><a id="idm46413321657888" class="indexterm"></a><a id="idm46413321655824" class="indexterm"></a><a id="idm46413321676384" class="indexterm"></a><div class="para">SystemTap did not understand what the event or SystemTap function 70 ⁠</a>semantic error: probe point mismatch at position <em class="replaceable">N</em>, while resolving probe point <em class="replaceable">foo</em></h3><a id="id5710" class="indexterm"></a><a id="id5714" class="indexterm"></a><a id="id5718" class="indexterm"></a><a id="id5722" class="indexterm"></a><div class="para">SystemTap did not understand what the event or SystemTap function
71 <em class="replaceable">foo</em> refers 71 <em class="replaceable">foo</em> refers
72 to. This usually means that SystemTap could not find a match for 72 to. This usually means that SystemTap could not find a match for
73 <em class="replaceable">foo</em> in the 73 <em class="replaceable">foo</em> in the
74 tapset library. <em class="replaceable">N</em> refers to the 74 tapset library. <em class="replaceable">N</em> refers to the
75 line and column of 75 line and column of
76 the error.</div><h3><a id="idm46413317118016"> 76 the error.</div><h3><a id="id5731">
77 ⁠</a>semantic error: no match for probe point, while resolving probe point <em class="replaceable">foo</em></h3><a id="idm46413317116752" class="indexterm"></a><a id="idm46413317114656" class="indexterm"></a><a id="idm46413316812512" class="indexterm"></a><a id="idm46413316810464" class="indexterm"></a><a id="idm46413316808368" class="indexterm"></a><div class="para">SystemTap could not resolve the events or handler function <em class="replaceable">foo</em> for a variety of reasons. This error occurs when the script contains the event <code class="command">kernel.function("<em class="replaceable">something</em>")</code>, and <em class="replaceable">something</em> does not exist. In some cases, the error could also mean the script contains an invalid kernel file name or source line number.</div><h3><a id="idm46413330771584"> 77 ⁠</a>semantic error: no match for probe point, while resolving probe point <em class="replaceable">foo</em></h3><a id="id5733" class="indexterm"></a><a id="id5737" class="indexterm"></a><a id="id5741" class="indexterm"></a><a id="id5745" class="indexterm"></a><a id="id5749" class="indexterm"></a><div class="para">SystemTap could not resolve the events or handler function <em class="replaceable">foo</em> for a variety of reasons. This error occurs when the script contains the event <code class="command">kernel.function("<em class="replaceable">something</em>")</code>, and <em class="replaceable">something</em> does not exist. In some cases, the error could also mean the script contains an invalid kernel file name or source line number.</div><h3><a id="id5758">
78 ⁠</a>semantic error: unresolved target-symbol expression</h3><a id="idm46413330770608" class="indexterm"></a><a id="idm46413328667408" class="indexterm"></a><a id="idm46413328665328" class="indexterm"></a><a id="idm46413316795456" class="indexterm"></a><a id="idm46413316793360" class="indexterm"></a><div class="para">A handler in the script references a target variable, but the 78 ⁠</a>semantic error: unresolved target-symbol expression</h3><a id="id5759" class="indexterm"></a><a id="id5763" class="indexterm"></a><a id="id5767" class="indexterm"></a><a id="id5771" class="indexterm"></a><a id="id5775" class="indexterm"></a><div class="para">A handler in the script references a target variable, but the
79 value of the variable could not be resolved. This error could also mean 79 value of the variable could not be resolved. This error could also mean
80 that a handler is referencing a target variable that is not valid 80 that a handler is referencing a target variable that is not valid
81 in the context when it was referenced. This may be a result of compiler 81 in the context when it was referenced. This may be a result of compiler
82 optimization of the generated code.</div><h3><a id="idm46413317047840"> 82 optimization of the generated code.</div><h3><a id="id5780">
83 ⁠</a>semantic error: libdwfl failure </h3><a id="idm46413317046768" class="indexterm"></a><a id="idm46413317044688" class="indexterm"></a><a id="idm46413321607680" class="indexterm"></a><a id="idm46413321605600" class="indexterm"></a><div class="para">There was a problem processing the debugging information. In most 83 ⁠</a>semantic error: libdwfl failure </h3><a id="id5781" class="indexterm"></a><a id="id5785" class="indexterm"></a><a id="id5789" class="indexterm"></a><a id="id5793" class="indexterm"></a><div class="para">There was a problem processing the debugging information. In most
84 cases, this error results from the installation of a 84 cases, this error results from the installation of a
85 <span class="package">kernel-debuginfo</span> package whose version does not match 85 <span class="package">kernel-debuginfo</span> package whose version does not match
86 the probed kernel exactly. The installed <span class="package">kernel-debuginfo</span> package itself may have some consistency or correctness problems.</div><h3><a id="idm46413327462832"> 86 the probed kernel exactly. The installed <span class="package">kernel-debuginfo</span> package itself may have some consistency or correctness problems.</div><h3><a id="id5800">
87 ⁠</a>semantic error: cannot find <em class="replaceable">foo</em> debuginfo</h3><div class="para">SystemTap could not find a suitable <span class="package">kernel-debuginfo</span> package.</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="futexcontentionsect.html"><strong>Prev</strong>5.4. Identifying Contended User-Space Locks</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="runtimeerror.html"><strong>Next</strong>6.2. Runtime Errors and Warnings</a></li></ul></body></html> \ No newline at end of file 87 ⁠</a>semantic error: cannot find <em class="replaceable">foo</em> debuginfo</h3><div class="para">SystemTap could not find a suitable <span class="package">kernel-debuginfo</span> package.</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="futexcontentionsect.html"><strong>Prev</strong>5.4. Identifying Contended User-Space Locks</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="runtimeerror.html"><strong>Next</strong>6.2. Runtime Errors and Warnings</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/futexcontentionsect.html b/SystemTap_Beginners_Guide/futexcontentionsect.html
index 448c184a..ad8674a0 100644
--- a/SystemTap_Beginners_Guide/futexcontentionsect.html
+++ b/SystemTap_Beginners_Guide/futexcontentionsect.html
@@ -1,15 +1,15 @@
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.4. Identifying Contended User-Space Locks</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="syscallsbyprocpidsect.html" title="5.3.6. Tracking System Call Volume Per Process" /><link rel="next" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="syscallsbyprocpidsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="errors.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="futexcontentionsect"> 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.4. Identifying Contended User-Space Locks</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="syscallsbyprocpidsect.html" title="5.3.6. Tracking System Call Volume Per Process" /><link rel="next" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="syscallsbyprocpidsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="errors.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="futexcontentionsect">
3 ⁠</a>5.4. Identifying Contended User-Space Locks</h2></div></div></div><a id="idm46413321922896" class="indexterm"></a><a id="idm46413336606192" class="indexterm"></a><a id="idm46413324671296" class="indexterm"></a><a id="idm46413328231936" class="indexterm"></a><div class="para">This section describes how to identify contended 3 ⁠</a>5.4. Identifying Contended User-Space Locks</h2></div></div></div><a id="id5389" class="indexterm"></a><a id="id5392" class="indexterm"></a><a id="id5395" class="indexterm"></a><a id="id5398" class="indexterm"></a><div class="para">This section describes how to identify contended
4user-space locks throughout the system within a specific time 4user-space locks throughout the system within a specific time
5period. The ability to identify contended user-space locks can help 5period. The ability to identify contended user-space locks can help
6you investigate poor program performance that you suspect may be 6you investigate poor program performance that you suspect may be
7caused by <code class="command">futex</code> contentions.</div><a id="idm46413323149568" class="indexterm"></a><a id="idm46413322727120" class="indexterm"></a><a id="idm46413328413552" class="indexterm"></a><a id="idm46413323622576" class="indexterm"></a><a id="idm46413330778224" class="indexterm"></a><div class="para">Simply put, <code class="command">futex</code> contention occurs 7caused by <code class="command">futex</code> contentions.</div><a id="id5404" class="indexterm"></a><a id="id5407" class="indexterm"></a><a id="id5410" class="indexterm"></a><a id="id5413" class="indexterm"></a><a id="id5416" class="indexterm"></a><div class="para">Simply put, <code class="command">futex</code> contention occurs
8 when multiple processes are trying to access the same lock 8 when multiple processes are trying to access the same lock
9 variable at the same time. This can result in a poor 9 variable at the same time. This can result in a poor
10 performance because the lock serializes execution; one process obtains 10 performance because the lock serializes execution; one process obtains
11 the lock while the other processes must wait for the lock 11 the lock while the other processes must wait for the lock
12 variable to become available again.</div><a id="idm46413328956992" class="indexterm"></a><a id="idm46413317717472" class="indexterm"></a><a id="idm46413316599024" class="indexterm"></a><div class="para">The <a class="xref" href="futexcontentionsect.html#futexcontention">futexes.stp</a> script probes the <code class="command">futex</code> system call to show lock contention.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">futexes.stp</div> 12 variable to become available again.</div><a id="id5421" class="indexterm"></a><a id="id5424" class="indexterm"></a><a id="id5427" class="indexterm"></a><div class="para">The <a class="xref" href="futexcontentionsect.html#futexcontention">futexes.stp</a> script probes the <code class="command">futex</code> system call to show lock contention.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">futexes.stp</div>
13<pre class="programlisting">#! /usr/bin/env stap 13<pre class="programlisting">#! /usr/bin/env stap
14 14
15# This script tries to identify contended user-space locks by hooking 15# This script tries to identify contended user-space locks by hooking
diff --git a/SystemTap_Beginners_Guide/handlerconditionalstatements.html b/SystemTap_Beginners_Guide/handlerconditionalstatements.html
index 82e08ed5..0b134945 100644
--- a/SystemTap_Beginners_Guide/handlerconditionalstatements.html
+++ b/SystemTap_Beginners_Guide/handlerconditionalstatements.html
@@ -1,10 +1,10 @@
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">3.3.3. Conditional Statements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="targetavailable.html" title="3.3.2.3. Checking Target Variable Availability" /><link rel="next" href="commandlineargssect.html" title="3.3.4. Command-Line Arguments" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="targetavailable.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="commandlineargssect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="handlerconditionalstatements"> 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">3.3.3. Conditional Statements</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="targetavailable.html" title="3.3.2.3. Checking Target Variable Availability" /><link rel="next" href="commandlineargssect.html" title="3.3.4. Command-Line Arguments" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="targetavailable.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="commandlineargssect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="handlerconditionalstatements">
3 ⁠</a>3.3.3. Conditional Statements</h3></div></div></div><a id="idm46413321912576" class="indexterm"></a><a id="idm46413321402752" class="indexterm"></a><div class="para"> 3 ⁠</a>3.3.3. Conditional Statements</h3></div></div></div><a id="id3127" class="indexterm"></a><a id="id3130" class="indexterm"></a><div class="para">
4In some cases, the output of a SystemTap script may be too large. To address this, you need to further refine the script's logic in order to delimit the output into something more relevant or useful to your probe. 4In some cases, the output of a SystemTap script may be too large. To address this, you need to further refine the script's logic in order to delimit the output into something more relevant or useful to your probe.
5</div><div class="para"> 5</div><div class="para">
6Do this by using <span class="emphasis"><em>conditionals</em></span> in handlers. SystemTap accepts the following types of conditional statements: 6Do this by using <span class="emphasis"><em>conditionals</em></span> in handlers. SystemTap accepts the following types of conditional statements:
7</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">If/Else Statements</span></dt><dd><a id="idm46413330275680" class="indexterm"></a><a id="idm46413321965616" class="indexterm"></a><a id="idm46413324836448" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">if (<em class="replaceable">condition</em>) 7</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">If/Else Statements</span></dt><dd><a id="id3140" class="indexterm"></a><a id="id3144" class="indexterm"></a><a id="id3148" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">if (<em class="replaceable">condition</em>)
8 <em class="replaceable">statement1</em> 8 <em class="replaceable">statement1</em>
9else 9else
10 <em class="replaceable">statement2</em></pre><div class="para"> 10 <em class="replaceable">statement2</em></pre><div class="para">
@@ -30,7 +30,7 @@ probe timer.s(5) { exit() }
30probe end 30probe end
31{ 31{
32 printf("VFS reads total %d\n VFS writes total %d\n", countread, countnonread) 32 printf("VFS reads total %d\n VFS writes total %d\n", countread, countnonread)
33}</pre></div></div><div class="para"><a class="xref" href="handlerconditionalstatements.html#simpleifelseexample">Example 3.11, “ifelse.stp”</a> is a script that counts how many virtual file system reads (<code class="command">vfs_read</code>) and writes (<code class="command">vfs_write</code>) the system performs within a 5-second span. When run, the script increments the value of the variable <code class="command">countread</code> by 1 if the name of the function it probed matches <code class="command">vfs_read</code> (as noted by the condition <code class="command">if (probefunc()=="vfs_read")</code>); otherwise, it increments <code class="command">countnonread</code> (<code class="command">else {countnonread ++}</code>).</div></dd><dt><span class="term">While Loops</span></dt><dd><a id="idm46413323048512" class="indexterm"></a><a id="idm46413322462080" class="indexterm"></a><a id="idm46413323028528" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">while (<em class="replaceable">condition</em>) 33}</pre></div></div><div class="para"><a class="xref" href="handlerconditionalstatements.html#simpleifelseexample">Example 3.11, “ifelse.stp”</a> is a script that counts how many virtual file system reads (<code class="command">vfs_read</code>) and writes (<code class="command">vfs_write</code>) the system performs within a 5-second span. When run, the script increments the value of the variable <code class="command">countread</code> by 1 if the name of the function it probed matches <code class="command">vfs_read</code> (as noted by the condition <code class="command">if (probefunc()=="vfs_read")</code>); otherwise, it increments <code class="command">countnonread</code> (<code class="command">else {countnonread ++}</code>).</div></dd><dt><span class="term">While Loops</span></dt><dd><a id="id3188" class="indexterm"></a><a id="id3192" class="indexterm"></a><a id="id3196" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">while (<em class="replaceable">condition</em>)
34 <em class="replaceable">statement</em></pre><div class="para"> 34 <em class="replaceable">statement</em></pre><div class="para">
35So long as <code class="command"><em class="replaceable">condition</em></code> is non-zero 35So long as <code class="command"><em class="replaceable">condition</em></code> is non-zero
36the block of statements in 36the block of statements in
@@ -38,11 +38,11 @@ the block of statements in
38<code class="command"><em class="replaceable">statement</em></code> is often a statement 38<code class="command"><em class="replaceable">statement</em></code> is often a statement
39block and it must change a value so 39block and it must change a value so
40<code class="command"><em class="replaceable">condition</em></code> will eventually be zero. 40<code class="command"><em class="replaceable">condition</em></code> will eventually be zero.
41</div></dd><dt><span class="term">For Loops</span></dt><dd><a id="idm46413328496528" class="indexterm"></a><a id="idm46413324563680" class="indexterm"></a><a id="idm46413329521680" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">for (<em class="replaceable">initialization</em>; <em class="replaceable">conditional</em>; <em class="replaceable">increment</em>) <em class="replaceable">statement</em></pre><div class="para"> 41</div></dd><dt><span class="term">For Loops</span></dt><dd><a id="id3216" class="indexterm"></a><a id="id3220" class="indexterm"></a><a id="id3224" class="indexterm"></a><div class="para">Format:</div><pre class="programlisting">for (<em class="replaceable">initialization</em>; <em class="replaceable">conditional</em>; <em class="replaceable">increment</em>) <em class="replaceable">statement</em></pre><div class="para">
42The <code class="command">for</code> loop is shorthand for a while loop. The 42The <code class="command">for</code> loop is shorthand for a while loop. The
43following is the equivalent <code class="command">while</code> loop: 43following is the equivalent <code class="command">while</code> loop:
44</div><pre class="programlisting"><em class="replaceable">initialization</em> 44</div><pre class="programlisting"><em class="replaceable">initialization</em>
45while (<em class="replaceable">conditional</em>) { 45while (<em class="replaceable">conditional</em>) {
46 <em class="replaceable">statement</em> 46 <em class="replaceable">statement</em>
47 <em class="replaceable">increment</em> 47 <em class="replaceable">increment</em>
48}</pre></dd></dl></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Conditional Operators</div><a id="idm46413324277344" class="indexterm"></a><a id="idm46413329069184" class="indexterm"></a><a id="idm46413318481872" class="indexterm"></a>Aside from <code class="command">==</code> ("is equal to"), following operators can also be used in conditional statements:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">&gt;=</span></dt><dd><div class="para">Greater than or equal to</div></dd><dt><span class="term">&lt;=</span></dt><dd><div class="para">Less than or equal to</div></dd><dt><span class="term">!=</span></dt><dd><div class="para">Is not equal to</div></dd></dl></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="targetavailable.html"><strong>Prev</strong>3.3.2.3. Checking Target Variable Availability</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="commandlineargssect.html"><strong>Next</strong>3.3.4. Command-Line Arguments</a></li></ul></body></html> \ No newline at end of file 48}</pre></dd></dl></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Conditional Operators</div><a id="id3245" class="indexterm"></a><a id="id3249" class="indexterm"></a><a id="id3253" class="indexterm"></a>Aside from <code class="command">==</code> ("is equal to"), following operators can also be used in conditional statements:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">&gt;=</span></dt><dd><div class="para">Greater than or equal to</div></dd><dt><span class="term">&lt;=</span></dt><dd><div class="para">Less than or equal to</div></dd><dt><span class="term">!=</span></dt><dd><div class="para">Is not equal to</div></dd></dl></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="targetavailable.html"><strong>Prev</strong>3.3.2.3. Checking Target Variable Availability</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="commandlineargssect.html"><strong>Next</strong>3.3.4. Command-Line Arguments</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/index.html b/SystemTap_Beginners_Guide/index.html
index c377dd7e..869518db 100644
--- a/SystemTap_Beginners_Guide/index.html
+++ b/SystemTap_Beginners_Guide/index.html
@@ -1,7 +1,7 @@
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">SystemTap Beginners Guide</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><meta name="description" content="This guide provides basic instructions on how to use SystemTap to monitor different subsystems of a Linux system in finer detail." /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="next" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="SystemTap_Beginners_Guide-Preface.html"><strong>Next</strong></a></li></ul><div class="book"><div class="titlepage"><div><div class="producttitle"><span xmlns:d="http://docbook.org/ns/docbook" class="productname">SystemTap</span> <span xmlns:d="http://docbook.org/ns/docbook" class="productnumber">4.8</span></div><div><h1 class="title"><a id="idm46413336404880"></a>SystemTap Beginners Guide</h1></div><div><h2 class="subtitle">Introduction to SystemTap</h2></div><p xmlns:d="http://docbook.org/ns/docbook" class="edition">Edition 4.8</p><div><h3 class="corpauthor"> 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">SystemTap Beginners Guide</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><meta name="description" content="This guide provides basic instructions on how to use SystemTap to monitor different subsystems of a Linux system in finer detail." /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="next" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="SystemTap_Beginners_Guide-Preface.html"><strong>Next</strong></a></li></ul><div class="book"><div class="titlepage"><div><div class="producttitle"><span xmlns:d="http://docbook.org/ns/docbook" class="productname">SystemTap</span> <span xmlns:d="http://docbook.org/ns/docbook" class="productnumber">5.1</span></div><div><h1 class="title"><a id="id1337"></a>SystemTap Beginners Guide</h1></div><div><h2 class="subtitle">Introduction to SystemTap</h2></div><p xmlns:d="http://docbook.org/ns/docbook" class="edition">Edition 5.1</p><div><h3 class="corpauthor">
3 <span class="inlinemediaobject"><object data="Common_Content/images/title_logo.svg" type="image/svg+xml"><img src="Common_Content/images/title_logo.png" alt="Logo" /></object></span> 3 <span class="inlinemediaobject"><object data="Common_Content/images/title_logo.svg" type="image/svg+xml"><img src="Common_Content/images/title_logo.png" alt="Logo" /></object></span>
4 </h3></div><div><div class="authorgroup"><h3 class="corpauthor">Red Hat, Inc.</h3><div class="author"><h3 class="author"><span class="firstname">Don</span> <span class="surname">Domingo </span></h3><div class="affiliation"><span xmlns:d="http://docbook.org/ns/docbook" class="orgname">Engineering Services and Operations</span> <span xmlns:d="http://docbook.org/ns/docbook" class="orgdiv">Content Services</span></div><code class="email"><a class="email" href="mailto:ddomingo@redhat.com">ddomingo@redhat.com</a></code></div><div class="author"><h3 class="author"><span class="firstname">William</span> <span class="surname">Cohen</span></h3><div class="affiliation"><span xmlns:d="http://docbook.org/ns/docbook" class="orgname">Engineering Services and Operations</span> <span xmlns:d="http://docbook.org/ns/docbook" class="orgdiv">Performance Tools</span></div><code class="email"><a class="email" href="mailto:wcohen@redhat.com">wcohen@redhat.com</a></code></div></div></div><div><p class="copyright">Copyright © 2013 Red Hat, Inc</p></div><div><div class="legalnotice"><a id="idm46413328629952"></a><h1 class="legalnotice">Legal Notice</h1><div class="para"> 4 </h3></div><div><div class="authorgroup"><h3 class="corpauthor">Red Hat, Inc.</h3><div class="author"><h3 class="author"><span class="firstname">Don</span> <span class="surname">Domingo </span></h3><div class="affiliation"><span xmlns:d="http://docbook.org/ns/docbook" class="orgname">Engineering Services and Operations</span> <span xmlns:d="http://docbook.org/ns/docbook" class="orgdiv">Content Services</span></div><code class="email"><a class="email" href="mailto:ddomingo@redhat.com">ddomingo@redhat.com</a></code></div><div class="author"><h3 class="author"><span class="firstname">William</span> <span class="surname">Cohen</span></h3><div class="affiliation"><span xmlns:d="http://docbook.org/ns/docbook" class="orgname">Engineering Services and Operations</span> <span xmlns:d="http://docbook.org/ns/docbook" class="orgdiv">Performance Tools</span></div><code class="email"><a class="email" href="mailto:wcohen@redhat.com">wcohen@redhat.com</a></code></div></div></div><div><p class="copyright">Copyright © 2013 Red Hat, Inc</p></div><div><div class="legalnotice"><a id="id1339"></a><h1 class="legalnotice">Legal Notice</h1><div class="para">
5 This documentation is free software; you can redistribute 5 This documentation is free software; you can redistribute
6 it and/or modify it under the terms of the GNU General Public 6 it and/or modify it under the terms of the GNU General Public
7 License version 2 as published by the Free Software Foundation. 7 License version 2 as published by the Free Software Foundation.
@@ -18,4 +18,4 @@
18 </div><div class="para"> 18 </div><div class="para">
19 For more details see the file COPYING in the source 19 For more details see the file COPYING in the source
20 distribution of Linux. 20 distribution of Linux.
21 </div></div></div><div><div class="abstract"><p class="title"><strong>Abstract</strong></p><div class="para">This guide provides basic instructions on how to use SystemTap to monitor different subsystems of a Linux system in finer detail.</div></div></div></div></div><div class="toc"><dl class="toc"><dt><span class="preface"><a href="SystemTap_Beginners_Guide-Preface.html">Preface</a></span></dt><dd><dl><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#idm46413329535680">1. Document Conventions</a></span></dt><dd><dl><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#idm46413327772896">1.1. Typographic Conventions</a></span></dt><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#idm46413321482400">1.2. Pull-quote Conventions</a></span></dt><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#idm46413320348688">1.3. Notes and Warnings</a></span></dt></dl></dd><dt><span class="section"><a href="pr01s02.html">2. We Need Feedback!</a></span></dt></dl></dd><dt><span class="chapter"><a href="introduction.html">1. Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="introduction.html#goals">1.1. Documentation Goals</a></span></dt><dt><span class="section"><a href="intro-systemtap-vs-others.html">1.2. SystemTap Capabilities</a></span></dt><dt><span class="section"><a href="intro-systemtap-limitations.html">1.3. Limitations of SystemTap</a></span></dt></dl></dd><dt><span class="chapter"><a href="using-systemtap.html">2. Using SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#using-setup">2.1. Installation and Setup</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#installproper">2.1.1. Installing SystemTap</a></span></dt><dt><span class="section"><a href="using-systemtap.html#install-kinfo">2.1.2. Installing Required Kernel Information Packages Manually</a></span></dt><dt><span class="section"><a href="using-systemtap.html#testing">2.1.3. Initial Testing</a></span></dt></dl></dd><dt><span class="section"><a href="cross-compiling.html">2.2. Generating Instrumentation for Other Computers</a></span></dt><dt><span class="section"><a href="using-usage.html">2.3. Running SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="using-usage.html#flight-recorder">2.3.1. SystemTap Flight Recorder Mode</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="understanding-how-systemtap-works.html">3. Understanding How SystemTap Works</a></span></dt><dd><dl><dt><span class="section"><a href="understanding-how-systemtap-works.html#understanding-architecture-tools">3.1. Architecture</a></span></dt><dt><span class="section"><a href="scripts.html">3.2. SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="scripts.html#systemtapscript-events">3.2.1. Event</a></span></dt><dt><span class="section"><a href="systemtapscript-handler.html">3.2.2. SystemTap Handler/Body</a></span></dt></dl></dd><dt><span class="section"><a href="scriptconstructions.html">3.3. Basic SystemTap Handler Constructs</a></span></dt><dd><dl><dt><span class="section"><a href="scriptconstructions.html#variablesconstructs">3.3.1. Variables</a></span></dt><dt><span class="section"><a href="targetvariables.html">3.3.2. Target Variables</a></span></dt><dt><span class="section"><a href="handlerconditionalstatements.html">3.3.3. Conditional Statements</a></span></dt><dt><span class="section"><a href="commandlineargssect.html">3.3.4. Command-Line Arguments</a></span></dt></dl></dd><dt><span class="section"><a href="associativearrays.html">3.4. Associative Arrays</a></span></dt><dt><span class="section"><a href="arrayoperators.html">3.5. Array Operations in SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="arrayoperators.html#arrayops-assignvalue">3.5.1. Assigning an Associated Value</a></span></dt><dt><span class="section"><a href="arrayops-readvalues.html">3.5.2. Reading Values From Arrays</a></span></dt><dt><span class="section"><a href="arrayops-increment.html">3.5.3. Incrementing Associated Values</a></span></dt><dt><span class="section"><a href="arrayops-foreach.html">3.5.4. Processing Multiple Elements in an Array</a></span></dt><dt><span class="section"><a href="arrayops-deleting.html">3.5.5. Clearing/Deleting Arrays and Array Elements</a></span></dt><dt><span class="section"><a href="arrayops-conditionals.html">3.5.6. Using Arrays in Conditional Statements</a></span></dt><dt><span class="section"><a href="arrayops-aggregates.html">3.5.7. Computing for Statistical Aggregates</a></span></dt></dl></dd><dt><span class="section"><a href="understanding-tapsets.html">3.6. Tapsets</a></span></dt></dl></dd><dt><span class="chapter"><a href="userspace-probing.html">4. User-space Probing</a></span></dt><dd><dl><dt><span class="section"><a href="userspace-probing.html#uevents">4.1. User-Space Events</a></span></dt><dt><span class="section"><a href="utargetvariable.html">4.2. Accessing User-Space Target Variables</a></span></dt><dt><span class="section"><a href="ustack.html">4.3. User-Space Stack Backtraces</a></span></dt></dl></dd><dt><span class="chapter"><a href="useful-systemtap-scripts.html">5. Useful SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#mainsect-network">5.1. Network</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#nettopsect">5.1.1. Network Profiling</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#sockettracesect">5.1.2. Tracing Functions Called in Network Socket Code</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpconnectionssect">5.1.3. Monitoring Incoming TCP Connections</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpdumplikesect">5.1.4. Monitoring TCP Packets</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#dropwatchsect">5.1.5. Monitoring Network Packets Drops in Kernel</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-disk.html">5.2. Disk</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-disk.html#disktop">5.2.1. Summarizing Disk Read/Write Traffic</a></span></dt><dt><span class="section"><a href="iotimesect.html">5.2.2. Tracking I/O Time For Each File Read or Write</a></span></dt><dt><span class="section"><a href="traceiosect.html">5.2.3. Track Cumulative IO</a></span></dt><dt><span class="section"><a href="traceio2sect.html">5.2.4. I/O Monitoring (By Device)</a></span></dt><dt><span class="section"><a href="inodewatchsect.html">5.2.5. Monitoring Reads and Writes to a File</a></span></dt><dt><span class="section"><a href="inodewatch2sect.html">5.2.6. Monitoring Changes to File Attributes</a></span></dt><dt><span class="section"><a href="ioblktimesect.html">5.2.7. Periodically Print I/O Block Time</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-profiling.html">5.3. Profiling</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-profiling.html#countcallssect">5.3.1. Counting Function Calls Made</a></span></dt><dt><span class="section"><a href="paracallgraph.html">5.3.2. Call Graph Tracing</a></span></dt><dt><span class="section"><a href="threadtimessect.html">5.3.3. Determining Time Spent in Kernel and User Space</a></span></dt><dt><span class="section"><a href="timeoutssect.html">5.3.4. Monitoring Polling Applications</a></span></dt><dt><span class="section"><a href="topsyssect.html">5.3.5. Tracking Most Frequently Used System Calls</a></span></dt><dt><span class="section"><a href="syscallsbyprocpidsect.html">5.3.6. Tracking System Call Volume Per Process</a></span></dt></dl></dd><dt><span class="section"><a href="futexcontentionsect.html">5.4. Identifying Contended User-Space Locks</a></span></dt></dl></dd><dt><span class="chapter"><a href="errors.html">6. Understanding SystemTap Errors</a></span></dt><dd><dl><dt><span class="section"><a href="errors.html#parsetype">6.1. Parse and Semantic Errors</a></span></dt><dt><span class="section"><a href="runtimeerror.html">6.2. Runtime Errors and Warnings</a></span></dt></dl></dd><dt><span class="chapter"><a href="references.html">7. References</a></span></dt><dt><span class="appendix"><a href="appe-Publican-Revision_History.html">A. Revision History</a></span></dt><dt><span class="index"><a href="ix01.html">Index</a></span></dt></dl></div></div><ul class="docnav"><li class="previous"></li><li class="next"><a accesskey="n" href="SystemTap_Beginners_Guide-Preface.html"><strong>Next</strong>Preface</a></li></ul></body></html> \ No newline at end of file 21 </div></div></div><div><div class="abstract"><p class="title"><strong>Abstract</strong></p><div class="para">This guide provides basic instructions on how to use SystemTap to monitor different subsystems of a Linux system in finer detail.</div></div></div></div></div><div class="toc"><dl class="toc"><dt><span class="preface"><a href="SystemTap_Beginners_Guide-Preface.html">Preface</a></span></dt><dd><dl><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#id1343">1. Document Conventions</a></span></dt><dd><dl><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#id1340">1.1. Typographic Conventions</a></span></dt><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#id1341">1.2. Pull-quote Conventions</a></span></dt><dt><span class="section"><a href="SystemTap_Beginners_Guide-Preface.html#id1342">1.3. Notes and Warnings</a></span></dt></dl></dd><dt><span class="section"><a href="pr01s02.html">2. We Need Feedback!</a></span></dt></dl></dd><dt><span class="chapter"><a href="introduction.html">1. Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="introduction.html#goals">1.1. Documentation Goals</a></span></dt><dt><span class="section"><a href="intro-systemtap-vs-others.html">1.2. SystemTap Capabilities</a></span></dt><dt><span class="section"><a href="intro-systemtap-limitations.html">1.3. Limitations of SystemTap</a></span></dt></dl></dd><dt><span class="chapter"><a href="using-systemtap.html">2. Using SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#using-setup">2.1. Installation and Setup</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#installproper">2.1.1. Installing SystemTap</a></span></dt><dt><span class="section"><a href="using-systemtap.html#install-kinfo">2.1.2. Installing Required Kernel Information Packages Manually</a></span></dt><dt><span class="section"><a href="using-systemtap.html#testing">2.1.3. Initial Testing</a></span></dt></dl></dd><dt><span class="section"><a href="cross-compiling.html">2.2. Generating Instrumentation for Other Computers</a></span></dt><dt><span class="section"><a href="using-usage.html">2.3. Running SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="using-usage.html#flight-recorder">2.3.1. SystemTap Flight Recorder Mode</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="understanding-how-systemtap-works.html">3. Understanding How SystemTap Works</a></span></dt><dd><dl><dt><span class="section"><a href="understanding-how-systemtap-works.html#understanding-architecture-tools">3.1. Architecture</a></span></dt><dt><span class="section"><a href="scripts.html">3.2. SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="scripts.html#systemtapscript-events">3.2.1. Event</a></span></dt><dt><span class="section"><a href="systemtapscript-handler.html">3.2.2. SystemTap Handler/Body</a></span></dt></dl></dd><dt><span class="section"><a href="scriptconstructions.html">3.3. Basic SystemTap Handler Constructs</a></span></dt><dd><dl><dt><span class="section"><a href="scriptconstructions.html#variablesconstructs">3.3.1. Variables</a></span></dt><dt><span class="section"><a href="targetvariables.html">3.3.2. Target Variables</a></span></dt><dt><span class="section"><a href="handlerconditionalstatements.html">3.3.3. Conditional Statements</a></span></dt><dt><span class="section"><a href="commandlineargssect.html">3.3.4. Command-Line Arguments</a></span></dt></dl></dd><dt><span class="section"><a href="associativearrays.html">3.4. Associative Arrays</a></span></dt><dt><span class="section"><a href="arrayoperators.html">3.5. Array Operations in SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="arrayoperators.html#arrayops-assignvalue">3.5.1. Assigning an Associated Value</a></span></dt><dt><span class="section"><a href="arrayops-readvalues.html">3.5.2. Reading Values From Arrays</a></span></dt><dt><span class="section"><a href="arrayops-increment.html">3.5.3. Incrementing Associated Values</a></span></dt><dt><span class="section"><a href="arrayops-foreach.html">3.5.4. Processing Multiple Elements in an Array</a></span></dt><dt><span class="section"><a href="arrayops-deleting.html">3.5.5. Clearing/Deleting Arrays and Array Elements</a></span></dt><dt><span class="section"><a href="arrayops-conditionals.html">3.5.6. Using Arrays in Conditional Statements</a></span></dt><dt><span class="section"><a href="arrayops-aggregates.html">3.5.7. Computing for Statistical Aggregates</a></span></dt></dl></dd><dt><span class="section"><a href="understanding-tapsets.html">3.6. Tapsets</a></span></dt></dl></dd><dt><span class="chapter"><a href="userspace-probing.html">4. User-space Probing</a></span></dt><dd><dl><dt><span class="section"><a href="userspace-probing.html#uevents">4.1. User-Space Events</a></span></dt><dt><span class="section"><a href="utargetvariable.html">4.2. Accessing User-Space Target Variables</a></span></dt><dt><span class="section"><a href="ustack.html">4.3. User-Space Stack Backtraces</a></span></dt></dl></dd><dt><span class="chapter"><a href="useful-systemtap-scripts.html">5. Useful SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#mainsect-network">5.1. Network</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#nettopsect">5.1.1. Network Profiling</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#sockettracesect">5.1.2. Tracing Functions Called in Network Socket Code</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpconnectionssect">5.1.3. Monitoring Incoming TCP Connections</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpdumplikesect">5.1.4. Monitoring TCP Packets</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#dropwatchsect">5.1.5. Monitoring Network Packets Drops in Kernel</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-disk.html">5.2. Disk</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-disk.html#disktop">5.2.1. Summarizing Disk Read/Write Traffic</a></span></dt><dt><span class="section"><a href="iotimesect.html">5.2.2. Tracking I/O Time For Each File Read or Write</a></span></dt><dt><span class="section"><a href="traceiosect.html">5.2.3. Track Cumulative IO</a></span></dt><dt><span class="section"><a href="traceio2sect.html">5.2.4. I/O Monitoring (By Device)</a></span></dt><dt><span class="section"><a href="inodewatchsect.html">5.2.5. Monitoring Reads and Writes to a File</a></span></dt><dt><span class="section"><a href="inodewatch2sect.html">5.2.6. Monitoring Changes to File Attributes</a></span></dt><dt><span class="section"><a href="ioblktimesect.html">5.2.7. Periodically Print I/O Block Time</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-profiling.html">5.3. Profiling</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-profiling.html#countcallssect">5.3.1. Counting Function Calls Made</a></span></dt><dt><span class="section"><a href="paracallgraph.html">5.3.2. Call Graph Tracing</a></span></dt><dt><span class="section"><a href="threadtimessect.html">5.3.3. Determining Time Spent in Kernel and User Space</a></span></dt><dt><span class="section"><a href="timeoutssect.html">5.3.4. Monitoring Polling Applications</a></span></dt><dt><span class="section"><a href="topsyssect.html">5.3.5. Tracking Most Frequently Used System Calls</a></span></dt><dt><span class="section"><a href="syscallsbyprocpidsect.html">5.3.6. Tracking System Call Volume Per Process</a></span></dt></dl></dd><dt><span class="section"><a href="futexcontentionsect.html">5.4. Identifying Contended User-Space Locks</a></span></dt></dl></dd><dt><span class="chapter"><a href="errors.html">6. Understanding SystemTap Errors</a></span></dt><dd><dl><dt><span class="section"><a href="errors.html#parsetype">6.1. Parse and Semantic Errors</a></span></dt><dt><span class="section"><a href="runtimeerror.html">6.2. Runtime Errors and Warnings</a></span></dt></dl></dd><dt><span class="chapter"><a href="references.html">7. References</a></span></dt><dt><span class="appendix"><a href="appe-Publican-Revision_History.html">A. Revision History</a></span></dt><dt><span class="index"><a href="ix01.html">Index</a></span></dt></dl></div></div><ul class="docnav"><li class="previous"></li><li class="next"><a accesskey="n" href="SystemTap_Beginners_Guide-Preface.html"><strong>Next</strong>Preface</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/inodewatch2sect.html b/SystemTap_Beginners_Guide/inodewatch2sect.html
index 195418fc..b15eb2b0 100644
--- a/SystemTap_Beginners_Guide/inodewatch2sect.html
+++ b/SystemTap_Beginners_Guide/inodewatch2sect.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.2.6. Monitoring Changes to File Attributes</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="inodewatchsect.html" title="5.2.5. Monitoring Reads and Writes to a File" /><link rel="next" href="ioblktimesect.html" title="5.2.7. Periodically Print I/O Block Time" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="inodewatchsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="ioblktimesect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="inodewatch2sect"> 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.2.6. Monitoring Changes to File Attributes</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="inodewatchsect.html" title="5.2.5. Monitoring Reads and Writes to a File" /><link rel="next" href="ioblktimesect.html" title="5.2.7. Periodically Print I/O Block Time" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="inodewatchsect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="ioblktimesect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="inodewatch2sect">
3 ⁠</a>5.2.6. Monitoring Changes to File Attributes</h3></div></div></div><a id="idm46413330067824" class="indexterm"></a><a id="idm46413324781296" class="indexterm"></a><a id="idm46413325171728" class="indexterm"></a><a id="idm46413316704560" class="indexterm"></a><a id="idm46413324034176" class="indexterm"></a><div class="para">This section describes how to monitor if any processes are changing the attributes of a targeted file, in real time. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">inodewatch2.stp</div> 3 ⁠</a>5.2.6. Monitoring Changes to File Attributes</h3></div></div></div><a id="id4987" class="indexterm"></a><a id="id4990" class="indexterm"></a><a id="id4993" class="indexterm"></a><a id="id4996" class="indexterm"></a><a id="id4999" class="indexterm"></a><div class="para">This section describes how to monitor if any processes are changing the attributes of a targeted file, in real time. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">inodewatch2.stp</div>
4<pre class="programlisting">#! /usr/bin/env stap 4<pre class="programlisting">#! /usr/bin/env stap
5 5
6global ATTR_MODE = 1 6global ATTR_MODE = 1
diff --git a/SystemTap_Beginners_Guide/inodewatchsect.html b/SystemTap_Beginners_Guide/inodewatchsect.html
index 539bb833..f7e716df 100644
--- a/SystemTap_Beginners_Guide/inodewatchsect.html
+++ b/SystemTap_Beginners_Guide/inodewatchsect.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.2.5. Monitoring Reads and Writes to a File</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /><link rel="next" href="inodewatch2sect.html" title="5.2.6. Monitoring Changes to File Attributes" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="traceio2sect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="inodewatch2sect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="inodewatchsect"> 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.2.5. Monitoring Reads and Writes to a File</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /><link rel="next" href="inodewatch2sect.html" title="5.2.6. Monitoring Changes to File Attributes" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="traceio2sect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="inodewatch2sect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="inodewatchsect">
3 ⁠</a>5.2.5. Monitoring Reads and Writes to a File</h3></div></div></div><a id="idm46413326694176" class="indexterm"></a><a id="idm46413326897120" class="indexterm"></a><a id="idm46413323751680" class="indexterm"></a><a id="idm46413323174432" class="indexterm"></a><a id="idm46413322474544" class="indexterm"></a><a id="idm46413329298208" class="indexterm"></a><div class="para">This section describes how to monitor reads from and writes to a file in real time. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">inodewatch.stp</div> 3 ⁠</a>5.2.5. Monitoring Reads and Writes to a File</h3></div></div></div><a id="id4892" class="indexterm"></a><a id="id4895" class="indexterm"></a><a id="id4898" class="indexterm"></a><a id="id4901" class="indexterm"></a><a id="id4904" class="indexterm"></a><a id="id4907" class="indexterm"></a><div class="para">This section describes how to monitor reads from and writes to a file in real time. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">inodewatch.stp</div>
4<pre class="programlisting">#! /usr/bin/env stap 4<pre class="programlisting">#! /usr/bin/env stap
5 5
6probe vfs.{write,read} 6probe vfs.{write,read}
@@ -13,6 +13,6 @@ probe vfs.{write,read}
13} 13}
14</pre> 14</pre>
15</div><div class="para"><a class="xref" href="inodewatchsect.html#inodewatch">inodewatch.stp</a> takes the following information about the 15</div><div class="para"><a class="xref" href="inodewatchsect.html#inodewatch">inodewatch.stp</a> takes the following information about the
16file as arguments on the command line:</div><a id="idm46413321174640" class="indexterm"></a><a id="idm46413326051248" class="indexterm"></a><a id="idm46413318252608" class="indexterm"></a><a id="idm46413330983264" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">The file's major device number.</div></li><li class="listitem"><div class="para">The file's minor device number.</div></li><li class="listitem"><div class="para">The file's <code class="command">inode</code> number.</div></li></ul></div><a id="idm46413328930272" class="indexterm"></a><a id="idm46413326681200" class="indexterm"></a><a id="idm46413321921728" class="indexterm"></a><div class="para">To get this information, use <code class="command">stat -c '%D %i' <em class="replaceable">filename</em></code>, where <code class="command"><em class="replaceable">filename</em></code> is an absolute path.</div><div class="para">For instance: to monitor <code class="filename">/etc/crontab</code>, run <code class="command">stat -c '%D %i' /etc/crontab</code> first. This gives the following output:</div><pre class="screen">805 1078319</pre><a id="idm46413320312752" class="indexterm"></a><a id="idm46413330846320" class="indexterm"></a><a id="idm46413325240512" class="indexterm"></a><div class="para"><code class="computeroutput">805</code> is the base-16 (hexadecimal) device number. The lower two digits are the minor device number and the upper digits are the major number. <code class="computeroutput">1078319</code> is the <code class="command">inode</code> number. To start monitoring <code class="filename">/etc/crontab</code>, run <code class="command">stap inodewatch.stp 0x8 0x05 1078319</code> (The <code class="command">0x</code> prefixes indicate base-16 values.</div><div class="para">The output of this command contains the name and ID of any process performing a read/write, the function it is performing (that is, <code class="command">vfs_read</code> or <code class="command">vfs_write</code>), the device number (in hex format), and the <code class="command">inode</code> number. <a class="xref" href="inodewatchsect.html#inodewatchoutput">Example 5.10, “inodewatch.stp Sample Output”</a> contains the output of <code class="command">stap inodewatch.stp 0x8 0x05 1078319</code> (when <code class="command">cat /etc/crontab</code> is executed while the script is running) :</div><div class="example"><a id="inodewatchoutput"> 16file as arguments on the command line:</div><a id="id4920" class="indexterm"></a><a id="id4923" class="indexterm"></a><a id="id4926" class="indexterm"></a><a id="id4929" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">The file's major device number.</div></li><li class="listitem"><div class="para">The file's minor device number.</div></li><li class="listitem"><div class="para">The file's <code class="command">inode</code> number.</div></li></ul></div><a id="id4940" class="indexterm"></a><a id="id4943" class="indexterm"></a><a id="id4946" class="indexterm"></a><div class="para">To get this information, use <code class="command">stat -c '%D %i' <em class="replaceable">filename</em></code>, where <code class="command"><em class="replaceable">filename</em></code> is an absolute path.</div><div class="para">For instance: to monitor <code class="filename">/etc/crontab</code>, run <code class="command">stat -c '%D %i' /etc/crontab</code> first. This gives the following output:</div><pre class="screen">805 1078319</pre><a id="id4958" class="indexterm"></a><a id="id4961" class="indexterm"></a><a id="id4964" class="indexterm"></a><div class="para"><code class="computeroutput">805</code> is the base-16 (hexadecimal) device number. The lower two digits are the minor device number and the upper digits are the major number. <code class="computeroutput">1078319</code> is the <code class="command">inode</code> number. To start monitoring <code class="filename">/etc/crontab</code>, run <code class="command">stap inodewatch.stp 0x8 0x05 1078319</code> (The <code class="command">0x</code> prefixes indicate base-16 values.</div><div class="para">The output of this command contains the name and ID of any process performing a read/write, the function it is performing (that is, <code class="command">vfs_read</code> or <code class="command">vfs_write</code>), the device number (in hex format), and the <code class="command">inode</code> number. <a class="xref" href="inodewatchsect.html#inodewatchoutput">Example 5.10, “inodewatch.stp Sample Output”</a> contains the output of <code class="command">stap inodewatch.stp 0x8 0x05 1078319</code> (when <code class="command">cat /etc/crontab</code> is executed while the script is running) :</div><div class="example"><a id="inodewatchoutput">
17 ⁠</a><p class="title"><strong>Example 5.10. <a class="xref" href="inodewatchsect.html#inodewatch">inodewatch.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">cat(16437) vfs_read 0x800005/1078319 17 ⁠</a><p class="title"><strong>Example 5.10. <a class="xref" href="inodewatchsect.html#inodewatch">inodewatch.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">cat(16437) vfs_read 0x800005/1078319
18cat(16437) vfs_read 0x800005/1078319</pre></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="traceio2sect.html"><strong>Prev</strong>5.2.4. I/O Monitoring (By Device)</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="inodewatch2sect.html"><strong>Next</strong>5.2.6. Monitoring Changes to File Attributes</a></li></ul></body></html> \ No newline at end of file 18cat(16437) vfs_read 0x800005/1078319</pre></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="traceio2sect.html"><strong>Prev</strong>5.2.4. I/O Monitoring (By Device)</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="inodewatch2sect.html"><strong>Next</strong>5.2.6. Monitoring Changes to File Attributes</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/intro-systemtap-limitations.html b/SystemTap_Beginners_Guide/intro-systemtap-limitations.html
index b0ce9543..eb40120b 100644
--- a/SystemTap_Beginners_Guide/intro-systemtap-limitations.html
+++ b/SystemTap_Beginners_Guide/intro-systemtap-limitations.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">1.3. Limitations of SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="introduction.html" title="Chapter 1. Introduction" /><link rel="prev" href="intro-systemtap-vs-others.html" title="1.2. SystemTap Capabilities" /><link rel="next" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="intro-systemtap-vs-others.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="using-systemtap.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="intro-systemtap-limitations"> 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">1.3. Limitations of SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="introduction.html" title="Chapter 1. Introduction" /><link rel="prev" href="intro-systemtap-vs-others.html" title="1.2. SystemTap Capabilities" /><link rel="next" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="intro-systemtap-vs-others.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="using-systemtap.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="intro-systemtap-limitations">
3 ⁠</a>1.3. Limitations of SystemTap</h2></div></div></div><a id="idm46413330907504" class="indexterm"></a><a id="idm46413330905872" class="indexterm"></a><div class="para">The current iteration of SystemTap allows for a multitude of 3 ⁠</a>1.3. Limitations of SystemTap</h2></div></div></div><a id="id1565" class="indexterm"></a><a id="id1568" class="indexterm"></a><div class="para">The current iteration of SystemTap allows for a multitude of
4options when probing kernel-space events for a wide range of kernels. 4options when probing kernel-space events for a wide range of kernels.
5However, SystemTap's ability to probe user-space events depends 5However, SystemTap's ability to probe user-space events depends
6on kernel support (the Utrace mechanism) that is not available in many kernels. 6on kernel support (the Utrace mechanism) that is not available in many kernels.
diff --git a/SystemTap_Beginners_Guide/intro-systemtap-vs-others.html b/SystemTap_Beginners_Guide/intro-systemtap-vs-others.html
index 2ebfb808..2a776dda 100644
--- a/SystemTap_Beginners_Guide/intro-systemtap-vs-others.html
+++ b/SystemTap_Beginners_Guide/intro-systemtap-vs-others.html
@@ -1,3 +1,3 @@
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">1.2. SystemTap Capabilities</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="introduction.html" title="Chapter 1. Introduction" /><link rel="prev" href="introduction.html" title="Chapter 1. Introduction" /><link rel="next" href="intro-systemtap-limitations.html" title="1.3. Limitations of SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="introduction.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="intro-systemtap-limitations.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="intro-systemtap-vs-others"> 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">1.2. SystemTap Capabilities</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="introduction.html" title="Chapter 1. Introduction" /><link rel="prev" href="introduction.html" title="Chapter 1. Introduction" /><link rel="next" href="intro-systemtap-limitations.html" title="1.3. Limitations of SystemTap" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="introduction.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="intro-systemtap-limitations.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="intro-systemtap-vs-others">
3 ⁠</a>1.2. SystemTap Capabilities</h2></div></div></div><a id="idm46413336562688" class="indexterm"></a><a id="idm46413329044864" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="strong strong"><strong>Flexibility:</strong></span> SystemTap's framework allows users to develop simple scripts for investigating and monitoring a wide variety of kernel functions, system calls, and other events that occur in kernel space. As a result, SystemTap is not so much a <span class="emphasis"><em>tool</em></span> as it is a system that allows you to develop your own kernel-specific forensic and monitoring tools.</div></li><li class="listitem"><div class="para"><span class="strong strong"><strong>Ease of use</strong></span>: as mentioned earlier, SystemTap allows users to probe kernel-space events without having to resort to instrument, recompile, install, and reboot the kernel.</div></li></ul></div><div class="para">Most of the SystemTap scripts enumerated in <a class="xref" href="useful-systemtap-scripts.html">Chapter 5, <em>Useful SystemTap Scripts</em></a> demonstrate system forensics and monitoring capabilities not natively available with other similar tools (such as <code class="command">top</code>, <code class="command">oprofile</code>, or <code class="command">ps</code>). These scripts are provided to give readers extensive examples of the application of SystemTap and to educate them further on the capabilities they can employ when writing their own SystemTap scripts.</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="introduction.html"><strong>Prev</strong>Chapter 1. Introduction</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="intro-systemtap-limitations.html"><strong>Next</strong>1.3. Limitations of SystemTap</a></li></ul></body></html> \ No newline at end of file 3 ⁠</a>1.2. SystemTap Capabilities</h2></div></div></div><a id="id1352" class="indexterm"></a><a id="id1353" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="strong strong"><strong>Flexibility:</strong></span> SystemTap's framework allows users to develop simple scripts for investigating and monitoring a wide variety of kernel functions, system calls, and other events that occur in kernel space. As a result, SystemTap is not so much a <span class="emphasis"><em>tool</em></span> as it is a system that allows you to develop your own kernel-specific forensic and monitoring tools.</div></li><li class="listitem"><div class="para"><span class="strong strong"><strong>Ease of use</strong></span>: as mentioned earlier, SystemTap allows users to probe kernel-space events without having to resort to instrument, recompile, install, and reboot the kernel.</div></li></ul></div><div class="para">Most of the SystemTap scripts enumerated in <a class="xref" href="useful-systemtap-scripts.html">Chapter 5, <em>Useful SystemTap Scripts</em></a> demonstrate system forensics and monitoring capabilities not natively available with other similar tools (such as <code class="command">top</code>, <code class="command">oprofile</code>, or <code class="command">ps</code>). These scripts are provided to give readers extensive examples of the application of SystemTap and to educate them further on the capabilities they can employ when writing their own SystemTap scripts.</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="introduction.html"><strong>Prev</strong>Chapter 1. Introduction</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="intro-systemtap-limitations.html"><strong>Next</strong>1.3. Limitations of SystemTap</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/introduction.html b/SystemTap_Beginners_Guide/introduction.html
index 61fbb937..dacbe0ca 100644
--- a/SystemTap_Beginners_Guide/introduction.html
+++ b/SystemTap_Beginners_Guide/introduction.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">Chapter 1. Introduction</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="pr01s02.html" title="2. We Need Feedback!" /><link rel="next" href="intro-systemtap-vs-others.html" title="1.2. SystemTap Capabilities" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="pr01s02.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="intro-systemtap-vs-others.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="introduction"> 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">Chapter 1. Introduction</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="pr01s02.html" title="2. We Need Feedback!" /><link rel="next" href="intro-systemtap-vs-others.html" title="1.2. SystemTap Capabilities" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="pr01s02.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="intro-systemtap-vs-others.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="introduction">
3 ⁠</a>Chapter 1. Introduction</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="introduction.html#goals">1.1. Documentation Goals</a></span></dt><dt><span class="section"><a href="intro-systemtap-vs-others.html">1.2. SystemTap Capabilities</a></span></dt><dt><span class="section"><a href="intro-systemtap-limitations.html">1.3. Limitations of SystemTap</a></span></dt></dl></div><a id="idm46413329675120" class="indexterm"></a><a id="idm46413329662640" class="indexterm"></a><div class="para"> 3 ⁠</a>Chapter 1. Introduction</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="introduction.html#goals">1.1. Documentation Goals</a></span></dt><dt><span class="section"><a href="intro-systemtap-vs-others.html">1.2. SystemTap Capabilities</a></span></dt><dt><span class="section"><a href="intro-systemtap-limitations.html">1.3. Limitations of SystemTap</a></span></dt></dl></div><a id="id1346" class="indexterm"></a><a id="id1347" class="indexterm"></a><div class="para">
4 SystemTap is a tracing and probing tool that allows 4 SystemTap is a tracing and probing tool that allows
5 users to study and monitor the activities of the 5 users to study and monitor the activities of the
6 computer system (particularly, the kernel) in fine 6 computer system (particularly, the kernel) in fine
@@ -11,6 +11,6 @@
11 designed to provide more filtering and analysis 11 designed to provide more filtering and analysis
12 options for collected information. 12 options for collected information.
13 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="goals"> 13 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="goals">
14 ⁠</a>1.1. Documentation Goals</h2></div></div></div><a id="idm46413327081504" class="indexterm"></a><a id="idm46413329988480" class="indexterm"></a><a id="idm46413325717312" class="indexterm"></a><a id="idm46413327443264" class="indexterm"></a><div class="para">SystemTap provides the infrastructure to monitor the running Linux kernel for detailed analysis. This can assist administrators and developers in identifying the underlying cause of a bug or performance problem.</div><div class="para">Without SystemTap, monitoring the activity of a running kernel would require a tedious instrument, recompile, install, and reboot sequence. SystemTap is designed to eliminate this and allows users to gather the same information by running user-written SystemTap scripts.</div><div class="para">SystemTap was initially designed for users with intermediate to advanced knowledge of the kernel. As a consequence, it is less useful to administrators or developers with limited knowledge of and experience with the Linux kernel. Moreover, much of the existing SystemTap documentation is aimed at knowledgeable and experienced users, which makes learning the tool similarly difficult.</div><div class="para">To lower these barriers, the SystemTap Beginners Guide was written with the following goals:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">to introduce users to SystemTap, familiarize 14 ⁠</a>1.1. Documentation Goals</h2></div></div></div><a id="id1348" class="indexterm"></a><a id="id1349" class="indexterm"></a><a id="id1350" class="indexterm"></a><a id="id1351" class="indexterm"></a><div class="para">SystemTap provides the infrastructure to monitor the running Linux kernel for detailed analysis. This can assist administrators and developers in identifying the underlying cause of a bug or performance problem.</div><div class="para">Without SystemTap, monitoring the activity of a running kernel would require a tedious instrument, recompile, install, and reboot sequence. SystemTap is designed to eliminate this and allows users to gather the same information by running user-written SystemTap scripts.</div><div class="para">SystemTap was initially designed for users with intermediate to advanced knowledge of the kernel. As a consequence, it is less useful to administrators or developers with limited knowledge of and experience with the Linux kernel. Moreover, much of the existing SystemTap documentation is aimed at knowledgeable and experienced users, which makes learning the tool similarly difficult.</div><div class="para">To lower these barriers, the SystemTap Beginners Guide was written with the following goals:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">to introduce users to SystemTap, familiarize
15 them with its architecture, and provide setup 15 them with its architecture, and provide setup
16 instructions;</div></li><li class="listitem"><div class="para">to provide pre-written SystemTap scripts for monitoring detailed activity in different components of the system, along with instructions on how to run them and analyze their output.</div></li></ul></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="pr01s02.html"><strong>Prev</strong>2. We Need Feedback!</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="intro-systemtap-vs-others.html"><strong>Next</strong>1.2. SystemTap Capabilities</a></li></ul></body></html> \ No newline at end of file 16 instructions;</div></li><li class="listitem"><div class="para">to provide pre-written SystemTap scripts for monitoring detailed activity in different components of the system, along with instructions on how to run them and analyze their output.</div></li></ul></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="pr01s02.html"><strong>Prev</strong>2. We Need Feedback!</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="intro-systemtap-vs-others.html"><strong>Next</strong>1.2. SystemTap Capabilities</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/ioblktimesect.html b/SystemTap_Beginners_Guide/ioblktimesect.html
index 1f559fd7..fff54cea 100644
--- a/SystemTap_Beginners_Guide/ioblktimesect.html
+++ b/SystemTap_Beginners_Guide/ioblktimesect.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.2.7. Periodically Print I/O Block Time</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="inodewatch2sect.html" title="5.2.6. Monitoring Changes to File Attributes" /><link rel="next" href="mainsect-profiling.html" title="5.3. Profiling" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="inodewatch2sect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="mainsect-profiling.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="ioblktimesect"> 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.2.7. Periodically Print I/O Block Time</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="inodewatch2sect.html" title="5.2.6. Monitoring Changes to File Attributes" /><link rel="next" href="mainsect-profiling.html" title="5.3. Profiling" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="inodewatch2sect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="mainsect-profiling.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="ioblktimesect">
3 ⁠</a>5.2.7. Periodically Print I/O Block Time</h3></div></div></div><a id="idm46413326386656" class="indexterm"></a><a id="idm46413326695456" class="indexterm"></a><a id="idm46413325335392" class="indexterm"></a><a id="idm46413330261600" class="indexterm"></a><a id="idm46413322720400" class="indexterm"></a><div class="para"> 3 ⁠</a>5.2.7. Periodically Print I/O Block Time</h3></div></div></div><a id="id5032" class="indexterm"></a><a id="id5035" class="indexterm"></a><a id="id5038" class="indexterm"></a><a id="id5041" class="indexterm"></a><a id="id5044" class="indexterm"></a><div class="para">
4 This section describes how to track the amount of time each block I/O requests spends 4 This section describes how to track the amount of time each block I/O requests spends
5 waiting for completion. This is useful in determining whether there are too many 5 waiting for completion. This is useful in determining whether there are too many
6 outstanding block I/O operations at any given time. 6 outstanding block I/O operations at any given time.
diff --git a/SystemTap_Beginners_Guide/iotimesect.html b/SystemTap_Beginners_Guide/iotimesect.html
index 10140097..96802764 100644
--- a/SystemTap_Beginners_Guide/iotimesect.html
+++ b/SystemTap_Beginners_Guide/iotimesect.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.2.2. Tracking I/O Time For Each File Read or Write</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="mainsect-disk.html" title="5.2. Disk" /><link rel="next" href="traceiosect.html" title="5.2.3. Track Cumulative IO" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="mainsect-disk.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceiosect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="iotimesect"> 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.2.2. Tracking I/O Time For Each File Read or Write</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="mainsect-disk.html" title="5.2. Disk" /><link rel="next" href="traceiosect.html" title="5.2.3. Track Cumulative IO" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="mainsect-disk.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceiosect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="iotimesect">
3 ⁠</a>5.2.2. Tracking I/O Time For Each File Read or Write</h3></div></div></div><a id="idm46413326545952" class="indexterm"></a><a id="idm46413328028560" class="indexterm"></a><a id="idm46413329412160" class="indexterm"></a><a id="idm46413328964208" class="indexterm"></a><a id="idm46413318965792" class="indexterm"></a><div class="para"> 3 ⁠</a>5.2.2. Tracking I/O Time For Each File Read or Write</h3></div></div></div><a id="id4693" class="indexterm"></a><a id="id4696" class="indexterm"></a><a id="id4699" class="indexterm"></a><a id="id4702" class="indexterm"></a><a id="id4705" class="indexterm"></a><div class="para">
4 This section describes how to monitor the amount of time it takes for each process to read 4 This section describes how to monitor the amount of time it takes for each process to read
5 from or write to any file. This is useful to determine what files are slow to 5 from or write to any file. This is useful to determine what files are slow to
6 load on a given system. 6 load on a given system.
@@ -111,7 +111,7 @@ probe syscall.close {
111 to a file. For each file any system call accesses, <a class="xref" href="iotimesect.html#iotime">iotime.stp</a> counts the number 111 to a file. For each file any system call accesses, <a class="xref" href="iotimesect.html#iotime">iotime.stp</a> counts the number
112 of microseconds it takes for any reads or writes to finish and tracks the amount of data (in 112 of microseconds it takes for any reads or writes to finish and tracks the amount of data (in
113 bytes) read from or written to the file. 113 bytes) read from or written to the file.
114</div><a id="idm46413320310864" class="indexterm"></a><a id="idm46413328967520" class="indexterm"></a><a id="idm46413326440080" class="indexterm"></a><div class="para"> 114</div><a id="id4716" class="indexterm"></a><a id="id4720" class="indexterm"></a><a id="id4724" class="indexterm"></a><div class="para">
115 <a class="xref" href="iotimesect.html#iotime">iotime.stp</a> also uses the local variable <code class="command">$count</code> to track the 115 <a class="xref" href="iotimesect.html#iotime">iotime.stp</a> also uses the local variable <code class="command">$count</code> to track the
116 amount of data (in bytes) that any system call <span class="emphasis"><em>attempts</em></span> to read or 116 amount of data (in bytes) that any system call <span class="emphasis"><em>attempts</em></span> to read or
117 write. Note that <code class="command">$return</code> (as used in <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from 117 write. Note that <code class="command">$return</code> (as used in <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from
diff --git a/SystemTap_Beginners_Guide/ix01.html b/SystemTap_Beginners_Guide/ix01.html
index b04f389c..1df2aefe 100644
--- a/SystemTap_Beginners_Guide/ix01.html
+++ b/SystemTap_Beginners_Guide/ix01.html
@@ -1,3 +1,3 @@
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">Index</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="appe-Publican-Revision_History.html" title="Appendix A. Revision History" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="appe-Publican-Revision_History.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"></li></ul><div class="index"><div class="titlepage"><div><div><h1 class="title"><a id="idm46413335670576"> 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">Index</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="appe-Publican-Revision_History.html" title="Appendix A. Revision History" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="appe-Publican-Revision_History.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"></li></ul><div class="index"><div class="titlepage"><div><div><h1 class="title"><a id="id6069">
3 ⁠</a>Index</h1></div></div></div><div xmlns:xlink="http://www.w3.org/1999/xlink" class="index"><div class="indexdiv"><h3>Symbols</h3><dl><dt id="ientry-idm46413326440080">$count</dt><dd><dl><dt>sample usage</dt><dd><dl><dt>local variables, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324617760">$return</dt><dd><dl><dt>sample usage</dt><dd><dl><dt>local variables, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321414272">@avg (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328533296">@count (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413322753824">@max (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413322107408">@min (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330834560">@sum (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>A</h3><dl><dt id="ientry-idm46413326824192">adding values to statistical aggregates</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324926336">advantages of cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413321815168">aggregate element not found</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323039808">aggregates (statistical)</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt id="ientry-idm46413327473312">aggregation overflow</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328939824">algebraic formulas using arrays</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316522544">architecture notation, determining, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413326105856">architecture of SystemTap, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-idm46413318346528">array locals not supported</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324203424">array operations</dt><dd><dl><dt>assigning associated values, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associative arrays, <a class="indexterm" href="arrayoperators.html">Array Operations in SystemTap</a></dt><dt>clearing arrays/array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd><dt>computing for statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt>conditional statements, using arrays in, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt>deleting arrays and array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>incrementing associated values, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd><dt>multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>processing multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dd><dl><dt>cumulative virtual file system reads, tallying, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>iterations, processing elements in an array as, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>limiting the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>ordering the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>reading values from arrays, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>computing for timestamp deltas, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324804592">arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dd><dl><dt>(see also <a href="#ientry-idm46413329078912">associative arrays</a>)</dt></dl></dd><dt id="ientry-idm46413322849504">assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associating timestamps to process names</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318871152">associated values</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329597920">associating timestamps to process names</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329078912">associative arrays</dt><dd><dl><dt>introduction, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dd><dl><dt>associated values, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>example, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>index expression, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>key pairs, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>syntax, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>unique keys, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316430464">asynchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>B</h3><dl><dt id="ientry-idm46413316436608">begin</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413325080288">building instrumentation modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413329410032">building kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></div><div class="indexdiv"><h3>C</h3><dl><dt id="ientry-idm46413322095952">call graph tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413329044864">capabilities of SystemTap</dt><dd><dl><dt>Introduction, <a class="indexterm" href="intro-systemtap-vs-others.html">SystemTap Capabilities</a></dt></dl></dd><dt id="ientry-idm46413316704560">changes to file attributes, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-idm46413314878736">clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329012096">command-line arguments</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413325081696">compiling instrumentation/kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413326133856">components</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413327861392">computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330625504">computing for timestamp deltas</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318481872">conditional operators</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321330848">conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413317025568">CONFIG_HZ, computing for, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt id="ientry-idm46413328231936">contended user-space locks (futex contentions), identifying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-idm46413318695376">copy fault</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413314882112">count operator</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413325720416">counting function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-idm46413322423184">CPU ticks</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-idm46413321850736">cpu()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413318382960">cross-compiling, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413329408112">cross-instrumentation</dt><dd><dl><dt>advantages of, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>building kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>configuration</dt><dd><dl><dt>host system and target system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt>generating instrumentation from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>host system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>instrumentation module, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>target kernel, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>target system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413321863968">ctime()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413321562464">ctime(), example of usage</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413326029968">cumulative I/O, tracking</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-idm46413322197696">cumulative virtual file system reads, tallying</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>D</h3><dl><dt id="ientry-idm46413327658288">delete operator</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324884448">determining architecture notation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413327000944">determining the kernel version, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413330169632">determining time spent in kernel and user space</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-idm46413316596784">device I/O, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413330983264">device number of a file (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413330745344">disk I/O traffic, summarizing</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413325473472">division by 0</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329988480">documentation goals</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>E</h3><dl><dt id="ientry-idm46413322536512">embedded code in unprivileged script</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323580352">empty unique keys</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316443328">end</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413330574080">errors</dt><dd><dl><dt>parse/semantics error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd><dt>runtime errors/warnings, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326100096">event types</dt><dd><dl><dt>Understanding How SystemTap Works, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt></dl></dd><dt id="ientry-idm46413326191328">Events</dt><dd><dl><dt>asynchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>begin, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>end, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>examples of synchronous and asynchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>introduction, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>kernel.function("function"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>kernel.trace("tracepoint"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>module("module"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>synchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>syscall.system_call, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>timer events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>user-space, <a class="indexterm" href="userspace-probing.html#uevents">User-Space Events</a></dt><dt>vfs.file_operation, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>wildcards, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413326095008">events and handlers, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt id="ientry-idm46413316395344">events wildcards, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt id="ientry-idm46413321961328">example</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328815248">example of multiple command-line arguments</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413326200624">examples of synchronous and asynchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413328491424">examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt><dd><dl><dt>call graph tracing, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>CPU ticks, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>ctime(), example of usage, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>determining time spent in kernel and user space, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>futex (lock) contentions, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>futex system call, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>identifying contended user-space locks (futex contentions), <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>if/else conditionals, alternative syntax, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt><dt>inode number, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring changes to file attributes, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt><dt>monitoring device I/O, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>monitoring I/O block time, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt><dt>monitoring I/O time, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>monitoring incoming TCP connections, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt><dt>monitoring polling applications, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt><dt>monitoring reads and writes to a file, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring system calls, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>monitoring system calls (volume per process), <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt><dt>monitoring TCP packets, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt><dt>multiple command-line arguments, example of, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>net/socket.c, tracing functions from, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>network profiling, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt>stat -c, determining file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>stat -c, determining whole device number, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>summarizing disk I/O traffic, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>tallying function calls, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>thread_indent(), sample usage, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>timer.ms(), sample usage, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>timer.s(), sample usage, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>tracing functions called in network socket code, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>tracking cumulative I/O, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt><dt>trigger function, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>usrdev2kerndev(), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>whole device number (usage as a command-line argument), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413328018000">exceeded MAXACTION</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316755840">exceeded MAXNESTING</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328085584">exit()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413324759872">expected symbol/array index expression</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324581040">extracting data collected by statistical aggregates</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>F</h3><dl><dt id="ientry-idm46413320363600">feedback</dt><dd><dl><dt>contact information for this manual, <a class="indexterm" href="pr01s02.html">We Need Feedback!</a></dt></dl></dd><dt id="ientry-idm46413324034176">file attributes, monitoring changes to</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-idm46413318252608">file device number (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413323174432">file reads/writes, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413324346864">flight recorder mode, <a class="indexterm" href="using-usage.html#flight-recorder">SystemTap Flight Recorder Mode</a></dt><dd><dl><dt>file mode, <a class="indexterm" href="using-usage.html#file-flight-recorder">File Flight Recorder</a></dt><dt>in-memory mode, <a class="indexterm" href="using-usage.html#memory-flight-recorder">In-memory Flight Recorder</a></dt></dl></dd><dt id="ientry-idm46413329521680">for loops</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323064320">foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324293808">format</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326157632">format and syntax</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328107040">format specifiers</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413328100880">format strings</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413329032640">function call (unresolved)</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328729520">function calls (incoming/outgoing), tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413321930096">function calls, tallying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-idm46413326177984">functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dd><dl><dt>cpu(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>ctime(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>gettimeofday_s(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>pp(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd><dt>target(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>thread_indent(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>tid(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>uid(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413328084896">functions (used in handlers)</dt><dd><dl><dt>exit(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413329825872">functions called in network socket code, tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-idm46413330778224">futex (lock) contentions</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-idm46413322727120">futex contention, definition</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-idm46413323149568">futex contentions, identifying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-idm46413316599024">futex system call</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>G</h3><dl><dt id="ientry-idm46413321858240">gettimeofday_s()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413329386880">global</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413327443264">goals, documentation</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt></dl></dd><dt id="ientry-idm46413324365520">grammatical/typographical script error</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323805440">guru mode</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>H</h3><dl><dt id="ientry-idm46413328126640">handler functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt id="ientry-idm46413316466176">handlers</dt><dd><dl><dt>conditional statements, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dd><dl><dt>conditional operators, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>for loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>if/else, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>while loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd><dt>introduction, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dd><dl><dt>command-line arguments, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>global, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt>syntax and format, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dt>variable notations, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>variables, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd><dt>target variables, <a class="indexterm" href="targetvariables.html">Target Variables</a></dt></dl></dd><dt id="ientry-idm46413326096464">handlers and events, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413322637856">heaviest disk reads/writes, identifying</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413330922000">host system</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413316677248">host system and target system</dt><dd><dl><dt>cross-instrumentation</dt><dd><dl><dt>configuration, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>I</h3><dl><dt id="ientry-idm46413330261600">I/O block time, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-idm46413316730848">I/O monitoring (by device)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413328964208">I/O time, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-idm46413328972592">I/O traffic, summarizing</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413325051072">identifier type mismatch</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324671296">identifying contended user-space locks (futex contentions)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-idm46413328824384">identifying heaviest disk reads/writes</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413324836448">if/else</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413327297744">if/else conditionals, alternative syntax</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt></dl></dd><dt id="ientry-idm46413326912848">if/else statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt id="ientry-idm46413327941104">incoming TCP connections, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-idm46413314915488">incoming/outgoing function calls, tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413330550448">incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318483808">index expression</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323362496">initial testing, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt id="ientry-idm46413325240512">inode number</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413318353568">Installation</dt><dd><dl><dt>initial testing, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt>kernel information packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>kernel version, determining the, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>required packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>Setup and Installation, <a class="indexterm" href="using-systemtap.html#using-setup">Installation and Setup</a></dt><dt>systemtap package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt>systemtap-runtime package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt></dl></dd><dt id="ientry-idm46413329681904">instrumentation module</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413325079392">instrumentation modules from SystemTap scripts, building, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413323529008">integer extractors</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329675120">Introduction</dt><dd><dl><dt>capabilities of SystemTap, <a class="indexterm" href="intro-systemtap-vs-others.html">SystemTap Capabilities</a></dt><dt>documentation goals, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt><dt>goals, documentation, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt><dt>limitations of SystemTap, <a class="indexterm" href="intro-systemtap-limitations.html">Limitations of SystemTap</a></dt><dt>performance monitoring, <a class="indexterm" href="introduction.html">Introduction</a></dt></dl></dd><dt id="ientry-idm46413325471392">invalid division</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321289920">invalid values to variables/arrays</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329318992">iterations, processing elements in an array as</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>K</h3><dl><dt id="ientry-idm46413321754864">kernel and user space, determining time spent in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-idm46413318383200">kernel information packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413329409776">kernel modules from SystemTap scripts, building, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413327000640">kernel version, determining the, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413316387072">kernel.function("function")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413316405376">kernel.trace("tracepoint")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413325455104">key pairs</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>L</h3><dl><dt id="ientry-idm46413321605600">libdwfl failure</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330905872">limitations of SystemTap</dt><dd><dl><dt>Introduction, <a class="indexterm" href="intro-systemtap-limitations.html">Limitations of SystemTap</a></dt></dl></dd><dt id="ientry-idm46413318479472">limiting the output of foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323899808">local variables</dt><dd><dl><dt>name, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>sample usage</dt><dd><dl><dt>$count, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>$return, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>M</h3><dl><dt id="ientry-idm46413328020080">MAXACTION exceeded</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316757920">MAXNESTING exceeded</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321791936">membership (in array), testing for</dt><dd><dl><dt>conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316414560">module("module")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413325171728">monitoring changes to file attributes</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-idm46413317751664">monitoring cumulative I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-idm46413329270400">monitoring device I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413325335392">monitoring I/O block time</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-idm46413329412160">monitoring I/O time</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-idm46413322579776">monitoring incoming TCP connections</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-idm46413317066048">monitoring polling applications</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt></dl></dd><dt id="ientry-idm46413323751680">monitoring reads and writes to a file</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413329271648">monitoring system calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-idm46413318520128">monitoring system calls (volume per process)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt></dl></dd><dt id="ientry-idm46413318401808">monitoring TCP packets</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt></dl></dd><dt id="ientry-idm46413324159616">multiple array operations within the same probe</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326610528">multiple command-line arguments, example of</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413324137776">multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>N</h3><dl><dt id="ientry-idm46413323902816">name</dt><dd><dl><dt>local variables, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413330163040">net/socket.c, tracing functions from</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-idm46413326075360">network profiling</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd><dt id="ientry-idm46413316699088">network socket code, tracing functions called in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-idm46413336598640">network traffic, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd><dt id="ientry-idm46413316810464">no match for probe point</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329608208">non-global arrays</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323229744">number of errors: N, skipped probes: M</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>O</h3><dl><dt id="ientry-idm46413324201920">operations</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associative arrays, <a class="indexterm" href="arrayoperators.html">Array Operations in SystemTap</a></dt><dt>clearing arrays/array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd><dt>computing for statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt>conditional statements, using arrays in, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt>deleting arrays and array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>incrementing associated values, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd><dt>multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>processing multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dd><dl><dt>cumulative virtual file system reads, tallying, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>iterations, processing elements in an array as, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>limiting the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>ordering the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>reading values from arrays, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>computing for timestamp deltas, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323322064">options, stap</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413324707136">ordering the output of foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321958640">overflow of aggregation</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>P</h3><dl><dt id="ientry-idm46413318379280">packages required to run SystemTap, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413336529440">parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329662640">performance monitoring</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html">Introduction</a></dt></dl></dd><dt id="ientry-idm46413318465280">pointer dereference fault</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328821616">polling applications, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt></dl></dd><dt id="ientry-idm46413314865760">pp()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413328092288">printf()</dt><dd><dl><dt>format specifiers, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>format strings, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>syntax and format, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413317840720">printing I/O activity (cumulative)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-idm46413322720400">printing I/O block time (periodically)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-idm46413321676384">probe mismatch</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316808368">probe point (no match for)</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326145840">probes</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330709952">processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>cumulative virtual file system reads, tallying</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>limiting the output of foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>ordering the output of foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326082528">profiling the network</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>R</h3><dl><dt id="ientry-idm46413321527424">reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd><dt>computing for timestamp deltas</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413322474544">reads/writes to a file, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413318382208">required packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413318380928">RPMs required to run SystemTap, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413324402816">running scripts from standard input, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-idm46413330649824">running SystemTap scripts</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413316688160">runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>S</h3><dl><dt id="ientry-idm46413326073728">script examples</dt><dd><dl><dt>call graph tracing, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>CPU ticks, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>ctime(), example of usage, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>determining time spent in kernel and user space, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>futex (lock) contentions, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>futex system call, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>identifying contended user-space locks (futex contentions), <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>if/else conditionals, alternative syntax, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt><dt>inode number, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring changes to file attributes, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt><dt>monitoring device I/O, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>monitoring I/O block time, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt><dt>monitoring I/O time, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>monitoring incoming TCP connections, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt><dt>monitoring polling applications, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt><dt>monitoring reads and writes to a file, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring system calls, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>monitoring system calls (volume per process), <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt><dt>monitoring TCP packets, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt><dt>multiple command-line arguments, example of, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>net/socket.c, tracing functions from, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>network profiling, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt>stat -c, determining file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>stat -c, determining whole device number, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>summarizing disk I/O traffic, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>tallying function calls, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>thread_indent(), sample usage, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>timer.ms(), sample usage, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>timer.s(), sample usage, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>tracing functions called in network socket code, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>tracking cumulative I/O, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt><dt>trigger function, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>usrdev2kerndev(), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>whole device number (usage as a command-line argument), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413326125424">scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dd><dl><dt>components, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>events and handlers, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>format and syntax, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>functions, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>probes, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>statement blocks, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326111664">sessions, SystemTap, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-idm46413318357088">Setup and Installation, <a class="indexterm" href="using-systemtap.html#using-setup">Installation and Setup</a></dt><dt id="ientry-idm46413330702960">Stack backtrace</dt><dd><dl><dt>user-space, <a class="indexterm" href="ustack.html">User-Space Stack Backtraces</a></dt></dl></dd><dt id="ientry-idm46413322971168">standard input, running scripts from</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413329470304">stap</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413316722800">stap options, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-idm46413323337136">stapdev</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413323890368">staprun</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413316760352">stapusr</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413321921728">stat -c, determining file device number (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-idm46413321737440">stat -c, determining whole device number</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413326167840">statement blocks</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321374544">statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt id="ientry-idm46413317091008">summarizing disk I/O traffic</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-idm46413326195680">synchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413314894896">syntax</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326159680">syntax and format</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt></dl></dd><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326206848">syscall.system_call</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413330066656">system calls volume (per process), monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt></dl></dd><dt id="ientry-idm46413329895184">system calls, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-idm46413326106384">SystemTap architecture, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-idm46413314924864">SystemTap handlers</dt><dd><dl><dt>SystemTap handler constructs, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dd><dl><dt>syntax and format, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318368080">systemtap package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt id="ientry-idm46413328125408">SystemTap script functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt id="ientry-idm46413326126944">SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dd><dl><dt>components, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>events and handlers, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>format and syntax, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>functions, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>probes, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>statement blocks, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd><dt>useful examples, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413328903280">SystemTap scripts, how to run, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-idm46413326110384">SystemTap sessions, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-idm46413326040144">SystemTap statements</dt><dd><dl><dt>conditional statements, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dd><dl><dt>conditional operators, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>for loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>if/else, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>while loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd><dt>SystemTap handler constructs</dt><dd><dl><dt>command-line arguments, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>global, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt>variable notations, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>variables, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318370368">systemtap-runtime package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt id="ientry-idm46413328491168">systemtap-testsuite package</dt><dd><dl><dt>sample scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>T</h3><dl><dt id="ientry-idm46413321192144">tallying function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-idm46413321404336">tallying virtual file system reads (VFS reads)</dt><dd><dl><dt>incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321256512">Tapsets</dt><dd><dl><dt>definition of, <a class="indexterm" href="understanding-tapsets.html">Tapsets</a></dt></dl></dd><dt id="ientry-idm46413324909472">target kernel</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413328886880">target system</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413324059088">target system and host system</dt><dd><dl><dt>configuration, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-idm46413324237840">target variables, <a class="indexterm" href="targetvariables.html">Target Variables</a></dt><dd><dl><dt>pretty printing, <a class="indexterm" href="targetvariables.html#targetprettyprinting">Pretty Printing Target Variables</a></dt><dt>typecasting, <a class="indexterm" href="typecasting.html">Typecasting</a></dt><dt>user-space, <a class="indexterm" href="utargetvariable.html">Accessing User-Space Target Variables</a></dt><dt>variable availability, <a class="indexterm" href="targetavailable.html">Checking Target Variable Availability</a></dt></dl></dd><dt id="ientry-idm46413323512064">target()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413316793360">target-symbol expression, unresolved</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330823312">TCP connections (incoming), monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-idm46413314778368">TCP packets, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt></dl></dd><dt id="ientry-idm46413320302320">testing for array membership</dt><dd><dl><dt>conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323363024">testing, initial, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt id="ientry-idm46413322045344">thread_indent()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413328982224">thread_indent(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413321838400">tid()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413318965792">time of I/O </dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-idm46413325334224">time spent in kernel/user space, determining</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-idm46413316448304">timer events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413331028944">timer.ms(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-idm46413324618528">timer.s(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-idm46413322805760">timestamp deltas, computing for</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321342624">timestamps, association thereof to process names</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316404016">tracepoint, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt id="ientry-idm46413324939328">tracing call graph</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413322402768">tracing functions called in network socket code</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-idm46413326787792">tracing incoming/outgoing function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413321602640">tracking cumulative I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-idm46413331030128">trigger function</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-idm46413325053168">type mismatch for identifier</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324363136">typographical script error</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>U</h3><dl><dt id="ientry-idm46413321843632">uid()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-idm46413323341856">uname -m, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-idm46413327002400">uname -r, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-idm46413327459232">understainding SystemTap errors</dt><dd><dl><dt>runtime errors/warnings, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326203760">Understanding How SystemTap Works, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dd><dl><dt>architecture, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt>event types, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt>events and handlers, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt>SystemTap sessions, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt></dl></dd><dt id="ientry-idm46413328696384">understanding SystemTap errors</dt><dd><dl><dt>parse/semantics error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413314819136">unique keys</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413322534416">unprivileged script, embedded code in</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318843968">unresolved function call</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316795456">unresolved target-symbol expression</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413328549968">unresolved type for identifier</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413321200720">unsafe embedded code in unprivileged script</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324704992">Usage</dt><dd><dl><dt>options, stap, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>running SystemTap scripts, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>standard input, running scripts from, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stap, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stapdev, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>staprun, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stapusr, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-idm46413328491296">useful examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt><dt id="ientry-idm46413318398528">user and kernel space, determining time spent in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-idm46413321806352">using arrays in simple computations</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413318351392">Using SystemTap, <a class="indexterm" href="using-systemtap.html">Using SystemTap</a></dt><dt id="ientry-idm46413321249104">usrdev2kerndev()</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>V</h3><dl><dt id="ientry-idm46413322847920">values, assignment of</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt id="ientry-idm46413323000528">variable modified during 'foreach'</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413330796688">variable notations</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413324924704">variables</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413323900656">variables (local)</dt><dd><dl><dt>name, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>sample usage</dt><dd><dl><dt>$count, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>$return, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413329292768">VFS reads, tallying of</dt><dd><dl><dt>incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316375120">vfs.file_operation</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-idm46413328182192">virtual file system reads (cumulative), tallying</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413326854320">virtual file system reads (non-cumulative), tallying</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>W</h3><dl><dt id="ientry-idm46413323028528">while loops</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-idm46413316729344">whole device number (usage as a command-line argument)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-idm46413316394128">wildcards in events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt id="ientry-idm46413329298208">writes/reads to a file, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd></dl></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="appe-Publican-Revision_History.html"><strong>Prev</strong>Appendix A. Revision History</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li></ul></body></html> \ No newline at end of file 3 ⁠</a>Index</h1></div></div></div><div xmlns:xlink="http://www.w3.org/1999/xlink" class="index"><div class="indexdiv"><h3>Symbols</h3><dl><dt id="ientry-id4724">$count</dt><dd><dl><dt>sample usage</dt><dd><dl><dt>local variables, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd></dl></dd><dt id="ientry-id4678">$return</dt><dd><dl><dt>sample usage</dt><dd><dl><dt>local variables, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd><dt id="ientry-id4097">@avg (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id4009">@count (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id4077">@max (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id4057">@min (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id4033">@sum (integer extractor)</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>A</h3><dl><dt id="ientry-id3925">adding values to statistical aggregates</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id1781">advantages of cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id5873">aggregate element not found</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id3900">aggregates (statistical)</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt id="ientry-id5892">aggregation overflow</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id3500">algebraic formulas using arrays</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id1901">architecture notation, determining, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id2165">architecture of SystemTap, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-id5664">array locals not supported</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3403">array operations</dt><dd><dl><dt>assigning associated values, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associative arrays, <a class="indexterm" href="arrayoperators.html">Array Operations in SystemTap</a></dt><dt>clearing arrays/array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd><dt>computing for statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt>conditional statements, using arrays in, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt>deleting arrays and array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>incrementing associated values, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd><dt>multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>processing multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dd><dl><dt>cumulative virtual file system reads, tallying, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>iterations, processing elements in an array as, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>limiting the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>ordering the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>reading values from arrays, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>computing for timestamp deltas, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id3315">arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dd><dl><dt>(see also <a href="#ientry-id3318">associative arrays</a>)</dt></dl></dd><dt id="ientry-id3415">assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associating timestamps to process names</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-id3342">associated values</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id3449">associating timestamps to process names</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-id3318">associative arrays</dt><dd><dl><dt>introduction, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dd><dl><dt>associated values, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>example, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>index expression, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>key pairs, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>syntax, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt><dt>unique keys, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id2489">asynchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>B</h3><dl><dt id="ientry-id2503">begin</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id1763">building instrumentation modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id1759">building kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></div><div class="indexdiv"><h3>C</h3><dl><dt id="ientry-id5125">call graph tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id1353">capabilities of SystemTap</dt><dd><dl><dt>Introduction, <a class="indexterm" href="intro-systemtap-vs-others.html">SystemTap Capabilities</a></dt></dl></dd><dt id="ientry-id4996">changes to file attributes, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-id3759">clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-id3282">command-line arguments</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt></dl></dd></dl></dd><dt id="ientry-id1765">compiling instrumentation/kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id2216">components</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id3909">computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id3512">computing for timestamp deltas</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id3253">conditional operators</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id3843">conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id2912">CONFIG_HZ, computing for, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt id="ientry-id5398">contended user-space locks (futex contentions), identifying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-id5959">copy fault</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id3948">count operator</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id5085">counting function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-id5232">CPU ticks</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-id2713">cpu()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id1767">cross-compiling, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id1750">cross-instrumentation</dt><dd><dl><dt>advantages of, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>building kernel modules from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>configuration</dt><dd><dl><dt>host system and target system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt>generating instrumentation from SystemTap scripts, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>host system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>instrumentation module, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>target kernel, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt>target system, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id2737">ctime()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id4660">ctime(), example of usage</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id4775">cumulative I/O, tracking</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-id3675">cumulative virtual file system reads, tallying</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>D</h3><dl><dt id="ientry-id3777">delete operator</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-id1899">determining architecture notation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id1673">determining the kernel version, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id5208">determining time spent in kernel and user space</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-id4826">device I/O, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id4929">device number of a file (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id4605">disk I/O traffic, summarizing</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id5851">division by 0</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id1349">documentation goals</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>E</h3><dl><dt id="ientry-id5532">embedded code in unprivileged script</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3552">empty unique keys</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id2515">end</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id5464">errors</dt><dd><dl><dt>parse/semantics error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd><dt>runtime errors/warnings, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id2153">event types</dt><dd><dl><dt>Understanding How SystemTap Works, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt></dl></dd><dt id="ientry-id2333">Events</dt><dd><dl><dt>asynchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>begin, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>end, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>examples of synchronous and asynchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>introduction, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>kernel.function("function"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>kernel.trace("tracepoint"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>module("module"), <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>synchronous events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>syscall.system_call, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>timer events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>user-space, <a class="indexterm" href="userspace-probing.html#uevents">User-Space Events</a></dt><dt>vfs.file_operation, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt>wildcards, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id2143">events and handlers, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt id="ientry-id2423">events wildcards, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt id="ientry-id3385">example</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id5156">example of multiple command-line arguments</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id2352">examples of synchronous and asynchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id4293">examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt><dd><dl><dt>call graph tracing, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>CPU ticks, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>ctime(), example of usage, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>determining time spent in kernel and user space, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>futex (lock) contentions, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>futex system call, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>identifying contended user-space locks (futex contentions), <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>if/else conditionals, alternative syntax, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt><dt>inode number, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring changes to file attributes, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt><dt>monitoring device I/O, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>monitoring I/O block time, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt><dt>monitoring I/O time, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>monitoring incoming TCP connections, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt><dt>monitoring polling applications, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt><dt>monitoring reads and writes to a file, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring system calls, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>monitoring system calls (volume per process), <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt><dt>monitoring TCP packets, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt><dt>multiple command-line arguments, example of, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>net/socket.c, tracing functions from, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>network profiling, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt>stat -c, determining file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>stat -c, determining whole device number, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>summarizing disk I/O traffic, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>tallying function calls, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>thread_indent(), sample usage, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>timer.ms(), sample usage, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>timer.s(), sample usage, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>tracing functions called in network socket code, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>tracking cumulative I/O, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt><dt>trigger function, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>usrdev2kerndev(), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>whole device number (usage as a command-line argument), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id5940">exceeded MAXACTION</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id5918">exceeded MAXNESTING</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id2586">exit()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id5633">expected symbol/array index expression</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3979">extracting data collected by statistical aggregates</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>F</h3><dl><dt id="ientry-id1345">feedback</dt><dd><dl><dt>contact information for this manual, <a class="indexterm" href="pr01s02.html">We Need Feedback!</a></dt></dl></dd><dt id="ientry-id4999">file attributes, monitoring changes to</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-id4926">file device number (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id4901">file reads/writes, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id2087">flight recorder mode, <a class="indexterm" href="using-usage.html#flight-recorder">SystemTap Flight Recorder Mode</a></dt><dd><dl><dt>file mode, <a class="indexterm" href="using-usage.html#file-flight-recorder">File Flight Recorder</a></dt><dt>in-memory mode, <a class="indexterm" href="using-usage.html#memory-flight-recorder">In-memory Flight Recorder</a></dt></dl></dd><dt id="ientry-id3224">for loops</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id3649">foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-id3365">format</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id2266">format and syntax</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id2624">format specifiers</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id2611">format strings</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id5657">function call (unresolved)</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5131">function calls (incoming/outgoing), tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id5088">function calls, tallying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-id2307">functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dd><dl><dt>cpu(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>ctime(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>gettimeofday_s(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>pp(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd><dt>target(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>thread_indent(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>tid(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>uid(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id2582">functions (used in handlers)</dt><dd><dl><dt>exit(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id4396">functions called in network socket code, tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-id5416">futex (lock) contentions</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-id5407">futex contention, definition</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-id5404">futex contentions, identifying</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-id5427">futex system call</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>G</h3><dl><dt id="ientry-id2725">gettimeofday_s()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id2902">global</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-id1351">goals, documentation</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt></dl></dd><dt id="ientry-id5502">grammatical/typographical script error</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5559">guru mode</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>H</h3><dl><dt id="ientry-id2668">handler functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt id="ientry-id2568">handlers</dt><dd><dl><dt>conditional statements, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dd><dl><dt>conditional operators, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>for loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>if/else, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>while loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd><dt>introduction, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dd><dl><dt>command-line arguments, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>global, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt>syntax and format, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dt>variable notations, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>variables, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd><dt>target variables, <a class="indexterm" href="targetvariables.html">Target Variables</a></dt></dl></dd><dt id="ientry-id2145">handlers and events, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id4611">heaviest disk reads/writes, identifying</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id1811">host system</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id1844">host system and target system</dt><dd><dl><dt>cross-instrumentation</dt><dd><dl><dt>configuration, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>I</h3><dl><dt id="ientry-id5041">I/O block time, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-id4823">I/O monitoring (by device)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id4702">I/O time, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-id4608">I/O traffic, summarizing</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id5588">identifier type mismatch</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5395">identifying contended user-space locks (futex contentions)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt></dl></dd><dt id="ientry-id4617">identifying heaviest disk reads/writes</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id3148">if/else</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id4340">if/else conditionals, alternative syntax</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt></dl></dd><dt id="ientry-id3846">if/else statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt id="ientry-id4444">incoming TCP connections, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-id5128">incoming/outgoing function calls, tracing</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id3567">incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-id3350">index expression</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id1735">initial testing, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt id="ientry-id4964">inode number</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id1584">Installation</dt><dd><dl><dt>initial testing, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt>kernel information packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>kernel version, determining the, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>required packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt>Setup and Installation, <a class="indexterm" href="using-systemtap.html#using-setup">Installation and Setup</a></dt><dt>systemtap package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt>systemtap-runtime package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt></dl></dd><dt id="ientry-id1798">instrumentation module</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id1761">instrumentation modules from SystemTap scripts, building, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id3983">integer extractors</dt><dd><dl><dt>computing for statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd></dl></dd><dt id="ientry-id1346">Introduction</dt><dd><dl><dt>capabilities of SystemTap, <a class="indexterm" href="intro-systemtap-vs-others.html">SystemTap Capabilities</a></dt><dt>documentation goals, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt><dt>goals, documentation, <a class="indexterm" href="introduction.html#goals">Documentation Goals</a></dt><dt>limitations of SystemTap, <a class="indexterm" href="intro-systemtap-limitations.html">Limitations of SystemTap</a></dt><dt>performance monitoring, <a class="indexterm" href="introduction.html">Introduction</a></dt></dl></dd><dt id="ientry-id5855">invalid division</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id5486">invalid values to variables/arrays</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3661">iterations, processing elements in an array as</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>K</h3><dl><dt id="ientry-id5214">kernel and user space, determining time spent in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-id1645">kernel information packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id1757">kernel modules from SystemTap scripts, building, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id1671">kernel version, determining the, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id2405">kernel.function("function")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id2444">kernel.trace("tracepoint")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id3326">key pairs</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>L</h3><dl><dt id="ientry-id5793">libdwfl failure</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id1568">limitations of SystemTap</dt><dd><dl><dt>Introduction, <a class="indexterm" href="intro-systemtap-limitations.html">Limitations of SystemTap</a></dt></dl></dd><dt id="ientry-id3710">limiting the output of foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-id2797">local variables</dt><dd><dl><dt>name, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>sample usage</dt><dd><dl><dt>$count, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>$return, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>M</h3><dl><dt id="ientry-id5936">MAXACTION exceeded</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id5914">MAXNESTING exceeded</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id3876">membership (in array), testing for</dt><dd><dl><dt>conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id2462">module("module")</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id4993">monitoring changes to file attributes</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt></dl></dd><dt id="ientry-id4778">monitoring cumulative I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-id4820">monitoring device I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id5038">monitoring I/O block time</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-id4699">monitoring I/O time</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-id4438">monitoring incoming TCP connections</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-id5252">monitoring polling applications</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt></dl></dd><dt id="ientry-id4898">monitoring reads and writes to a file</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id5313">monitoring system calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-id5358">monitoring system calls (volume per process)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt></dl></dd><dt id="ientry-id4480">monitoring TCP packets</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt></dl></dd><dt id="ientry-id3821">multiple array operations within the same probe</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd><dt id="ientry-id5153">multiple command-line arguments, example of</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id3615">multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>N</h3><dl><dt id="ientry-id2803">name</dt><dd><dl><dt>local variables, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id4406">net/socket.c, tracing functions from</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-id4317">network profiling</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd><dt id="ientry-id4393">network socket code, tracing functions called in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-id4325">network traffic, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd><dt id="ientry-id5745">no match for probe point</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5680">non-global arrays</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5831">number of errors: N, skipped probes: M</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>O</h3><dl><dt id="ientry-id3406">operations</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>associating timestamps to process names, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt>associative arrays, <a class="indexterm" href="arrayoperators.html">Array Operations in SystemTap</a></dt><dt>clearing arrays/array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dd><dl><dt>delete operator, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>multiple array operations within the same probe, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>virtual file system reads (non-cumulative), tallying, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd><dt>computing for statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dd><dl><dt>@avg (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@count (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@max (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@min (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>@sum (integer extractor), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>adding values to statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>count (operator), <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt><dt>extracting data collected by statistical aggregates, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt>conditional statements, using arrays in, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt><dd><dl><dt>testing for array membership, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd><dt>deleting arrays and array elements, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt><dt>incrementing associated values, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt><dd><dl><dt>tallying virtual file system reads (VFS reads), <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd><dt>multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>processing multiple elements in an array, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dd><dl><dt>cumulative virtual file system reads, tallying, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>iterations, processing elements in an array as, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>limiting the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>ordering the output of foreach, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>reading values from arrays, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>computing for timestamp deltas, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id2019">options, stap</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id3726">ordering the output of foreach</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-id5896">overflow of aggregation</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>P</h3><dl><dt id="ientry-id1638">packages required to run SystemTap, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id5467">parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id1347">performance monitoring</dt><dd><dl><dt>Introduction, <a class="indexterm" href="introduction.html">Introduction</a></dt></dl></dd><dt id="ientry-id5978">pointer dereference fault</dt><dd><dl><dt>runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id5255">polling applications, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt></dl></dd><dt id="ientry-id2749">pp()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id2597">printf()</dt><dd><dl><dt>format specifiers, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>format strings, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>syntax and format, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id4781">printing I/O activity (cumulative)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-id5044">printing I/O block time (periodically)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt></dl></dd><dt id="ientry-id5722">probe mismatch</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5749">probe point (no match for)</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id2246">probes</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id3627">processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt><dt>cumulative virtual file system reads, tallying</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>limiting the output of foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd><dt>ordering the output of foreach</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-id4322">profiling the network</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>R</h3><dl><dt id="ientry-id3471">reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dd><dl><dt>empty unique keys, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt><dt>using arrays in simple computations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd><dt>computing for timestamp deltas</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id4904">reads/writes to a file, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id1636">required packages, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id1640">RPMs required to run SystemTap, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id2005">running scripts from standard input, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-id1939">running SystemTap scripts</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id5812">runtime errors/warnings</dt><dd><dl><dt>understainding SystemTap errors, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>S</h3><dl><dt id="ientry-id4311">script examples</dt><dd><dl><dt>call graph tracing, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>CPU ticks, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>ctime(), example of usage, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>determining time spent in kernel and user space, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt><dt>file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>futex (lock) contentions, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>futex system call, <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>identifying contended user-space locks (futex contentions), <a class="indexterm" href="futexcontentionsect.html">Identifying Contended User-Space Locks</a></dt><dt>if/else conditionals, alternative syntax, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a></dt><dt>inode number, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring changes to file attributes, <a class="indexterm" href="inodewatch2sect.html">Monitoring Changes to File Attributes</a></dt><dt>monitoring device I/O, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>monitoring I/O block time, <a class="indexterm" href="ioblktimesect.html">Periodically Print I/O Block Time</a></dt><dt>monitoring I/O time, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>monitoring incoming TCP connections, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt><dt>monitoring polling applications, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a></dt><dt>monitoring reads and writes to a file, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>monitoring system calls, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>monitoring system calls (volume per process), <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt><dt>monitoring TCP packets, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt><dt>multiple command-line arguments, example of, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>net/socket.c, tracing functions from, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>network profiling, <a class="indexterm" href="useful-systemtap-scripts.html#nettopsect">Network Profiling</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt>stat -c, determining file device number (integer format), <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt><dt>stat -c, determining whole device number, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>summarizing disk I/O traffic, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt><dt>tallying function calls, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>thread_indent(), sample usage, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>timer.ms(), sample usage, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt><dt>timer.s(), sample usage, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt><dt>tracing functions called in network socket code, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt><dt>tracking cumulative I/O, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt><dt>trigger function, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt><dt>usrdev2kerndev(), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt><dt>whole device number (usage as a command-line argument), <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id2201">scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dd><dl><dt>components, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>events and handlers, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>format and syntax, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>functions, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>probes, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>statement blocks, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id2177">sessions, SystemTap, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-id1587">Setup and Installation, <a class="indexterm" href="using-systemtap.html#using-setup">Installation and Setup</a></dt><dt id="ientry-id4264">Stack backtrace</dt><dd><dl><dt>user-space, <a class="indexterm" href="ustack.html">User-Space Stack Backtraces</a></dt></dl></dd><dt id="ientry-id2002">standard input, running scripts from</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id1945">stap</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id2023">stap options, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-id1969">stapdev</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id1951">staprun</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id1986">stapusr</dt><dd><dl><dt>Usage, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id4946">stat -c, determining file device number (integer format)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd><dt id="ientry-id4843">stat -c, determining whole device number</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id2289">statement blocks</dt><dd><dl><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id3897">statistical aggregates</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-aggregates.html">Computing for Statistical Aggregates</a></dt></dl></dd><dt id="ientry-id4601">summarizing disk I/O traffic</dt><dd><dl><dt>script examples, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a></dt></dl></dd><dt id="ientry-id2344">synchronous events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id3361">syntax</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id2270">syntax and format</dt><dd><dl><dt>printf(), <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt></dl></dd><dt>SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd></dl></dd><dt id="ientry-id2366">syscall.system_call</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id5361">system calls volume (per process), monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="syscallsbyprocpidsect.html">Tracking System Call Volume Per Process</a></dt></dl></dd><dt id="ientry-id5316">system calls, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-id2167">SystemTap architecture, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-id2850">SystemTap handlers</dt><dd><dl><dt>SystemTap handler constructs, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt><dd><dl><dt>syntax and format, <a class="indexterm" href="scriptconstructions.html">Basic SystemTap Handler Constructs</a></dt></dl></dd></dl></dd><dt id="ientry-id1610">systemtap package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt id="ientry-id2666">SystemTap script functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt id="ientry-id2204">SystemTap scripts</dt><dd><dl><dt>introduction, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dd><dl><dt>components, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>events and handlers, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>format and syntax, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>functions, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>probes, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt><dt>statement blocks, <a class="indexterm" href="scripts.html">SystemTap Scripts</a></dt></dl></dd><dt>useful examples, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id1957">SystemTap scripts, how to run, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt id="ientry-id2175">SystemTap sessions, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt id="ientry-id2873">SystemTap statements</dt><dd><dl><dt>conditional statements, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dd><dl><dt>conditional operators, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>for loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>if/else, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt><dt>while loops, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd><dt>SystemTap handler constructs</dt><dd><dl><dt>command-line arguments, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>global, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt><dt>variable notations, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt><dt>variables, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-id1615">systemtap-runtime package, <a class="indexterm" href="using-systemtap.html#installproper">Installing SystemTap</a></dt><dt id="ientry-id4297">systemtap-testsuite package</dt><dd><dl><dt>sample scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>T</h3><dl><dt id="ientry-id5082">tallying function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-id3594">tallying virtual file system reads (VFS reads)</dt><dd><dl><dt>incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-id4118">Tapsets</dt><dd><dl><dt>definition of, <a class="indexterm" href="understanding-tapsets.html">Tapsets</a></dt></dl></dd><dt id="ientry-id1832">target kernel</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id1822">target system</dt><dd><dl><dt>cross-instrumentation, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id1848">target system and host system</dt><dd><dl><dt>configuration, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt></dl></dd><dt id="ientry-id2939">target variables, <a class="indexterm" href="targetvariables.html">Target Variables</a></dt><dd><dl><dt>pretty printing, <a class="indexterm" href="targetvariables.html#targetprettyprinting">Pretty Printing Target Variables</a></dt><dt>typecasting, <a class="indexterm" href="typecasting.html">Typecasting</a></dt><dt>user-space, <a class="indexterm" href="utargetvariable.html">Accessing User-Space Target Variables</a></dt><dt>variable availability, <a class="indexterm" href="targetavailable.html">Checking Target Variable Availability</a></dt></dl></dd><dt id="ientry-id2816">target()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id5775">target-symbol expression, unresolved</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id4441">TCP connections (incoming), monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpconnectionssect">Monitoring Incoming TCP Connections</a></dt></dl></dd><dt id="ientry-id4483">TCP packets, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#tcpdumplikesect">Monitoring TCP Packets</a></dt></dl></dd><dt id="ientry-id3872">testing for array membership</dt><dd><dl><dt>conditional statements, using arrays in</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-conditionals.html">Using Arrays in Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id1737">testing, initial, <a class="indexterm" href="using-systemtap.html#testing">Initial Testing</a></dt><dt id="ientry-id2761">thread_indent()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id5185">thread_indent(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id2689">tid()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id4705">time of I/O </dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt></dl></dd><dt id="ientry-id5211">time spent in kernel/user space, determining</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-id2526">timer events</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id5106">timer.ms(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="mainsect-profiling.html#countcallssect">Counting Function Calls Made</a></dt></dl></dd><dt id="ientry-id5294">timer.s(), sample usage</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="timeoutssect.html">Monitoring Polling Applications</a>, <a class="indexterm" href="topsyssect.html">Tracking Most Frequently Used System Calls</a></dt></dl></dd><dt id="ientry-id3520">timestamp deltas, computing for</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id3453">timestamps, association thereof to process names</dt><dd><dl><dt>assigning associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd></dl></dd><dt id="ientry-id2437">tracepoint, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a>, <a class="indexterm" href="useful-systemtap-scripts.html#dropwatchsect">Monitoring Network Packets Drops in Kernel</a></dt><dt id="ientry-id5137">tracing call graph</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id4390">tracing functions called in network socket code</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html#sockettracesect">Tracing Functions Called in Network Socket Code</a></dt></dl></dd><dt id="ientry-id5134">tracing incoming/outgoing function calls</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id4772">tracking cumulative I/O</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd><dt id="ientry-id5167">trigger function</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="paracallgraph.html">Call Graph Tracing</a></dt></dl></dd><dt id="ientry-id5584">type mismatch for identifier</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5506">typographical script error</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>U</h3><dl><dt id="ientry-id2701">uid()</dt><dd><dl><dt>functions, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt></dl></dd><dt id="ientry-id1897">uname -m, <a class="indexterm" href="cross-compiling.html">Generating Instrumentation for Other Computers</a></dt><dt id="ientry-id1675">uname -r, <a class="indexterm" href="using-systemtap.html#install-kinfo">Installing Required Kernel Information Packages Manually</a></dt><dt id="ientry-id5806">understainding SystemTap errors</dt><dd><dl><dt>runtime errors/warnings, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dd><dl><dt>aggregate element not found, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>aggregation overflow, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>copy fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>division by 0, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXACTION exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>MAXNESTING exceeded, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>number of errors: N, skipped probes: M, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt><dt>pointer dereference fault, <a class="indexterm" href="runtimeerror.html">Runtime Errors and Warnings</a></dt></dl></dd></dl></dd><dt id="ientry-id2137">Understanding How SystemTap Works, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dd><dl><dt>architecture, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt><dt>event types, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt>events and handlers, <a class="indexterm" href="understanding-how-systemtap-works.html">Understanding How SystemTap Works</a></dt><dt>SystemTap sessions, <a class="indexterm" href="understanding-how-systemtap-works.html#understanding-architecture-tools">Architecture</a></dt></dl></dd><dt id="ientry-id5461">understanding SystemTap errors</dt><dd><dl><dt>parse/semantics error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dd><dl><dt>embedded code in unprivileged script, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>expected symbol/array index expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>grammatical/typographical script error, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>guru mode, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>invalid values to variables/arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>libdwfl failure, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>no match for probe point, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>non-global arrays, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>probe mismatch, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>type mismatch for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved function call, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved target-symbol expression, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>unresolved type for identifier, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt><dt>variable modified during 'foreach', <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3334">unique keys</dt><dd><dl><dt>introduction</dt><dd><dl><dt>arrays, <a class="indexterm" href="associativearrays.html">Associative Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id5536">unprivileged script, embedded code in</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5653">unresolved function call</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5771">unresolved target-symbol expression</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5614">unresolved type for identifier</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id5540">unsafe embedded code in unprivileged script</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id1936">Usage</dt><dd><dl><dt>options, stap, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>running SystemTap scripts, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>standard input, running scripts from, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stap, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stapdev, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>staprun, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt><dt>stapusr, <a class="indexterm" href="using-usage.html">Running SystemTap Scripts</a></dt></dl></dd><dt id="ientry-id4295">useful examples of SystemTap scripts, <a class="indexterm" href="useful-systemtap-scripts.html">Useful SystemTap Scripts</a></dt><dt id="ientry-id5217">user and kernel space, determining time spent in</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="threadtimessect.html">Determining Time Spent in Kernel and User Space</a></dt></dl></dd><dt id="ientry-id3496">using arrays in simple computations</dt><dd><dl><dt>reading values from arrays</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-readvalues.html">Reading Values From Arrays</a></dt></dl></dd></dl></dd><dt id="ientry-id1576">Using SystemTap, <a class="indexterm" href="using-systemtap.html">Using SystemTap</a></dt><dt id="ientry-id4867">usrdev2kerndev()</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd></dl></div><div class="indexdiv"><h3>V</h3><dl><dt id="ientry-id3418">values, assignment of</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayoperators.html#arrayops-assignvalue">Assigning an Associated Value</a></dt></dl></dd><dt id="ientry-id5699">variable modified during 'foreach'</dt><dd><dl><dt>parse/semantics error</dt><dd><dl><dt>understanding SystemTap errors, <a class="indexterm" href="errors.html#parsetype">Parse and Semantic Errors</a></dt></dl></dd></dl></dd><dt id="ientry-id3309">variable notations</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="commandlineargssect.html">Command-Line Arguments</a></dt></dl></dd></dl></dd><dt id="ientry-id2877">variables</dt><dd><dl><dt>SystemTap handler constructs</dt><dd><dl><dt>handlers, <a class="indexterm" href="scriptconstructions.html#variablesconstructs">Variables</a></dt></dl></dd></dl></dd><dt id="ientry-id2800">variables (local)</dt><dd><dl><dt>name, <a class="indexterm" href="systemtapscript-handler.html">SystemTap Handler/Body</a></dt><dt>sample usage</dt><dd><dl><dt>$count, <a class="indexterm" href="iotimesect.html">Tracking I/O Time For Each File Read or Write</a></dt><dt>$return, <a class="indexterm" href="mainsect-disk.html#disktop">Summarizing Disk Read/Write Traffic</a>, <a class="indexterm" href="traceiosect.html">Track Cumulative IO</a></dt></dl></dd></dl></dd><dt id="ientry-id3598">VFS reads, tallying of</dt><dd><dl><dt>incrementing associated values</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-increment.html">Incrementing Associated Values</a></dt></dl></dd></dl></dd><dt id="ientry-id2386">vfs.file_operation</dt><dd><dl><dt>Events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt></dl></dd><dt id="ientry-id3683">virtual file system reads (cumulative), tallying</dt><dd><dl><dt>processing multiple elements in an array</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-foreach.html">Processing Multiple Elements in an Array</a></dt></dl></dd></dl></dd><dt id="ientry-id3795">virtual file system reads (non-cumulative), tallying</dt><dd><dl><dt>clearing arrays/array elements</dt><dd><dl><dt>array operations, <a class="indexterm" href="arrayops-deleting.html">Clearing/Deleting Arrays and Array Elements</a></dt></dl></dd></dl></dd></dl></div><div class="indexdiv"><h3>W</h3><dl><dt id="ientry-id3196">while loops</dt><dd><dl><dt>conditional statements</dt><dd><dl><dt>handlers, <a class="indexterm" href="handlerconditionalstatements.html">Conditional Statements</a></dt></dl></dd></dl></dd><dt id="ientry-id4852">whole device number (usage as a command-line argument)</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="traceio2sect.html">I/O Monitoring (By Device)</a></dt></dl></dd><dt id="ientry-id2421">wildcards in events, <a class="indexterm" href="scripts.html#systemtapscript-events">Event</a></dt><dt id="ientry-id4907">writes/reads to a file, monitoring</dt><dd><dl><dt>examples of SystemTap scripts, <a class="indexterm" href="inodewatchsect.html">Monitoring Reads and Writes to a File</a></dt></dl></dd></dl></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="appe-Publican-Revision_History.html"><strong>Prev</strong>Appendix A. Revision History</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/mainsect-disk.html b/SystemTap_Beginners_Guide/mainsect-disk.html
index fe53c8c6..ff3cc021 100644
--- a/SystemTap_Beginners_Guide/mainsect-disk.html
+++ b/SystemTap_Beginners_Guide/mainsect-disk.html
@@ -1,7 +1,7 @@
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.2. Disk</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="next" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="useful-systemtap-scripts.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="iotimesect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-disk"> 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.2. Disk</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="next" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="useful-systemtap-scripts.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="iotimesect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-disk">
3 ⁠</a>5.2. Disk</h2></div></div></div><div class="para">The following sections showcase scripts that monitor disk and I/O activity.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="disktop"> 3 ⁠</a>5.2. Disk</h2></div></div></div><div class="para">The following sections showcase scripts that monitor disk and I/O activity.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="disktop">
4 ⁠</a>5.2.1. Summarizing Disk Read/Write Traffic</h3></div></div></div><a id="idm46413316979360" class="indexterm"></a><a id="idm46413327885904" class="indexterm"></a><a id="idm46413317091008" class="indexterm"></a><a id="idm46413330745344" class="indexterm"></a><a id="idm46413328972592" class="indexterm"></a><a id="idm46413322637856" class="indexterm"></a><a id="idm46413329833024" class="indexterm"></a><a id="idm46413328824384" class="indexterm"></a><div class="para">This section describes how to identify which processes are performing the heaviest disk reads/writes to the system.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">disktop.stp</div> 4 ⁠</a>5.2.1. Summarizing Disk Read/Write Traffic</h3></div></div></div><a id="id4595" class="indexterm"></a><a id="id4598" class="indexterm"></a><a id="id4601" class="indexterm"></a><a id="id4605" class="indexterm"></a><a id="id4608" class="indexterm"></a><a id="id4611" class="indexterm"></a><a id="id4614" class="indexterm"></a><a id="id4617" class="indexterm"></a><div class="para">This section describes how to identify which processes are performing the heaviest disk reads/writes to the system.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">disktop.stp</div>
5<pre class="programlisting">#!/usr/bin/env stap 5<pre class="programlisting">#!/usr/bin/env stap
6# 6#
7# Copyright (C) 2007 Oracle Corp. 7# Copyright (C) 2007 Oracle Corp.
@@ -74,7 +74,7 @@ probe end{
74 delete write_bytes 74 delete write_bytes
75} 75}
76</pre> 76</pre>
77</div><div class="para"><a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> outputs the top ten processes responsible for the heaviest reads/writes to disk. <a class="xref" href="mainsect-disk.html#disktopoutput">Example 5.6, “disktop.stp Sample Output”</a> displays a sample output for this script, and includes the following data per listed process:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><code class="computeroutput">UID</code> — user ID. A user ID of <code class="computeroutput">0</code> refers to the root user.</div></li><li class="listitem"><div class="para"><code class="computeroutput">PID</code> — the ID of the listed process.</div></li><li class="listitem"><div class="para"><code class="computeroutput">PPID</code> — the process ID of the listed process's <span class="emphasis"><em>parent process</em></span>.</div></li><li class="listitem"><div class="para"><code class="computeroutput">CMD</code> — the name of the listed process.</div></li><li class="listitem"><div class="para"><code class="computeroutput">DEVICE</code> — which storage device the listed process is reading from or writing to.</div></li><li class="listitem"><div class="para"><code class="computeroutput">T</code> — the type of action performed by the listed process; <code class="computeroutput">W</code> refers to write, while <code class="computeroutput">R</code> refers to read.</div></li><li class="listitem"><div class="para"><code class="computeroutput">BYTES</code> — the amount of data read to or written from disk.</div></li></ul></div><a id="idm46413325960944" class="indexterm"></a><a id="idm46413318530656" class="indexterm"></a><a id="idm46413321562464" class="indexterm"></a><div class="para">The time and date in the output of <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> is returned by the functions <code class="command">ctime()</code> and <code class="command">gettimeofday_s()</code>. <code class="command">ctime()</code> derives calendar time in terms of seconds passed since the Unix epoch (January 1, 1970). <code class="command">gettimeofday_s()</code> counts the <span class="emphasis"><em>actual</em></span> number of seconds since Unix epoch, which gives a fairly accurate human-readable timestamp for the output.</div><a id="idm46413324267648" class="indexterm"></a><a id="idm46413322279600" class="indexterm"></a><a id="idm46413324617760" class="indexterm"></a><div class="para"> 77</div><div class="para"><a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> outputs the top ten processes responsible for the heaviest reads/writes to disk. <a class="xref" href="mainsect-disk.html#disktopoutput">Example 5.6, “disktop.stp Sample Output”</a> displays a sample output for this script, and includes the following data per listed process:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><code class="computeroutput">UID</code> — user ID. A user ID of <code class="computeroutput">0</code> refers to the root user.</div></li><li class="listitem"><div class="para"><code class="computeroutput">PID</code> — the ID of the listed process.</div></li><li class="listitem"><div class="para"><code class="computeroutput">PPID</code> — the process ID of the listed process's <span class="emphasis"><em>parent process</em></span>.</div></li><li class="listitem"><div class="para"><code class="computeroutput">CMD</code> — the name of the listed process.</div></li><li class="listitem"><div class="para"><code class="computeroutput">DEVICE</code> — which storage device the listed process is reading from or writing to.</div></li><li class="listitem"><div class="para"><code class="computeroutput">T</code> — the type of action performed by the listed process; <code class="computeroutput">W</code> refers to write, while <code class="computeroutput">R</code> refers to read.</div></li><li class="listitem"><div class="para"><code class="computeroutput">BYTES</code> — the amount of data read to or written from disk.</div></li></ul></div><a id="id4654" class="indexterm"></a><a id="id4657" class="indexterm"></a><a id="id4660" class="indexterm"></a><div class="para">The time and date in the output of <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> is returned by the functions <code class="command">ctime()</code> and <code class="command">gettimeofday_s()</code>. <code class="command">ctime()</code> derives calendar time in terms of seconds passed since the Unix epoch (January 1, 1970). <code class="command">gettimeofday_s()</code> counts the <span class="emphasis"><em>actual</em></span> number of seconds since Unix epoch, which gives a fairly accurate human-readable timestamp for the output.</div><a id="id4670" class="indexterm"></a><a id="id4674" class="indexterm"></a><a id="id4678" class="indexterm"></a><div class="para">
78 In this script, the <code class="command">$return</code> is a local variable that stores the 78 In this script, the <code class="command">$return</code> is a local variable that stores the
79 actual number of bytes each process reads or writes from the virtual file system. 79 actual number of bytes each process reads or writes from the virtual file system.
80 <code class="command">$return</code> can only be used in return probes (for example, 80 <code class="command">$return</code> can only be used in return probes (for example,
diff --git a/SystemTap_Beginners_Guide/mainsect-profiling.html b/SystemTap_Beginners_Guide/mainsect-profiling.html
index 5b5a53a6..9850ed81 100644
--- a/SystemTap_Beginners_Guide/mainsect-profiling.html
+++ b/SystemTap_Beginners_Guide/mainsect-profiling.html
@@ -1,7 +1,7 @@
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. Profiling</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="ioblktimesect.html" title="5.2.7. Periodically Print I/O Block Time" /><link rel="next" href="paracallgraph.html" title="5.3.2. Call Graph Tracing" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="ioblktimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="paracallgraph.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-profiling"> 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. Profiling</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /><link rel="prev" href="ioblktimesect.html" title="5.2.7. Periodically Print I/O Block Time" /><link rel="next" href="paracallgraph.html" title="5.3.2. Call Graph Tracing" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="ioblktimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="paracallgraph.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-profiling">
3 ⁠</a>5.3. Profiling</h2></div></div></div><div class="para">The following sections showcase scripts that profile kernel activity by monitoring function calls.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="countcallssect"> 3 ⁠</a>5.3. Profiling</h2></div></div></div><div class="para">The following sections showcase scripts that profile kernel activity by monitoring function calls.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="countcallssect">
4 ⁠</a>5.3.1. Counting Function Calls Made</h3></div></div></div><a id="idm46413323517568" class="indexterm"></a><a id="idm46413323111920" class="indexterm"></a><a id="idm46413321192144" class="indexterm"></a><a id="idm46413325720416" class="indexterm"></a><a id="idm46413321930096" class="indexterm"></a><div class="para">This section describes how to identify how many times the system called a specific kernel function in a 30-second sample. Depending on the use of wildcards, you can also use this script to target multiple kernel functions.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">functioncallcount.stp</div> 4 ⁠</a>5.3.1. Counting Function Calls Made</h3></div></div></div><a id="id5076" class="indexterm"></a><a id="id5079" class="indexterm"></a><a id="id5082" class="indexterm"></a><a id="id5085" class="indexterm"></a><a id="id5088" class="indexterm"></a><div class="para">This section describes how to identify how many times the system called a specific kernel function in a 30-second sample. Depending on the use of wildcards, you can also use this script to target multiple kernel functions.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">functioncallcount.stp</div>
5<pre class="programlisting">#! /usr/bin/env stap 5<pre class="programlisting">#! /usr/bin/env stap
6# The following line command will probe all the functions 6# The following line command will probe all the functions
7# in kernel's memory management code: 7# in kernel's memory management code:
@@ -21,7 +21,7 @@ probe end {
21 exit() 21 exit()
22} 22}
23</pre> 23</pre>
24</div><div class="para"><a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> takes the targeted kernel function as an argument. The argument supports wildcards, which enables you to target multiple kernel functions up to a certain extent.</div><a id="idm46413330374192" class="indexterm"></a><a id="idm46413322334528" class="indexterm"></a><a id="idm46413331028944" class="indexterm"></a><div class="para">The output of <a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> contains the name of the function called and how many times it was called during the sample time (in alphabetical order). <a class="xref" href="mainsect-profiling.html#countcallsoutput">Example 5.13, “functioncallcount.stp Sample Output”</a> contains an excerpt from the output of <code class="command">stap functioncallcount.stp "*@mm/*.c"</code>:</div><div class="example"><a id="countcallsoutput"> 24</div><div class="para"><a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> takes the targeted kernel function as an argument. The argument supports wildcards, which enables you to target multiple kernel functions up to a certain extent.</div><a id="id5100" class="indexterm"></a><a id="id5103" class="indexterm"></a><a id="id5106" class="indexterm"></a><div class="para">The output of <a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> contains the name of the function called and how many times it was called during the sample time (in alphabetical order). <a class="xref" href="mainsect-profiling.html#countcallsoutput">Example 5.13, “functioncallcount.stp Sample Output”</a> contains an excerpt from the output of <code class="command">stap functioncallcount.stp "*@mm/*.c"</code>:</div><div class="example"><a id="countcallsoutput">
25 ⁠</a><p class="title"><strong>Example 5.13. <a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...] 25 ⁠</a><p class="title"><strong>Example 5.13. <a class="xref" href="mainsect-profiling.html#countcalls">functioncallcount.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...]
26__vma_link 97 26__vma_link 97
27__vma_link_file 66 27__vma_link_file 66
diff --git a/SystemTap_Beginners_Guide/paracallgraph.html b/SystemTap_Beginners_Guide/paracallgraph.html
index 39ef2cb0..8f780759 100644
--- a/SystemTap_Beginners_Guide/paracallgraph.html
+++ b/SystemTap_Beginners_Guide/paracallgraph.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.2. Call Graph Tracing</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="mainsect-profiling.html" title="5.3. Profiling" /><link rel="next" href="threadtimessect.html" title="5.3.3. Determining Time Spent in Kernel and User Space" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="mainsect-profiling.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="threadtimessect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="paracallgraph"> 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.2. Call Graph Tracing</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="mainsect-profiling.html" title="5.3. Profiling" /><link rel="next" href="threadtimessect.html" title="5.3.3. Determining Time Spent in Kernel and User Space" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="mainsect-profiling.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="threadtimessect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="paracallgraph">
3 ⁠</a>5.3.2. Call Graph Tracing</h3></div></div></div><a id="idm46413322814208" class="indexterm"></a><a id="idm46413316474224" class="indexterm"></a><a id="idm46413322095952" class="indexterm"></a><a id="idm46413314915488" class="indexterm"></a><a id="idm46413328729520" class="indexterm"></a><a id="idm46413326787792" class="indexterm"></a><a id="idm46413324939328" class="indexterm"></a><div class="para">This section describes how to trace incoming and outgoing function calls. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">para-callgraph.stp</div> 3 ⁠</a>5.3.2. Call Graph Tracing</h3></div></div></div><a id="id5119" class="indexterm"></a><a id="id5122" class="indexterm"></a><a id="id5125" class="indexterm"></a><a id="id5128" class="indexterm"></a><a id="id5131" class="indexterm"></a><a id="id5134" class="indexterm"></a><a id="id5137" class="indexterm"></a><div class="para">This section describes how to trace incoming and outgoing function calls. </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">para-callgraph.stp</div>
4<pre class="programlisting">#! /usr/bin/env stap 4<pre class="programlisting">#! /usr/bin/env stap
5 5
6function trace(entry_p, extra) { 6function trace(entry_p, extra) {
@@ -26,14 +26,14 @@ probe $2.return {
26probe $1.call { trace(1, $$parms) } 26probe $1.call { trace(1, $$parms) }
27probe $1.return { trace(-1, $$return) } 27probe $1.return { trace(-1, $$return) }
28</pre> 28</pre>
29</div><a id="idm46413325262272" class="indexterm"></a><a id="idm46413325650960" class="indexterm"></a><a id="idm46413326610528" class="indexterm"></a><a id="idm46413328815248" class="indexterm"></a><div class="para"><a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> takes two command-line arguments:</div><a id="idm46413323663152" class="indexterm"></a><a id="idm46413323921408" class="indexterm"></a><a id="idm46413331030128" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"> 29</div><a id="id5147" class="indexterm"></a><a id="id5150" class="indexterm"></a><a id="id5153" class="indexterm"></a><a id="id5156" class="indexterm"></a><div class="para"><a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> takes two command-line arguments:</div><a id="id5161" class="indexterm"></a><a id="id5164" class="indexterm"></a><a id="id5167" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
30 The function/s whose entry/exit call you'd like to trace 30 The function/s whose entry/exit call you'd like to trace
31 (<code class="command">$1</code>). 31 (<code class="command">$1</code>).
32 </div></li><li class="listitem"><div class="para"> 32 </div></li><li class="listitem"><div class="para">
33 A second optional <em class="firstterm">trigger function</em> (<code class="command">$2</code>), which 33 A second optional <em class="firstterm">trigger function</em> (<code class="command">$2</code>), which
34 enables or disables tracing on a per-thread basis. Tracing in each thread 34 enables or disables tracing on a per-thread basis. Tracing in each thread
35 will continue as long as the trigger function has not exited yet. 35 will continue as long as the trigger function has not exited yet.
36 </div></li></ul></div><a id="idm46413326077024" class="indexterm"></a><a id="idm46413322114336" class="indexterm"></a><a id="idm46413328982224" class="indexterm"></a><div class="para"><a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> uses <code class="command">thread_indent()</code>; as such, its output contains the timestamp, process name, and thread ID of <code class="command">$1</code> (that is, the probe function you are tracing). For more information about <code class="command">thread_indent()</code>, refer to its entry in <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a>.</div><div class="para">The following example contains an excerpt from the output 36 </div></li></ul></div><a id="id5179" class="indexterm"></a><a id="id5182" class="indexterm"></a><a id="id5185" class="indexterm"></a><div class="para"><a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> uses <code class="command">thread_indent()</code>; as such, its output contains the timestamp, process name, and thread ID of <code class="command">$1</code> (that is, the probe function you are tracing). For more information about <code class="command">thread_indent()</code>, refer to its entry in <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a>.</div><div class="para">The following example contains an excerpt from the output
37for <code class="command">stap para-callgraph.stp 'kernel.function("*@fs/*.c")' 'kernel.function("sys_read")'</code>:</div><div class="example"><a id="paracallgraphoutput"> 37for <code class="command">stap para-callgraph.stp 'kernel.function("*@fs/*.c")' 'kernel.function("sys_read")'</code>:</div><div class="example"><a id="paracallgraphoutput">
38 ⁠</a><p class="title"><strong>Example 5.14. <a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...] 38 ⁠</a><p class="title"><strong>Example 5.14. <a class="xref" href="paracallgraph.html#scriptcallgraph">para-callgraph.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...]
39 267 gnome-terminal(2921): &lt;-do_sync_read return=0xfffffffffffffff5 39 267 gnome-terminal(2921): &lt;-do_sync_read return=0xfffffffffffffff5
diff --git a/SystemTap_Beginners_Guide/pr01s02.html b/SystemTap_Beginners_Guide/pr01s02.html
index 13e834b5..396a52e2 100644
--- a/SystemTap_Beginners_Guide/pr01s02.html
+++ b/SystemTap_Beginners_Guide/pr01s02.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">2. We Need Feedback!</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /><link rel="prev" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /><link rel="next" href="introduction.html" title="Chapter 1. Introduction" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="SystemTap_Beginners_Guide-Preface.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="introduction.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="idm46413322614944"> 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">2. We Need Feedback!</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /><link rel="prev" href="SystemTap_Beginners_Guide-Preface.html" title="Preface" /><link rel="next" href="introduction.html" title="Chapter 1. Introduction" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="SystemTap_Beginners_Guide-Preface.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="introduction.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="id1344">
3 ⁠</a>2. We Need Feedback!</h2></div></div></div><a id="idm46413320363600" class="indexterm"></a><div class="para"> 3 ⁠</a>2. We Need Feedback!</h2></div></div></div><a id="id1345" class="indexterm"></a><div class="para">
4 If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! 4 If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you!
5Please submit a report in Bugzilla: 5Please submit a report in Bugzilla:
6<a href="http://sourceware.org/bugzilla/">http://sourceware.org/bugzilla/</a> 6<a href="http://sourceware.org/bugzilla/">http://sourceware.org/bugzilla/</a>
diff --git a/SystemTap_Beginners_Guide/runtimeerror.html b/SystemTap_Beginners_Guide/runtimeerror.html
index 17d8e8d3..42acb994 100644
--- a/SystemTap_Beginners_Guide/runtimeerror.html
+++ b/SystemTap_Beginners_Guide/runtimeerror.html
@@ -1,42 +1,42 @@
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">6.2. Runtime Errors and Warnings</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /><link rel="prev" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /><link rel="next" href="references.html" title="Chapter 7. References" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="errors.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="references.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="runtimeerror"> 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">6.2. Runtime Errors and Warnings</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /><link rel="prev" href="errors.html" title="Chapter 6. Understanding SystemTap Errors" /><link rel="next" href="references.html" title="Chapter 7. References" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="errors.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="references.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="runtimeerror">
3 ⁠</a>6.2. Runtime Errors and Warnings</h2></div></div></div><a id="idm46413327459232" class="indexterm"></a><a id="idm46413316689776" class="indexterm"></a><a id="idm46413316688160" class="indexterm"></a><div class="para"> 3 ⁠</a>6.2. Runtime Errors and Warnings</h2></div></div></div><a id="id5806" class="indexterm"></a><a id="id5809" class="indexterm"></a><a id="id5812" class="indexterm"></a><div class="para">
4 Runtime errors and warnings occur when the SystemTap 4 Runtime errors and warnings occur when the SystemTap
5 instrumentation has been installed and is collecting data on 5 instrumentation has been installed and is collecting data on
6 the system. 6 the system.
7 </div><h3><a id="idm46413316685968"> 7 </div><h3><a id="id5816">
8 ⁠</a>WARNING: Number of errors: <em class="replaceable">N</em>, skipped probes: <em class="replaceable">M</em></h3><a id="idm46413327105584" class="indexterm"></a><a id="idm46413327103536" class="indexterm"></a><a id="idm46413323231840" class="indexterm"></a><a id="idm46413323229744" class="indexterm"></a><div class="para"> 8 ⁠</a>WARNING: Number of errors: <em class="replaceable">N</em>, skipped probes: <em class="replaceable">M</em></h3><a id="id5819" class="indexterm"></a><a id="id5823" class="indexterm"></a><a id="id5827" class="indexterm"></a><a id="id5831" class="indexterm"></a><div class="para">
9 Errors and/or skipped probes occurred during this run. Both 9 Errors and/or skipped probes occurred during this run. Both
10 <em class="replaceable">N</em> and <em class="replaceable">M</em> are 10 <em class="replaceable">N</em> and <em class="replaceable">M</em> are
11 the counts of the number of probes that were not executed due to 11 the counts of the number of probes that were not executed due to
12 conditions such as too much time required to execute event handlers over 12 conditions such as too much time required to execute event handlers over
13 an interval of time. 13 an interval of time.
14</div><h3><a id="idm46413320329088"> 14</div><h3><a id="id5838">
15 ⁠</a>division by 0</h3><a id="idm46413320328032" class="indexterm"></a><a id="idm46413320325952" class="indexterm"></a><a id="idm46413325475552" class="indexterm"></a><a id="idm46413325473472" class="indexterm"></a><a id="idm46413325471392" class="indexterm"></a><div class="para"> 15 ⁠</a>division by 0</h3><a id="id5839" class="indexterm"></a><a id="id5843" class="indexterm"></a><a id="id5847" class="indexterm"></a><a id="id5851" class="indexterm"></a><a id="id5855" class="indexterm"></a><div class="para">
16 The script code performed an invalid division. 16 The script code performed an invalid division.
17</div><h3><a id="idm46413322099600"> 17</div><h3><a id="id5860">
18 ⁠</a>aggregate element not found</h3><a id="idm46413322098576" class="indexterm"></a><a id="idm46413322096480" class="indexterm"></a><a id="idm46413321817264" class="indexterm"></a><a id="idm46413321815168" class="indexterm"></a><div class="para"> 18 ⁠</a>aggregate element not found</h3><a id="id5861" class="indexterm"></a><a id="id5865" class="indexterm"></a><a id="id5869" class="indexterm"></a><a id="id5873" class="indexterm"></a><div class="para">
19 A statistics extractor function other than <code class="command">@count</code> 19 A statistics extractor function other than <code class="command">@count</code>
20 was invoked on an aggregate that has not had any values accumulated yet. 20 was invoked on an aggregate that has not had any values accumulated yet.
21 This is similar to a division by zero. 21 This is similar to a division by zero.
22</div><h3><a id="idm46413321424256"> 22</div><h3><a id="id5879">
23 ⁠</a>aggregation overflow</h3><a id="idm46413321423248" class="indexterm"></a><a id="idm46413327477456" class="indexterm"></a><a id="idm46413327475392" class="indexterm"></a><a id="idm46413327473312" class="indexterm"></a><a id="idm46413321958640" class="indexterm"></a><div class="para"> 23 ⁠</a>aggregation overflow</h3><a id="id5880" class="indexterm"></a><a id="id5884" class="indexterm"></a><a id="id5888" class="indexterm"></a><a id="id5892" class="indexterm"></a><a id="id5896" class="indexterm"></a><div class="para">
24An array containing aggregate values contains too many distinct key pairs at this time. 24An array containing aggregate values contains too many distinct key pairs at this time.
25</div><h3><a id="idm46413321955616"> 25</div><h3><a id="id5901">
26 ⁠</a>MAXNESTING exceeded</h3><a id="idm46413321954896" class="indexterm"></a><a id="idm46413328962592" class="indexterm"></a><a id="idm46413328960528" class="indexterm"></a><a id="idm46413316757920" class="indexterm"></a><a id="idm46413316755840" class="indexterm"></a><div class="para"> 26 ⁠</a>MAXNESTING exceeded</h3><a id="id5902" class="indexterm"></a><a id="id5906" class="indexterm"></a><a id="id5910" class="indexterm"></a><a id="id5914" class="indexterm"></a><a id="id5918" class="indexterm"></a><div class="para">
27 Too many levels of function call nesting were attempted. 27 Too many levels of function call nesting were attempted.
28 The default nesting of function calls allowed is 10. 28 The default nesting of function calls allowed is 10.
29</div><h3><a id="idm46413316753216"> 29</div><h3><a id="id5923">
30 ⁠</a>MAXACTION exceeded</h3><a id="idm46413325176592" class="indexterm"></a><a id="idm46413325174560" class="indexterm"></a><a id="idm46413325172496" class="indexterm"></a><a id="idm46413328020080" class="indexterm"></a><a id="idm46413328018000" class="indexterm"></a><div class="para"> 30 ⁠</a>MAXACTION exceeded</h3><a id="id5924" class="indexterm"></a><a id="id5928" class="indexterm"></a><a id="id5932" class="indexterm"></a><a id="id5936" class="indexterm"></a><a id="id5940" class="indexterm"></a><div class="para">
31 The probe handler attempted to execute too many statements in the 31 The probe handler attempted to execute too many statements in the
32 probe handler. The default number of actions allowed in a probe handler 32 probe handler. The default number of actions allowed in a probe handler
33 is 1000. 33 is 1000.
34</div><h3><a id="idm46413327868288"> 34</div><h3><a id="id5945">
35 ⁠</a>kernel/user string copy fault at <em class="replaceable">ADDR</em></h3><a id="idm46413327866928" class="indexterm"></a><a id="idm46413327864848" class="indexterm"></a><a id="idm46413318697456" class="indexterm"></a><a id="idm46413318695376" class="indexterm"></a><div class="para"> 35 ⁠</a>kernel/user string copy fault at <em class="replaceable">ADDR</em></h3><a id="id5947" class="indexterm"></a><a id="id5951" class="indexterm"></a><a id="id5955" class="indexterm"></a><a id="id5959" class="indexterm"></a><div class="para">
36 The probe handler attempted to copy a string from kernel or 36 The probe handler attempted to copy a string from kernel or
37 user space at an invalid address (<em class="replaceable">ADDR</em>). 37 user space at an invalid address (<em class="replaceable">ADDR</em>).
38</div><h3><a id="idm46413328820512"> 38</div><h3><a id="id5965">
39 ⁠</a>pointer dereference fault</h3><a id="idm46413328819488" class="indexterm"></a><a id="idm46413328817392" class="indexterm"></a><a id="idm46413318467376" class="indexterm"></a><a id="idm46413318465280" class="indexterm"></a><div class="para"> 39 ⁠</a>pointer dereference fault</h3><a id="id5966" class="indexterm"></a><a id="id5970" class="indexterm"></a><a id="id5974" class="indexterm"></a><a id="id5978" class="indexterm"></a><div class="para">
40 There was a fault encountered during a pointer 40 There was a fault encountered during a pointer
41 dereference operation such as a target variable evaluation. 41 dereference operation such as a target variable evaluation.
42</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="errors.html"><strong>Prev</strong>Chapter 6. Understanding SystemTap Errors</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="references.html"><strong>Next</strong>Chapter 7. References</a></li></ul></body></html> \ No newline at end of file 42</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="errors.html"><strong>Prev</strong>Chapter 6. Understanding SystemTap Errors</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="references.html"><strong>Next</strong>Chapter 7. References</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/scriptconstructions.html b/SystemTap_Beginners_Guide/scriptconstructions.html
index 4b7233a8..d5a83054 100644
--- a/SystemTap_Beginners_Guide/scriptconstructions.html
+++ b/SystemTap_Beginners_Guide/scriptconstructions.html
@@ -1,8 +1,8 @@
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">3.3. Basic SystemTap Handler Constructs</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="systemtapscript-handler.html" title="3.2.2. SystemTap Handler/Body" /><link rel="next" href="targetvariables.html" title="3.3.2. Target Variables" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="systemtapscript-handler.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="targetvariables.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="scriptconstructions"> 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">3.3. Basic SystemTap Handler Constructs</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="systemtapscript-handler.html" title="3.2.2. SystemTap Handler/Body" /><link rel="next" href="targetvariables.html" title="3.3.2. Target Variables" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="systemtapscript-handler.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="targetvariables.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="scriptconstructions">
3 ⁠</a>3.3. Basic SystemTap Handler Constructs</h2></div></div></div><a id="idm46413325128928" class="indexterm"></a><a id="idm46413314924864" class="indexterm"></a><a id="idm46413316520144" class="indexterm"></a><a id="idm46413316386352" class="indexterm"></a><a id="idm46413316453536" class="indexterm"></a><div class="para">SystemTap supports the use of several basic constructs in handlers. The syntax for most of these handler constructs are mostly based on C and <code class="command">awk</code> syntax. This section describes several of the most useful SystemTap handler constructs, which should provide you with enough information to write simple yet useful SystemTap scripts.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="variablesconstructs"> 3 ⁠</a>3.3. Basic SystemTap Handler Constructs</h2></div></div></div><a id="id2847" class="indexterm"></a><a id="id2850" class="indexterm"></a><a id="id2853" class="indexterm"></a><a id="id2857" class="indexterm"></a><a id="id2861" class="indexterm"></a><div class="para">SystemTap supports the use of several basic constructs in handlers. The syntax for most of these handler constructs are mostly based on C and <code class="command">awk</code> syntax. This section describes several of the most useful SystemTap handler constructs, which should provide you with enough information to write simple yet useful SystemTap scripts.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="variablesconstructs">
4 ⁠</a>3.3.1. Variables</h3></div></div></div><a id="idm46413314864128" class="indexterm"></a><a id="idm46413326040144" class="indexterm"></a><a id="idm46413324924704" class="indexterm"></a><a id="idm46413328569760" class="indexterm"></a><div class="para">Variables can be used freely throughout a handler; simply choose a 4 ⁠</a>3.3.1. Variables</h3></div></div></div><a id="id2869" class="indexterm"></a><a id="id2873" class="indexterm"></a><a id="id2877" class="indexterm"></a><a id="id2881" class="indexterm"></a><div class="para">Variables can be used freely throughout a handler; simply choose a
5name, assign a value from a function or expression to it, and use it in an expression. SystemTap automatically identifies whether a variable should be typed as a string or integer, based on the type of the values assigned to it. For instance, if you use set the variable <code class="command">foo</code> to <code class="command">gettimeofday_s()</code> (as in <code class="command">foo = gettimeofday_s()</code>), then <code class="command">foo</code> is typed as a number and can be printed in a <code class="command">printf()</code> with the integer format specifier (<code class="command">%d</code>).</div><a id="idm46413324629488" class="indexterm"></a><a id="idm46413317036960" class="indexterm"></a><a id="idm46413329386880" class="indexterm"></a><div class="para">Note, however, that by default variables are only local to the probe they are used in. This means that variables are initialized, used and disposed at each probe handler invocation. To share a variable between probes, declare the variable name using <code class="command">global</code> outside of the probes. Consider the following example:</div><div class="example"><a id="timerjiffies"> 5name, assign a value from a function or expression to it, and use it in an expression. SystemTap automatically identifies whether a variable should be typed as a string or integer, based on the type of the values assigned to it. For instance, if you use set the variable <code class="command">foo</code> to <code class="command">gettimeofday_s()</code> (as in <code class="command">foo = gettimeofday_s()</code>), then <code class="command">foo</code> is typed as a number and can be printed in a <code class="command">printf()</code> with the integer format specifier (<code class="command">%d</code>).</div><a id="id2892" class="indexterm"></a><a id="id2897" class="indexterm"></a><a id="id2902" class="indexterm"></a><div class="para">Note, however, that by default variables are only local to the probe they are used in. This means that variables are initialized, used and disposed at each probe handler invocation. To share a variable between probes, declare the variable name using <code class="command">global</code> outside of the probes. Consider the following example:</div><div class="example"><a id="timerjiffies">
6 ⁠</a><p class="title"><strong>Example 3.8. timer-jiffies.stp</strong></p><div class="example-contents"><pre class="programlisting">global count_jiffies, count_ms 6 ⁠</a><p class="title"><strong>Example 3.8. timer-jiffies.stp</strong></p><div class="example-contents"><pre class="programlisting">global count_jiffies, count_ms
7probe timer.jiffies(100) { count_jiffies ++ } 7probe timer.jiffies(100) { count_jiffies ++ }
8probe timer.ms(100) { count_ms ++ } 8probe timer.ms(100) { count_ms ++ }
@@ -12,4 +12,4 @@ probe timer.ms(12345)
12 printf ("jiffies:ms ratio %d:%d =&gt; CONFIG_HZ=%d\n", 12 printf ("jiffies:ms ratio %d:%d =&gt; CONFIG_HZ=%d\n",
13 count_jiffies, count_ms, hz) 13 count_jiffies, count_ms, hz)
14 exit () 14 exit ()
15}</pre></div></div><a id="idm46413317025568" class="indexterm"></a><div class="para"><a class="xref" href="scriptconstructions.html#timerjiffies">Example 3.8, “timer-jiffies.stp”</a> computes the <code class="command">CONFIG_HZ</code> setting of the kernel using timers that count jiffies and milliseconds, then computing accordingly. The <code class="command">global</code> statement allows the script to use the variables <code class="command">count_jiffies</code> and <code class="command">count_ms</code> (set in their own respective probes) to be shared with <code class="command">probe timer.ms(12345)</code>.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">The <code class="command">++</code> notation in <a class="xref" href="scriptconstructions.html#timerjiffies">Example 3.8, “timer-jiffies.stp”</a> (that is, <code class="command">count_jiffies ++</code> and <code class="command">count_ms ++</code>) is used to increment the value of a variable by 1. In the following probe, <code class="command">count_jiffies</code> is incremented by 1 every 100 jiffies:</div><pre class="screen">probe timer.jiffies(100) { count_jiffies ++ }</pre><div class="para">In this instance, SystemTap understands that <code class="command">count_jiffies</code> is an integer. Because no initial value was assigned to <code class="command">count_jiffies</code>, its initial value is zero by default.</div></div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="systemtapscript-handler.html"><strong>Prev</strong>3.2.2. SystemTap Handler/Body</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="targetvariables.html"><strong>Next</strong>3.3.2. Target Variables</a></li></ul></body></html> \ No newline at end of file 15}</pre></div></div><a id="id2912" class="indexterm"></a><div class="para"><a class="xref" href="scriptconstructions.html#timerjiffies">Example 3.8, “timer-jiffies.stp”</a> computes the <code class="command">CONFIG_HZ</code> setting of the kernel using timers that count jiffies and milliseconds, then computing accordingly. The <code class="command">global</code> statement allows the script to use the variables <code class="command">count_jiffies</code> and <code class="command">count_ms</code> (set in their own respective probes) to be shared with <code class="command">probe timer.ms(12345)</code>.</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">The <code class="command">++</code> notation in <a class="xref" href="scriptconstructions.html#timerjiffies">Example 3.8, “timer-jiffies.stp”</a> (that is, <code class="command">count_jiffies ++</code> and <code class="command">count_ms ++</code>) is used to increment the value of a variable by 1. In the following probe, <code class="command">count_jiffies</code> is incremented by 1 every 100 jiffies:</div><pre class="screen">probe timer.jiffies(100) { count_jiffies ++ }</pre><div class="para">In this instance, SystemTap understands that <code class="command">count_jiffies</code> is an integer. Because no initial value was assigned to <code class="command">count_jiffies</code>, its initial value is zero by default.</div></div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="systemtapscript-handler.html"><strong>Prev</strong>3.2.2. SystemTap Handler/Body</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="targetvariables.html"><strong>Next</strong>3.3.2. Target Variables</a></li></ul></body></html> \ No newline at end of file
diff --git a/SystemTap_Beginners_Guide/scripts.html b/SystemTap_Beginners_Guide/scripts.html
index e5a1123f..78e11660 100644
--- a/SystemTap_Beginners_Guide/scripts.html
+++ b/SystemTap_Beginners_Guide/scripts.html
@@ -1,16 +1,16 @@
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">3.2. SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="next" href="systemtapscript-handler.html" title="3.2.2. SystemTap Handler/Body" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="understanding-how-systemtap-works.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="systemtapscript-handler.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="scripts"> 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">3.2. SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="next" href="systemtapscript-handler.html" title="3.2.2. SystemTap Handler/Body" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="understanding-how-systemtap-works.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="systemtapscript-handler.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="scripts">
3 ⁠</a>3.2. SystemTap Scripts</h2></div></div></div><a id="idm46413326125424" class="indexterm"></a><a id="idm46413326126944" class="indexterm"></a><div class="para"> 3 ⁠</a>3.2. SystemTap Scripts</h2></div></div></div><a id="id2201" class="indexterm"></a><a id="id2204" class="indexterm"></a><div class="para">
4 For the most part, SystemTap scripts are the foundation of each SystemTap 4 For the most part, SystemTap scripts are the foundation of each SystemTap
5 session. SystemTap scripts instruct SystemTap on what type of information to 5 session. SystemTap scripts instruct SystemTap on what type of information to
6 collect, and what to do once that information is collected. 6 collect, and what to do once that information is collected.
7 </div><a id="idm46413326127856" class="indexterm"></a><a id="idm46413326130544" class="indexterm"></a><a id="idm46413326133856" class="indexterm"></a><a id="idm46413326134224" class="indexterm"></a><a id="idm46413326136720" class="indexterm"></a><a id="idm46413326137152" class="indexterm"></a><div class="para"> 7 </div><a id="id2208" class="indexterm"></a><a id="id2212" class="indexterm"></a><a id="id2216" class="indexterm"></a><a id="id2220" class="indexterm"></a><a id="id2224" class="indexterm"></a><a id="id2228" class="indexterm"></a><div class="para">
8 As stated in <a class="xref" href="understanding-how-systemtap-works.html">Chapter 3, <em>Understanding How SystemTap Works</em></a>, SystemTap 8 As stated in <a class="xref" href="understanding-how-systemtap-works.html">Chapter 3, <em>Understanding How SystemTap Works</em></a>, SystemTap
9 scripts are made up of two components: <span class="emphasis"><em>events</em></span> and 9 scripts are made up of two components: <span class="emphasis"><em>events</em></span> and
10 <span class="emphasis"><em>handlers</em></span>. Once a SystemTap session is underway, 10 <span class="emphasis"><em>handlers</em></span>. Once a SystemTap session is underway,
11 SystemTap monitors the operating system for the specified events and 11 SystemTap monitors the operating system for the specified events and
12 executes the handlers as they occur. 12 executes the handlers as they occur.
13 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="idm46413326142336" class="indexterm"></a><a id="idm46413326145408" class="indexterm"></a><a id="idm46413326145840" class="indexterm"></a><div class="para"> 13 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="id2238" class="indexterm"></a><a id="id2242" class="indexterm"></a><a id="id2246" class="indexterm"></a><div class="para">
14 An event and its corresponding handler is collectively called a 14 An event and its corresponding handler is collectively called a
15 <span class="emphasis"><em>probe</em></span>. A SystemTap script can have multiple probes. 15 <span class="emphasis"><em>probe</em></span>. A SystemTap script can have multiple probes.
16 </div><div class="para"> 16 </div><div class="para">
@@ -26,7 +26,7 @@
26 recompilation of the code and allows more flexibility with regard to 26 recompilation of the code and allows more flexibility with regard to
27 handlers. Events serve as the triggers for handlers to run; handlers can be 27 handlers. Events serve as the triggers for handlers to run; handlers can be
28 specified to record specified data and print it in a certain manner. 28 specified to record specified data and print it in a certain manner.
29 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Format</div><a id="idm46413326151520" class="indexterm"></a><a id="idm46413326154912" class="indexterm"></a><a id="idm46413326157632" class="indexterm"></a><a id="idm46413326159680" class="indexterm"></a> 29 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Format</div><a id="id2258" class="indexterm"></a><a id="id2262" class="indexterm"></a><a id="id2266" class="indexterm"></a><a id="id2270" class="indexterm"></a>
30 SystemTap scripts use the file extension <code class="filename">.stp</code>, and 30 SystemTap scripts use the file extension <code class="filename">.stp</code>, and
31 contains probes written in the following format: 31 contains probes written in the following format:
32 </div><pre class="screen">probe <em class="replaceable">event</em> {<em class="replaceable">statements</em>}</pre><div class="para"> 32 </div><pre class="screen">probe <em class="replaceable">event</em> {<em class="replaceable">statements</em>}</pre><div class="para">
@@ -34,7 +34,7 @@
34 by a comma (<code class="command">,</code>). If multiple events are specified in a 34 by a comma (<code class="command">,</code>). If multiple events are specified in a
35 single probe, SystemTap will execute the handler when any of the specified 35 single probe, SystemTap will execute the handler when any of the specified
36 events occur. 36 events occur.
37 </div><a id="idm46413326164080" class="indexterm"></a><a id="idm46413326167712" class="indexterm"></a><a id="idm46413326167840" class="indexterm"></a><div class="para"> 37 </div><a id="id2281" class="indexterm"></a><a id="id2285" class="indexterm"></a><a id="id2289" class="indexterm"></a><div class="para">
38 Each probe has a corresponding <em class="firstterm">statement block</em>. This statement block is 38 Each probe has a corresponding <em class="firstterm">statement block</em>. This statement block is
39 enclosed in braces (<code class="command">{ }</code>) and contains the statements to be executed per event. 39 enclosed in braces (<code class="command">{ }</code>) and contains the statements to be executed per event.
40 SystemTap executes these statements in sequence; special separators or 40 SystemTap executes these statements in sequence; special separators or
@@ -42,7 +42,7 @@
42 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para"> 42 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">
43 Statement blocks in SystemTap scripts follow the same syntax and semantics as the C 43 Statement blocks in SystemTap scripts follow the same syntax and semantics as the C
44 programming language. A statement block can be nested within another statement block. 44 programming language. A statement block can be nested within another statement block.
45 </div></div></div><a id="idm46413326173408" class="indexterm"></a><a id="idm46413326176240" class="indexterm"></a><a id="idm46413326177984" class="indexterm"></a><div class="para"> 45 </div></div></div><a id="id2299" class="indexterm"></a><a id="id2303" class="indexterm"></a><a id="id2307" class="indexterm"></a><div class="para">
46 SystemTap allows you to write functions to factor out code to be used by a 46 SystemTap allows you to write functions to factor out code to be used by a
47 number of probes. Thus, rather than repeatedly writing the same 47 number of probes. Thus, rather than repeatedly writing the same
48 series of statements in multiple probes, you can just place the instructions 48 series of statements in multiple probes, you can just place the instructions
@@ -61,16 +61,16 @@ probe <em class="replaceable">event</em> {<em class="replaceable">function_name<
61 each section therein provides a detailed explanation of the script, its 61 each section therein provides a detailed explanation of the script, its
62 events, handlers, and expected output. 62 events, handlers, and expected output.
63 </div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="systemtapscript-events"> 63 </div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="systemtapscript-events">
64 ⁠</a>3.2.1. Event</h3></div></div></div><a id="idm46413326191328" class="indexterm"></a><div class="para"> 64 ⁠</a>3.2.1. Event</h3></div></div></div><a id="id2333" class="indexterm"></a><div class="para">
65 SystemTap events can be broadly classified into two types: 65 SystemTap events can be broadly classified into two types:
66 <em class="firstterm">synchronous</em> and 66 <em class="firstterm">synchronous</em> and
67 <em class="firstterm">asynchronous</em>. 67 <em class="firstterm">asynchronous</em>.
68 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Synchronous Events</div><a id="idm46413326195136" class="indexterm"></a><a id="idm46413326195680" class="indexterm"></a> 68 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Synchronous Events</div><a id="id2341" class="indexterm"></a><a id="id2344" class="indexterm"></a>
69 A <em class="firstterm">synchronous</em> event occurs when any process 69 A <em class="firstterm">synchronous</em> event occurs when any process
70 executes an instruction at a particular location in kernel 70 executes an instruction at a particular location in kernel
71 code. This gives other events a reference point from which more 71 code. This gives other events a reference point from which more
72 contextual data may be available. 72 contextual data may be available.
73 </div><a id="idm46413326198832" class="indexterm"></a><a id="idm46413326200624" class="indexterm"></a><div class="para">Examples of synchronous events include:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">syscall.<em class="replaceable">system_call</em></span></dt><dd><a id="idm46413326204304" class="indexterm"></a><a id="idm46413326206848" class="indexterm"></a><div class="para"> 73 </div><a id="id2349" class="indexterm"></a><a id="id2352" class="indexterm"></a><div class="para">Examples of synchronous events include:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">syscall.<em class="replaceable">system_call</em></span></dt><dd><a id="id2361" class="indexterm"></a><a id="id2366" class="indexterm"></a><div class="para">
74 The entry to the system call 74 The entry to the system call
75 <em class="replaceable">system_call</em>. If the exit from a syscall 75 <em class="replaceable">system_call</em>. If the exit from a syscall
76 is desired, appending a <code class="command">.return</code> to the event 76 is desired, appending a <code class="command">.return</code> to the event
@@ -78,12 +78,12 @@ probe <em class="replaceable">event</em> {<em class="replaceable">function_name<
78 the entry and exit of the system call <code class="command">close</code>, use 78 the entry and exit of the system call <code class="command">close</code>, use
79 <code class="command">syscall.close</code> and 79 <code class="command">syscall.close</code> and
80 <code class="command">syscall.close.return</code> respectively. 80 <code class="command">syscall.close.return</code> respectively.
81 </div></dd><dt><span class="term">vfs.<em class="replaceable">file_operation</em></span></dt><dd><a id="idm46413316373904" class="indexterm"></a><a id="idm46413316375120" class="indexterm"></a><div class="para"> 81 </div></dd><dt><span class="term">vfs.<em class="replaceable">file_operation</em></span></dt><dd><a id="id2381" class="indexterm"></a><a id="id2386" class="indexterm"></a><div class="para">
82 The entry to the <em class="replaceable">file_operation</em> event for 82 The entry to the <em class="replaceable">file_operation</em> event for
83 Virtual File System (VFS). Similar to <code class="command">syscall</code> 83 Virtual File System (VFS). Similar to <code class="command">syscall</code>
84 event, appending a <code class="command">.return</code> to the event monitors 84 event, appending a <code class="command">.return</code> to the event monitors
85 the exit of the <em class="replaceable">file_operation</em> operation. 85 the exit of the <em class="replaceable">file_operation</em> operation.
86 </div></dd><dt><span class="term">kernel.function("<em class="replaceable">function</em>")</span></dt><dd><a id="idm46413316382016" class="indexterm"></a><a id="idm46413316387072" class="indexterm"></a><div class="para"> 86 </div></dd><dt><span class="term">kernel.function("<em class="replaceable">function</em>")</span></dt><dd><a id="id2400" class="indexterm"></a><a id="id2405" class="indexterm"></a><div class="para">
87 The entry to the kernel function 87 The entry to the kernel function
88 <em class="replaceable">function</em>. For example, 88 <em class="replaceable">function</em>. For example,
89 <code class="command">kernel.function("sys_open")</code> refers to the "event" 89 <code class="command">kernel.function("sys_open")</code> refers to the "event"
@@ -93,7 +93,7 @@ probe <em class="replaceable">event</em> {<em class="replaceable">function_name<
93 <code class="command">sys_open</code>, append the <code class="command">return</code> 93 <code class="command">sys_open</code>, append the <code class="command">return</code>
94 string to the event statement; 94 string to the event statement;
95 that is, <code class="command">kernel.function("sys_open").return</code>. 95 that is, <code class="command">kernel.function("sys_open").return</code>.
96 </div><a id="idm46413316394656" class="indexterm"></a><a id="idm46413316394128" class="indexterm"></a><a id="idm46413316395344" class="indexterm"></a><div class="para"> 96 </div><a id="id2418" class="indexterm"></a><a id="id2421" class="indexterm"></a><a id="id2423" class="indexterm"></a><div class="para">
97 When defining probe events, you can use asterisk (<code class="literal">*</code>) 97 When defining probe events, you can use asterisk (<code class="literal">*</code>)
98 for wildcards. You can also trace the entry or exit of a function in 98 for wildcards. You can also trace the entry or exit of a function in
99 a kernel source file. Consider the following example: 99 a kernel source file. Consider the following example:
@@ -106,7 +106,7 @@ probe kernel.function("*@net/socket.c").return { }</pre></div></div><div class="
106 exit of all those functions. Note that in this example, 106 exit of all those functions. Note that in this example,
107 there are no statements in the handler; 107 there are no statements in the handler;
108 as such, no information will be collected or displayed. 108 as such, no information will be collected or displayed.
109 </div></dd><dt><span class="term">kernel.trace("<em class="replaceable">tracepoint</em>")</span></dt><dd><a id="idm46413316404016" class="indexterm"></a><a id="idm46413316404144" class="indexterm"></a><a id="idm46413316405376" class="indexterm"></a><div class="para"> 109 </div></dd><dt><span class="term">kernel.trace("<em class="replaceable">tracepoint</em>")</span></dt><dd><a id="id2437" class="indexterm"></a><a id="id2439" class="indexterm"></a><a id="id2444" class="indexterm"></a><div class="para">
110 The static probe for <em class="replaceable">tracepoint</em>. 110 The static probe for <em class="replaceable">tracepoint</em>.
111 Recent kernels (2.6.30 and newer) 111 Recent kernels (2.6.30 and newer)
112 include instrumentation for specific events in the kernel. These 112 include instrumentation for specific events in the kernel. These
@@ -114,7 +114,7 @@ probe kernel.function("*@net/socket.c").return { }</pre></div></div><div class="
114 tracepoint available in systemtap is 114 tracepoint available in systemtap is
115 <code class="command">kernel.trace("kfree_skb")</code> which indicates each 115 <code class="command">kernel.trace("kfree_skb")</code> which indicates each
116 time a network buffer is freed in the kernel. 116 time a network buffer is freed in the kernel.
117 </div></dd><dt><span class="term">module("<em class="replaceable">module</em>").function("<em class="replaceable">function</em>")</span></dt><dd><a id="idm46413316411568" class="indexterm"></a><a id="idm46413316414560" class="indexterm"></a><div class="para">Allows you to probe functions within modules. For example:</div><div class="example"><a id="eventsmodules"> 117 </div></dd><dt><span class="term">module("<em class="replaceable">module</em>").function("<em class="replaceable">function</em>")</span></dt><dd><a id="id2457" class="indexterm"></a><a id="id2462" class="indexterm"></a><div class="para">Allows you to probe functions within modules. For example:</div><div class="example"><a id="eventsmodules">
118 ⁠</a><p class="title"><strong>Example 3.2. moduleprobe.stp</strong></p><div class="example-contents"><pre class="programlisting">probe module("ext3").function("*") { } 118 ⁠</a><p class="title"><strong>Example 3.2. moduleprobe.stp</strong></p><div class="example-contents"><pre class="programlisting">probe module("ext3").function("*") { }
119probe module("ext3").function("*").return { }</pre></div></div><div class="para"> 119probe module("ext3").function("*").return { }</pre></div></div><div class="para">
120 The first probe in <a class="xref" href="scripts.html#eventsmodules">Example 3.2, “moduleprobe.stp”</a> 120 The first probe in <a class="xref" href="scripts.html#eventsmodules">Example 3.2, “moduleprobe.stp”</a>
@@ -128,14 +128,14 @@ probe module("ext3").function("*").return { }</pre></div></div><div class="para"
128 data (as in <a class="xref" href="scripts.html#wildcards">Example 3.1, “wildcards.stp”</a>). 128 data (as in <a class="xref" href="scripts.html#wildcards">Example 3.1, “wildcards.stp”</a>).
129 </div><div class="para"> 129 </div><div class="para">
130 A system's kernel modules are typically located in <code class="filename">/lib/modules/<em class="replaceable">kernel_version</em></code>, where <em class="replaceable">kernel_version</em> refers to the currently loaded kernel version. Modules use the file name extension <code class="filename">.ko</code>. 130 A system's kernel modules are typically located in <code class="filename">/lib/modules/<em class="replaceable">kernel_version</em></code>, where <em class="replaceable">kernel_version</em> refers to the currently loaded kernel version. Modules use the file name extension <code class="filename">.ko</code>.
131 </div></dd></dl></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Asynchronous Events</div><a id="idm46413316427584" class="indexterm"></a><a id="idm46413316430464" class="indexterm"></a> 131 </div></dd></dl></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">Asynchronous Events</div><a id="id2486" class="indexterm"></a><a id="id2489" class="indexterm"></a>
132 <em class="firstterm">Asynchronous</em> events are not tied to a particular 132 <em class="firstterm">Asynchronous</em> events are not tied to a particular
133 instruction or location in code. This family of probe points consists 133 instruction or location in code. This family of probe points consists
134 mainly of counters, timers, and similar constructs. 134 mainly of counters, timers, and similar constructs.
135 </div><div class="para">Examples of asynchronous events include:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">begin</span></dt><dd><a id="idm46413316434016" class="indexterm"></a><a id="idm46413316436608" class="indexterm"></a><div class="para"> 135 </div><div class="para">Examples of asynchronous events include:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">begin</span></dt><dd><a id="id2499" class="indexterm"></a><a id="id2503" class="indexterm"></a><div class="para">
136 The startup of a SystemTap session; that is, as soon as the SystemTap 136 The startup of a SystemTap session; that is, as soon as the SystemTap
137 script is run. 137 script is run.
138 </div></dd><dt><span class="term">end</span></dt><dd><a id="idm46413316440688" class="indexterm"></a><a id="idm46413316443328" class="indexterm"></a><div class="para">The end of a SystemTap session.</div></dd><dt><span class="term">timer events</span></dt><dd><a id="idm46413328125632" class="indexterm"></a><a id="idm46413316448304" class="indexterm"></a><div class="para"> 138 </div></dd><dt><span class="term">end</span></dt><dd><a id="id2511" class="indexterm"></a><a id="id2515" class="indexterm"></a><div class="para">The end of a SystemTap session.</div></dd><dt><span class="term">timer events</span></dt><dd><a id="id2523" class="indexterm"></a><a id="id2526" class="indexterm"></a><div class="para">
139 An event that specifies a handler to be executed periodically. 139 An event that specifies a handler to be executed periodically.
140 For example: 140 For example:
141 </div><div class="example"><a id="timer"> 141 </div><div class="example"><a id="timer">
diff --git a/SystemTap_Beginners_Guide/syscallsbyprocpidsect.html b/SystemTap_Beginners_Guide/syscallsbyprocpidsect.html
index cd410247..82cb8dfc 100644
--- a/SystemTap_Beginners_Guide/syscallsbyprocpidsect.html
+++ b/SystemTap_Beginners_Guide/syscallsbyprocpidsect.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.6. Tracking System Call Volume Per Process</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="topsyssect.html" title="5.3.5. Tracking Most Frequently Used System Calls" /><link rel="next" href="futexcontentionsect.html" title="5.4. Identifying Contended User-Space Locks" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="topsyssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="futexcontentionsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="syscallsbyprocpidsect"> 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.6. Tracking System Call Volume Per Process</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="topsyssect.html" title="5.3.5. Tracking Most Frequently Used System Calls" /><link rel="next" href="futexcontentionsect.html" title="5.4. Identifying Contended User-Space Locks" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="topsyssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="futexcontentionsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="syscallsbyprocpidsect">
3 ⁠</a>5.3.6. Tracking System Call Volume Per Process</h3></div></div></div><a id="idm46413314839760" class="indexterm"></a><a id="idm46413326923360" class="indexterm"></a><a id="idm46413318520128" class="indexterm"></a><a id="idm46413330066656" class="indexterm"></a><div class="para"> 3 ⁠</a>5.3.6. Tracking System Call Volume Per Process</h3></div></div></div><a id="id5352" class="indexterm"></a><a id="id5355" class="indexterm"></a><a id="id5358" class="indexterm"></a><a id="id5361" class="indexterm"></a><div class="para">
4 This section illustrates how to determine which processes 4 This section illustrates how to determine which processes
5 are performing the highest volume of system calls. In 5 are performing the highest volume of system calls. In
6 previous sections, we've described how to monitor the top system 6 previous sections, we've described how to monitor the top system
diff --git a/SystemTap_Beginners_Guide/systemtapscript-handler.html b/SystemTap_Beginners_Guide/systemtapscript-handler.html
index 6dcd5cf3..e617fa14 100644
--- a/SystemTap_Beginners_Guide/systemtapscript-handler.html
+++ b/SystemTap_Beginners_Guide/systemtapscript-handler.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">3.2.2. SystemTap Handler/Body</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scripts.html" title="3.2. SystemTap Scripts" /><link rel="prev" href="scripts.html" title="3.2. SystemTap Scripts" /><link rel="next" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="scripts.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="scriptconstructions.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="systemtapscript-handler"> 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">3.2.2. SystemTap Handler/Body</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scripts.html" title="3.2. SystemTap Scripts" /><link rel="prev" href="scripts.html" title="3.2. SystemTap Scripts" /><link rel="next" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="scripts.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="scriptconstructions.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="systemtapscript-handler">
3 ⁠</a>3.2.2. SystemTap Handler/Body</h3></div></div></div><a id="idm46413316466176" class="indexterm"></a><div class="para"> Consider the following sample script: </div><div class="example"><a id="helloworld"> 3 ⁠</a>3.2.2. SystemTap Handler/Body</h3></div></div></div><a id="id2568" class="indexterm"></a><div class="para"> Consider the following sample script: </div><div class="example"><a id="helloworld">
4 ⁠</a><p class="title"><strong>Example 3.4. helloworld.stp</strong></p><div class="example-contents"><pre class="programlisting">probe begin 4 ⁠</a><p class="title"><strong>Example 3.4. helloworld.stp</strong></p><div class="example-contents"><pre class="programlisting">probe begin
5{ 5{
6 printf ("hello world\n") 6 printf ("hello world\n")
@@ -10,29 +10,29 @@
10 (that is, the start of the session) triggers the handler enclosed in 10 (that is, the start of the session) triggers the handler enclosed in
11 <code class="command">{ }</code>, which simply prints <code class="command">hello 11 <code class="command">{ }</code>, which simply prints <code class="command">hello
12 world</code> followed by a new-line, then exits. 12 world</code> followed by a new-line, then exits.
13 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="idm46413328084896" class="indexterm"></a><a id="idm46413328085584" class="indexterm"></a><div class="para"> 13 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="id2582" class="indexterm"></a><a id="id2586" class="indexterm"></a><div class="para">
14 SystemTap scripts continue to run until the 14 SystemTap scripts continue to run until the
15 <code class="command">exit()</code> function executes. If the users wants to stop 15 <code class="command">exit()</code> function executes. If the users wants to stop
16 the execution of the script, it can interrupted manually with 16 the execution of the script, it can interrupted manually with
17 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>C</strong></span>. 17 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>C</strong></span>.
18 </div></div></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">printf ( ) Statements</div><a id="idm46413328092288" class="indexterm"></a> 18 </div></div></div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">printf ( ) Statements</div><a id="id2597" class="indexterm"></a>
19 The <code class="command">printf ()</code> statement is one of the simplest 19 The <code class="command">printf ()</code> statement is one of the simplest
20 functions for printing data. <code class="command">printf ()</code> can also be 20 functions for printing data. <code class="command">printf ()</code> can also be
21 used to display data using a wide variety of SystemTap functions in the 21 used to display data using a wide variety of SystemTap functions in the
22 following format: 22 following format:
23 </div><pre class="programlisting"> printf ("<em class="replaceable">format string</em>\n", <em class="replaceable">arguments</em>) 23 </div><pre class="programlisting"> printf ("<em class="replaceable">format string</em>\n", <em class="replaceable">arguments</em>)
24 </pre><a id="idm46413328096352" class="indexterm"></a><a id="idm46413328100880" class="indexterm"></a><div class="para"> 24 </pre><a id="id2607" class="indexterm"></a><a id="id2611" class="indexterm"></a><div class="para">
25 The <em class="replaceable">format string</em> specifies how 25 The <em class="replaceable">format string</em> specifies how
26 <em class="replaceable">arguments</em> should be printed. The format string 26 <em class="replaceable">arguments</em> should be printed. The format string
27 of <a class="xref" href="systemtapscript-handler.html#helloworld">Example 3.4, “helloworld.stp”</a> instructs SystemTap to print 27 of <a class="xref" href="systemtapscript-handler.html#helloworld">Example 3.4, “helloworld.stp”</a> instructs SystemTap to print
28 <code class="command">hello world</code>, and contains no format specifiers. 28 <code class="command">hello world</code>, and contains no format specifiers.
29 </div><a id="idm46413328102144" class="indexterm"></a><a id="idm46413328107040" class="indexterm"></a><div class="para"> 29 </div><a id="id2620" class="indexterm"></a><a id="id2624" class="indexterm"></a><div class="para">
30 You can use the format specifiers <code class="command">%s</code> (for strings) 30 You can use the format specifiers <code class="command">%s</code> (for strings)
31 and <code class="command">%d</code> (for numbers) in format strings, depending on 31 and <code class="command">%d</code> (for numbers) in format strings, depending on
32 your list of arguments. Format strings can have multiple format 32 your list of arguments. Format strings can have multiple format
33 specifiers, each matching a corresponding argument; multiple arguments 33 specifiers, each matching a corresponding argument; multiple arguments
34 are delimited by a comma (<code class="command">,</code>). 34 are delimited by a comma (<code class="command">,</code>).
35 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="idm46413328109840" class="indexterm"></a><a id="idm46413328110128" class="indexterm"></a><a id="idm46413328113856" class="indexterm"></a><div class="para">Semantically, the SystemTap <code class="command">printf</code> function is 35 </div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><a id="id2634" class="indexterm"></a><a id="id2638" class="indexterm"></a><a id="id2642" class="indexterm"></a><div class="para">Semantically, the SystemTap <code class="command">printf</code> function is
36 very similar to its C language counterpart. The aforementioned syntax 36 very similar to its C language counterpart. The aforementioned syntax
37 and format for SystemTap's <code class="command">printf</code> function is 37 and format for SystemTap's <code class="command">printf</code> function is
38 identical to that of the C-style <code class="command">printf</code>. 38 identical to that of the C-style <code class="command">printf</code>.
@@ -53,15 +53,15 @@ hald(2360) open
53df(3433) open 53df(3433) open
54df(3433) open 54df(3433) open
55df(3433) open 55df(3433) open
56hald(2360) open</pre><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">SystemTap Functions</div><a id="idm46413328125152" class="indexterm"></a><a id="idm46413328125408" class="indexterm"></a><a id="idm46413328126640" class="indexterm"></a> 56hald(2360) open</pre><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">SystemTap Functions</div><a id="id2664" class="indexterm"></a><a id="id2666" class="indexterm"></a><a id="id2668" class="indexterm"></a>
57 SystemTap supports a wide variety of functions that can be used as 57 SystemTap supports a wide variety of functions that can be used as
58 <code class="command">printf ()</code> arguments. <a class="xref" href="systemtapscript-handler.html#syscall-open">Example 3.5, “variables-in-printf-statements.stp”</a> 58 <code class="command">printf ()</code> arguments. <a class="xref" href="systemtapscript-handler.html#syscall-open">Example 3.5, “variables-in-printf-statements.stp”</a>
59 uses the SystemTap functions <code class="command">execname()</code> (name of the 59 uses the SystemTap functions <code class="command">execname()</code> (name of the
60 process that called a kernel function/performed a system call) and 60 process that called a kernel function/performed a system call) and
61 <code class="command">pid()</code> (current process ID). 61 <code class="command">pid()</code> (current process ID).
62 </div><div class="para">The following is a list of commonly-used SystemTap functions:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">tid()</span></dt><dd><a id="idm46413321833840" class="indexterm"></a><a id="idm46413321835344" class="indexterm"></a><a id="idm46413321838400" class="indexterm"></a><div class="para">The ID of the current thread.</div></dd><dt><span class="term">uid()</span></dt><dd><a id="idm46413321841216" class="indexterm"></a><a id="idm46413321843632" class="indexterm"></a><div class="para">The ID of the current user.</div></dd><dt><span class="term">cpu()</span></dt><dd><a id="idm46413321849648" class="indexterm"></a><a id="idm46413321850736" class="indexterm"></a><div class="para">The current CPU number.</div></dd><dt><span class="term">gettimeofday_s()</span></dt><dd><a id="idm46413321855888" class="indexterm"></a><a id="idm46413321858240" class="indexterm"></a><div class="para">The number of seconds since UNIX epoch (January 1, 1970).</div></dd><dt><span class="term">ctime()</span></dt><dd><a id="idm46413321861360" class="indexterm"></a><a id="idm46413321863968" class="indexterm"></a><div class="para"> 62 </div><div class="para">The following is a list of commonly-used SystemTap functions:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">tid()</span></dt><dd><a id="id2681" class="indexterm"></a><a id="id2685" class="indexterm"></a><a id="id2689" class="indexterm"></a><div class="para">The ID of the current thread.</div></dd><dt><span class="term">uid()</span></dt><dd><a id="id2697" class="indexterm"></a><a id="id2701" class="indexterm"></a><div class="para">The ID of the current user.</div></dd><dt><span class="term">cpu()</span></dt><dd><a id="id2709" class="indexterm"></a><a id="id2713" class="indexterm"></a><div class="para">The current CPU number.</div></dd><dt><span class="term">gettimeofday_s()</span></dt><dd><a id="id2721" class="indexterm"></a><a id="id2725" class="indexterm"></a><div class="para">The number of seconds since UNIX epoch (January 1, 1970).</div></dd><dt><span class="term">ctime()</span></dt><dd><a id="id2733" class="indexterm"></a><a id="id2737" class="indexterm"></a><div class="para">
63 Convert number of seconds since UNIX epoch to date. 63 Convert number of seconds since UNIX epoch to date.
64 </div></dd><dt><span class="term">pp()</span></dt><dd><a id="idm46413314863056" class="indexterm"></a><a id="idm46413314865760" class="indexterm"></a><div class="para">A string describing the probe point currently being handled.</div></dd><dt><span class="term">thread_indent()</span></dt><dd><a id="idm46413322042976" class="indexterm"></a><a id="idm46413322045344" class="indexterm"></a><div class="para"> 64 </div></dd><dt><span class="term">pp()</span></dt><dd><a id="id2745" class="indexterm"></a><a id="id2749" class="indexterm"></a><div class="para">A string describing the probe point currently being handled.</div></dd><dt><span class="term">thread_indent()</span></dt><dd><a id="id2757" class="indexterm"></a><a id="id2761" class="indexterm"></a><div class="para">
65 This particular function is quite useful in providing you with a way 65 This particular function is quite useful in providing you with a way
66 to better organize your print results. The function takes one 66 to better organize your print results. The function takes one
67 argument, an indentation delta, which indicates how many 67 argument, an indentation delta, which indicates how many
@@ -112,10 +112,10 @@ probe kernel.function("*@net/socket.c").return
1124699 ftp(7223): &lt;- sock_map_file 1124699 ftp(7223): &lt;- sock_map_file
1134715 ftp(7223): &lt;- sock_map_fd 1134715 ftp(7223): &lt;- sock_map_fd
1144732 ftp(7223): &lt;- sys_socket 1144732 ftp(7223): &lt;- sys_socket
1154775 ftp(7223): &lt;- sys_socketcall</pre><div class="para">This sample output contains the following information:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">The time (in microseconds) since the initial <code class="command">thread_indent()</code> call for the thread (included in the string from <code class="command">thread_indent()</code>).</div></li><li class="listitem"><div class="para">The process name (and its corresponding ID) that made the function call (included in the string from <code class="command">thread_indent()</code>).</div></li><li class="listitem"><div class="para">An arrow signifying whether the call was an entry (<code class="computeroutput">&lt;-</code>) or an exit (<code class="computeroutput">-&gt;</code>); the indentations help you match specific function call entries with their corresponding exits.</div></li><li class="listitem"><div class="para">The name of the function called by the process.</div></li></ul></div></dd><dt><span class="term">name</span></dt><dd><a id="idm46413323899808" class="indexterm"></a><a id="idm46413323900656" class="indexterm"></a><a id="idm46413323902816" class="indexterm"></a><div class="para">Identifies the name of a specific system call. This variable can 1154775 ftp(7223): &lt;- sys_socketcall</pre><div class="para">This sample output contains the following information:</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">The time (in microseconds) since the initial <code class="command">thread_indent()</code> call for the thread (included in the string from <code class="command">thread_indent()</code>).</div></li><li class="listitem"><div class="para">The process name (and its corresponding ID) that made the function call (included in the string from <code class="command">thread_indent()</code>).</div></li><li class="listitem"><div class="para">An arrow signifying whether the call was an entry (<code class="computeroutput">&lt;-</code>) or an exit (<code class="computeroutput">-&gt;</code>); the indentations help you match specific function call entries with their corresponding exits.</div></li><li class="listitem"><div class="para">The name of the function called by the process.</div></li></ul></div></dd><dt><span class="term">name</span></dt><dd><a id="id2797" class="indexterm"></a><a id="id2800" class="indexterm"></a><a id="id2803" class="indexterm"></a><div class="para">Identifies the name of a specific system call. This variable can
116 only be used in probes that use the event 116 only be used in probes that use the event
117 <code class="command">syscall.<em class="replaceable">system_call</em></code>. 117 <code class="command">syscall.<em class="replaceable">system_call</em></code>.
118 </div></dd><dt><span class="term">target()</span></dt><dd><a id="idm46413323509584" class="indexterm"></a><a id="idm46413323512064" class="indexterm"></a><div class="para"> 118 </div></dd><dt><span class="term">target()</span></dt><dd><a id="id2812" class="indexterm"></a><a id="id2816" class="indexterm"></a><div class="para">
119 Used in conjunction with <code class="command">stap 119 Used in conjunction with <code class="command">stap
120 <em class="replaceable">script</em> -x <em class="replaceable">process 120 <em class="replaceable">script</em> -x <em class="replaceable">process
121 ID</em></code> or <code class="command">stap 121 ID</em></code> or <code class="command">stap
diff --git a/SystemTap_Beginners_Guide/targetavailable.html b/SystemTap_Beginners_Guide/targetavailable.html
index 142df2ee..14269f12 100644
--- a/SystemTap_Beginners_Guide/targetavailable.html
+++ b/SystemTap_Beginners_Guide/targetavailable.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">3.3.2.3. Checking Target Variable Availability</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="prev" href="typecasting.html" title="3.3.2.2. Typecasting" /><link rel="next" href="handlerconditionalstatements.html" title="3.3.3. Conditional Statements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="typecasting.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="handlerconditionalstatements.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="targetavailable"> 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">3.3.2.3. Checking Target Variable Availability</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="prev" href="typecasting.html" title="3.3.2.2. Typecasting" /><link rel="next" href="handlerconditionalstatements.html" title="3.3.3. Conditional Statements" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="typecasting.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="handlerconditionalstatements.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="targetavailable">
3 ⁠</a>3.3.2.3. Checking Target Variable Availability</h4></div></div></div><a id="idm46413326851344" class="indexterm"></a><div class="para"> 3 ⁠</a>3.3.2.3. Checking Target Variable Availability</h4></div></div></div><a id="id3107" class="indexterm"></a><div class="para">
4 As code evolves the target variables available may change. 4 As code evolves the target variables available may change.
5 The <code class="command">@defined</code> makes it easier to handle 5 The <code class="command">@defined</code> makes it easier to handle
6 those variations in the available target variables. 6 those variations in the available target variables.
diff --git a/SystemTap_Beginners_Guide/targetvariables.html b/SystemTap_Beginners_Guide/targetvariables.html
index 5ce4377e..5f565050 100644
--- a/SystemTap_Beginners_Guide/targetvariables.html
+++ b/SystemTap_Beginners_Guide/targetvariables.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">3.3.2. Target Variables</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="next" href="typecasting.html" title="3.3.2.2. Typecasting" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="scriptconstructions.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="typecasting.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="targetvariables"> 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">3.3.2. Target Variables</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="prev" href="scriptconstructions.html" title="3.3. Basic SystemTap Handler Constructs" /><link rel="next" href="typecasting.html" title="3.3.2.2. Typecasting" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="scriptconstructions.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="typecasting.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="targetvariables">
3 ⁠</a>3.3.2. Target Variables</h3></div></div></div><a id="idm46413324291200" class="indexterm"></a><a id="idm46413324237840" class="indexterm"></a><div class="para"> 3 ⁠</a>3.3.2. Target Variables</h3></div></div></div><a id="id2936" class="indexterm"></a><a id="id2939" class="indexterm"></a><div class="para">
4The probe events that map to actual locations in the code (for example 4The probe events that map to actual locations in the code (for example
5<code class="command">kernel.function("<em class="replaceable">function</em>")</code> and 5<code class="command">kernel.function("<em class="replaceable">function</em>")</code> and
6<code class="command">kernel.statement("<em class="replaceable">statement</em>")</code>) 6<code class="command">kernel.statement("<em class="replaceable">statement</em>")</code>)
@@ -73,7 +73,7 @@ Obtain the string at <em class="replaceable">address</em> from kernel memory.
73Obtain the string at <em class="replaceable">address</em> from the kernel memory 73Obtain the string at <em class="replaceable">address</em> from the kernel memory
74and limits the string to <em class="replaceable">n</em> bytes. 74and limits the string to <em class="replaceable">n</em> bytes.
75</div></dd></dl></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="targetprettyprinting"> 75</div></dd></dl></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="targetprettyprinting">
76 ⁠</a>3.3.2.1. Pretty Printing Target Variables</h4></div></div></div><a id="idm46413322624816" class="indexterm"></a><div class="para"> 76 ⁠</a>3.3.2.1. Pretty Printing Target Variables</h4></div></div></div><a id="id3024" class="indexterm"></a><div class="para">
77 SystemTap scripts are often used to observe what is happening within 77 SystemTap scripts are often used to observe what is happening within
78 the code. 78 the code.
79 In many cases just printing the values of the various context variables 79 In many cases just printing the values of the various context variables
diff --git a/SystemTap_Beginners_Guide/threadtimessect.html b/SystemTap_Beginners_Guide/threadtimessect.html
index 5b41f71f..7b64fc8b 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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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"></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 class="section"><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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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"></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 class="section"><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="idm46413328057360" class="indexterm"></a><a id="idm46413324146640" class="indexterm"></a><a id="idm46413330169632" class="indexterm"></a><a id="idm46413325334224" class="indexterm"></a><a id="idm46413321754864" class="indexterm"></a><a id="idm46413318398528" class="indexterm"></a><div class="para">This section illustrates how to determine the amount of time any given thread is spending in either kernel or user-space.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">thread-times.stp</div> 3 ⁠</a>5.3.3. Determining Time Spent in Kernel and User Space</h3></div></div></div><a id="id5202" class="indexterm"></a><a id="id5205" class="indexterm"></a><a id="id5208" class="indexterm"></a><a id="id5211" class="indexterm"></a><a id="id5214" class="indexterm"></a><a id="id5217" class="indexterm"></a><div class="para">This section illustrates how to determine the amount of time any given thread is spending in either kernel or user-space.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">thread-times.stp</div>
4<pre class="programlisting">#! /usr/bin/env stap 4<pre class="programlisting">#! /usr/bin/env stap
5 5
6probe perf.sw.cpu_clock!, timer.profile { 6probe perf.sw.cpu_clock!, timer.profile {
@@ -44,7 +44,7 @@ probe timer.s(5), end {
44 delete tids 44 delete tids
45} 45}
46</pre> 46</pre>
47</div><a id="idm46413325821280" class="indexterm"></a><a id="idm46413336450144" class="indexterm"></a><a id="idm46413322423184" class="indexterm"></a><div class="para"><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. </div><div class="para"><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>:</div><div class="example"><a id="threadtimesoutput"> 47</div><a id="id5226" class="indexterm"></a><a id="id5229" class="indexterm"></a><a id="id5232" class="indexterm"></a><div class="para"><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. </div><div class="para"><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>:</div><div class="example"><a id="threadtimesoutput">
48 ⁠</a><p class="title"><strong>Example 5.15. <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen"> tid %user %kernel (of 20002 ticks) 48 ⁠</a><p class="title"><strong>Example 5.15. <a class="xref" href="threadtimessect.html#threadtimes">thread-times.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen"> tid %user %kernel (of 20002 ticks)
49 0 0.00% 87.88% 49 0 0.00% 87.88%
5032169 5.24% 0.03% 5032169 5.24% 0.03%
diff --git a/SystemTap_Beginners_Guide/timeoutssect.html b/SystemTap_Beginners_Guide/timeoutssect.html
index df99abad..53a75b6b 100644
--- a/SystemTap_Beginners_Guide/timeoutssect.html
+++ b/SystemTap_Beginners_Guide/timeoutssect.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.4. Monitoring Polling Applications</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="threadtimessect.html" title="5.3.3. Determining Time Spent in Kernel and User Space" /><link rel="next" href="topsyssect.html" title="5.3.5. Tracking Most Frequently Used System Calls" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="threadtimessect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="topsyssect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="timeoutssect"> 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.4. Monitoring Polling Applications</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="threadtimessect.html" title="5.3.3. Determining Time Spent in Kernel and User Space" /><link rel="next" href="topsyssect.html" title="5.3.5. Tracking Most Frequently Used System Calls" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="threadtimessect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="topsyssect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="timeoutssect">
3 ⁠</a>5.3.4. Monitoring Polling Applications</h3></div></div></div><a id="idm46413328858192" class="indexterm"></a><a id="idm46413318651552" class="indexterm"></a><a id="idm46413317066048" class="indexterm"></a><a id="idm46413328821616" class="indexterm"></a><div class="para"> 3 ⁠</a>5.3.4. Monitoring Polling Applications</h3></div></div></div><a id="id5246" class="indexterm"></a><a id="id5249" class="indexterm"></a><a id="id5252" class="indexterm"></a><a id="id5255" class="indexterm"></a><div class="para">
4 This section describes how to identify and monitor which applications are polling. Doing so allows you to track 4 This section describes how to identify and monitor which applications are polling. Doing so allows you to track
5 unnecessary or excessive polling, which can help you pinpoint areas for improvement in terms of CPU usage 5 unnecessary or excessive polling, which can help you pinpoint areas for improvement in terms of CPU usage
6 and power savings. 6 and power savings.
@@ -122,7 +122,7 @@ probe prometheus {
122 of the following system calls completed 122 of the following system calls completed
123 due to time expiring rather than due to an actual event 123 due to time expiring rather than due to an actual event
124 occurring: 124 occurring:
125 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><code class="command">poll</code></div></li><li class="listitem"><div class="para"><code class="command">select</code></div></li><li class="listitem"><div class="para"><code class="command">epoll</code></div></li><li class="listitem"><div class="para"><code class="command">itimer</code></div></li><li class="listitem"><div class="para"><code class="command">futex</code></div></li><li class="listitem"><div class="para"><code class="command">nanosleep</code></div></li><li class="listitem"><div class="para"><code class="command">signal</code></div></li></ul></div><a id="idm46413322328288" class="indexterm"></a><a id="idm46413322342544" class="indexterm"></a><a id="idm46413324618528" class="indexterm"></a><div class="example"><a id="timeoutsoutput"> 125 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><code class="command">poll</code></div></li><li class="listitem"><div class="para"><code class="command">select</code></div></li><li class="listitem"><div class="para"><code class="command">epoll</code></div></li><li class="listitem"><div class="para"><code class="command">itimer</code></div></li><li class="listitem"><div class="para"><code class="command">futex</code></div></li><li class="listitem"><div class="para"><code class="command">nanosleep</code></div></li><li class="listitem"><div class="para"><code class="command">signal</code></div></li></ul></div><a id="id5288" class="indexterm"></a><a id="id5291" class="indexterm"></a><a id="id5294" class="indexterm"></a><div class="example"><a id="timeoutsoutput">
126 ⁠</a><p class="title"><strong>Example 5.16. <a class="xref" href="timeoutssect.html#timeouts">timeout.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen"> uid | poll select epoll itimer futex nanosle signal| process 126 ⁠</a><p class="title"><strong>Example 5.16. <a class="xref" href="timeoutssect.html#timeouts">timeout.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen"> uid | poll select epoll itimer futex nanosle signal| process
12728937 | 148793 0 0 4727 37288 0 0| firefox 12728937 | 148793 0 0 4727 37288 0 0| firefox
12822945 | 0 56949 0 1 0 0 0| scim-bridge 12822945 | 0 56949 0 1 0 0 0| scim-bridge
diff --git a/SystemTap_Beginners_Guide/topsyssect.html b/SystemTap_Beginners_Guide/topsyssect.html
index 5207c97e..757572bf 100644
--- a/SystemTap_Beginners_Guide/topsyssect.html
+++ b/SystemTap_Beginners_Guide/topsyssect.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.5. Tracking Most Frequently Used System Calls</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="timeoutssect.html" title="5.3.4. Monitoring Polling Applications" /><link rel="next" href="syscallsbyprocpidsect.html" title="5.3.6. Tracking System Call Volume Per Process" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="timeoutssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="syscallsbyprocpidsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="topsyssect"> 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.5. Tracking Most Frequently Used System Calls</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><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="timeoutssect.html" title="5.3.4. Monitoring Polling Applications" /><link rel="next" href="syscallsbyprocpidsect.html" title="5.3.6. Tracking System Call Volume Per Process" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="timeoutssect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="syscallsbyprocpidsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="topsyssect">
3 ⁠</a>5.3.5. Tracking Most Frequently Used System Calls</h3></div></div></div><a id="idm46413321707072" class="indexterm"></a><a id="idm46413325380592" class="indexterm"></a><a id="idm46413329271648" class="indexterm"></a><a id="idm46413329895184" class="indexterm"></a><div class="para"> 3 ⁠</a>5.3.5. Tracking Most Frequently Used System Calls</h3></div></div></div><a id="id5307" class="indexterm"></a><a id="id5310" class="indexterm"></a><a id="id5313" class="indexterm"></a><a id="id5316" class="indexterm"></a><div class="para">
4 <a class="xref" href="timeoutssect.html#timeouts">timeout.stp</a> from <a class="xref" href="timeoutssect.html">Section 5.3.4, “Monitoring Polling Applications”</a> 4 <a class="xref" href="timeoutssect.html#timeouts">timeout.stp</a> from <a class="xref" href="timeoutssect.html">Section 5.3.4, “Monitoring Polling Applications”</a>
5 helps you identify which applications 5 helps you identify which applications
6 are polling by examining a small subset of system calls ( 6 are polling by examining a small subset of system calls (
@@ -57,7 +57,7 @@ probe prometheus {
57</div><div class="para"> 57</div><div class="para">
58 <a class="xref" href="topsyssect.html#topsys">topsys.stp</a> lists the top 20 system calls used by the system per 5-second interval. It also lists 58 <a class="xref" href="topsyssect.html#topsys">topsys.stp</a> lists the top 20 system calls used by the system per 5-second interval. It also lists
59 how many times each system call was used during that period. Refer to <a class="xref" href="topsyssect.html#topsysoutput">Example 5.17, “topsys.stp Sample Output”</a> for a sample output. 59 how many times each system call was used during that period. Refer to <a class="xref" href="topsyssect.html#topsysoutput">Example 5.17, “topsys.stp Sample Output”</a> for a sample output.
60</div><a id="idm46413331039440" class="indexterm"></a><a id="idm46413316598176" class="indexterm"></a><a id="idm46413316273584" class="indexterm"></a><div class="example"><a id="topsysoutput"> 60</div><a id="id5337" class="indexterm"></a><a id="id5340" class="indexterm"></a><a id="id5343" class="indexterm"></a><div class="example"><a id="topsysoutput">
61 ⁠</a><p class="title"><strong>Example 5.17. <a class="xref" href="topsyssect.html#topsys">topsys.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">-------------------------------------------------------------- 61 ⁠</a><p class="title"><strong>Example 5.17. <a class="xref" href="topsyssect.html#topsys">topsys.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">--------------------------------------------------------------
62 SYSCALL COUNT 62 SYSCALL COUNT
63 gettimeofday 1857 63 gettimeofday 1857
diff --git a/SystemTap_Beginners_Guide/traceio2sect.html b/SystemTap_Beginners_Guide/traceio2sect.html
index 1858e412..4df7cc21 100644
--- a/SystemTap_Beginners_Guide/traceio2sect.html
+++ b/SystemTap_Beginners_Guide/traceio2sect.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.2.4. I/O Monitoring (By Device)</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="traceiosect.html" title="5.2.3. Track Cumulative IO" /><link rel="next" href="inodewatchsect.html" title="5.2.5. Monitoring Reads and Writes to a File" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="traceiosect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="inodewatchsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="traceio2sect"> 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.2.4. I/O Monitoring (By Device)</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="traceiosect.html" title="5.2.3. Track Cumulative IO" /><link rel="next" href="inodewatchsect.html" title="5.2.5. Monitoring Reads and Writes to a File" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="traceiosect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="inodewatchsect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="traceio2sect">
3 ⁠</a>5.2.4. I/O Monitoring (By Device)</h3></div></div></div><a id="idm46413324863984" class="indexterm"></a><a id="idm46413322452688" class="indexterm"></a><a id="idm46413329270400" class="indexterm"></a><a id="idm46413316730848" class="indexterm"></a><a id="idm46413316596784" class="indexterm"></a><div class="para"> 3 ⁠</a>5.2.4. I/O Monitoring (By Device)</h3></div></div></div><a id="id4814" class="indexterm"></a><a id="id4817" class="indexterm"></a><a id="id4820" class="indexterm"></a><a id="id4823" class="indexterm"></a><a id="id4826" class="indexterm"></a><div class="para">
4 This section describes how to monitor I/O activity on a specific device. 4 This section describes how to monitor I/O activity on a specific device.
5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio2.stp</div> 5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio2.stp</div>
6<pre class="programlisting">#! /usr/bin/env stap 6<pre class="programlisting">#! /usr/bin/env stap
@@ -23,7 +23,7 @@ probe vfs.{write,read}
23 execname(), pid(), ppfunc(), dev) 23 execname(), pid(), ppfunc(), dev)
24} 24}
25</pre> 25</pre>
26</div><a id="idm46413329919056" class="indexterm"></a><a id="idm46413324980112" class="indexterm"></a><a id="idm46413321737440" class="indexterm"></a><a id="idm46413323875952" class="indexterm"></a><a id="idm46413316975008" class="indexterm"></a><a id="idm46413316729344" class="indexterm"></a><div class="para"><a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> takes 1 argument: the whole device number. To get this number, use <code class="command">stat -c "0x%D" <em class="replaceable">directory</em></code>, where <code class="command"><em class="replaceable">directory</em></code> is located in the device to be monitored.</div><a id="idm46413327115088" class="indexterm"></a><a id="idm46413318522000" class="indexterm"></a><a id="idm46413321249104" class="indexterm"></a><div class="para">The <code class="command">usrdev2kerndev()</code> function converts the whole device number into the format understood by the kernel. The output produced by <code class="command">usrdev2kerndev()</code> is used in conjunction with the <code class="command">MKDEV()</code>, <code class="command">MINOR()</code>, and <code class="command">MAJOR()</code> functions to determine the major and minor numbers of a specific device.</div><div class="para">The output of <a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> includes the name and ID of any process performing a read/write, the function it is performing (that is, <code class="command">vfs_read</code> or <code class="command">vfs_write</code>), and the kernel device number.</div><div class="para">The following example is an excerpt from the full output of <code class="command">stap traceio2.stp 0x805</code>, where <code class="literal">0x805</code> is the whole device number of <code class="filename">/home</code>. <code class="filename">/home</code> resides in <code class="filename">/dev/sda5</code>, which is the device we wish to monitor.</div><div class="example"><a id="traceio2output"> 26</div><a id="id4837" class="indexterm"></a><a id="id4840" class="indexterm"></a><a id="id4843" class="indexterm"></a><a id="id4846" class="indexterm"></a><a id="id4849" class="indexterm"></a><a id="id4852" class="indexterm"></a><div class="para"><a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> takes 1 argument: the whole device number. To get this number, use <code class="command">stat -c "0x%D" <em class="replaceable">directory</em></code>, where <code class="command"><em class="replaceable">directory</em></code> is located in the device to be monitored.</div><a id="id4861" class="indexterm"></a><a id="id4864" class="indexterm"></a><a id="id4867" class="indexterm"></a><div class="para">The <code class="command">usrdev2kerndev()</code> function converts the whole device number into the format understood by the kernel. The output produced by <code class="command">usrdev2kerndev()</code> is used in conjunction with the <code class="command">MKDEV()</code>, <code class="command">MINOR()</code>, and <code class="command">MAJOR()</code> functions to determine the major and minor numbers of a specific device.</div><div class="para">The output of <a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> includes the name and ID of any process performing a read/write, the function it is performing (that is, <code class="command">vfs_read</code> or <code class="command">vfs_write</code>), and the kernel device number.</div><div class="para">The following example is an excerpt from the full output of <code class="command">stap traceio2.stp 0x805</code>, where <code class="literal">0x805</code> is the whole device number of <code class="filename">/home</code>. <code class="filename">/home</code> resides in <code class="filename">/dev/sda5</code>, which is the device we wish to monitor.</div><div class="example"><a id="traceio2output">
27 ⁠</a><p class="title"><strong>Example 5.9. <a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...] 27 ⁠</a><p class="title"><strong>Example 5.9. <a class="xref" href="traceio2sect.html#traceio2">traceio2.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...]
28synergyc(3722) vfs_read 0x800005 28synergyc(3722) vfs_read 0x800005
29synergyc(3722) vfs_read 0x800005 29synergyc(3722) vfs_read 0x800005
diff --git a/SystemTap_Beginners_Guide/traceiosect.html b/SystemTap_Beginners_Guide/traceiosect.html
index 29f3aee8..4cf9e1e2 100644
--- a/SystemTap_Beginners_Guide/traceiosect.html
+++ b/SystemTap_Beginners_Guide/traceiosect.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.2.3. Track Cumulative IO</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /><link rel="next" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="traceiosect"> 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.2.3. Track Cumulative IO</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /><link rel="next" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="traceiosect">
3 ⁠</a>5.2.3. Track Cumulative IO</h3></div></div></div><a id="idm46413324480304" class="indexterm"></a><a id="idm46413327870144" class="indexterm"></a><a id="idm46413321602640" class="indexterm"></a><a id="idm46413326029968" class="indexterm"></a><a id="idm46413317751664" class="indexterm"></a><a id="idm46413317840720" class="indexterm"></a><div class="para"> 3 ⁠</a>5.2.3. Track Cumulative IO</h3></div></div></div><a id="id4766" class="indexterm"></a><a id="id4769" class="indexterm"></a><a id="id4772" class="indexterm"></a><a id="id4775" class="indexterm"></a><a id="id4778" class="indexterm"></a><a id="id4781" class="indexterm"></a><div class="para">
4 This section describes how to track the cumulative amount of I/O to the system. 4 This section describes how to track the cumulative amount of I/O to the system.
5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio.stp</div> 5 </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio.stp</div>
6<pre class="programlisting">#! /usr/bin/env stap 6<pre class="programlisting">#! /usr/bin/env stap
@@ -58,7 +58,7 @@ probe timer.s(1) {
58 addition, it also tracks the cumulative amount of I/O reads and writes done by those ten 58 addition, it also tracks the cumulative amount of I/O reads and writes done by those ten
59 executables. This information is tracked and printed out in 1-second intervals, and in 59 executables. This information is tracked and printed out in 1-second intervals, and in
60 descending order. 60 descending order.
61</div><a id="idm46413317718496" class="indexterm"></a><a id="idm46413328974784" class="indexterm"></a><a id="idm46413325177728" class="indexterm"></a><div class="para"> 61</div><a id="id4791" class="indexterm"></a><a id="id4795" class="indexterm"></a><a id="id4799" class="indexterm"></a><div class="para">
62 Note that <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> also uses the local variable <code class="command">$return</code>, 62 Note that <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> also uses the local variable <code class="command">$return</code>,
63 which is also used by <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from <a class="xref" href="mainsect-disk.html#disktop">Section 5.2.1, “Summarizing Disk Read/Write Traffic”</a>. 63 which is also used by <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from <a class="xref" href="mainsect-disk.html#disktop">Section 5.2.1, “Summarizing Disk Read/Write Traffic”</a>.
64</div><div class="example"><a id="traceiooutput"> 64</div><div class="example"><a id="traceiooutput">
diff --git a/SystemTap_Beginners_Guide/typecasting.html b/SystemTap_Beginners_Guide/typecasting.html
index 28871281..4dc375d9 100644
--- a/SystemTap_Beginners_Guide/typecasting.html
+++ b/SystemTap_Beginners_Guide/typecasting.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">3.3.2.2. Typecasting</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="prev" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="next" href="targetavailable.html" title="3.3.2.3. Checking Target Variable Availability" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="targetvariables.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="targetavailable.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="typecasting"> 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">3.3.2.2. Typecasting</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="prev" href="targetvariables.html" title="3.3.2. Target Variables" /><link rel="next" href="targetavailable.html" title="3.3.2.3. Checking Target Variable Availability" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="targetvariables.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="targetavailable.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="typecasting">
3 ⁠</a>3.3.2.2. Typecasting</h4></div></div></div><a id="idm46413324204592" class="indexterm"></a><div class="para"> 3 ⁠</a>3.3.2.2. Typecasting</h4></div></div></div><a id="id3084" class="indexterm"></a><div class="para">
4 In most cases SystemTap can determine a variable's type 4 In most cases SystemTap can determine a variable's type
5 from the debug information. 5 from the debug information.
6 However, code may use void pointers for variables 6 However, code may use void pointers for variables
diff --git a/SystemTap_Beginners_Guide/understanding-how-systemtap-works.html b/SystemTap_Beginners_Guide/understanding-how-systemtap-works.html
index ab4d49ae..f0d3ded1 100644
--- a/SystemTap_Beginners_Guide/understanding-how-systemtap-works.html
+++ b/SystemTap_Beginners_Guide/understanding-how-systemtap-works.html
@@ -1,28 +1,28 @@
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">Chapter 3. Understanding How SystemTap Works</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="using-usage.html" title="2.3. Running SystemTap Scripts" /><link rel="next" href="scripts.html" title="3.2. SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="using-usage.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="scripts.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="understanding-how-systemtap-works"> 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">Chapter 3. Understanding How SystemTap Works</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="using-usage.html" title="2.3. Running SystemTap Scripts" /><link rel="next" href="scripts.html" title="3.2. SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="using-usage.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="scripts.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="understanding-how-systemtap-works">
3 ⁠</a>Chapter 3. Understanding How SystemTap Works</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="understanding-how-systemtap-works.html#understanding-architecture-tools">3.1. Architecture</a></span></dt><dt><span class="section"><a href="scripts.html">3.2. SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="scripts.html#systemtapscript-events">3.2.1. Event</a></span></dt><dt><span class="section"><a href="systemtapscript-handler.html">3.2.2. SystemTap Handler/Body</a></span></dt></dl></dd><dt><span class="section"><a href="scriptconstructions.html">3.3. Basic SystemTap Handler Constructs</a></span></dt><dd><dl><dt><span class="section"><a href="scriptconstructions.html#variablesconstructs">3.3.1. Variables</a></span></dt><dt><span class="section"><a href="targetvariables.html">3.3.2. Target Variables</a></span></dt><dt><span class="section"><a href="handlerconditionalstatements.html">3.3.3. Conditional Statements</a></span></dt><dt><span class="section"><a href="commandlineargssect.html">3.3.4. Command-Line Arguments</a></span></dt></dl></dd><dt><span class="section"><a href="associativearrays.html">3.4. Associative Arrays</a></span></dt><dt><span class="section"><a href="arrayoperators.html">3.5. Array Operations in SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="arrayoperators.html#arrayops-assignvalue">3.5.1. Assigning an Associated Value</a></span></dt><dt><span class="section"><a href="arrayops-readvalues.html">3.5.2. Reading Values From Arrays</a></span></dt><dt><span class="section"><a href="arrayops-increment.html">3.5.3. Incrementing Associated Values</a></span></dt><dt><span class="section"><a href="arrayops-foreach.html">3.5.4. Processing Multiple Elements in an Array</a></span></dt><dt><span class="section"><a href="arrayops-deleting.html">3.5.5. Clearing/Deleting Arrays and Array Elements</a></span></dt><dt><span class="section"><a href="arrayops-conditionals.html">3.5.6. Using Arrays in Conditional Statements</a></span></dt><dt><span class="section"><a href="arrayops-aggregates.html">3.5.7. Computing for Statistical Aggregates</a></span></dt></dl></dd><dt><span class="section"><a href="understanding-tapsets.html">3.6. Tapsets</a></span></dt></dl></div><a id="idm46413326203760" class="indexterm"></a><div class="para"> 3 ⁠</a>Chapter 3. Understanding How SystemTap Works</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="understanding-how-systemtap-works.html#understanding-architecture-tools">3.1. Architecture</a></span></dt><dt><span class="section"><a href="scripts.html">3.2. SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="scripts.html#systemtapscript-events">3.2.1. Event</a></span></dt><dt><span class="section"><a href="systemtapscript-handler.html">3.2.2. SystemTap Handler/Body</a></span></dt></dl></dd><dt><span class="section"><a href="scriptconstructions.html">3.3. Basic SystemTap Handler Constructs</a></span></dt><dd><dl><dt><span class="section"><a href="scriptconstructions.html#variablesconstructs">3.3.1. Variables</a></span></dt><dt><span class="section"><a href="targetvariables.html">3.3.2. Target Variables</a></span></dt><dt><span class="section"><a href="handlerconditionalstatements.html">3.3.3. Conditional Statements</a></span></dt><dt><span class="section"><a href="commandlineargssect.html">3.3.4. Command-Line Arguments</a></span></dt></dl></dd><dt><span class="section"><a href="associativearrays.html">3.4. Associative Arrays</a></span></dt><dt><span class="section"><a href="arrayoperators.html">3.5. Array Operations in SystemTap</a></span></dt><dd><dl><dt><span class="section"><a href="arrayoperators.html#arrayops-assignvalue">3.5.1. Assigning an Associated Value</a></span></dt><dt><span class="section"><a href="arrayops-readvalues.html">3.5.2. Reading Values From Arrays</a></span></dt><dt><span class="section"><a href="arrayops-increment.html">3.5.3. Incrementing Associated Values</a></span></dt><dt><span class="section"><a href="arrayops-foreach.html">3.5.4. Processing Multiple Elements in an Array</a></span></dt><dt><span class="section"><a href="arrayops-deleting.html">3.5.5. Clearing/Deleting Arrays and Array Elements</a></span></dt><dt><span class="section"><a href="arrayops-conditionals.html">3.5.6. Using Arrays in Conditional Statements</a></span></dt><dt><span class="section"><a href="arrayops-aggregates.html">3.5.7. Computing for Statistical Aggregates</a></span></dt></dl></dd><dt><span class="section"><a href="understanding-tapsets.html">3.6. Tapsets</a></span></dt></dl></div><a id="id2137" class="indexterm"></a><div class="para">
4 SystemTap allows users to write and reuse simple scripts to deeply 4 SystemTap allows users to write and reuse simple scripts to deeply
5 examine the activities of a running Linux system. These scripts can be 5 examine the activities of a running Linux system. These scripts can be
6 designed to extract data, filter it, and summarize it quickly (and 6 designed to extract data, filter it, and summarize it quickly (and
7 safely), enabling the diagnosis of complex performance (or even 7 safely), enabling the diagnosis of complex performance (or even
8 functional) problems. 8 functional) problems.
9 </div><a id="idm46413326090848" class="indexterm"></a><a id="idm46413326095008" class="indexterm"></a><a id="idm46413326096464" class="indexterm"></a><div class="para">The essential idea behind a SystemTap script is to name 9 </div><a id="id2140" class="indexterm"></a><a id="id2143" class="indexterm"></a><a id="id2145" class="indexterm"></a><div class="para">The essential idea behind a SystemTap script is to name
10 <span class="emphasis"><em>events</em></span>, and to give them 10 <span class="emphasis"><em>events</em></span>, and to give them
11 <span class="emphasis"><em>handlers</em></span>. When SystemTap runs the script, SystemTap 11 <span class="emphasis"><em>handlers</em></span>. When SystemTap runs the script, SystemTap
12 monitors for the event; once the event occurs, the Linux kernel then runs 12 monitors for the event; once the event occurs, the Linux kernel then runs
13 the handler as a quick sub-routine, then resumes. 13 the handler as a quick sub-routine, then resumes.
14 </div><a id="idm46413326098128" class="indexterm"></a><a id="idm46413326100096" class="indexterm"></a><div class="para"> 14 </div><a id="id2150" class="indexterm"></a><a id="id2153" class="indexterm"></a><div class="para">
15 There are several kind of events; entering/exiting a function, timer 15 There are several kind of events; entering/exiting a function, timer
16 expiration, session termination, etc. A handler is a series of script 16 expiration, session termination, etc. A handler is a series of script
17 language statements that specify the work to be done whenever the event 17 language statements that specify the work to be done whenever the event
18 occurs. This work normally includes extracting data from the event context, 18 occurs. This work normally includes extracting data from the event context,
19 storing them into internal variables, and printing results. 19 storing them into internal variables, and printing results.
20</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="understanding-architecture-tools"> 20</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="understanding-architecture-tools">
21 ⁠</a>3.1. Architecture</h2></div></div></div><a id="idm46413326102640" class="indexterm"></a><a id="idm46413326105856" class="indexterm"></a><a id="idm46413326106384" class="indexterm"></a><div class="para"> 21 ⁠</a>3.1. Architecture</h2></div></div></div><a id="id2162" class="indexterm"></a><a id="id2165" class="indexterm"></a><a id="id2167" class="indexterm"></a><div class="para">
22 A SystemTap session begins when you run a SystemTap script. This 22 A SystemTap session begins when you run a SystemTap script. This
23 session occurs in the following fashion: 23 session occurs in the following fashion:
24 </div><div xmlns:d="http://docbook.org/ns/docbook" class="procedure"><a id="systemtapsession"> 24 </div><div xmlns:d="http://docbook.org/ns/docbook" class="procedure"><a id="systemtapsession">
25 ⁠</a><p class="title"><strong>Procedure 3.1. SystemTap Session</strong></p><a id="idm46413326108864" class="indexterm"></a><a id="idm46413326110384" class="indexterm"></a><a id="idm46413326111664" class="indexterm"></a><ol class="1"><li class="step"><div class="para"> 25 ⁠</a><p class="title"><strong>Procedure 3.1. SystemTap Session</strong></p><a id="id2172" class="indexterm"></a><a id="id2175" class="indexterm"></a><a id="id2177" class="indexterm"></a><ol class="1"><li class="step"><div class="para">
26 First, SystemTap checks the script against the existing tapset library 26 First, SystemTap checks the script against the existing tapset library
27 (normally in <code class="filename">/usr/share/systemtap/tapset/</code> for any 27 (normally in <code class="filename">/usr/share/systemtap/tapset/</code> for any
28 tapsets used. SystemTap will then substitute any located tapsets with their 28 tapsets used. SystemTap will then substitute any located tapsets with their
diff --git a/SystemTap_Beginners_Guide/understanding-tapsets.html b/SystemTap_Beginners_Guide/understanding-tapsets.html
index 8164c74a..c705555a 100644
--- a/SystemTap_Beginners_Guide/understanding-tapsets.html
+++ b/SystemTap_Beginners_Guide/understanding-tapsets.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">3.6. Tapsets</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="arrayops-aggregates.html" title="3.5.7. Computing for Statistical Aggregates" /><link rel="next" href="userspace-probing.html" title="Chapter 4. User-space Probing" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-aggregates.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="userspace-probing.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="understanding-tapsets"> 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">3.6. Tapsets</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /><link rel="prev" href="arrayops-aggregates.html" title="3.5.7. Computing for Statistical Aggregates" /><link rel="next" href="userspace-probing.html" title="Chapter 4. User-space Probing" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="arrayops-aggregates.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="userspace-probing.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="understanding-tapsets">
3 ⁠</a>3.6. Tapsets</h2></div></div></div><a id="idm46413321256512" class="indexterm"></a><div class="para"> 3 ⁠</a>3.6. Tapsets</h2></div></div></div><a id="id4118" class="indexterm"></a><div class="para">
4 <em class="firstterm">Tapsets</em> are scripts that form a library of 4 <em class="firstterm">Tapsets</em> are scripts that form a library of
5 pre-written probes and functions to be used in SystemTap scripts. When a 5 pre-written probes and functions to be used in SystemTap scripts. When a
6 user runs a SystemTap script, SystemTap checks the script's probe events 6 user runs a SystemTap script, SystemTap checks the script's probe events
diff --git a/SystemTap_Beginners_Guide/useful-systemtap-scripts.html b/SystemTap_Beginners_Guide/useful-systemtap-scripts.html
index f077b8ca..7a1bfdf1 100644
--- a/SystemTap_Beginners_Guide/useful-systemtap-scripts.html
+++ b/SystemTap_Beginners_Guide/useful-systemtap-scripts.html
@@ -1,8 +1,8 @@
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">Chapter 5. Useful SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="ustack.html" title="4.3. User-Space Stack Backtraces" /><link rel="next" href="mainsect-disk.html" title="5.2. Disk" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="ustack.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="mainsect-disk.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="useful-systemtap-scripts"> 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">Chapter 5. Useful SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="ustack.html" title="4.3. User-Space Stack Backtraces" /><link rel="next" href="mainsect-disk.html" title="5.2. Disk" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="ustack.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="mainsect-disk.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="useful-systemtap-scripts">
3 ⁠</a>Chapter 5. Useful SystemTap Scripts</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="useful-systemtap-scripts.html#mainsect-network">5.1. Network</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#nettopsect">5.1.1. Network Profiling</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#sockettracesect">5.1.2. Tracing Functions Called in Network Socket Code</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpconnectionssect">5.1.3. Monitoring Incoming TCP Connections</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpdumplikesect">5.1.4. Monitoring TCP Packets</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#dropwatchsect">5.1.5. Monitoring Network Packets Drops in Kernel</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-disk.html">5.2. Disk</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-disk.html#disktop">5.2.1. Summarizing Disk Read/Write Traffic</a></span></dt><dt><span class="section"><a href="iotimesect.html">5.2.2. Tracking I/O Time For Each File Read or Write</a></span></dt><dt><span class="section"><a href="traceiosect.html">5.2.3. Track Cumulative IO</a></span></dt><dt><span class="section"><a href="traceio2sect.html">5.2.4. I/O Monitoring (By Device)</a></span></dt><dt><span class="section"><a href="inodewatchsect.html">5.2.5. Monitoring Reads and Writes to a File</a></span></dt><dt><span class="section"><a href="inodewatch2sect.html">5.2.6. Monitoring Changes to File Attributes</a></span></dt><dt><span class="section"><a href="ioblktimesect.html">5.2.7. Periodically Print I/O Block Time</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-profiling.html">5.3. Profiling</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-profiling.html#countcallssect">5.3.1. Counting Function Calls Made</a></span></dt><dt><span class="section"><a href="paracallgraph.html">5.3.2. Call Graph Tracing</a></span></dt><dt><span class="section"><a href="threadtimessect.html">5.3.3. Determining Time Spent in Kernel and User Space</a></span></dt><dt><span class="section"><a href="timeoutssect.html">5.3.4. Monitoring Polling Applications</a></span></dt><dt><span class="section"><a href="topsyssect.html">5.3.5. Tracking Most Frequently Used System Calls</a></span></dt><dt><span class="section"><a href="syscallsbyprocpidsect.html">5.3.6. Tracking System Call Volume Per Process</a></span></dt></dl></dd><dt><span class="section"><a href="futexcontentionsect.html">5.4. Identifying Contended User-Space Locks</a></span></dt></dl></div><a id="idm46413328487440" class="indexterm"></a><a id="idm46413328491424" class="indexterm"></a><a id="idm46413328491296" class="indexterm"></a><a id="idm46413328491168" class="indexterm"></a><div class="para">This chapter enumerates several SystemTap scripts you can use to monitor and investigate different subsystems. All of these scripts are available at <code class="filename">/usr/share/systemtap/testsuite/systemtap.examples/</code> once you install the <code class="filename">systemtap-testsuite</code> RPM.</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-network"> 3 ⁠</a>Chapter 5. Useful SystemTap Scripts</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="useful-systemtap-scripts.html#mainsect-network">5.1. Network</a></span></dt><dd><dl><dt><span class="section"><a href="useful-systemtap-scripts.html#nettopsect">5.1.1. Network Profiling</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#sockettracesect">5.1.2. Tracing Functions Called in Network Socket Code</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpconnectionssect">5.1.3. Monitoring Incoming TCP Connections</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#tcpdumplikesect">5.1.4. Monitoring TCP Packets</a></span></dt><dt><span class="section"><a href="useful-systemtap-scripts.html#dropwatchsect">5.1.5. Monitoring Network Packets Drops in Kernel</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-disk.html">5.2. Disk</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-disk.html#disktop">5.2.1. Summarizing Disk Read/Write Traffic</a></span></dt><dt><span class="section"><a href="iotimesect.html">5.2.2. Tracking I/O Time For Each File Read or Write</a></span></dt><dt><span class="section"><a href="traceiosect.html">5.2.3. Track Cumulative IO</a></span></dt><dt><span class="section"><a href="traceio2sect.html">5.2.4. I/O Monitoring (By Device)</a></span></dt><dt><span class="section"><a href="inodewatchsect.html">5.2.5. Monitoring Reads and Writes to a File</a></span></dt><dt><span class="section"><a href="inodewatch2sect.html">5.2.6. Monitoring Changes to File Attributes</a></span></dt><dt><span class="section"><a href="ioblktimesect.html">5.2.7. Periodically Print I/O Block Time</a></span></dt></dl></dd><dt><span class="section"><a href="mainsect-profiling.html">5.3. Profiling</a></span></dt><dd><dl><dt><span class="section"><a href="mainsect-profiling.html#countcallssect">5.3.1. Counting Function Calls Made</a></span></dt><dt><span class="section"><a href="paracallgraph.html">5.3.2. Call Graph Tracing</a></span></dt><dt><span class="section"><a href="threadtimessect.html">5.3.3. Determining Time Spent in Kernel and User Space</a></span></dt><dt><span class="section"><a href="timeoutssect.html">5.3.4. Monitoring Polling Applications</a></span></dt><dt><span class="section"><a href="topsyssect.html">5.3.5. Tracking Most Frequently Used System Calls</a></span></dt><dt><span class="section"><a href="syscallsbyprocpidsect.html">5.3.6. Tracking System Call Volume Per Process</a></span></dt></dl></dd><dt><span class="section"><a href="futexcontentionsect.html">5.4. Identifying Contended User-Space Locks</a></span></dt></dl></div><a id="id4290" class="indexterm"></a><a id="id4293" class="indexterm"></a><a id="id4295" class="indexterm"></a><a id="id4297" class="indexterm"></a><div class="para">This chapter enumerates several SystemTap scripts you can use to monitor and investigate different subsystems. All of these scripts are available at <code class="filename">/usr/share/systemtap/testsuite/systemtap.examples/</code> once you install the <code class="filename">systemtap-testsuite</code> RPM.</div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="mainsect-network">
4 ⁠</a>5.1. Network</h2></div></div></div><div class="para">The following sections showcase scripts that trace network-related functions and build a profile of network activity.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="nettopsect"> 4 ⁠</a>5.1. Network</h2></div></div></div><div class="para">The following sections showcase scripts that trace network-related functions and build a profile of network activity.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="nettopsect">
5 ⁠</a>5.1.1. Network Profiling</h3></div></div></div><a id="idm46413326073728" class="indexterm"></a><a id="idm46413326074816" class="indexterm"></a><a id="idm46413326075360" class="indexterm"></a><a id="idm46413326082528" class="indexterm"></a><a id="idm46413336598640" class="indexterm"></a><div class="para">This section describes how to profile network activity. <a class="xref" href="useful-systemtap-scripts.html#nettop">nettop.stp</a> provides a glimpse into how much network traffic each process is generating on a machine.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">nettop.stp</div> 5 ⁠</a>5.1.1. Network Profiling</h3></div></div></div><a id="id4311" class="indexterm"></a><a id="id4314" class="indexterm"></a><a id="id4317" class="indexterm"></a><a id="id4322" class="indexterm"></a><a id="id4325" class="indexterm"></a><div class="para">This section describes how to profile network activity. <a class="xref" href="useful-systemtap-scripts.html#nettop">nettop.stp</a> provides a glimpse into how much network traffic each process is generating on a machine.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">nettop.stp</div>
6<pre class="programlisting">#! /usr/bin/env stap 6<pre class="programlisting">#! /usr/bin/env stap
7 7
8global ifxmit, ifrecv 8global ifxmit, ifrecv
@@ -48,7 +48,7 @@ probe timer.ms(5000), end, error
48 print_activity() 48 print_activity()
49} 49}
50</pre> 50</pre>
51</div><a id="idm46413317756160" class="indexterm"></a><a id="idm46413322706256" class="indexterm"></a><a id="idm46413327297744" class="indexterm"></a><div class="para">Note that <code class="command">function print_activity()</code> uses the following 51</div><a id="id4334" class="indexterm"></a><a id="id4337" class="indexterm"></a><a id="id4340" class="indexterm"></a><div class="para">Note that <code class="command">function print_activity()</code> uses the following
52expressions:</div><pre class="screen">n_xmit ? @sum(ifxmit[pid, dev, exec, uid])/1024 : 0 52expressions:</div><pre class="screen">n_xmit ? @sum(ifxmit[pid, dev, exec, uid])/1024 : 0
53n_recv ? @sum(ifrecv[pid, dev, exec, uid])/1024 : 0</pre><div class="para">These expressions are if/else conditionals. 53n_recv ? @sum(ifrecv[pid, dev, exec, uid])/1024 : 0</pre><div class="para">These expressions are if/else conditionals.
54The first statement is a more concise way of writing the following 54The first statement is a more concise way of writing the following
@@ -80,7 +80,7 @@ else
8011362 0 eth0 0 7 0 0 firefox 8011362 0 eth0 0 7 0 0 firefox
81 3897 0 eth0 0 1 0 0 multiload-apple 81 3897 0 eth0 0 1 0 0 multiload-apple
82[...]</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="sockettracesect"> 82[...]</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="sockettracesect">
83 ⁠</a>5.1.2. Tracing Functions Called in Network Socket Code</h3></div></div></div><a id="idm46413327132432" class="indexterm"></a><a id="idm46413314725792" class="indexterm"></a><a id="idm46413322402768" class="indexterm"></a><a id="idm46413316699088" class="indexterm"></a><a id="idm46413329825872" class="indexterm"></a><a id="idm46413323271872" class="indexterm"></a><a id="idm46413326079584" class="indexterm"></a><a id="idm46413330163040" class="indexterm"></a><div class="para">This section describes how to trace functions called from the kernel's <code class="filename">net/socket.c</code> file. This task helps you identify, in finer detail, how each process interacts with the network at the kernel level.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">socket-trace.stp</div> 83 ⁠</a>5.1.2. Tracing Functions Called in Network Socket Code</h3></div></div></div><a id="id4384" class="indexterm"></a><a id="id4387" class="indexterm"></a><a id="id4390" class="indexterm"></a><a id="id4393" class="indexterm"></a><a id="id4396" class="indexterm"></a><a id="id4400" class="indexterm"></a><a id="id4403" class="indexterm"></a><a id="id4406" class="indexterm"></a><div class="para">This section describes how to trace functions called from the kernel's <code class="filename">net/socket.c</code> file. This task helps you identify, in finer detail, how each process interacts with the network at the kernel level.</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">socket-trace.stp</div>
84<pre class="programlisting">#! /usr/bin/env stap 84<pre class="programlisting">#! /usr/bin/env stap
85 85
86probe kernel.function("*@net/socket.c").call { 86probe kernel.function("*@net/socket.c").call {
@@ -111,7 +111,7 @@ probe kernel.function("*@net/socket.c").return {
11131 scim-bridge(3883): &lt;- sys_recv 11131 scim-bridge(3883): &lt;- sys_recv
11235 scim-bridge(3883): &lt;- sys_socketcall 11235 scim-bridge(3883): &lt;- sys_socketcall
113[...]</pre></div></div><div class="para"><a class="xref" href="useful-systemtap-scripts.html#sockettraceoutput">Example 5.2, “socket-trace.stp Sample Output”</a> contains a 3-second excerpt of the output for <a class="xref" href="useful-systemtap-scripts.html#sockettrace">socket-trace.stp</a>. For more information about the output of this script as provided by <code class="command">thread_indent()</code>, refer to <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a> <a class="xref" href="systemtapscript-handler.html#thread_indent">Example 3.6, “thread_indent.stp”</a>. </div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="tcpconnectionssect"> 113[...]</pre></div></div><div class="para"><a class="xref" href="useful-systemtap-scripts.html#sockettraceoutput">Example 5.2, “socket-trace.stp Sample Output”</a> contains a 3-second excerpt of the output for <a class="xref" href="useful-systemtap-scripts.html#sockettrace">socket-trace.stp</a>. For more information about the output of this script as provided by <code class="command">thread_indent()</code>, refer to <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a> <a class="xref" href="systemtapscript-handler.html#thread_indent">Example 3.6, “thread_indent.stp”</a>. </div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="tcpconnectionssect">
114 ⁠</a>5.1.3. Monitoring Incoming TCP Connections</h3></div></div></div><a id="idm46413318313792" class="indexterm"></a><a id="idm46413329716896" class="indexterm"></a><a id="idm46413322579776" class="indexterm"></a><a id="idm46413330823312" class="indexterm"></a><a id="idm46413327941104" class="indexterm"></a><div class="para"> 114 ⁠</a>5.1.3. Monitoring Incoming TCP Connections</h3></div></div></div><a id="id4432" class="indexterm"></a><a id="id4435" class="indexterm"></a><a id="id4438" class="indexterm"></a><a id="id4441" class="indexterm"></a><a id="id4444" class="indexterm"></a><div class="para">
115 This section illustrates how to monitor incoming TCP connections. This task is useful in 115 This section illustrates how to monitor incoming TCP connections. This task is useful in
116 identifying any unauthorized, suspicious, or otherwise unwanted network access requests 116 identifying any unauthorized, suspicious, or otherwise unwanted network access requests
117 in real time. 117 in real time.
@@ -137,7 +137,7 @@ probe kernel.{function("tcp_accept"),function("inet_csk_accept")}.return? {
137 ⁠</a><p class="title"><strong>Example 5.3. <a class="xref" href="useful-systemtap-scripts.html#tcpconnections">tcp_connections.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">UID CMD PID PORT IP_SOURCE 137 ⁠</a><p class="title"><strong>Example 5.3. <a class="xref" href="useful-systemtap-scripts.html#tcpconnections">tcp_connections.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">UID CMD PID PORT IP_SOURCE
1380 sshd 3165 22 10.64.0.227 1380 sshd 3165 22 10.64.0.227
1390 sshd 3165 22 10.64.0.227</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="tcpdumplikesect"> 1390 sshd 3165 22 10.64.0.227</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="tcpdumplikesect">
140 ⁠</a>5.1.4. Monitoring TCP Packets</h3></div></div></div><a id="idm46413324442464" class="indexterm"></a><a id="idm46413316473776" class="indexterm"></a><a id="idm46413318401808" class="indexterm"></a><a id="idm46413314778368" class="indexterm"></a><a id="idm46413324981600" class="indexterm"></a><div class="para"> 140 ⁠</a>5.1.4. Monitoring TCP Packets</h3></div></div></div><a id="id4474" class="indexterm"></a><a id="id4477" class="indexterm"></a><a id="id4480" class="indexterm"></a><a id="id4483" class="indexterm"></a><a id="id4486" class="indexterm"></a><div class="para">
141 This section illustrates how to monitor TCP packets received by the system. This is useful in 141 This section illustrates how to monitor TCP packets received by the system. This is useful in
142 analyzing network traffic generated by applications running on the system. 142 analyzing network traffic generated by applications running on the system.
143</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">tcpdumplike.stp</div> 143</div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">tcpdumplike.stp</div>
@@ -188,8 +188,8 @@ probe tcp.receive {
188 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 188 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0
189 209.85.229.118 10.0.2.15 80 63433 0 1 1 0 0 0 189 209.85.229.118 10.0.2.15 80 63433 0 1 1 0 0 0
190[...]</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="dropwatchsect"> 190[...]</pre></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="dropwatchsect">
191 ⁠</a>5.1.5. Monitoring Network Packets Drops in Kernel</h3></div></div></div><a id="idm46413322856000" class="indexterm"></a><a id="idm46413323398928" class="indexterm"></a><a id="idm46413322842480" class="indexterm"></a><a id="idm46413314756096" class="indexterm"></a><a id="idm46413320350816" class="indexterm"></a><div class="para"> 191 ⁠</a>5.1.5. Monitoring Network Packets Drops in Kernel</h3></div></div></div><a id="id4537" class="indexterm"></a><a id="id4540" class="indexterm"></a><a id="id4543" class="indexterm"></a><a id="id4546" class="indexterm"></a><a id="id4549" class="indexterm"></a><div class="para">
192<a id="idm46413322888208" class="indexterm"></a> 192<a id="id4553" class="indexterm"></a>
193The network stack in Linux 193The network stack in Linux
194can discard packets for various reasons. Some Linux kernels include a 194can discard packets for various reasons. Some Linux kernels include a
195tracepoint, <code class="command">kernel.trace("kfree_skb")</code>, which easily tracks where packets are discarded. 195tracepoint, <code class="command">kernel.trace("kfree_skb")</code>, which easily tracks where packets are discarded.
@@ -223,7 +223,7 @@ probe timer.sec(5)
223 printf("\n%s\n", ctime(gettimeofday_s())) 223 printf("\n%s\n", ctime(gettimeofday_s()))
224 foreach (l in locations-) { 224 foreach (l in locations-) {
225 printf("%d packets dropped at %s\n", 225 printf("%d packets dropped at %s\n",
226 @count(locations[l]), symname(l)) 226 @count(locations[l]), symdata(l))
227 } 227 }
228 delete locations 228 delete locations
229} 229}
diff --git a/SystemTap_Beginners_Guide/userspace-probing.html b/SystemTap_Beginners_Guide/userspace-probing.html
index b0718d21..899c81c3 100644
--- a/SystemTap_Beginners_Guide/userspace-probing.html
+++ b/SystemTap_Beginners_Guide/userspace-probing.html
@@ -13,17 +13,8 @@ Linux kernel is version 3.5 or higher, it already includes uprobes.
13To verify that the current kernel supports uprobes natively, run the following command: 13To verify that the current kernel supports uprobes natively, run the following command:
14</div><pre class="screen"><code class="command">grep CONFIG_UPROBES /boot/config-`uname -r`</code></pre><div class="para"> 14</div><pre class="screen"><code class="command">grep CONFIG_UPROBES /boot/config-`uname -r`</code></pre><div class="para">
15If uprobes is integrated, the output of this command is as follows: 15If uprobes is integrated, the output of this command is as follows:
16</div><pre class="screen">CONFIG_UPROBES=y</pre><div class="para"> 16</div><pre class="screen">CONFIG_UPROBES=y</pre><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="uevents">
17If you are running a kernel prior to version 3.5, SystemTap automatically 17 ⁠</a>4.1. User-Space Events</h2></div></div></div><a id="id4145" class="indexterm"></a><div class="para">
18builds the uprobes module. However, you also need the utrace kernel
19extensions required by the SystemTap user-space probing to track
20various user-space events. More details about the utrace infrastructure are
21available at <a href="http://sourceware.org/systemtap/wiki/utrace">http://sourceware.org/systemtap/wiki/utrace</a>.
22To determine whether the currently running Linux kernel provides the needed utrace support, type the following at a shell prompt:
23</div><pre class="screen"><code class="command">grep CONFIG_UTRACE /boot/config-`uname -r`</code></pre><div class="para">
24If the Linux kernel supports user-space probing, the command produces the following output:
25</div><pre class="screen">CONFIG_UTRACE=y</pre><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="uevents">
26 ⁠</a>4.1. User-Space Events</h2></div></div></div><a id="idm46413316627280" class="indexterm"></a><div class="para">
27All user-space event probes begin with <span class="emphasis"><em>process</em></span>. 18All user-space event probes begin with <span class="emphasis"><em>process</em></span>.
28You can limit the process events to a specific running process by specifying the process ID. 19You can limit the process events to a specific running process by specifying the process ID.
29You can also limit the process events to monitor a particular executable 20You can also limit the process events to monitor a particular executable
diff --git a/SystemTap_Beginners_Guide/using-systemtap.html b/SystemTap_Beginners_Guide/using-systemtap.html
index 3bfdde75..4660ebf6 100644
--- a/SystemTap_Beginners_Guide/using-systemtap.html
+++ b/SystemTap_Beginners_Guide/using-systemtap.html
@@ -1,9 +1,9 @@
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">Chapter 2. Using SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="intro-systemtap-limitations.html" title="1.3. Limitations of SystemTap" /><link rel="next" href="cross-compiling.html" title="2.2. Generating Instrumentation for Other Computers" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="intro-systemtap-limitations.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="cross-compiling.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="using-systemtap"> 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">Chapter 2. Using SystemTap</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="index.html" title="SystemTap Beginners Guide" /><link rel="prev" href="intro-systemtap-limitations.html" title="1.3. Limitations of SystemTap" /><link rel="next" href="cross-compiling.html" title="2.2. Generating Instrumentation for Other Computers" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="intro-systemtap-limitations.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="cross-compiling.html"><strong>Next</strong></a></li></ul><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="using-systemtap">
3 ⁠</a>Chapter 2. Using SystemTap</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="using-systemtap.html#using-setup">2.1. Installation and Setup</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#installproper">2.1.1. Installing SystemTap</a></span></dt><dt><span class="section"><a href="using-systemtap.html#install-kinfo">2.1.2. Installing Required Kernel Information Packages Manually</a></span></dt><dt><span class="section"><a href="using-systemtap.html#testing">2.1.3. Initial Testing</a></span></dt></dl></dd><dt><span class="section"><a href="cross-compiling.html">2.2. Generating Instrumentation for Other Computers</a></span></dt><dt><span class="section"><a href="using-usage.html">2.3. Running SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="using-usage.html#flight-recorder">2.3.1. SystemTap Flight Recorder Mode</a></span></dt></dl></dd></dl></div><a id="idm46413318351392" class="indexterm"></a><div class="para"> 3 ⁠</a>Chapter 2. Using SystemTap</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="using-systemtap.html#using-setup">2.1. Installation and Setup</a></span></dt><dd><dl><dt><span class="section"><a href="using-systemtap.html#installproper">2.1.1. Installing SystemTap</a></span></dt><dt><span class="section"><a href="using-systemtap.html#install-kinfo">2.1.2. Installing Required Kernel Information Packages Manually</a></span></dt><dt><span class="section"><a href="using-systemtap.html#testing">2.1.3. Initial Testing</a></span></dt></dl></dd><dt><span class="section"><a href="cross-compiling.html">2.2. Generating Instrumentation for Other Computers</a></span></dt><dt><span class="section"><a href="using-usage.html">2.3. Running SystemTap Scripts</a></span></dt><dd><dl><dt><span class="section"><a href="using-usage.html#flight-recorder">2.3.1. SystemTap Flight Recorder Mode</a></span></dt></dl></dd></dl></div><a id="id1576" class="indexterm"></a><div class="para">
4 This chapter documents how to install SystemTap in the system and explains how to use the <code class="command">stap</code> utility to run SystemTap scripts. 4 This chapter documents how to install SystemTap in the system and explains how to use the <code class="command">stap</code> utility to run SystemTap scripts.
5 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="using-setup"> 5 </div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="using-setup">
6 ⁠</a>2.1. Installation and Setup</h2></div></div></div><a id="idm46413318353568" class="indexterm"></a><a id="idm46413318357088" class="indexterm"></a><div class="para">To deploy SystemTap, install the SystemTap packages along 6 ⁠</a>2.1. Installation and Setup</h2></div></div></div><a id="id1584" class="indexterm"></a><a id="id1587" class="indexterm"></a><div class="para">To deploy SystemTap, install the SystemTap packages along
7 with the corresponding set of <span class="package">-devel</span>, 7 with the corresponding set of <span class="package">-devel</span>,
8 <span class="package">-debuginfo</span>, and <span class="package">-debuginfo-common</span> 8 <span class="package">-debuginfo</span>, and <span class="package">-debuginfo-common</span>
9 packages for your kernel. If your system has multiple kernels installed and 9 packages for your kernel. If your system has multiple kernels installed and
@@ -17,7 +17,7 @@
17 <span class="package">-debuginfo</span> package of the kernel, not the 17 <span class="package">-debuginfo</span> package of the kernel, not the
18 <span class="package">-debug</span> version of the kernel.</div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="installproper"> 18 <span class="package">-debug</span> version of the kernel.</div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="installproper">
19 ⁠</a>2.1.1. Installing SystemTap</h3></div></div></div><div class="para">To deploy SystemTap, install the following RPM packages: 19 ⁠</a>2.1.1. Installing SystemTap</h3></div></div></div><div class="para">To deploy SystemTap, install the following RPM packages:
20 </div><a id="idm46413318365920" class="indexterm"></a><a id="idm46413318368080" class="indexterm"></a><a id="idm46413318369504" class="indexterm"></a><a id="idm46413318370368" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="package">systemtap</span></div></li><li class="listitem"><div class="para"><span class="package">systemtap-runtime</span></div></li></ul></div><div class="para"> 20 </div><a id="id1607" class="indexterm"></a><a id="id1610" class="indexterm"></a><a id="id1612" class="indexterm"></a><a id="id1615" class="indexterm"></a><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="package">systemtap</span></div></li><li class="listitem"><div class="para"><span class="package">systemtap-runtime</span></div></li></ul></div><div class="para">
21 To do so, run the following command as root: 21 To do so, run the following command as root:
22 </div><pre class="screen"><code class="command">yum install systemtap systemtap-runtime</code></pre><div class="para"> 22 </div><pre class="screen"><code class="command">yum install systemtap systemtap-runtime</code></pre><div class="para">
23 Note that before using SystemTap, you still need to install the required 23 Note that before using SystemTap, you still need to install the required
@@ -26,7 +26,7 @@
26 </div><pre class="screen"><code class="command">stap-prep</code></pre><div class="para"> 26 </div><pre class="screen"><code class="command">stap-prep</code></pre><div class="para">
27 If this command does not work, try manual installation as described below. 27 If this command does not work, try manual installation as described below.
28 </div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="install-kinfo"> 28 </div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="install-kinfo">
29 ⁠</a>2.1.2. Installing Required Kernel Information Packages Manually</h3></div></div></div><a id="idm46413318377744" class="indexterm"></a><a id="idm46413318382208" class="indexterm"></a><a id="idm46413318379280" class="indexterm"></a><a id="idm46413318380928" class="indexterm"></a><a id="idm46413318386048" class="indexterm"></a><a id="idm46413318383200" class="indexterm"></a><div class="para"> 29 ⁠</a>2.1.2. Installing Required Kernel Information Packages Manually</h3></div></div></div><a id="id1633" class="indexterm"></a><a id="id1636" class="indexterm"></a><a id="id1638" class="indexterm"></a><a id="id1640" class="indexterm"></a><a id="id1642" class="indexterm"></a><a id="id1645" class="indexterm"></a><div class="para">
30 SystemTap needs information about the kernel in order to place instrumentation in it (in other words, probe it). This 30 SystemTap needs information about the kernel in order to place instrumentation in it (in other words, probe it). This
31 information also allows SystemTap to generate the code for the instrumentation. 31 information also allows SystemTap to generate the code for the instrumentation.
32 </div><div class="para"> 32 </div><div class="para">
@@ -38,7 +38,7 @@
38 Likewise, the necessary packages for the PAE kernel are 38 Likewise, the necessary packages for the PAE kernel are
39 <span class="package">kernel-PAE-debuginfo</span>, <span class="package">kernel-PAE-debuginfo-common</span>, 39 <span class="package">kernel-PAE-debuginfo</span>, <span class="package">kernel-PAE-debuginfo-common</span>,
40 and <span class="package">kernel-PAE-devel</span>. 40 and <span class="package">kernel-PAE-devel</span>.
41 </div><a id="idm46413327000144" class="indexterm"></a><a id="idm46413327000640" class="indexterm"></a><a id="idm46413327000944" class="indexterm"></a><a id="idm46413327002400" class="indexterm"></a><div class="para"> To determine what kernel your system is currently using, use:</div><pre class="screen">uname -r</pre><div class="para"> 41 </div><a id="id1668" class="indexterm"></a><a id="id1671" class="indexterm"></a><a id="id1673" class="indexterm"></a><a id="id1675" class="indexterm"></a><div class="para"> To determine what kernel your system is currently using, use:</div><pre class="screen">uname -r</pre><div class="para">
42 For example, if you intend to use SystemTap on kernel version <span class="emphasis"><em>2.6.18-53.el5</em></span> on an <span class="emphasis"><em>i686</em></span> machine, 42 For example, if you intend to use SystemTap on kernel version <span class="emphasis"><em>2.6.18-53.el5</em></span> on an <span class="emphasis"><em>i686</em></span> machine,
43 download and install the following RPM packages: 43 download and install the following RPM packages:
44 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="package">kernel-debuginfo-2.6.18-53.1.13.el5.i686.rpm</span></div></li><li class="listitem"><div class="para"><span class="package">kernel-debuginfo-common-2.6.18-53.1.13.el5.i686.rpm</span></div></li><li class="listitem"><div class="para"><span class="package">kernel-devel-2.6.18-53.1.13.el5.i686.rpm</span></div></li></ul></div><div xmlns:d="http://docbook.org/ns/docbook" class="important"><div class="admonition_header"><p><strong>Important</strong></p></div><div class="admonition"><div class="para"> 44 </div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para"><span class="package">kernel-debuginfo-2.6.18-53.1.13.el5.i686.rpm</span></div></li><li class="listitem"><div class="para"><span class="package">kernel-debuginfo-common-2.6.18-53.1.13.el5.i686.rpm</span></div></li><li class="listitem"><div class="para"><span class="package">kernel-devel-2.6.18-53.1.13.el5.i686.rpm</span></div></li></ul></div><div xmlns:d="http://docbook.org/ns/docbook" class="important"><div class="admonition_header"><p><strong>Important</strong></p></div><div class="admonition"><div class="para">
@@ -73,7 +73,7 @@
73<code class="command">debuginfo-install kernel-PAE-2.6.18-53.1.13.el5</code></pre><div class="para"> 73<code class="command">debuginfo-install kernel-PAE-2.6.18-53.1.13.el5</code></pre><div class="para">
74Once you have manually downloaded the required packages to the machine, run the following command as root to install them: 74Once you have manually downloaded the required packages to the machine, run the following command as root to install them:
75 </div><pre class="screen"><code class="command">rpm --force -ivh <em class="replaceable">package_names</em></code></pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="testing"> 75 </div><pre class="screen"><code class="command">rpm --force -ivh <em class="replaceable">package_names</em></code></pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="testing">
76 ⁠</a>2.1.3. Initial Testing</h3></div></div></div><a id="idm46413324703104" class="indexterm"></a><a id="idm46413323362496" class="indexterm"></a><a id="idm46413323363024" class="indexterm"></a><div class="para">If you are currently using the kernel you intend to probe with 76 ⁠</a>2.1.3. Initial Testing</h3></div></div></div><a id="id1732" class="indexterm"></a><a id="id1735" class="indexterm"></a><a id="id1737" class="indexterm"></a><div class="para">If you are currently using the kernel you intend to probe with
77 SystemTap, you can immediately test whether the deployment was 77 SystemTap, you can immediately test whether the deployment was
78 successful. If not, you restart the system and load the appropriate 78 successful. If not, you restart the system and load the appropriate
79 kernel. 79 kernel.
diff --git a/SystemTap_Beginners_Guide/using-usage.html b/SystemTap_Beginners_Guide/using-usage.html
index 8169bdf6..f6cee6e2 100644
--- a/SystemTap_Beginners_Guide/using-usage.html
+++ b/SystemTap_Beginners_Guide/using-usage.html
@@ -1,8 +1,8 @@
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">2.3. Running SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="prev" href="cross-compiling.html" title="2.2. Generating Instrumentation for Other Computers" /><link rel="next" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="cross-compiling.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="understanding-how-systemtap-works.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="using-usage"> 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">2.3. Running SystemTap Scripts</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="using-systemtap.html" title="Chapter 2. Using SystemTap" /><link rel="prev" href="cross-compiling.html" title="2.2. Generating Instrumentation for Other Computers" /><link rel="next" href="understanding-how-systemtap-works.html" title="Chapter 3. Understanding How SystemTap Works" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="cross-compiling.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="understanding-how-systemtap-works.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="using-usage">
3 ⁠</a>2.3. Running SystemTap Scripts</h2></div></div></div><a id="idm46413324704992" class="indexterm"></a><a id="idm46413330649824" class="indexterm"></a><a id="idm46413330851728" class="indexterm"></a><a id="idm46413329470304" class="indexterm"></a><a id="idm46413330003904" class="indexterm"></a><a id="idm46413323890368" class="indexterm"></a><div class="para"> 3 ⁠</a>2.3. Running SystemTap Scripts</h2></div></div></div><a id="id1936" class="indexterm"></a><a id="id1939" class="indexterm"></a><a id="id1942" class="indexterm"></a><a id="id1945" class="indexterm"></a><a id="id1948" class="indexterm"></a><a id="id1951" class="indexterm"></a><div class="para">
4 SystemTap is distributed with a number of command line tools that allow you to monitor the activities of the system. The <code class="command">stap</code> command reads probing instructions from a SystemTap script, translates these instructions into C code, builds a kernel module, and loads it into the running Linux kernel. The <code class="command">staprun</code> command runs SystemTap instrumentation, that is, a kernel module built from SystemTap scripts during a cross-instrumentation. 4 SystemTap is distributed with a number of command line tools that allow you to monitor the activities of the system. The <code class="command">stap</code> command reads probing instructions from a SystemTap script, translates these instructions into C code, builds a kernel module, and loads it into the running Linux kernel. The <code class="command">staprun</code> command runs SystemTap instrumentation, that is, a kernel module built from SystemTap scripts during a cross-instrumentation.
5 </div><a id="idm46413328903280" class="indexterm"></a><div class="para">Running <code class="command">stap</code> and <code class="command">staprun</code> requires elevated privileges to the system. Because not all users can be granted root access just to run SystemTap, you can allow a non-privileged user to run SystemTap instrumentation on their machine by adding them to one of the following user groups:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">stapdev</span></dt><dd><a id="idm46413329864192" class="indexterm"></a><a id="idm46413323337136" class="indexterm"></a><div class="para"> 5 </div><a id="id1957" class="indexterm"></a><div class="para">Running <code class="command">stap</code> and <code class="command">staprun</code> requires elevated privileges to the system. Because not all users can be granted root access just to run SystemTap, you can allow a non-privileged user to run SystemTap instrumentation on their machine by adding them to one of the following user groups:</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">stapdev</span></dt><dd><a id="id1966" class="indexterm"></a><a id="id1969" class="indexterm"></a><div class="para">
6 Members of this group can use the <code class="command">stap</code> command to run SystemTap scripts, or <code class="command">staprun</code> to run SystemTap instrumentation modules. 6 Members of this group can use the <code class="command">stap</code> command to run SystemTap scripts, or <code class="command">staprun</code> to run SystemTap instrumentation modules.
7</div><div class="para"> 7</div><div class="para">
8 Running the <code class="command">stap</code> command involves compiling SystemTap scripts into kernel modules and 8 Running the <code class="command">stap</code> command involves compiling SystemTap scripts into kernel modules and
@@ -10,13 +10,13 @@
10 to <code class="systemitem">stapdev</code> members. Unfortunately, such privileges also grant effective root 10 to <code class="systemitem">stapdev</code> members. Unfortunately, such privileges also grant effective root
11 access to <code class="systemitem">stapdev</code> members. As a consequence, only grant 11 access to <code class="systemitem">stapdev</code> members. As a consequence, only grant
12 <code class="systemitem">stapdev</code> group membership to users whom you can trust with root access. 12 <code class="systemitem">stapdev</code> group membership to users whom you can trust with root access.
13</div></dd><dt><span class="term">stapusr</span></dt><dd><a id="idm46413325069840" class="indexterm"></a><a id="idm46413316760352" class="indexterm"></a><div class="para"> 13</div></dd><dt><span class="term">stapusr</span></dt><dd><a id="id1983" class="indexterm"></a><a id="id1986" class="indexterm"></a><div class="para">
14 Members of this group can only use the <code class="command">staprun</code> command to run SystemTap instrumentation modules. In addition, they can only run modules from the <code class="filename">/lib/modules/<em class="replaceable">kernel_version</em>/systemtap/</code> directory. Note that this directory must be owned only by the root user, and must only be writable by the root user. 14 Members of this group can only use the <code class="command">staprun</code> command to run SystemTap instrumentation modules. In addition, they can only run modules from the <code class="filename">/lib/modules/<em class="replaceable">kernel_version</em>/systemtap/</code> directory. Note that this directory must be owned only by the root user, and must only be writable by the root user.
15</div></dd></dl></div><div class="para"> 15</div></dd></dl></div><div class="para">
16 The <code class="command">stap</code> command reads a SystemTap script either from a file, or from standard input. To tell <code class="command">stap</code> to read a SystemTap script from a file, specify the file name on the command line: 16 The <code class="command">stap</code> command reads a SystemTap script either from a file, or from standard input. To tell <code class="command">stap</code> to read a SystemTap script from a file, specify the file name on the command line:
17 </div><pre class="screen"><code class="command">stap <em class="replaceable">file_name</em></code></pre><a id="idm46413330681840" class="indexterm"></a><a id="idm46413322971168" class="indexterm"></a><a id="idm46413324402816" class="indexterm"></a><div class="para"> 17 </div><pre class="screen"><code class="command">stap <em class="replaceable">file_name</em></code></pre><a id="id1999" class="indexterm"></a><a id="id2002" class="indexterm"></a><a id="id2005" class="indexterm"></a><div class="para">
18 To instruct <code class="command">stap</code> to read a SystemTap script from standard input, use the <code class="option">-</code> switch instead of the file name. Note that any command-line options you wish to use must be inserted before the <code class="option">-</code> switch. For example, to make the output of the <code class="command">stap</code> command more verbose, type: 18 To instruct <code class="command">stap</code> to read a SystemTap script from standard input, use the <code class="option">-</code> switch instead of the file name. Note that any command-line options you wish to use must be inserted before the <code class="option">-</code> switch. For example, to make the output of the <code class="command">stap</code> command more verbose, type:
19 </div><pre class="screen"><code class="command">echo "probe timer.s(1) {exit()}" | stap -v -</code></pre><div class="para"> Below is a list of commonly used <code class="command">stap</code> options: </div><a id="idm46413327607088" class="indexterm"></a><a id="idm46413323322064" class="indexterm"></a><div class="variablelist"><a id="idm46413316722800" class="indexterm"></a><dl class="variablelist"><dt><span class="term">-v</span></dt><dd><div class="para">Makes the output of the SystemTap session more 19 </div><pre class="screen"><code class="command">echo "probe timer.s(1) {exit()}" | stap -v -</code></pre><div class="para"> Below is a list of commonly used <code class="command">stap</code> options: </div><a id="id2016" class="indexterm"></a><a id="id2019" class="indexterm"></a><div class="variablelist"><a id="id2023" class="indexterm"></a><dl class="variablelist"><dt><span class="term">-v</span></dt><dd><div class="para">Makes the output of the SystemTap session more
20 verbose. You can repeat this option multiple times to provide more details on the script's execution, 20 verbose. You can repeat this option multiple times to provide more details on the script's execution,
21 for example:</div><pre class="screen"><code class="command">stap -vvv script.stp</code></pre><div class="para">This option is particularly useful if you encounter any errors in running the script. 21 for example:</div><pre class="screen"><code class="command">stap -vvv script.stp</code></pre><div class="para">This option is particularly useful if you encounter any errors in running the script.
22 For more information about common SystemTap script errors, refer to <a class="xref" href="errors.html">Chapter 6, <em>Understanding SystemTap Errors</em></a>.</div></dd><dt><span class="term">-o <em class="replaceable">file_name</em></span></dt><dd><div class="para">Sends the standard output to a file named <em class="replaceable">file_name</em>.</div></dd><dt><span class="term">-S <em class="replaceable">size</em>,<em class="replaceable">count</em></span></dt><dd><div class="para">Limits the maximum size of output files to <em class="replaceable">size</em> megabytes and 22 For more information about common SystemTap script errors, refer to <a class="xref" href="errors.html">Chapter 6, <em>Understanding SystemTap Errors</em></a>.</div></dd><dt><span class="term">-o <em class="replaceable">file_name</em></span></dt><dd><div class="para">Sends the standard output to a file named <em class="replaceable">file_name</em>.</div></dd><dt><span class="term">-S <em class="replaceable">size</em>,<em class="replaceable">count</em></span></dt><dd><div class="para">Limits the maximum size of output files to <em class="replaceable">size</em> megabytes and
@@ -30,7 +30,7 @@
30 <code class="function">target()</code>, refer to <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a>.</div></dd><dt><span class="term">-e '<em class="replaceable">script</em>'</span></dt><dd><div class="para">Uses <em class="replaceable">script</em> rather than a file as input for the SystemTap translator.</div></dd><dt><span class="term">-F</span></dt><dd><div class="para">Uses SystemTap's flight recorder mode and makes the script a 30 <code class="function">target()</code>, refer to <a class="xref" href="systemtapscript-handler.html#systemtapscript-functions">SystemTap Functions</a>.</div></dd><dt><span class="term">-e '<em class="replaceable">script</em>'</span></dt><dd><div class="para">Uses <em class="replaceable">script</em> rather than a file as input for the SystemTap translator.</div></dd><dt><span class="term">-F</span></dt><dd><div class="para">Uses SystemTap's flight recorder mode and makes the script a
31 background process. For more information about flight 31 background process. For more information about flight
32 recorder mode, refer to <a class="xref" href="using-usage.html#flight-recorder">Section 2.3.1, “SystemTap Flight Recorder Mode”</a>.</div></dd></dl></div><div class="para">For more information about the <code class="command">stap</code> command, refer to the <span class="citerefentry"><span class="refentrytitle">stap</span>(1)</span> man page. For more information about the <code class="command">staprun</code> command and cross-instrumentation, refer to <a class="xref" href="cross-compiling.html">Section 2.2, “Generating Instrumentation for Other Computers”</a> or the <span class="citerefentry"><span class="refentrytitle">staprun</span>(8)</span> man page.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="flight-recorder"> 32 recorder mode, refer to <a class="xref" href="using-usage.html#flight-recorder">Section 2.3.1, “SystemTap Flight Recorder Mode”</a>.</div></dd></dl></div><div class="para">For more information about the <code class="command">stap</code> command, refer to the <span class="citerefentry"><span class="refentrytitle">stap</span>(1)</span> man page. For more information about the <code class="command">staprun</code> command and cross-instrumentation, refer to <a class="xref" href="cross-compiling.html">Section 2.2, “Generating Instrumentation for Other Computers”</a> or the <span class="citerefentry"><span class="refentrytitle">staprun</span>(8)</span> man page.</div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="flight-recorder">
33 ⁠</a>2.3.1. SystemTap Flight Recorder Mode</h3></div></div></div><a id="idm46413324346864" class="indexterm"></a><div class="para"> 33 ⁠</a>2.3.1. SystemTap Flight Recorder Mode</h3></div></div></div><a id="id2087" class="indexterm"></a><div class="para">
34SystemTap's flight recorder mode allows you to run a SystemTap script 34SystemTap's flight recorder mode allows you to run a SystemTap script
35for long periods of time and just focus on recent output. The flight 35for long periods of time and just focus on recent output. The flight
36recorder mode limits the amount of output 36recorder mode limits the amount of output
@@ -41,7 +41,7 @@ There are two variations of the flight recorder mode:
41In both cases, the SystemTap script runs as a 41In both cases, the SystemTap script runs as a
42background process. 42background process.
43</div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="memory-flight-recorder"> 43</div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="memory-flight-recorder">
44 ⁠</a>2.3.1.1. In-memory Flight Recorder</h4></div></div></div><a id="idm46413321567632" class="indexterm"></a><div class="para"> 44 ⁠</a>2.3.1.1. In-memory Flight Recorder</h4></div></div></div><a id="id2095" class="indexterm"></a><div class="para">
45When flight recorder mode is used without a 45When flight recorder mode is used without a
46file name, SystemTap uses a buffer in kernel memory to store the output of the 46file name, SystemTap uses a buffer in kernel memory to store the output of the
47script. Once the SystemTap instrumentation module is loaded and the probes start 47script. Once the SystemTap instrumentation module is loaded and the probes start
@@ -65,7 +65,7 @@ using the <code class="option">-s</code> option with the size in megabytes (roun
65next power over 2) for the buffer. For example, <code class="option">-s2</code> on the 65next power over 2) for the buffer. For example, <code class="option">-s2</code> on the
66SystemTap command line would specify 2MB for the buffer. 66SystemTap command line would specify 2MB for the buffer.
67</div></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="file-flight-recorder"> 67</div></div><div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="file-flight-recorder">
68 ⁠</a>2.3.1.2. File Flight Recorder</h4></div></div></div><a id="idm46413324822016" class="indexterm"></a><div class="para"> 68 ⁠</a>2.3.1.2. File Flight Recorder</h4></div></div></div><a id="id2115" class="indexterm"></a><div class="para">
69The flight recorder mode can also store data to files. You can control the number and size of 69The flight recorder mode can also store data to files. You can control the number and size of
70the files kept by using the <code class="option">-S</code> option followed by two 70the files kept by using the <code class="option">-S</code> option followed by two
71numerical arguments separated by a comma: the first argument is the maximum size 71numerical arguments separated by a comma: the first argument is the maximum size
diff --git a/SystemTap_Beginners_Guide/ustack.html b/SystemTap_Beginners_Guide/ustack.html
index 88b986fd..b9c4ed16 100644
--- a/SystemTap_Beginners_Guide/ustack.html
+++ b/SystemTap_Beginners_Guide/ustack.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">4.3. User-Space Stack Backtraces</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="prev" href="utargetvariable.html" title="4.2. Accessing User-Space Target Variables" /><link rel="next" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="utargetvariable.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="useful-systemtap-scripts.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="ustack"> 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">4.3. User-Space Stack Backtraces</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="prev" href="utargetvariable.html" title="4.2. Accessing User-Space Target Variables" /><link rel="next" href="useful-systemtap-scripts.html" title="Chapter 5. Useful SystemTap Scripts" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="utargetvariable.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="useful-systemtap-scripts.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="ustack">
3 ⁠</a>4.3. User-Space Stack Backtraces</h2></div></div></div><a id="idm46413330702960" class="indexterm"></a><div class="para"> 3 ⁠</a>4.3. User-Space Stack Backtraces</h2></div></div></div><a id="id4264" class="indexterm"></a><div class="para">
4 The probe point (<code class="function">pp</code>) function indicates which 4 The probe point (<code class="function">pp</code>) function indicates which
5 particular event triggered the SystemTap event handler. 5 particular event triggered the SystemTap event handler.
6 A probe on the entry into a function would list the function name. 6 A probe on the entry into a function would list the function name.
diff --git a/SystemTap_Beginners_Guide/utargetvariable.html b/SystemTap_Beginners_Guide/utargetvariable.html
index a942d310..5ce49129 100644
--- a/SystemTap_Beginners_Guide/utargetvariable.html
+++ b/SystemTap_Beginners_Guide/utargetvariable.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">4.2. Accessing User-Space Target Variables</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="prev" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="next" href="ustack.html" title="4.3. User-Space Stack Backtraces" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="userspace-probing.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="ustack.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="utargetvariable"> 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">4.2. Accessing User-Space Target Variables</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="not publican" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="prev" href="userspace-probing.html" title="Chapter 4. User-space Probing" /><link rel="next" href="ustack.html" title="4.3. User-Space Stack Backtraces" /></head><body><p id="title"></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="userspace-probing.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="ustack.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="utargetvariable">
3 ⁠</a>4.2. Accessing User-Space Target Variables</h2></div></div></div><a id="idm46413322490400" class="indexterm"></a><div class="para"> 3 ⁠</a>4.2. Accessing User-Space Target Variables</h2></div></div></div><a id="id4216" class="indexterm"></a><div class="para">
4You can access user-space target variables in the same manner as described in 4You can access user-space target variables in the same manner as described in
5<a class="xref" href="targetvariables.html">Section 3.3.2, “Target Variables”</a>. 5<a class="xref" href="targetvariables.html">Section 3.3.2, “Target Variables”</a>.
6In Linux, however, there are separate address spaces for the user and 6In Linux, however, there are separate address spaces for the user and