From e94cb46c2219da504a559d49eeda3e4134b96453 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 22 Mar 2005 18:36:50 +0000 Subject: *** empty log message *** --- runtime/docs/html/shellsnoop_2dtr_8c-source.html | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'runtime/docs/html/shellsnoop_2dtr_8c-source.html') diff --git a/runtime/docs/html/shellsnoop_2dtr_8c-source.html b/runtime/docs/html/shellsnoop_2dtr_8c-source.html index 7f6aa12c..64f58859 100644 --- a/runtime/docs/html/shellsnoop_2dtr_8c-source.html +++ b/runtime/docs/html/shellsnoop_2dtr_8c-source.html @@ -12,10 +12,10 @@ 00003 #define BUCKETS 16 /* largest histogram width */ 00004 00005 #include "runtime.h" -00006 #include "io.c" +00006 #include "io.c" 00007 #include "map.c" -00008 #include "copy.c" -00009 #include "probes.c" +00008 #include "copy.c" +00009 #include "probes.c" 00010 00011 MODULE_DESCRIPTION("SystemTap probe: shellsnoop"); 00012 MODULE_AUTHOR("Martin Hunt <hunt@redhat.com>"); @@ -24,7 +24,7 @@ 00015 00016 int inst_do_execve (char * filename, char __user *__user *argv, char __user *__user *envp, struct pt_regs * regs) 00017 { -00018 struct map_node_str *ptr; +00018 struct map_node_str *ptr; 00019 00020 /* watch shells only */ 00021 /* FIXME: detect more shells, like csh, tcsh, zsh */ @@ -32,13 +32,13 @@ 00023 if (!strcmp(current->comm,"bash") || !strcmp(current->comm,"sh") || !strcmp(current->comm, "zsh") 00024 || !strcmp(current->comm, "tcsh") || !strcmp(current->comm, "pdksh")) 00025 { -00026 dlog ("%d\t%d\t%d\t%s ", current->uid, current->pid, current->parent->pid, filename); +00026 dlog ("%d\t%d\t%d\t%s ", current->uid, current->pid, current->parent->pid, filename); 00027 00028 _stp_map_key_long (pids, current->pid); 00029 _stp_map_set_int64 (pids, 1); 00030 00031 _stp_list_clear (arglist); -00032 _stp_copy_argv_from_user (arglist, argv); +00032 _stp_copy_argv_from_user (arglist, argv); 00033 foreach (arglist, ptr) 00034 printk ("%s ", ptr->str); 00035 printk ("\n"); @@ -51,7 +51,7 @@ 00042 { 00043 _stp_map_key_long (pids, current->pid); 00044 if (_stp_map_get_int64 (pids)) -00045 dlog ("%d\t%d\t%s\tO %s\n", current->pid, current->parent->pid, current->comm, filename); +00045 dlog ("%d\t%d\t%s\tO %s\n", current->pid, current->parent->pid, current->comm, filename); 00046 00047 jprobe_return(); 00048 return 0; @@ -61,7 +61,7 @@ 00052 { 00053 _stp_map_key_long (pids, current->pid); 00054 if (_stp_map_get_int64 (pids)) -00055 dlog ("%d\t%d\t%s\tR %d\n", current->pid, current->parent->pid, current->comm, fd); +00055 dlog ("%d\t%d\t%s\tR %d\n", current->pid, current->parent->pid, current->comm, fd); 00056 00057 jprobe_return(); 00058 return 0; @@ -116,17 +116,17 @@ 00107 pids = _stp_map_new (10000, INT64); 00108 arglist = _stp_list_new (10, STRING); 00109 -00110 ret = _stp_register_jprobes (dtr_probes, MAX_DTR_ROUTINE); +00110 ret = _stp_register_jprobes (dtr_probes, MAX_DTR_ROUTINE); 00111 -00112 dlog("instrumentation is enabled...\n"); +00112 dlog("instrumentation is enabled...\n"); 00113 return ret; 00114 } 00115 00116 static void cleanup_dtr(void) 00117 { -00118 _stp_unregister_jprobes (dtr_probes, MAX_DTR_ROUTINE); +00118 _stp_unregister_jprobes (dtr_probes, MAX_DTR_ROUTINE); 00119 _stp_map_del (pids); -00120 dlog("EXIT\n"); +00120 dlog("EXIT\n"); 00121 } 00122 00123 module_init(init_dtr); @@ -134,5 +134,5 @@ 00125 MODULE_LICENSE("GPL"); 00126
-Generated on Tue Mar 22 00:32:02 2005 for SystemTap. +Generated on Tue Mar 22 10:27:36 2005 for SystemTap. -- cgit