diff options
Diffstat (limited to 'runtime/docs/html/probes_8c-source.html')
-rw-r--r-- | runtime/docs/html/probes_8c-source.html | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/runtime/docs/html/probes_8c-source.html b/runtime/docs/html/probes_8c-source.html index 5fe6164c..ab2b831b 100644 --- a/runtime/docs/html/probes_8c-source.html +++ b/runtime/docs/html/probes_8c-source.html @@ -4,7 +4,7 @@ <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.1 --> -<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> +<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <h1>probes.c</h1><a href="probes_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* -*- linux-c -*- */</span><span class="comment"></span> 00002 <span class="comment">/** @file probes.c</span> 00003 <span class="comment"> * @brief Functions to assist loading and unloading groups of probes.</span> @@ -15,7 +15,7 @@ 00008 <span class="comment"> * That function is not exported, so this workaround is required.</span> 00009 <span class="comment"> * See the kernel source, kernel/kallsyms.c for more information.</span> 00010 <span class="comment"> */</span> -<a name="l00011"></a><a class="code" href="probes_8c.html#a0">00011</a> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> long (*_stp_lookup_name)(<span class="keywordtype">char</span> *name)=(<span class="keywordtype">void</span> *)KALLSYMS_LOOKUP_NAME; +00011 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> long (*_stp_lookup_name)(<span class="keywordtype">char</span> *name)=(<span class="keywordtype">void</span> *)KALLSYMS_LOOKUP_NAME; 00012 <span class="comment"></span> 00013 <span class="comment">/** Unregister a group of jprobes.</span> 00014 <span class="comment"> * @param probes Pointer to an array of struct jprobe.</span> @@ -27,7 +27,7 @@ 00020 <span class="keywordtype">int</span> i; 00021 <span class="keywordflow">for</span> (i = 0; i < num_probes; i++) 00022 unregister_jprobe(&probes[i]); -00023 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"All jprobes removed\n"</span>); +00023 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"All jprobes removed\n"</span>); 00024 } 00025 <span class="comment"></span> 00026 <span class="comment">/** Register a group of jprobes.</span> @@ -42,14 +42,14 @@ 00035 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> addr; 00036 00037 <span class="keywordflow">for</span> (i = 0; i < num_probes; i++) { -00038 addr =<a class="code" href="probes_8c.html#a0">_stp_lookup_name</a>((<span class="keywordtype">char</span> *)probes[i].kp.addr); +00038 addr =_stp_lookup_name((<span class="keywordtype">char</span> *)probes[i].kp.addr); 00039 <span class="keywordflow">if</span> (addr == 0) { -00040 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"ERROR: function %s not found!\n"</span>, +00040 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"ERROR: function %s not found!\n"</span>, 00041 (<span class="keywordtype">char</span> *)probes[i].kp.addr); 00042 ret = -1; <span class="comment">/* FIXME */</span> 00043 <span class="keywordflow">goto</span> out; 00044 } -00045 <a class="code" href="io_8c.html#a4">dlog</a>(<span class="stringliteral">"inserting jprobe at %s (%p)\n"</span>, probes[i].kp.addr, addr); +00045 <a class="code" href="group__io.html#ga0">dlog</a>(<span class="stringliteral">"inserting jprobe at %s (%p)\n"</span>, probes[i].kp.addr, addr); 00046 probes[i].kp.addr = (kprobe_opcode_t *)addr; 00047 ret = register_jprobe(&probes[i]); 00048 <span class="keywordflow">if</span> (ret) @@ -57,7 +57,7 @@ 00050 } 00051 <span class="keywordflow">return</span> 0; 00052 out: -00053 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"probe module initialization failed. Exiting...\n"</span>); +00053 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"probe module initialization failed. Exiting...\n"</span>); 00054 <a class="code" href="probes_8c.html#a1">_stp_unregister_jprobes</a>(probes, i); 00055 <span class="keywordflow">return</span> ret; 00056 } @@ -72,7 +72,7 @@ 00065 <span class="keywordtype">int</span> i; 00066 <span class="keywordflow">for</span> (i = 0; i < num_probes; i++) 00067 unregister_kprobe(&probes[i]); -00068 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"All kprobes removed\n"</span>); +00068 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"All kprobes removed\n"</span>); 00069 } 00070 <span class="comment"></span> 00071 <span class="comment">/** Register a group of kprobes.</span> @@ -87,14 +87,14 @@ 00080 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> addr; 00081 00082 <span class="keywordflow">for</span> (i = 0; i < num_probes; i++) { -00083 addr =<a class="code" href="probes_8c.html#a0">_stp_lookup_name</a>((<span class="keywordtype">char</span> *)probes[i].addr); +00083 addr =_stp_lookup_name((<span class="keywordtype">char</span> *)probes[i].addr); 00084 <span class="keywordflow">if</span> (addr == 0) { -00085 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"ERROR: function %s not found!\n"</span>, +00085 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"ERROR: function %s not found!\n"</span>, 00086 (<span class="keywordtype">char</span> *)probes[i].addr); 00087 ret = -1; <span class="comment">/* FIXME */</span> 00088 <span class="keywordflow">goto</span> out; 00089 } -00090 <a class="code" href="io_8c.html#a4">dlog</a>(<span class="stringliteral">"inserting kprobe at %s (%p)\n"</span>, probes[i].addr, addr); +00090 <a class="code" href="group__io.html#ga0">dlog</a>(<span class="stringliteral">"inserting kprobe at %s (%p)\n"</span>, probes[i].addr, addr); 00091 probes[i].addr = (kprobe_opcode_t *)addr; 00092 ret = register_kprobe(&probes[i]); 00093 <span class="keywordflow">if</span> (ret) @@ -102,11 +102,9 @@ 00095 } 00096 <span class="keywordflow">return</span> 0; 00097 out: -00098 <a class="code" href="io_8c.html#a4">dlog</a> (<span class="stringliteral">"probe module initialization failed. Exiting...\n"</span>); +00098 <a class="code" href="group__io.html#ga0">dlog</a> (<span class="stringliteral">"probe module initialization failed. Exiting...\n"</span>); 00099 <a class="code" href="probes_8c.html#a3">_stp_unregister_kprobes</a>(probes, i); 00100 <span class="keywordflow">return</span> ret; 00101 } 00102 -</pre></div><hr size="1"><address style="align: right;"><small> -Generated on Tue Mar 22 10:27:36 2005 for SystemTap.</small></body> -</html> +</pre></div></body></html> |