From e32551b18f4560056d2d482f5e1505b1b98fa82a Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 29 Mar 2005 18:07:58 +0000 Subject: *** empty log message *** --- runtime/docs/html/probes_8c-source.html | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'runtime/docs/html/probes_8c-source.html') 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 @@ -
Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages
+
Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

probes.c

Go to the documentation of this file.
00001 /* -*- linux-c -*- */
 00002 /** @file probes.c
 00003  * @brief Functions to assist loading and unloading groups of probes.
@@ -15,7 +15,7 @@
 00008  * That function is not exported, so this workaround is required.
 00009  * See the kernel source, kernel/kallsyms.c for more information.
 00010  */
-00011 static unsigned long (*_stp_lookup_name)(char *name)=(void *)KALLSYMS_LOOKUP_NAME;
+00011 static unsigned long (*_stp_lookup_name)(char *name)=(void *)KALLSYMS_LOOKUP_NAME;
 00012 
 00013 /** Unregister a group of jprobes.
 00014  * @param probes Pointer to an array of struct jprobe.
@@ -27,7 +27,7 @@
 00020         int i;
 00021         for (i = 0; i < num_probes; i++)
 00022                 unregister_jprobe(&probes[i]);
-00023         dlog ("All jprobes removed\n");
+00023         dlog ("All jprobes removed\n");
 00024 }
 00025 
 00026 /** Register a group of jprobes.
@@ -42,14 +42,14 @@
 00035         unsigned long addr;
 00036 
 00037         for (i = 0; i < num_probes; i++) {
-00038                 addr =_stp_lookup_name((char *)probes[i].kp.addr);
+00038                 addr =_stp_lookup_name((char *)probes[i].kp.addr);
 00039                 if (addr == 0) {
-00040                         dlog ("ERROR: function %s not found!\n", 
+00040                         dlog ("ERROR: function %s not found!\n", 
 00041                               (char *)probes[i].kp.addr);
 00042                         ret = -1; /* FIXME */
 00043                         goto out;
 00044                 }
-00045                 dlog("inserting jprobe at %s (%p)\n", probes[i].kp.addr, addr);
+00045                 dlog("inserting jprobe at %s (%p)\n", probes[i].kp.addr, addr);
 00046                 probes[i].kp.addr = (kprobe_opcode_t *)addr;
 00047                 ret = register_jprobe(&probes[i]);
 00048                 if (ret)
@@ -57,7 +57,7 @@
 00050         }
 00051         return 0;
 00052 out:
-00053         dlog ("probe module initialization failed.  Exiting...\n");
+00053         dlog ("probe module initialization failed.  Exiting...\n");
 00054         _stp_unregister_jprobes(probes, i);
 00055         return ret;
 00056 }
@@ -72,7 +72,7 @@
 00065         int i;
 00066         for (i = 0; i < num_probes; i++)
 00067                 unregister_kprobe(&probes[i]);
-00068         dlog ("All kprobes removed\n");
+00068         dlog ("All kprobes removed\n");
 00069 }
 00070 
 00071 /** Register a group of kprobes.
@@ -87,14 +87,14 @@
 00080         unsigned long addr;
 00081 
 00082         for (i = 0; i < num_probes; i++) {
-00083                 addr =_stp_lookup_name((char *)probes[i].addr);
+00083                 addr =_stp_lookup_name((char *)probes[i].addr);
 00084                 if (addr == 0) {
-00085                         dlog ("ERROR: function %s not found!\n", 
+00085                         dlog ("ERROR: function %s not found!\n", 
 00086                               (char *)probes[i].addr);
 00087                         ret = -1; /* FIXME */
 00088                         goto out;
 00089                 }
-00090                 dlog("inserting kprobe at %s (%p)\n", probes[i].addr, addr);
+00090                 dlog("inserting kprobe at %s (%p)\n", probes[i].addr, addr);
 00091                 probes[i].addr = (kprobe_opcode_t *)addr;
 00092                 ret = register_kprobe(&probes[i]);
 00093                 if (ret)
@@ -102,11 +102,9 @@
 00095         }
 00096         return 0;
 00097 out:
-00098         dlog ("probe module initialization failed.  Exiting...\n");
+00098         dlog ("probe module initialization failed.  Exiting...\n");
 00099         _stp_unregister_kprobes(probes, i);
 00100         return ret;
 00101 }
 00102 
-

-Generated on Tue Mar 22 10:27:36 2005 for SystemTap. - + -- cgit