diff options
author | Elliott Baron <elliott@localhost.localdomain> | 2008-12-19 10:13:52 -0500 |
---|---|---|
committer | Elliott Baron <elliott@localhost.localdomain> | 2008-12-19 10:13:52 -0500 |
commit | a46143af464b24e75e784a3ebaebf86bc52a44ed (patch) | |
tree | 8ab09ae8ff39e673fed163ad6ef225c3e0ae754a /doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml | |
parent | 30c94a80d5f7bef33450bd1a7e090c8e99b6db89 (diff) | |
parent | b00e123d3bc577a0b255628e36f7534dc7a1e641 (diff) | |
download | systemtap-steved-a46143af464b24e75e784a3ebaebf86bc52a44ed.tar.gz systemtap-steved-a46143af464b24e75e784a3ebaebf86bc52a44ed.tar.xz systemtap-steved-a46143af464b24e75e784a3ebaebf86bc52a44ed.zip |
Merge branch 'master' of ssh://ebaron@sources.redhat.com/git/systemtap
Diffstat (limited to 'doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml')
-rw-r--r-- | doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml index bf496321..00a8673c 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml @@ -505,7 +505,7 @@ probe timer.s(3) } </screen> -<para>This <command>foreach</command> statement instructs the script to process the elements in the array <command>reads</command> in descending order (of associated value). The <command>limit 10</command> option instructs the script to only process the first ten elements in the array (i.e. the first 10, starting with the highest value).</para> +<para>This <command>foreach</command> statement instructs the script to process the elements in the array <command>reads</command> in descending order (of associated value). The <command>limit 10</command> option instructs the <command>foreach</command> to only process the first ten iterations (i.e. print the first 10, starting with the highest value).</para> </section> <section id="arrayops-deleting"> @@ -665,7 +665,7 @@ probe vfs.read probe timer.s(3) { printf("=======\n") - foreach (count in reads+) + foreach (count in reads-) printf("%s : %d \n", count, reads[count]) delete reads } @@ -673,7 +673,7 @@ probe timer.s(3) probe end { printf("TOTALS\n") - foreach (total in totalreads+) + foreach (total in totalreads-) printf("%s : %d \n", total, totalreads[total]) } </screen> @@ -788,7 +788,7 @@ probe timer.s(3) </formalpara> <screen> -if([<replaceable>index_expression</replaceable>] in <replaceable>array_name</replaceable>) +if([<replaceable>index_expression</replaceable>] in <replaceable>array_name</replaceable>) <replaceable>statement</replaceable> </screen> <para>To illustrate this, consider the following example:</para> |