From b9c556e44326b40b2c927a0a5b5626332a8c9587 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 22 Mar 2005 08:57:11 +0000 Subject: *** empty log message *** --- runtime/docs/html/stp__tasklet_8c-source.html | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 runtime/docs/html/stp__tasklet_8c-source.html (limited to 'runtime/docs/html/stp__tasklet_8c-source.html') diff --git a/runtime/docs/html/stp__tasklet_8c-source.html b/runtime/docs/html/stp__tasklet_8c-source.html new file mode 100644 index 00000000..5e9413ae --- /dev/null +++ b/runtime/docs/html/stp__tasklet_8c-source.html @@ -0,0 +1,60 @@ + + +SystemTap: probes/tasklet/stp_tasklet.c Source File + + + +
Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages
+ +

stp_tasklet.c

00001 /* Framework for putting a jprobe in a tasklet. */
+00002 /* Useful for testing probes in interrupt context. */
+00003 /* Doesn't do anything useful as is.  Put test code in the inst func */
+00004 
+00005 #define HASH_TABLE_BITS 8
+00006 #define HASH_TABLE_SIZE (1<<HASH_TABLE_BITS)
+00007 #define BUCKETS 16 /* largest histogram width */
+00008 
+00009 #include "runtime.h"
+00010 #include "io.c"
+00011 #include "probes.c"
+00012 
+00013 MODULE_DESCRIPTION("test jprobes of tasklets");
+00014 MODULE_AUTHOR("Martin Hunt <hunt@redhat.com>");
+00015 
+00016 void inst__rcu_process_callbacks(struct rcu_ctrlblk *rcp,
+00017                                  struct rcu_state *rsp, struct rcu_data *rdp)
+00018 {
+00019   dlog ("interrupt=%d\n", in_interrupt());
+00020   jprobe_return();
+00021 }
+00022 
+00023 static struct jprobe stp_probes[] = {
+00024   {
+00025     .kp.addr =  (kprobe_opcode_t *)"__rcu_process_callbacks",
+00026     .entry = (kprobe_opcode_t *) inst__rcu_process_callbacks
+00027   },
+00028 };
+00029 #define MAX_STP_PROBES (sizeof(stp_probes)/sizeof(struct jprobe))
+00030 
+00031 
+00032 static int init_stp(void)
+00033 {
+00034   int ret = _stp_register_jprobes (stp_probes, MAX_STP_PROBES);
+00035   dlog("instrumentation is enabled...\n");
+00036   return ret;
+00037 }
+00038 
+00039 static void cleanup_stp(void)
+00040 {
+00041   _stp_unregister_jprobes (stp_probes, MAX_STP_PROBES);
+00042   dlog ("EXIT\n");
+00043 }
+00044 
+00045 module_init(init_stp);
+00046 module_exit(cleanup_stp);
+00047 MODULE_LICENSE("GPL");
+00048 
+

+Generated on Tue Mar 22 00:32:02 2005 for SystemTap. + -- cgit