diff options
author | hunt <hunt> | 2005-08-19 11:36:07 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-08-19 11:36:07 +0000 |
commit | 26f6870aa5e1d395abde9a945fed68125697ef7d (patch) | |
tree | 063ebeb49edf3aa4bd004acca93c58f112cb409d /runtime/probes/shellsnoop/shellsnoop.c | |
parent | 4c25a38a5c14fda1d8f588d21762496f2a919746 (diff) | |
download | systemtap-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.c | 10 |
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; } |