summaryrefslogtreecommitdiffstats
path: root/runtime/probes/shellsnoop/shellsnoop.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-19 11:36:07 +0000
committerhunt <hunt>2005-08-19 11:36:07 +0000
commit26f6870aa5e1d395abde9a945fed68125697ef7d (patch)
tree063ebeb49edf3aa4bd004acca93c58f112cb409d /runtime/probes/shellsnoop/shellsnoop.c
parent4c25a38a5c14fda1d8f588d21762496f2a919746 (diff)
downloadsystemtap-steved-26f6870aa5e1d395abde9a945fed68125697ef7d.tar.gz
systemtap-steved-26f6870aa5e1d395abde9a945fed68125697ef7d.tar.xz
systemtap-steved-26f6870aa5e1d395abde9a945fed68125697ef7d.zip
2005-08-19 Martin Hunt <hunt@redhat.com>
* shellsnoop/shellsnoop.c: Remove STP_NETLINK_ONLY. * stp: Deleted. Use stpd directly.
Diffstat (limited to 'runtime/probes/shellsnoop/shellsnoop.c')
-rw-r--r--runtime/probes/shellsnoop/shellsnoop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/probes/shellsnoop/shellsnoop.c b/runtime/probes/shellsnoop/shellsnoop.c
index db635d23..6c5458f5 100644
--- a/runtime/probes/shellsnoop/shellsnoop.c
+++ b/runtime/probes/shellsnoop/shellsnoop.c
@@ -1,6 +1,6 @@
-#define STP_NETLINK_ONLY
+//#define STP_RELAYFS
#define STP_NUM_STRINGS 1
-
+#define STP_STRING_SIZE 8192
#include "runtime.h"
#define NEED_INT64_VALS
@@ -50,10 +50,10 @@ int inst_do_execve (char * filename, char __user *__user *argv, char __user *__u
struct file * inst_filp_open (const char * filename, int flags, int mode)
{
_stp_map_key_int64 (pids, current->pid);
- if (_stp_map_get_int64 (pids))
+ if (_stp_map_get_int64 (pids)) {
_stp_printf ("%d\t%d\t%s\tO %s\n", current->pid, current->parent->pid, current->comm, filename);
-
- _stp_print_flush();
+ _stp_print_flush();
+ }
jprobe_return();
return 0;
}