diff options
author | ddomingo <ddomingo@redhat.com> | 2008-12-04 14:43:33 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-12-04 14:43:33 +1000 |
commit | 882f2f0d6f0680990be5debde222cfd326afe0b8 (patch) | |
tree | 85c5eb2ba261e0b54dcd88b4dab35ba5ff11f14c /doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml | |
parent | 4df910b8d9b1aa0a79db34189f5233b1507ebc4b (diff) | |
download | systemtap-steved-882f2f0d6f0680990be5debde222cfd326afe0b8.tar.gz systemtap-steved-882f2f0d6f0680990be5debde222cfd326afe0b8.tar.xz systemtap-steved-882f2f0d6f0680990be5debde222cfd326afe0b8.zip |
more edits
Diffstat (limited to 'doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml')
-rw-r--r-- | doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml index c053c329..9c5e5a9f 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Array-Operations.xml @@ -178,7 +178,18 @@ delta = gettimeofday_s() - foo[tid()] </screen> </example> -<para>In <xref linkend="arrayreadingvaluesfrom"/>, the first statement sets a timestamp associated with the returned value of the handler function <command>tid()</command> as a <emphasis>reference point</emphasis>. The second statement computes a value for the variable <command>delta</command> by subtracting the associated value the reference point from the current <command>gettimeofday_s()</command>. Note that the first statement writes the value of <command>gettimeofday_s()</command> into the appropriate key of array <literal>foo</literal>, while in the second statement the value of <command>foo[tid()]</command> is <emphasis>read</emphasis> from the array in order to compute for <literal>delta</literal>.</para> +<para> + In <xref linkend="arrayreadingvaluesfrom"/>, the first statement sets a timestamp associated + with the returned value of the handler function <command>tid()</command> as a + <emphasis>reference point</emphasis>. + The second statement computes a value for the variable + <command>delta</command> by subtracting the associated value the reference point from the + current <command>gettimeofday_s()</command>. Note that the first statement writes the value + of <command>gettimeofday_s()</command> into the appropriate key of array + <literal>foo</literal>, while in the second statement the value of + <command>foo[tid()]</command> is <emphasis>read</emphasis> from the array in order to compute + for <literal>delta</literal>. +</para> <indexterm> <primary>reading values from arrays</primary> |