From 26f6870aa5e1d395abde9a945fed68125697ef7d Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 19 Aug 2005 11:36:07 +0000 Subject: 2005-08-19 Martin Hunt * shellsnoop/shellsnoop.c: Remove STP_NETLINK_ONLY. * stp: Deleted. Use stpd directly. --- runtime/probes/shellsnoop/shellsnoop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/probes/shellsnoop/shellsnoop.c') 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; } -- cgit