X7ROOT File Manager
Current Path:
/usr/share/systemtap/tapset/linux
usr
/
share
/
systemtap
/
tapset
/
linux
/
📁
..
📁
arm
📁
arm64
📄
atomic.stp
(1.53 KB)
📄
aux_syscalls.stp
(143.78 KB)
📄
context-caller.stp
(3.07 KB)
📄
context-envvar.stp
(1.72 KB)
📄
context-symbols.stp
(11.99 KB)
📄
context-unwind.stp
(2.81 KB)
📄
context.stp
(18.57 KB)
📄
context.stpm
(125 B)
📄
conversions-guru.stp
(5.74 KB)
📄
conversions.stp
(15.34 KB)
📄
ctime.stp
(5.54 KB)
📄
dentry.stp
(10.11 KB)
📄
dev.stp
(1.9 KB)
📄
endian.stp
(602 B)
📄
guru-delay.stp
(1.2 KB)
📄
guru-signal.stp
(1.07 KB)
📁
i386
📁
ia64
📄
inet.stp
(1.42 KB)
📄
inet.stpm
(383 B)
📄
inet_sock.stp
(1.25 KB)
📄
ioblock.stp
(15.04 KB)
📄
ioscheduler.stp
(11.89 KB)
📄
ip.stp
(5.35 KB)
📄
ipmib-filter-default.stp
(965 B)
📄
ipmib.stp
(12.68 KB)
📄
irq.stp
(5 KB)
📄
json.stp
(8.98 KB)
📄
json.stpm
(6.11 KB)
📄
kprocess.stp
(4.4 KB)
📄
kretprobe.stp
(2.1 KB)
📄
linuxmib-filter-default.stp
(876 B)
📄
linuxmib.stp
(3.63 KB)
📄
loadavg.stp
(1.95 KB)
📄
logging.stp
(2.12 KB)
📄
memory.stp
(18.74 KB)
📁
mips
📄
netfilter.stp
(35.49 KB)
📄
networking.stp
(9.37 KB)
📄
nfs.stp
(38.06 KB)
📄
nfs_proc.stp
(55.46 KB)
📄
nfs_proc.stpm
(1.18 KB)
📄
nfsd.stp
(46.27 KB)
📄
nfsderrno.stp
(11.7 KB)
📄
panic.stp
(1.07 KB)
📄
perf.stp
(5.16 KB)
📁
powerpc
📄
proc_mem.stp
(12.05 KB)
📄
pstrace.stp
(773 B)
📄
rcu.stp
(928 B)
📄
rlimit.stp
(1.35 KB)
📄
rpc.stp
(37.67 KB)
📁
s390
📄
scheduler.stp
(11.36 KB)
📄
scsi.stp
(9.47 KB)
📄
signal.stp
(28.69 KB)
📄
socket.stp
(34.2 KB)
📄
sysc_accept.stp
(7.32 KB)
📄
sysc_accept4.stp
(7.24 KB)
📄
sysc_access.stp
(2.45 KB)
📄
sysc_acct.stp
(2.18 KB)
📄
sysc_add_key.stp
(2.91 KB)
📄
sysc_adjtimex.stp
(5.28 KB)
📄
sysc_alarm.stp
(2.52 KB)
📄
sysc_bdflush.stp
(2.75 KB)
📄
sysc_bind.stp
(6.43 KB)
📄
sysc_bpf.stp
(2.33 KB)
📄
sysc_brk.stp
(2.33 KB)
📄
sysc_capget.stp
(2.71 KB)
📄
sysc_capset.stp
(2.71 KB)
📄
sysc_chdir.stp
(2.23 KB)
📄
sysc_chmod.stp
(2.51 KB)
📄
sysc_chown.stp
(3.27 KB)
📄
sysc_chown16.stp
(2.61 KB)
📄
sysc_chroot.stp
(2.29 KB)
📄
sysc_clock_adjtime.stp
(4.72 KB)
📄
sysc_clock_getres.stp
(3.82 KB)
📄
sysc_clock_gettime.stp
(3.62 KB)
📄
sysc_clock_nanosleep.stp
(7.25 KB)
📄
sysc_clock_settime.stp
(5.02 KB)
📄
sysc_clone.stp
(6.19 KB)
📄
sysc_close.stp
(2.47 KB)
📄
sysc_connect.stp
(6.82 KB)
📄
sysc_copy_file_range.stp
(3.15 KB)
📄
sysc_creat.stp
(2.28 KB)
📄
sysc_delete_module.stp
(2.87 KB)
📄
sysc_dup.stp
(2.09 KB)
📄
sysc_dup2.stp
(2.63 KB)
📄
sysc_dup3.stp
(2.66 KB)
📄
sysc_epoll_create.stp
(5.29 KB)
📄
sysc_epoll_ctl.stp
(3.5 KB)
📄
sysc_epoll_pwait.stp
(3.49 KB)
📄
sysc_epoll_wait.stp
(4.33 KB)
📄
sysc_eventfd.stp
(4.86 KB)
📄
sysc_execve.stp
(6.11 KB)
📄
sysc_execveat.stp
(6.78 KB)
📄
sysc_exit.stp
(1.54 KB)
📄
sysc_exit_group.stp
(1.66 KB)
📄
sysc_faccessat.stp
(3.2 KB)
📄
sysc_fadvise64.stp
(7.43 KB)
📄
sysc_fallocate.stp
(3.29 KB)
📄
sysc_fanotify_init.stp
(3.02 KB)
📄
sysc_fanotify_mark.stp
(5.75 KB)
📄
sysc_fchdir.stp
(2.23 KB)
📄
sysc_fchmod.stp
(2.52 KB)
📄
sysc_fchmodat.stp
(3.2 KB)
📄
sysc_fchown.stp
(3.28 KB)
📄
sysc_fchown16.stp
(2.59 KB)
📄
sysc_fchownat.stp
(3.24 KB)
📄
sysc_fcntl.stp
(4.37 KB)
📄
sysc_fdatasync.stp
(2.39 KB)
📄
sysc_fgetxattr.stp
(2.94 KB)
📄
sysc_finit_module.stp
(2.86 KB)
📄
sysc_flistxattr.stp
(2.61 KB)
📄
sysc_flock.stp
(2.28 KB)
📄
sysc_fork.stp
(2.53 KB)
📄
sysc_fremovexattr.stp
(2.73 KB)
📄
sysc_fsetxattr.stp
(3.34 KB)
📄
sysc_fstat.stp
(5.76 KB)
📄
sysc_fstatat.stp
(5.21 KB)
📄
sysc_fstatfs.stp
(2.94 KB)
📄
sysc_fstatfs64.stp
(2.86 KB)
📄
sysc_fsync.stp
(2.18 KB)
📄
sysc_ftruncate.stp
(5.54 KB)
📄
sysc_futex.stp
(5.11 KB)
📄
sysc_futimesat.stp
(5.91 KB)
📄
sysc_get_mempolicy.stp
(4.1 KB)
📄
sysc_get_robust_list.stp
(4.12 KB)
📄
sysc_getcpu.stp
(2.63 KB)
📄
sysc_getcwd.stp
(2.43 KB)
📄
sysc_getdents.stp
(5.18 KB)
📄
sysc_getegid.stp
(3.46 KB)
📄
sysc_geteuid.stp
(3.4 KB)
📄
sysc_getgid.stp
(3.32 KB)
📄
sysc_getgroups.stp
(3.91 KB)
📄
sysc_gethostname.stp
(1.22 KB)
📄
sysc_getitimer.stp
(4.87 KB)
📄
sysc_getpeername.stp
(7.01 KB)
📄
sysc_getpgid.stp
(2.6 KB)
📄
sysc_getpgrp.stp
(2.04 KB)
📄
sysc_getpid.stp
(1.98 KB)
📄
sysc_getppid.stp
(2.06 KB)
📄
sysc_getpriority.stp
(2.62 KB)
📄
sysc_getrandom.stp
(2.72 KB)
📄
sysc_getresgid.stp
(3.73 KB)
📄
sysc_getresuid.stp
(3.54 KB)
📄
sysc_getrlimit.stp
(4.08 KB)
📄
sysc_getrusage.stp
(3.45 KB)
📄
sysc_getsid.stp
(2.26 KB)
📄
sysc_getsockname.stp
(7.03 KB)
📄
sysc_getsockopt.stp
(7.88 KB)
📄
sysc_gettid.stp
(2.01 KB)
📄
sysc_gettimeofday.stp
(3.7 KB)
📄
sysc_getuid.stp
(3.35 KB)
📄
sysc_getxattr.stp
(3 KB)
📄
sysc_init_module.stp
(2.76 KB)
📄
sysc_inotify_add_watch.stp
(3.25 KB)
📄
sysc_inotify_init.stp
(5.26 KB)
📄
sysc_inotify_rm_watch.stp
(2.89 KB)
📄
sysc_io_cancel.stp
(2.85 KB)
📄
sysc_io_destroy.stp
(2.5 KB)
📄
sysc_io_getevents.stp
(4.25 KB)
📄
sysc_io_setup.stp
(3.43 KB)
📄
sysc_io_submit.stp
(3.46 KB)
📄
sysc_ioctl.stp
(3.12 KB)
📄
sysc_ioperm.stp
(2.41 KB)
📄
sysc_ioprio_get.stp
(2.65 KB)
📄
sysc_ioprio_set.stp
(2.82 KB)
📄
sysc_kcmp.stp
(2.51 KB)
📄
sysc_kexec_file_load.stp
(3.35 KB)
📄
sysc_kexec_load.stp
(3.96 KB)
📄
sysc_keyctl.stp
(3.16 KB)
📄
sysc_kill.stp
(2.25 KB)
📄
sysc_lchown.stp
(3.34 KB)
📄
sysc_lchown16.stp
(2.66 KB)
📄
sysc_lgetxattr.stp
(3.05 KB)
📄
sysc_link.stp
(2.34 KB)
📄
sysc_linkat.stp
(3.26 KB)
📄
sysc_listen.stp
(6.17 KB)
📄
sysc_listxattr.stp
(2.72 KB)
📄
sysc_llistxattr.stp
(2.78 KB)
📄
sysc_llseek.stp
(2.81 KB)
📄
sysc_lookup_dcookie.stp
(3.39 KB)
📄
sysc_lremovexattr.stp
(3.11 KB)
📄
sysc_lseek.stp
(3.98 KB)
📄
sysc_lsetxattr.stp
(3.22 KB)
📄
sysc_lstat.stp
(5.91 KB)
📄
sysc_madvise.stp
(2.55 KB)
📄
sysc_mbind.stp
(3.69 KB)
📄
sysc_membarrier.stp
(2.65 KB)
📄
sysc_memfd_create.stp
(2.77 KB)
📄
sysc_migrate_pages.stp
(3.83 KB)
📄
sysc_mincore.stp
(2.47 KB)
📄
sysc_mkdir.stp
(2.38 KB)
📄
sysc_mkdirat.stp
(2.92 KB)
📄
sysc_mknod.stp
(2.45 KB)
📄
sysc_mknodat.stp
(3.07 KB)
📄
sysc_mlock.stp
(2.27 KB)
📄
sysc_mlock2.stp
(2.47 KB)
📄
sysc_mlockall.stp
(2.46 KB)
📄
sysc_mmap2.stp
(5.45 KB)
📄
sysc_modify_ldt.stp
(2.67 KB)
📄
sysc_mount.stp
(3.53 KB)
📄
sysc_move_pages.stp
(4.09 KB)
📄
sysc_mprotect.stp
(2.55 KB)
📄
sysc_mq_getsetattr.stp
(3.95 KB)
📄
sysc_mq_notify.stp
(3.51 KB)
📄
sysc_mq_open.stp
(4.54 KB)
📄
sysc_mq_timedreceive.stp
(5.18 KB)
📄
sysc_mq_timedsend.stp
(4.96 KB)
📄
sysc_mq_unlink.stp
(2.53 KB)
📄
sysc_mremap.stp
(3.01 KB)
📄
sysc_msgctl.stp
(7.35 KB)
📄
sysc_msgget.stp
(3.73 KB)
📄
sysc_msgrcv.stp
(9.48 KB)
📄
sysc_msgsnd.stp
(7.81 KB)
📄
sysc_msync.stp
(2.44 KB)
📄
sysc_munlock.stp
(2.39 KB)
📄
sysc_munlockall.stp
(2.29 KB)
📄
sysc_munmap.stp
(2.35 KB)
📄
sysc_name_to_handle_at.stp
(3.46 KB)
📄
sysc_nanosleep.stp
(5.22 KB)
📄
sysc_nfsservctl.stp
(2.23 KB)
📄
sysc_ni_syscall.stp
(1.4 KB)
📄
sysc_nice.stp
(2.15 KB)
📄
sysc_open.stp
(3.79 KB)
📄
sysc_open_by_handle_at.stp
(3.8 KB)
📄
sysc_openat.stp
(3.34 KB)
📄
sysc_pause.stp
(2.5 KB)
📄
sysc_perf_event_open.stp
(3.24 KB)
📄
sysc_personality.stp
(2.74 KB)
📄
sysc_pipe.stp
(9.86 KB)
📄
sysc_pivot_root.stp
(2.71 KB)
📄
sysc_poll.stp
(2.35 KB)
📄
sysc_ppoll.stp
(5.38 KB)
📄
sysc_prctl.stp
(2.48 KB)
📄
sysc_pread.stp
(4.51 KB)
📄
sysc_preadv.stp
(4.12 KB)
📄
sysc_preadv2.stp
(4.48 KB)
📄
sysc_prlimit64.stp
(2.97 KB)
📄
sysc_process_vm_readv.stp
(4.08 KB)
📄
sysc_process_vm_writev.stp
(4.13 KB)
📄
sysc_pselect6.stp
(5.62 KB)
📄
sysc_pselect7.stp
(3.58 KB)
📄
sysc_ptrace.stp
(3.18 KB)
📄
sysc_pwrite.stp
(6.27 KB)
📄
sysc_pwritev.stp
(4.23 KB)
📄
sysc_pwritev2.stp
(4.58 KB)
📄
sysc_quotactl.stp
(4 KB)
📄
sysc_read.stp
(3.29 KB)
📄
sysc_readahead.stp
(3.02 KB)
📄
sysc_readdir.stp
(3.6 KB)
📄
sysc_readlink.stp
(2.59 KB)
📄
sysc_readlinkat.stp
(3.24 KB)
📄
sysc_readv.stp
(3.07 KB)
📄
sysc_reboot.stp
(2.77 KB)
📄
sysc_recv.stp
(6.7 KB)
📄
sysc_recvfrom.stp
(7.82 KB)
📄
sysc_recvmmsg.stp
(5.84 KB)
📄
sysc_recvmsg.stp
(10.35 KB)
📄
sysc_remap_file_pages.stp
(3.37 KB)
📄
sysc_removexattr.stp
(2.75 KB)
📄
sysc_rename.stp
(2.48 KB)
📄
sysc_renameat.stp
(3.3 KB)
📄
sysc_renameat2.stp
(3.61 KB)
📄
sysc_request_key.stp
(3.23 KB)
📄
sysc_restart_syscall.stp
(2.5 KB)
📄
sysc_rmdir.stp
(2.25 KB)
📄
sysc_rt_sigaction.stp
(6.2 KB)
📄
sysc_rt_sigpending.stp
(4.35 KB)
📄
sysc_rt_sigprocmask.stp
(7.87 KB)
📄
sysc_rt_sigqueueinfo.stp
(4.26 KB)
📄
sysc_rt_sigreturn.stp
(1.6 KB)
📄
sysc_rt_sigsuspend.stp
(3.45 KB)
📄
sysc_rt_sigtimedwait.stp
(5.08 KB)
📄
sysc_rt_tgsigqueueinfo.stp
(3.92 KB)
📄
sysc_sched_get_priority_max.stp
(3.26 KB)
📄
sysc_sched_get_priority_min.stp
(3.26 KB)
📄
sysc_sched_getaffinity.stp
(3.62 KB)
📄
sysc_sched_getattr.stp
(3.05 KB)
📄
sysc_sched_getparam.stp
(2.84 KB)
📄
sysc_sched_getscheduler.stp
(2.94 KB)
📄
sysc_sched_rr_get_interval.stp
(4.41 KB)
📄
sysc_sched_setaffinity.stp
(3.49 KB)
📄
sysc_sched_setattr.stp
(2.98 KB)
📄
sysc_sched_setparam.stp
(2.83 KB)
📄
sysc_sched_setscheduler.stp
(3.2 KB)
📄
sysc_sched_yield.stp
(2.26 KB)
📄
sysc_seccomp.stp
(2.76 KB)
📄
sysc_select.stp
(5.55 KB)
📄
sysc_semctl.stp
(7.22 KB)
📄
sysc_semget.stp
(3.79 KB)
📄
sysc_semop.stp
(4.73 KB)
📄
sysc_semtimedop.stp
(8.8 KB)
📄
sysc_send.stp
(6.81 KB)
📄
sysc_sendfile.stp
(4.38 KB)
📄
sysc_sendmmsg.stp
(8.61 KB)
📄
sysc_sendmsg.stp
(11.48 KB)
📄
sysc_sendto.stp
(7.66 KB)
📄
sysc_set_mempolicy.stp
(3.69 KB)
📄
sysc_set_robust_list.stp
(3.92 KB)
📄
sysc_set_tid_address.stp
(2.83 KB)
📄
sysc_setdomainname.stp
(3.04 KB)
📄
sysc_setfsgid.stp
(4.43 KB)
📄
sysc_setfsuid.stp
(4.48 KB)
📄
sysc_setgid.stp
(4.23 KB)
📄
sysc_setgroups.stp
(4.1 KB)
📄
sysc_sethostname.stp
(2.72 KB)
📄
sysc_setitimer.stp
(5.61 KB)
📄
sysc_setns.stp
(2.34 KB)
📄
sysc_setpgid.stp
(2.41 KB)
📄
sysc_setpriority.stp
(2.79 KB)
📄
sysc_setregid.stp
(5.84 KB)
📄
sysc_setresgid.stp
(6.12 KB)
📄
sysc_setresuid.stp
(6.13 KB)
📄
sysc_setreuid.stp
(5.84 KB)
📄
sysc_setrlimit.stp
(3.61 KB)
📄
sysc_setsid.stp
(2.05 KB)
📄
sysc_setsockopt.stp
(7.77 KB)
📄
sysc_settimeofday.stp
(6.01 KB)
📄
sysc_setuid.stp
(4.23 KB)
📄
sysc_setxattr.stp
(3.12 KB)
📄
sysc_sgetmask.stp
(2.12 KB)
📄
sysc_shmat.stp
(5.88 KB)
📄
sysc_shmctl.stp
(7.23 KB)
📄
sysc_shmdt.stp
(3.36 KB)
📄
sysc_shmget.stp
(3.7 KB)
📄
sysc_shutdown.stp
(6.46 KB)
📄
sysc_sigaction.stp
(5.2 KB)
📄
sysc_sigaltstack.stp
(3.83 KB)
📄
sysc_signal.stp
(2.5 KB)
📄
sysc_signalfd.stp
(11.53 KB)
📄
sysc_sigpending.stp
(3.19 KB)
📄
sysc_sigprocmask.stp
(3.69 KB)
📄
sysc_sigreturn.stp
(1.43 KB)
📄
sysc_sigsuspend.stp
(4.22 KB)
📄
sysc_socket.stp
(6.92 KB)
📄
sysc_socketpair.stp
(7.68 KB)
📄
sysc_splice.stp
(2.78 KB)
📄
sysc_ssetmask.stp
(2.49 KB)
📄
sysc_stat.stp
(5.91 KB)
📄
sysc_statfs.stp
(3.02 KB)
📄
sysc_statfs64.stp
(2.93 KB)
📄
sysc_statx.stp
(3.4 KB)
📄
sysc_stime.stp
(2.76 KB)
📄
sysc_swapoff.stp
(2.41 KB)
📄
sysc_swapon.stp
(2.6 KB)
📄
sysc_symlink.stp
(2.52 KB)
📄
sysc_symlinkat.stp
(3.28 KB)
📄
sysc_sync.stp
(1.88 KB)
📄
sysc_sync_file_range.stp
(4.76 KB)
📄
sysc_syncfs.stp
(2.27 KB)
📄
sysc_sysctl.stp
(2.78 KB)
📄
sysc_sysfs.stp
(3.22 KB)
📄
sysc_sysinfo.stp
(2.95 KB)
📄
sysc_syslog.stp
(2.41 KB)
📄
sysc_tee.stp
(2.3 KB)
📄
sysc_tgkill.stp
(2.48 KB)
📄
sysc_time.stp
(3.18 KB)
📄
sysc_timer_create.stp
(4.39 KB)
📄
sysc_timer_delete.stp
(2.61 KB)
📄
sysc_timer_getoverrun.stp
(2.86 KB)
📄
sysc_timer_gettime.stp
(4.15 KB)
📄
sysc_timer_settime.stp
(5.33 KB)
📄
sysc_timerfd.stp
(1.79 KB)
📄
sysc_timerfd_create.stp
(2.99 KB)
📄
sysc_timerfd_gettime.stp
(3.79 KB)
📄
sysc_timerfd_settime.stp
(4.71 KB)
📄
sysc_times.stp
(2.84 KB)
📄
sysc_tkill.stp
(2.35 KB)
📄
sysc_truncate.stp
(5.25 KB)
📄
sysc_tux.stp
(1.04 KB)
📄
sysc_umask.stp
(2.22 KB)
📄
sysc_umount.stp
(4.5 KB)
📄
sysc_uname.stp
(4.77 KB)
📄
sysc_unlink.stp
(2.38 KB)
📄
sysc_unlinkat.stp
(2.79 KB)
📄
sysc_unshare.stp
(2.48 KB)
📄
sysc_uselib.stp
(2.39 KB)
📄
sysc_userfaultfd.stp
(2.68 KB)
📄
sysc_ustat.stp
(4.77 KB)
📄
sysc_utime.stp
(5.37 KB)
📄
sysc_utimensat.stp
(6.16 KB)
📄
sysc_utimes.stp
(5.29 KB)
📄
sysc_vfork.stp
(1.98 KB)
📄
sysc_vhangup.stp
(2.08 KB)
📄
sysc_vmsplice.stp
(5.56 KB)
📄
sysc_wait4.stp
(4.55 KB)
📄
sysc_waitid.stp
(3.68 KB)
📄
sysc_waitpid.stp
(3.02 KB)
📄
sysc_write.stp
(3.5 KB)
📄
sysc_writev.stp
(3.22 KB)
📄
syscall_any.stp
(1.52 KB)
📄
syscall_table.stp
(1.44 KB)
📄
syscalls.stpm
(13.78 KB)
📄
syscalls_cfg_trunc.stp
(111 B)
📄
target_set.stp
(1.73 KB)
📄
task.stp
(22.21 KB)
📄
task.stpm
(253 B)
📄
task_ancestry.stp
(1.58 KB)
📄
task_time.stp
(7.68 KB)
📄
tcp.stp
(22.11 KB)
📄
tcpmib-filter-default.stp
(885 B)
📄
tcpmib.stp
(10.57 KB)
📄
timestamp.stp
(1.72 KB)
📄
timestamp_gtod.stp
(1.59 KB)
📄
timestamp_monotonic.stp
(5.46 KB)
📄
tty.stp
(7.18 KB)
📄
tzinfo.stp
(803 B)
📄
ucontext-symbols.stp
(8.63 KB)
📄
ucontext-unwind.stp
(3.64 KB)
📄
ucontext.stp
(2.18 KB)
📄
udp.stp
(5.95 KB)
📄
utrace.stp
(1.33 KB)
📄
vfs.stp
(32.43 KB)
📁
x86_64
Editing: nfs_proc.stp
// NFS procedure tapset // Copyright (C) 2006 IBM Corp. // Copyright (C) 2007-2013 Red Hat // // This file is part of systemtap, and is free software. You can // redistribute it and/or modify it under the terms of the GNU General // Public License (GPL); either version 2, or (at your option) any // later version. %{ /* For AF_INET */ #include <linux/socket.h> %} function AF_INET:long() { return @const("AF_INET") } function AF_INET6:long() { return @const("AF_INET6") } function NFS_I:long(inode:long) { /* * Notice we're casting 0 here on purpose. We need the offset * of the 'vfs_inode' member of 'struct nfs_inode'. This is * the script language equivalent of: * offset = offsetof(struct nfs_inode, vfs_inode); */ offset = &@cast(0, "nfs_inode", "kernel:nfs")->vfs_inode return (inode - offset) } @__private30 function NFS_FH:long(inode:long) { return &@cast(NFS_I(inode), "nfs_inode", "kernel:nfs")->fh } function NFS_SERVER:long(inode:long) { return @cast(inode, "inode")->i_sb->s_fs_info } @__private30 function NFS_CLIENT:long(inode:long) { return @cast(NFS_SERVER(inode), "nfs_server", "kernel:nfs")->client } %( systemtap_v < "2.3" %? /* deprecated */ function stap_NFS_CLIENT:long(inode:long) { return NFS_CLIENT(inode) } %) function NFS_PROTO:long(inode:long) { nfsserver = NFS_SERVER(inode) return @choose_defined(@cast(nfsserver, "nfs_server", "kernel:nfs")->nfs_client->rpc_ops, @cast(nfsserver, "nfs_server", "kernel:nfs")->rpc_ops) } /* Get ip address from a rpc_clnt */ function get_ip_from_client:long(clnt:long) { cl_xprt = @cast(clnt, "rpc_clnt", "kernel:sunrpc")->cl_xprt addr = &@cast(cl_xprt, "rpc_xprt", "kernel:sunrpc")->addr /* In reality, 'cl_xprt->addr' is of 'sockaddr_storage' type * (since 2.6.19). But when used, you cast it to what is * inside that buffer. */ if (@cast(addr, "sockaddr_in")->sin_family != %{ /* pure */ /* unprivileged */ AF_INET %}) { /* Now consider ipv4 only */ return 0 } return @cast(addr, "sockaddr_in")->sin_addr->s_addr } /* Get protocol types from a rpc_clnt */ function get_prot_from_client:long(clnt:long) { cl_xprt = @cast(clnt, "rpc_clnt", "kernel:sunrpc")->cl_xprt return @cast(cl_xprt, "rpc_xprt", "kernel:sunrpc")->prot } /* Get ip address from a rpc_task */ function get_ip:long(task:long) { clnt = @cast(task, "rpc_task", "kernel:sunrpc")->tk_client return get_ip_from_client(clnt) } /* Get protocol types from a rpc_task */ function get_prot:long(task:long) { clnt = @cast(task, "rpc_task", "kernel:sunrpc")->tk_client return get_prot_from_client(clnt) } @__private30 function __nfsv4_bitmask:long(dir:long, i:long) { %( CONFIG_NFS_V4 == "[ym]" %? return @cast(NFS_SERVER(dir), "nfs_server", "kernel:nfs")->attr_bitmask[i] %: return 0 %) } %( systemtap_v < "2.3" %? /* deprecated */ function __getfh_inode:long(dir:long) { return NFS_FH(dir) } %) probe nfs.proc.entries = nfs.proc.lookup, nfs.proc.read ?, nfs.proc.write ?, nfs.proc.commit ?, nfs.proc.read_setup, nfs.proc.write_setup, nfs.proc.commit_setup, nfs.proc.rename_setup, nfs.proc.read_done, nfs.proc.write_done, nfs.proc.commit_done, nfs.proc.rename_done, nfs.proc.open, nfs.proc.create, nfs.proc.rename, nfs.proc.remove, nfs.proc.release ? { } probe nfs.proc.return = nfs.proc.lookup.return, nfs.proc.read.return ?, nfs.proc.write.return ?, nfs.proc.commit.return ?, nfs.proc.read_setup.return, nfs.proc.write_setup.return, nfs.proc.commit_setup.return, nfs.proc.rename_setup.return, nfs.proc.read_done.return, nfs.proc.write_done.return, nfs.proc.commit_done.return, nfs.proc.rename_done.return, nfs.proc.open.return, nfs.proc.create.return, nfs.proc.rename.return, nfs.proc.remove.return, nfs.proc.release.return ? { } /** * probe nfs.proc.lookup - NFS client opens/searches a file on server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @filename: the name of file which client opens/searches on server * @name_len: the length of file name * @bitmask0: V4 bitmask representing the set of attributes supported * on this filesystem * @bitmask1: V4 bitmask representing the set of attributes supported * on this filesystem */ probe nfs.proc.lookup = nfs.proc2.lookup, nfs.proc3.lookup, nfs.proc4.lookup { } probe nfs.proc.lookup.return = nfs.proc2.lookup.return, nfs.proc3.lookup.return, nfs.proc4.lookup.return {} probe nfs.proc2.lookup = _nfs.proc2.lookup !, _nfs.proc2.missing_lookup { version = 2 bitmask0 = 0 bitmask1 = 0 name = "nfs.proc2.lookup" argstr = sprintf("%s", filename) } probe _nfs.proc2.lookup = kernel.function("nfs_proc_lookup") !, module("nfs").function("nfs_proc_lookup") ?, module("nfsv2").function("nfs_proc_lookup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) name_len = $name->len filename = kernel_string_n($name->name, name_len) } probe _nfs.proc2.missing_lookup = never { client = 0 server_ip = 0 prot = 0 name_len = 0 filename = "" } probe nfs.proc2.lookup.return = kernel.function("nfs_proc_lookup").return !, module("nfs").function("nfs_proc_lookup").return !, module("nfsv2").function("nfs_proc_lookup").return !, never { version = 2 name = "nfs.proc2.lookup.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.lookup = kernel.function("nfs3_proc_lookup") !, module("nfs").function("nfs3_proc_lookup") ?, module("nfsv3").function("nfs3_proc_lookup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 name_len = $name->len filename = kernel_string_n($name->name, name_len) bitmask0 = 0 bitmask1 = 0 name = "nfs.proc3.lookup" argstr = sprintf("%s", filename) } probe nfs.proc3.lookup.return = kernel.function("nfs3_proc_lookup").return !, module("nfs").function("nfs3_proc_lookup").return ?, module("nfsv3").function("nfs3_proc_lookup").return ? { version = 3 name = "nfs.proc3.lookup.return" retstr = sprintf("%d", $return) } probe nfs.proc4.lookup = kernel.function("nfs4_proc_lookup") !, module("nfs").function("nfs4_proc_lookup") ?, module("nfsv4").function("nfs4_proc_lookup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 name_len = $name->len filename = kernel_string_n($name->name, name_len) bitmask0 = __nfsv4_bitmask($dir, 0) bitmask1 = __nfsv4_bitmask($dir, 1) name = "nfs.proc4.lookup" argstr = sprintf("%s", filename) } probe nfs.proc4.lookup.return = kernel.function("nfs4_proc_lookup").return !, module("nfs").function("nfs4_proc_lookup").return ?, module("nfsv4").function("nfs4_proc_lookup").return ? { version = 4 name = "nfs.proc4.lookup.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.read - NFS client synchronously reads file from server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @flags: used to set task->tk_flags in rpc_init_task function * @size: * @count: read bytes in this execution * @offset: the file offset * * All the nfs.proc.read kernel functions were removed in kernel commit * 8e0969 in December 2006, so these probes do not exist on Linux * 2.6.21 and newer kernels. */ probe nfs.proc.read = nfs.proc2.read ?, nfs.proc3.read ?, nfs.proc4.read ? {} probe nfs.proc.read.return = nfs.proc2.read.return ?, nfs.proc3.read.return ?, nfs.proc4.read.return ? { } probe nfs.proc2.read = _nfs.proc2.read !, _nfs.proc2.missing_read { version = 2 name = "nfs.proc2.read" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe _nfs.proc2.read = kernel.function("nfs_proc_read") !, module("nfs").function("nfs_proc_read") ?, module("nfsv2").function("nfs_proc_read") ? { server_ip = @_nfs_data_server_ip($rdata) prot = @_nfs_data_prot($rdata) version = 2 flags = $rdata->flags count = @_nfs_data_args_count($rdata) offset = $rdata->args->offset } probe _nfs.proc2.missing_read = never { server_ip = 0 prot = 0 flags = 0 count = 0 offset = 0 } probe nfs.proc2.read.return = kernel.function("nfs_proc_read").return !, module("nfs").function("nfs_proc_read").return !, module("nfsv2").function("nfs_proc_read").return !, never { version = 2 name = "nfs.proc2.read.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.read = kernel.function("nfs3_proc_read") !, module("nfs").function("nfs3_proc_read") ?, module("nfsv3").function("nfs3_proc_read") ? { server_ip = @_nfs_data_server_ip($rdata) prot = @_nfs_data_prot($rdata) version = 3 flags = $rdata->flags count = @_nfs_data_args_count($rdata) offset = $rdata->args->offset name = "nfs.proc3.read" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc3.read.return = kernel.function("nfs3_proc_read").return !, module("nfs").function("nfs3_proc_read").return ?, module("nfsv3").function("nfs3_proc_read").return ? { version = 3 name = "nfs.proc3.read.return" retstr = sprintf("%d", $return) } probe nfs.proc4.read = kernel.function("nfs4_proc_read") !, module("nfs").function("nfs4_proc_read") ?, module("nfsv3").function("nfs4_proc_read") ? { server_ip = @_nfs_data_server_ip($rdata) prot = @_nfs_data_prot($rdata) version = 4 flags = $rdata->flags count = @_nfs_data_args_count($rdata) offset = $rdata->args->offset name = "nfs.proc4.read" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc4.read.return = kernel.function("nfs4_proc_read").return !, module("nfs").function("nfs4_proc_read").return ?, module("nfsv4").function("nfs4_proc_read").return ? { version = 4 name = "nfs.proc4.read.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.write - NFS client synchronously writes file to server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @flags: used to set task->tk_flags in rpc_init_task function * @count: * @size: read bytes in this execution * @offset: the file offset * @bitmask0: V4 bitmask representing the set of attributes supported * on this filesystem * @bitmask1: V4 bitmask representing the set of attributes supported * on this filesystem * * All the nfs.proc.write kernel functions were removed in kernel commit * 200baa in December 2006, so these probes do not exist on Linux * 2.6.21 and newer kernels. */ probe nfs.proc.write = nfs.proc2.write ?, nfs.proc3.write ?, nfs.proc4.write ? {} probe nfs.proc.write.return = nfs.proc2.write.return ?, nfs.proc3.write.return ?, nfs.proc4.write.return ? {} probe nfs.proc2.write = _nfs.proc2.write !, _nfs.proc2.missing_write { version = 2 bitmask0 = 0 bitmask1 = 0 name = "nfs.proc2.write" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe _nfs.proc2.write = kernel.function("nfs_proc_write") !, module("nfs").function("nfs_proc_write") ?, module("nfsv2").function("nfs_proc_write") ? { server_ip = @_nfs_data_server_ip($wdata) prot = @_nfs_data_prot($wdata) flags = $wdata->flags count = @_nfs_data_args_count($wdata) offset = $wdata->args->offset } probe _nfs.proc2.missing_write = never { server_ip = 0 prot = 0 flags = 0 count = 0 offset = 0 } probe nfs.proc2.write.return = kernel.function("nfs_proc_write").return !, module("nfs").function("nfs_proc_write").return !, module("nfsv2").function("nfs_proc_write").return !, never { version = 2 name = "nfs.proc2.write.return" if (@defined($return)) { retstr = sprintf("%d", $return) if ($return >= 0) { size = $return } } else { retstr = "N/A" size = 0 } units = "bytes" } probe nfs.proc3.write = kernel.function("nfs3_proc_write") !, module("nfs").function("nfs3_proc_write") ?, module("nfsv3").function("nfs3_proc_write") ? { server_ip = @_nfs_data_server_ip($wdata) prot = @_nfs_data_prot($wdata) version = 3 flags = $wdata->flags count = @_nfs_data_args_count($wdata) offset = $wdata->args->offset bitmask0 = 0 bitmask1 = 0 name = "nfs.proc3.write" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc3.write.return = kernel.function("nfs3_proc_write").return !, module("nfs").function("nfs3_proc_write").return ?, module("nfsv3").function("nfs3_proc_write").return ? { version = 3 name = "nfs.proc3.write.return" retstr = sprintf("%d", $return) if ($return >= 0) { size = $return units = "bytes" } } probe nfs.proc4.write = kernel.function("nfs4_proc_write") !, module("nfs").function("nfs4_proc_write") ?, module("nfsv4").function("nfs4_proc_write") ? { server_ip = @_nfs_data_server_ip($wdata) prot = @_nfs_data_prot($wdata) version = 4 flags = $wdata->flags count = @_nfs_data_args_count($wdata) offset = $wdata->args->offset bitmask0 = __nfsv4_bitmask($wdata->inode, 0) bitmask1 = __nfsv4_bitmask($wdata->inode, 1) name = "nfs.proc4.write" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc4.write.return = kernel.function("nfs4_proc_write").return !, module("nfs").function("nfs4_proc_write").return ?, module("nfsv4").function("nfs4_proc_write").return ? { version = 4 name = "nfs.proc4.write.return" retstr = sprintf("%d", $return) if ($return >= 0) { size = $return units = "bytes" } } /** * probe nfs.proc.commit - NFS client committing data on server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @count: * @size: read bytes in this execution * @offset: the file offset * @bitmask0: V4 bitmask representing the set of attributes supported * on this filesystem * @bitmask1: V4 bitmask representing the set of attributes supported * on this filesystem * * All the nfs.proc.commit kernel functions were removed in kernel * commit 200baa in December 2006, so these probes do not exist on Linux * 2.6.21 and newer kernels. * * Fires when client writes the buffered data to disk. * The buffered data is asynchronously written by client earlier. * The commit function works in sync way. * This probe point does not exist in NFSv2. */ probe nfs.proc.commit = nfs.proc3.commit ?, nfs.proc4.commit ? {} probe nfs.proc.commit.return = nfs.proc3.commit.return ?, nfs.proc4.commit.return ? {} // XXX: on kernels > 2.6.18 (?), module("nfs") -> module("nfsd") and // function("nfsN...") becomes function("nfsdN..."). PR3833. probe nfs.proc3.commit = kernel.function ("nfs3_proc_commit") !, module("nfs").function("nfs3_proc_commit") ?, module("nfsv3").function("nfs3_proc_commit") ? { server_ip = @_nfs_data_server_ip($cdata) prot = @_nfs_data_prot($cdata) version = 3 count = @_nfs_data_args_count($cdata) offset = $cdata->args->offset bitmask0 = 0 bitmask1 = 0 name = "nfs.proc3.commit" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc3.commit.return = kernel.function ("nfs3_proc_commit").return !, module("nfs").function("nfs3_proc_commit").return ?, module("nfsv3").function("nfs3_proc_commit").return ? { version = 3 name = "nfs.proc3.commit.return" retstr = sprintf("%d", $return) if ($return >= 0) { size = $return units = "bytes" } } probe nfs.proc4.commit = kernel.function ("nfs4_proc_commit") !, module("nfs").function("nfs4_proc_commit") ?, module("nfsv4").function("nfs4_proc_commit") ? { server_ip = @_nfs_data_server_ip($cdata) prot = @_nfs_data_prot($cdata) version = 4 count = @_nfs_data_args_count($cdata) offset = $cdata->args->offset bitmask0 = __nfsv4_bitmask($cdata->inode, 0) bitmask1 = __nfsv4_bitmask($cdata->inode, 1) name = "nfs.proc4.commit" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc4.commit.return = kernel.function ("nfs4_proc_commit").return !, module("nfs").function("nfs4_proc_commit").return ?, module("nfsv4").function("nfs4_proc_commit").return ? { version = 4 name = "nfs.proc4.commit.return" retstr = sprintf("%d", $return) if ($return >= 0) { size = $return units = "bytes" } } /** * probe nfs.proc.read_setup - NFS client setting up a read RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @count: read bytes in this execution * @size: read bytes in this execution * @offset: the file offset * * The read_setup function is used to setup a read RPC task. * It is not doing the actual read operation. */ probe nfs.proc.read_setup = nfs.proc2.read_setup, nfs.proc3.read_setup, nfs.proc4.read_setup {} probe nfs.proc.read_setup.return = nfs.proc2.read_setup.return, nfs.proc3.read_setup.return, nfs.proc4.read_setup.return {} probe nfs.proc2.read_setup = _nfs.proc2.read_setup !, _nfs.proc2.missing_read_setup { version = 2 name = "nfs.proc2.read_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe _nfs.proc2.read_setup = kernel.function("nfs_proc_read_setup") !, module("nfs").function("nfs_proc_read_setup") ?, module("nfsv2").function("nfs_proc_read_setup") ? { inode = @defined($data->header) ? $data->header->inode : $data->inode client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) count = @_nfs_data_args_count($data) offset = $data->args->offset } probe _nfs.proc2.missing_read_setup = never { inode = 0 client = 0 server_ip = 0 prot = 0 count = 0 offset = 0 } probe nfs.proc2.read_setup.return = kernel.function("nfs_proc_read_setup").return !, module("nfs").function("nfs_proc_read_setup").return !, module("nfsv2").function("nfs_proc_read_setup").return !, never { version = 2 name = "nfs.proc2.read_setup.return" retvalue = 0 } probe nfs.proc3.read_setup = kernel.function("nfs3_proc_read_setup") !, module("nfs").function("nfs3_proc_read_setup") ?, module("nfsv3").function("nfs3_proc_read_setup") ? { inode = @choose_defined($hdr->inode, @choose_defined($data->header->inode, $data->inode)) client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 fh = 0 count = @_nfs_data_args_count(@choose_defined($hdr, $data)) offset = @choose_defined($hdr->args->offset, $data->args->offset) name = "nfs.proc3.read_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc3.read_setup.return = kernel.function("nfs3_proc_read_setup").return !, module("nfs").function("nfs3_proc_read_setup").return ?, module("nfsv3").function("nfs3_proc_read_setup").return ? { version = 3 name = "nfs.proc3.read_setup.return" retvalue = 0 } probe nfs.proc4.read_setup = kernel.function("nfs4_proc_read_setup") !, module("nfs").function("nfs4_proc_read_setup") ?, module("nfsv4").function("nfs4_proc_read_setup") ? { inode = @choose_defined($hdr->inode, @choose_defined($data->header->inode, $data->inode)) client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 count = @_nfs_data_args_count(@choose_defined($hdr, $data)) offset = @choose_defined($hdr->args->offset, $data->args->offset) //timestamp = $jiffies name = "nfs.proc4.read_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc4.read_setup.return = kernel.function("nfs4_proc_read_setup").return !, module("nfs").function("nfs4_proc_read_setup").return ?, module("nfsv4").function("nfs4_proc_read_setup").return ? { version = 4 name = "nfs.proc4.read_setup.return" retvalue = 0 } /** * probe nfs.proc.read_done - NFS client response to a read RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @status: result of last operation * @count: number of bytes read * @timestamp : V4 timestamp, which is used for lease renewal * * Fires when a reply to a read RPC task is received or some read error occurs * (timeout or socket shutdown). */ probe nfs.proc.read_done = nfs.proc2.read_done, nfs.proc3.read_done, nfs.proc4.read_done {} probe nfs.proc.read_done.return = nfs.proc2.read_done.return, nfs.proc3.read_done.return, nfs.proc4.read_done.return {} probe nfs.proc2.read_done = _nfs.proc2.read_done !, _nfs.proc2.missing_read_done { timestamp = 0 version = 2 name = "nfs.proc2.read_done" argstr = sprintf("%d", status) } probe _nfs.proc2.read_done = kernel.function("nfs_read_done") !, module("nfs").function("nfs_read_done") ?, module("nfsv2").function("nfs_read_done") ? { if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) } status = $task->tk_status } probe _nfs.proc2.missing_read_done = never { server_ip = 0 prot = 0 count = 0 status = 0 } probe nfs.proc2.read_done.return = kernel.function("nfs_read_done").return !, module("nfs").function("nfs_read_done").return !, module("nfsv2").function("nfs_read_done").return !, never { version = 2 name = "nfs.proc2.read_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.read_done = kernel.function("nfs3_read_done") !, module("nfs").function("nfs3_read_done") ?, module("nfsv3").function("nfs3_read_done") ? { if (@defined($hdr)) { # kernels >= 3.17 server_ip = @_nfs_data_server_ip($hdr) prot = @_nfs_data_prot($hdr) count = @_nfs_data_res_count($hdr) } else if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) } timestamp = 0 version = 3 status = $task->tk_status name = "nfs.proc3.read_done" argstr = sprintf("%d", status) } probe nfs.proc3.read_done.return = kernel.function("nfs3_read_done").return !, module("nfs").function("nfs3_read_done").return ?, module("nfsv3").function("nfs3_read_done").return ? { version = 3 name = "nfs.proc3.read_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc4.read_done = kernel.function("nfs4_read_done") !, module("nfs").function("nfs4_read_done") ?, module("nfsv4").function("nfs4_read_done") ? { if (@defined($hdr)) { # kernels >= 3.17 server_ip = @_nfs_data_server_ip($hdr) prot = @_nfs_data_prot($hdr) count = @_nfs_data_res_count($hdr) timestamp = @_nfs_data_timestamp($hdr) } else if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) timestamp = @_nfs_data_timestamp($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) timestamp = @_nfs_data_timestamp($task->tk_calldata) } version = 4 status = $task->tk_status name = "nfs.proc4.read_done" argstr = sprintf("%d", status) } probe nfs.proc4.read_done.return = kernel.function("nfs4_read_done").return !, module("nfs").function("nfs4_read_done").return ?, module("nfsv4").function("nfs4_read_done").return ? { version = 4 name = "nfs.proc4.read_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } /** * probe nfs.proc.write_setup - NFS client setting up a write RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @size: bytes written in this execution * @count: bytes written in this execution * @offset: the file offset * @how: used to set args.stable. The stable value could be: * NFS_UNSTABLE,NFS_DATA_SYNC,NFS_FILE_SYNC * (in nfs.proc3.write_setup and nfs.proc4.write_setup) * @bitmask0: V4 bitmask representing the set of attributes supported * on this filesystem * @bitmask1: V4 bitmask representing the set of attributes supported * on this filesystem * * The write_setup function is used to setup a write RPC task. * It is not doing the actual write operation. */ probe nfs.proc.write_setup = nfs.proc2.write_setup, nfs.proc3.write_setup, nfs.proc4.write_setup {} probe nfs.proc.write_setup.return = nfs.proc2.write_setup.return, nfs.proc3.write_setup.return, nfs.proc4.write_setup.return {} probe nfs.proc2.write_setup = _nfs.proc2.write_setup !, _nfs.proc2.missing_write_setup { version = 2 bitmask0 = 0 bitmask1 = 0 name = "nfs.proc2.write_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe _nfs.proc2.write_setup = kernel.function("nfs_proc_write_setup") !, module("nfs").function("nfs_proc_write_setup") ?, module("nfsv2").function("nfs_proc_write_setup") ? { inode = @defined($data->header) ? $data->header->inode : $data->inode client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) count = @_nfs_data_args_count($data) offset = $data->args->offset how = @choose_defined($how, $data->args->stable) } probe _nfs.proc2.missing_write_setup = never { inode = 0 client = 0 server_ip = 0 prot = 0 count = 0 offset = 0 how = 0 } probe nfs.proc2.write_setup.return = kernel.function("nfs_proc_write_setup").return !, module("nfs").function("nfs_proc_write_setup").return !, module("nfsv2").function("nfs_proc_write_setup").return !, never { version = 2 name = "nfs.proc2.write_setup.return" retvalue = 0 } probe nfs.proc3.write_setup = kernel.function("nfs3_proc_write_setup") !, module("nfs").function("nfs3_proc_write_setup") ?, module("nfsv3").function("nfs3_proc_write_setup") ? { inode = @choose_defined($hdr->inode, @choose_defined($data->header->inode, $data->inode)) client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 count = @_nfs_data_args_count(@choose_defined($hdr, $data)) offset = @choose_defined($hdr->args->offset, $data->args->offset) how = @choose_defined($hdr->args->stable, @choose_defined($how, $data->args->stable)) bitmask0 = 0 bitmask1 = 0 name = "nfs.proc3.write_setup" argstr = sprintf("%d,%d,%d", count, offset, how) size = count units = "bytes" } probe nfs.proc3.write_setup.return = kernel.function("nfs3_proc_write_setup").return !, module("nfs").function("nfs3_proc_write_setup").return ?, module("nfsv3").function("nfs3_proc_write_setup").return ? { version = 3 name = "nfs.proc3.write_setup.return" retvalue = 0 } probe nfs.proc4.write_setup = kernel.function("nfs4_proc_write_setup") !, module("nfs").function("nfs4_proc_write_setup") ?, module("nfsv4").function("nfs4_proc_write_setup") ? { inode = @choose_defined($hdr->inode, @choose_defined($data->header->inode, $data->inode)) client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 count = @_nfs_data_args_count(@choose_defined($hdr, $data)) offset = @choose_defined($hdr->args->offset, $data->args->offset) how = @choose_defined($hdr->args->stable, @choose_defined($how, $data->args->stable)) bitmask0 = __nfsv4_bitmask(inode, 0) bitmask1 = __nfsv4_bitmask(inode, 1) //timestamp = $jiffies name = "nfs.proc4.write_setup" argstr = sprintf("%d,%d,%d", count, offset, how) size = count units = "bytes" } probe nfs.proc4.write_setup.return = kernel.function("nfs4_proc_write_setup").return !, module("nfs").function("nfs4_proc_write_setup").return ?, module("nfsv4").function("nfs4_proc_write_setup").return ? { version = 4 name = "nfs.proc4.write_setup.return" retvalue = 0 } /** * probe nfs.proc.write_done - NFS client response to a write RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @status: result of last operation * @valid: fattr->valid, indicates which fields are valid * @count: number of bytes written * @timestamp: V4 timestamp, which is used for lease renewal * * Fires when a reply to a write RPC task is received or some write error occurs * (timeout or socket shutdown). */ probe nfs.proc.write_done = nfs.proc2.write_done, nfs.proc3.write_done, nfs.proc4.write_done {} probe nfs.proc.write_done.return = nfs.proc2.write_done.return, nfs.proc3.write_done.return, nfs.proc4.write_done.return {} probe nfs.proc2.write_done = _nfs.proc2.write_done !, _nfs.proc2.missing_write_done { timestamp = 0 version = 2 name = "nfs.proc2.write_done" argstr = sprintf("%d", status) } probe _nfs.proc2.write_done = kernel.function("nfs_write_done") !, module("nfs").function("nfs_write_done") ?, module("nfsv2").function("nfs_write_done") ? { if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) valid = @_nfs_data_valid($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) valid = @_nfs_data_valid($task->tk_calldata) } status = $task->tk_status } probe _nfs.proc2.missing_write_done = never { server_ip = 0 prot = 0 count = 0 valid = 0 status = 0 } probe nfs.proc2.write_done.return = kernel.function("nfs_write_done").return !, module("nfs").function("nfs_write_done").return !, module("nfsv2").function("nfs_write_done").return !, never { version = 2 name = "nfs.proc2.write_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.write_done = kernel.function("nfs3_write_done") !, module("nfs").function("nfs3_write_done") ?, module("nfsv3").function("nfs3_write_done") ? { if (@defined($hdr) || @defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip(@choose_defined($hdr, $data)) prot = @_nfs_data_prot(@choose_defined($hdr, $data)) count = @_nfs_data_res_count(@choose_defined($hdr, $data)) valid = @_nfs_data_valid(@choose_defined($hdr, $data)) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) valid = @_nfs_data_valid($task->tk_calldata) } timestamp = 0 version = 3 status = $task->tk_status name = "nfs.proc3.write_done" argstr = sprintf("%d", status) } probe nfs.proc3.write_done.return = kernel.function("nfs3_write_done").return !, module("nfs").function("nfs3_write_done").return ?, module("nfsv3").function("nfs3_write_done").return ? { version = 3 name = "nfs.proc3.write_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc4.write_done = kernel.function("nfs4_write_done") !, module("nfs").function("nfs4_write_done") ?, module("nfsv4").function("nfs4_write_done") ? { if (@defined($hdr) || @defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip(@choose_defined($hdr, $data)) prot = @_nfs_data_prot(@choose_defined($hdr, $data)) count = @_nfs_data_res_count(@choose_defined($hdr, $data)) valid = @_nfs_data_valid(@choose_defined($hdr, $data)) timestamp = @_nfs_data_timestamp(@choose_defined($hdr, $data)) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) valid = @_nfs_data_valid($task->tk_calldata) timestamp = @_nfs_data_timestamp($task->tk_calldata) } version = 4 status = $task->tk_status name = "nfs.proc4.write_done" argstr = sprintf("%d", status) } probe nfs.proc4.write_done.return = kernel.function("nfs4_write_done").return !, module("nfs").function("nfs4_write_done").return ?, module("nfsv4").function("nfs4_write_done").return ? { version = 4 name = "nfs.proc4.write_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } /** * probe nfs.proc.commit_setup - NFS client setting up a commit RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @size: bytes in this commit * @count: bytes in this commit * @offset: the file offset * @bitmask0: V4 bitmask representing the set of attributes supported * on this filesystem * @bitmask1: V4 bitmask representing the set of attributes supported * on this filesystem * * The commit_setup function is used to setup a commit RPC task. * Is is not doing the actual commit operation. * It does not exist in NFSv2. */ probe nfs.proc.commit_setup = nfs.proc3.commit_setup, nfs.proc4.commit_setup {} probe nfs.proc.commit_setup.return = nfs.proc3.commit_setup.return, nfs.proc4.commit_setup.return {} probe nfs.proc3.commit_setup = kernel.function("nfs3_proc_commit_setup") !, module("nfs").function("nfs3_proc_commit_setup") ?, module("nfsv3").function("nfs3_proc_commit_setup") ? { inode = @defined($data->header) ? $data->header->inode : $data->inode client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 count = @_nfs_data_args_count($data) offset = $data->args->offset bitmask0 = 0 bitmask1 = 0 name = "nfs.proc3.commit_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc3.commit_setup.return = kernel.function("nfs3_proc_commit_setup") .return !, module("nfs").function("nfs3_proc_commit_setup").return ?, module("nfsv3").function("nfs3_proc_commit_setup").return ? { version = 3 name = "nfs.proc3.commit_setup.return" retvalue = 0 } probe nfs.proc4.commit_setup = kernel.function("nfs4_proc_commit_setup") !, module("nfs").function("nfs4_proc_commit_setup") ?, module("nfsv4").function("nfs4_proc_commit_setup") ? { inode = @defined($data->header) ? $data->header->inode : $data->inode client = NFS_CLIENT(inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 count = @_nfs_data_args_count($data) offset = $data->args->offset bitmask0 = __nfsv4_bitmask(inode, 0) bitmask1 = __nfsv4_bitmask(inode, 1) //timestamp = $jiffies name = "nfs.proc4.commit_setup" argstr = sprintf("%d,%d", count, offset) size = count units = "bytes" } probe nfs.proc4.commit_setup.return = kernel.function("nfs4_proc_commit_setup") .return !, module("nfs").function("nfs4_proc_commit_setup").return ?, module("nfsv4").function("nfs4_proc_commit_setup").return ? { version = 4 name = "nfs.proc4.commit_setup.return" retvalue = 0 } /** * probe nfs.proc.commit_done - NFS client response to a commit RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @status: result of last operation * @valid: fattr->valid, indicates which fields are valid * @count: number of bytes committed * @timestamp: V4 timestamp, which is used for lease renewal * * Fires when a reply to a commit RPC task is received * or some commit operation error occur (timeout or socket shutdown). */ probe nfs.proc.commit_done = nfs.proc3.commit_done, nfs.proc4.commit_done {} probe nfs.proc.commit_done.return = nfs.proc3.commit_done.return, nfs.proc4.commit_done.return {} probe nfs.proc3.commit_done = kernel.function("nfs3_commit_done") !, module("nfs").function("nfs3_commit_done") ?, module("nfsv3").function("nfs3_commit_done") ? { if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) valid = @_nfs_data_valid($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) valid = @_nfs_data_valid($task->tk_calldata) } timestamp = 0 version = 3 status = $task->tk_status name = "nfs.proc3.commit_done" argstr = sprintf("%d", status) } probe nfs.proc3.commit_done.return = kernel.function("nfs3_commit_done").return !, module("nfs").function("nfs3_commit_done").return ?, module("nfsv3").function("nfs3_commit_done").return ? { version = 3 name = "nfs.proc3.commit_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc4.commit_done = kernel.function("nfs4_commit_done") !, module("nfs").function("nfs4_commit_done") ?, module("nfsv4").function("nfs4_commit_done") ? { if (@defined($data)) { # kernels >= 2.6.10 server_ip = @_nfs_data_server_ip($data) prot = @_nfs_data_prot($data) count = @_nfs_data_res_count($data) valid = @_nfs_data_valid($data) timestamp = @_nfs_data_timestamp($data) } else { server_ip = @_nfs_data_server_ip($task->tk_calldata) prot = @_nfs_data_prot($task->tk_calldata) count = @_nfs_data_res_count($task->tk_calldata) valid = @_nfs_data_valid($task->tk_calldata) timestamp = @_nfs_data_timestamp($task->tk_calldata) } version = 4 status = $task->tk_status name = "nfs.proc4.commit_done" argstr = sprintf("%d", status) } probe nfs.proc4.commit_done.return = kernel.function("nfs4_commit_done").return !, module("nfs").function("nfs4_commit_done").return ?, module("nfsv4").function("nfs4_commit_done").return ? { version = 4 name = "nfs.proc4.commit_done.return" retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } /** * probe nfs.proc.rename_setup - NFS client setting up a rename RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @fh: file handle of parent dir * * The rename_setup function is used to setup a rename RPC task. * Is is not doing the actual rename operation. */ probe nfs.proc.rename_setup = nfs.proc2.rename_setup ?, nfs.proc3.rename_setup, nfs.proc4.rename_setup {} probe nfs.proc.rename_setup.return = nfs.proc2.rename_setup.return ?, nfs.proc3.rename_setup.return, nfs.proc4.rename_setup.return {} probe nfs.proc2.rename_setup = kernel.function("nfs_proc_rename_setup") !, module("nfs").function("nfs_proc_rename_setup") ?, module("nfsv2").function("nfs_proc_rename_setup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 2 fh = NFS_FH($dir) name = "nfs.proc2.rename_setup" argstr = sprintf("%d", fh) } probe nfs.proc2.rename_setup.return = kernel.function("nfs2_proc_rename_setup").return !, module("nfs").function("nfs_proc_rename_setup").return ?, module("nfsv2").function("nfs_proc_rename_setup").return ? { version = 2 name = "nfs.proc2.rename_setup.return" retvalue = 0 } probe nfs.proc3.rename_setup = kernel.function("nfs3_proc_rename_setup") !, module("nfs").function("nfs3_proc_rename_setup") ?, module("nfsv3").function("nfs3_proc_rename_setup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 fh = NFS_FH($dir) name = "nfs.proc3.rename_setup" argstr = sprintf("%d", fh) } probe nfs.proc3.rename_setup.return = kernel.function("nfs3_proc_rename_setup").return !, module("nfs").function("nfs3_proc_rename_setup").return ?, module("nfsv3").function("nfs3_proc_rename_setup").return ? { version = 3 name = "nfs.proc3.rename_setup.return" retvalue = 0 } probe nfs.proc4.rename_setup = kernel.function("nfs4_proc_rename_setup") !, module("nfs").function("nfs4_proc_rename_setup") ?, module("nfsv4").function("nfs4_proc_rename_setup") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 fh = NFS_FH($dir) name = "nfs.proc4.rename_setup" argstr = sprintf("%d", fh) } probe nfs.proc4.rename_setup.return = kernel.function("nfs4_proc_rename_setup").return !, module("nfs").function("nfs4_proc_rename_setup").return ?, module("nfsv4").function("nfs4_proc_rename_setup").return ? { version = 4 name = "nfs.proc4.rename_setup.return" retvalue = 0 } /** * probe nfs.proc.rename_done - NFS client response to a rename RPC task * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version * @status: result of last operation * @timestamp : V4 timestamp, which is used for lease renewal * @old_fh: file handle of old parent dir * @new_fh: file handle of new parent dir * * Fires when a reply to a rename RPC task is received or some rename * error occurs (timeout or socket shutdown). */ probe nfs.proc.rename_done = nfs.proc2.rename_done ?, nfs.proc3.rename_done, nfs.proc4.rename_done {} probe nfs.proc.rename_done.return = nfs.proc2.rename_done.return ?, nfs.proc3.rename_done.return, nfs.proc4.rename_done.return {} probe nfs.proc2.rename_done = kernel.function("nfs_proc_rename_done") !, module("nfs").function("nfs_proc_rename_done") ?, module("nfsv2").function("nfs_proc_rename_done") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 2 status = $task->tk_status timestamp = 0 old_fh = NFS_FH($old_dir) new_fh = NFS_FH($new_dir) name = "nfs.proc2.rename_done" argstr = sprintf("%d", status) } probe nfs.proc2.rename_done.return = kernel.function("nfs_rename_done").return !, module("nfs").function("nfs_rename_done").return !, module("nfsv2").function("nfs_rename_done").return ! { version = 2 name = "nfs.proc2.rename_done.return" retstr = sprintf("%d", $return) } probe nfs.proc3.rename_done = kernel.function("nfs3_proc_rename_done") !, module("nfs").function("nfs3_proc_rename_done") ?, module("nfsv3").function("nfs3_proc_rename_done") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 status = $task->tk_status timestamp = 0 old_fh = NFS_FH($old_dir) new_fh = NFS_FH($new_dir) name = "nfs.proc3.rename_done" argstr = sprintf("%d", status) } probe nfs.proc3.rename_done.return = kernel.function("nfs3_proc_rename_done").return !, module("nfs").function("nfs3_proc_rename_done").return ?, module("nfsv3").function("nfs3_proc_rename_done").return ? { version = 3 name = "nfs.proc3.rename_done.return" retstr = sprintf("%d", $return) } probe nfs.proc4.rename_done = kernel.function("nfs4_proc_rename_done") !, module("nfs").function("nfs4_proc_rename_done") ?, module("nfsv4").function("nfs4_proc_rename_done") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 timestamp = @_nfs_data_timestamp(@choose_defined($hdr, $data)) status = $task->tk_status old_fh = NFS_FH($old_dir) new_fh = NFS_FH($new_dir) name = "nfs.proc4.rename_done" argstr = sprintf("%d", status) } probe nfs.proc4.rename_done.return = kernel.function("nfs4_proc_rename_done").return !, module("nfs").function("nfs4_proc_rename_done").return ?, module("nfsv4").function("nfs4_proc_rename_done").return ? { version = 4 name = "nfs.proc4.rename_done.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.open - NFS client allocates file read/write context information * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version (the function is used for all NFS version) * @filename: file name * @flag: file flag * @mode: file mode * * Allocate file read/write context information */ probe nfs.proc.open = kernel.function("nfs_open") !, module("nfs").function("nfs_open") ? { client = NFS_CLIENT($inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = __nfs_version($inode) filename = __file_filename($filp) flag = $filp->f_flags mode = $filp->f_mode name = "nfs.proc.open" argstr = sprintf("%s,%d,%d", filename, flag, mode) } probe nfs.proc.open.return = kernel.function("nfs_open").return !, module("nfs").function("nfs_open").return ? { name = "nfs.proc.open.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.release - NFS client releases file read/write context information * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version (the function is used for all NFS version) * @filename: file name * @flag: file flag * @mode: file mode * * Release file read/write context information */ probe nfs.proc.release = kernel.function("nfs_release") !, module("nfs").function("nfs_release") ? { client = NFS_CLIENT($inode) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = __nfs_version($inode) filename = __file_filename($filp) flag = $filp->f_flags mode = $filp->f_mode name = "nfs.proc.release" argstr = sprintf("%s,%d,%d", filename, flag, mode) } probe nfs.proc.release.return = kernel.function("nfs_release").return !, module("nfs").function("nfs_release").return ? { name = "nfs.proc.release.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.handle_exception - NFS client handling an NFSv4 exception * * @errorcode: indicates the type of error * * This is the error handling routine for processes for NFSv4. */ probe nfs.proc.handle_exception = nfs.proc4.handle_exception {} probe nfs.proc.handle_exception.return = nfs.proc4.handle_exception.return {} probe nfs.proc4.handle_exception = kernel.function("nfs4_handle_exception") !, module("nfs").function("nfs4_handle_exception") ?, module("nfsv4").function("nfs4_handle_exception") ? { version = 4 errorcode = $errorcode name = "nfs.proc4.handle_exception" argstr = sprintf("%d", errorcode) } probe nfs.proc4.handle_exception.return = kernel.function("nfs4_handle_exception").return !, module("nfs").function("nfs4_handle_exception").return ?, module("nfsv4").function("nfs4_handle_exception").return ? { name = "nfs.proc4.handle_exception.return" retstr = sprintf("%d", $return) } /** * probe nfs.proc.create - NFS client creating file on server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version (the function is used for all NFS version) * @fh: file handle of parent dir * @filename: file name * @filelen: length of file name * @flag: indicates create mode (only for NFSv3 and NFSv4) */ probe nfs.proc.create = nfs.proc2.create, nfs.proc3.create, nfs.proc4.create {} probe nfs.proc.create.return = nfs.proc2.create.return, nfs.proc3.create.return, nfs.proc4.create.return {} probe nfs.proc2.create = _nfs.proc2.create !, _nfs.proc2.missing_create { version = 2 name = "nfs.proc2.create" argstr = sprintf("%s", filename) } probe _nfs.proc2.create = kernel.function("nfs_proc_create") !, module("nfs").function("nfs_proc_create") ?, module("nfsv2").function("nfs_proc_create") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) fh = NFS_FH($dir) filelen = $dentry->d_name->len filename = kernel_string_n($dentry->d_name->name, filelen) mode = $sattr->ia_mode } probe _nfs.proc2.missing_create = never { client = 0 server_ip = 0 prot = 0 fh = 0 filelen = 0 filename = "" mode = 0 } probe nfs.proc2.create.return = kernel.function("nfs_proc_create").return !, module("nfs").function("nfs_proc_create").return !, module("nfsv2").function("nfs_proc_create").return !, never { name = "nfs.proc2.create.return" version = 2 retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.create = kernel.function("nfs3_proc_create") !, module("nfs").function("nfs3_proc_create") ?, module("nfsv3").function("nfs3_proc_create") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 fh = NFS_FH($dir) filelen = $dentry->d_name->len filename = kernel_string_n($dentry->d_name->name, filelen) flag = $flags mode = $sattr->ia_mode name = "nfs.proc3.create" argstr = sprintf("%s", filename) } probe nfs.proc3.create.return = kernel.function("nfs3_proc_create").return !, module("nfs").function("nfs3_proc_create").return ?, module("nfsv3").function("nfs3_proc_create").return ? { name = "nfs.proc3.create.return" version = 3 retstr = sprintf("%d", $return) } probe nfs.proc4.create = kernel.function("nfs4_proc_create") !, module("nfs").function("nfs4_proc_create") ?, module("nfsv4").function("nfs4_proc_create") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 fh = NFS_FH($dir) filelen = $dentry->d_name->len filename = kernel_string_n($dentry->d_name->name, filelen) flag = $flags mode = $sattr->ia_mode name = "nfs.proc4.create" argstr = sprintf("%s", filename) } probe nfs.proc4.create.return = kernel.function("nfs4_proc_create").return !, module("nfs").function("nfs4_proc_create").return ?, module("nfsv4").function("nfs4_proc_create").return ? { name = "nfs.proc4.create.return" version = 4 retstr = sprintf("%d", $return) } /** * probe nfs.proc.remove - NFS client removes a file on server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version (the function is used for all NFS version) * @fh: file handle of parent dir * @filename: file name * @filelen: length of file name */ probe nfs.proc.remove = nfs.proc2.remove, nfs.proc3.remove, nfs.proc4.remove {} probe nfs.proc.remove.return = nfs.proc2.remove.return, nfs.proc3.remove.return, nfs.proc4.remove.return {} probe nfs.proc2.remove = _nfs.proc2.remove !, _nfs.proc2.missing_remove { version = 2 name = "nfs.proc2.remove" argstr = sprintf("%s", filename) } probe _nfs.proc2.remove = kernel.function("nfs_proc_remove") !, module("nfs").function("nfs_proc_remove") ?, module("nfsv2").function("nfs_proc_remove") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) fh = NFS_FH($dir) filelen = $name->len filename = kernel_string_n($name->name, filelen) } probe _nfs.proc2.missing_remove = never { client = 0 server_ip = 0 prot = 0 fh = 0 filelen = 0 filename = "" } probe nfs.proc2.remove.return = kernel.function("nfs_proc_remove").return !, module("nfs").function("nfs_proc_remove").return !, module("nfsv2").function("nfs_proc_remove").return !, never { name = "nfs.proc2.remove.return" version = 2 retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.remove = kernel.function("nfs3_proc_remove") !, module("nfs").function("nfs3_proc_remove") ?, module("nfsv3").function("nfs3_proc_remove") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 3 fh = NFS_FH($dir) filelen = $name->len filename = kernel_string_n($name->name, filelen) name = "nfs.proc3.remove" argstr = sprintf("%s", filename) } probe nfs.proc3.remove.return = kernel.function("nfs3_proc_remove").return !, module("nfs").function("nfs3_proc_remove").return ?, module("nfsv3").function("nfs3_proc_remove").return ? { name = "nfs.proc3.remove.return" version = 3 retstr = sprintf("%d", $return) } probe nfs.proc4.remove = kernel.function("nfs4_proc_remove") !, module("nfs").function("nfs4_proc_remove") ?, module("nfsv4").function("nfs4_proc_remove") ? { client = NFS_CLIENT($dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) version = 4 fh = NFS_FH($dir) filelen = $name->len filename = kernel_string_n($name->name, filelen) name = "nfs.proc4.remove" argstr = sprintf("%s", filename) } probe nfs.proc4.remove.return = kernel.function("nfs4_proc_remove").return !, module("nfs").function("nfs4_proc_remove").return ?, module("nfsv4").function("nfs4_proc_remove").return ? { name = "nfs.proc4.remove.return" version = 4 retstr = sprintf("%d", $return) } /** * probe nfs.proc.rename - NFS client renames a file on server * * @server_ip: IP address of server * @prot: transfer protocol * @version: NFS version (the function is used for all NFS version) * @old_fh: file handle of old parent dir * @new_fh: file handle of new parent dir * @old_name: old file name * @old_filelen: length of old file name * @new_name: new file name * @new_filelen: length of new file name */ probe nfs.proc.rename = nfs.proc2.rename, nfs.proc3.rename, nfs.proc4.rename {} probe nfs.proc.rename.return = nfs.proc2.rename.return, nfs.proc3.rename.return, nfs.proc4.rename.return {} probe nfs.proc2.rename = _nfs.proc2.rename !, _nfs.proc2.missing_rename { version = 2 name = "nfs.proc2.rename" argstr = sprintf("%s,%s", old_name, new_name) } probe _nfs.proc2.rename = kernel.function("nfs_proc_rename") !, module("nfs").function("nfs_proc_rename") ?, module("nfsv2").function("nfs_proc_rename") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) old_fh = NFS_FH($old_dir) old_filelen = $old_name->len old_name = kernel_string_n($old_name->name, old_filelen) new_fh = NFS_FH($new_dir) new_filelen = $new_name->len new_name = kernel_string_n($new_name->name, new_filelen) } probe _nfs.proc2.missing_rename = never { client = 0 server_ip = 0 prot = 0 old_fh = 0 old_filelen = 0 old_name = "" new_fh = 0 new_filelen = 0 new_name = "" } probe nfs.proc2.rename.return = kernel.function("nfs_proc_rename").return !, module("nfs").function("nfs_proc_rename").return !, module("nfsv2").function("nfs_proc_rename").return !, never { name = "nfs.proc2.rename.return" version = 2 retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc3.rename = _nfs.proc3.rename !, _nfs.proc3.missing_rename { version = 3 name = "nfs.proc3.rename" argstr = sprintf("%s,%s", old_name, new_name) } probe _nfs.proc3.rename = kernel.function("nfs3_proc_rename") !, module("nfs").function("nfs3_proc_rename") ?, module("nfsv3").function("nfs3_proc_rename") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) old_fh = NFS_FH($old_dir) old_filelen = $old_name->len old_name = kernel_string_n($old_name->name, old_filelen) new_fh = NFS_FH($new_dir) new_filelen = $new_name->len new_name = kernel_string_n($new_name->name, new_filelen) } probe _nfs.proc3.missing_rename = never { client = 0 server_ip = 0 prot = 0 old_fh = 0 old_filelen = 0 old_name = "" new_fh = 0 new_filelen = 0 new_name = "" } probe nfs.proc3.rename.return = kernel.function("nfs3_proc_rename").return !, module("nfs").function("nfs3_proc_rename").return ?, module("nfsv3").function("nfs3_proc_rename").return !, never { name = "nfs.proc3.rename.return" version = 3 retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") } probe nfs.proc4.rename = _nfs.proc4.rename !, _nfs.proc4.missing_rename { version = 4 name = "nfs.proc4.rename" argstr = sprintf("%s,%s", old_name, new_name) } probe _nfs.proc4.rename = kernel.function("nfs4_proc_rename") !, module("nfs").function("nfs4_proc_rename") ?, module("nfsv4").function("nfs4_proc_rename") ? { client = NFS_CLIENT($old_dir) server_ip = get_ip_from_client(client) prot = get_prot_from_client(client) old_fh = NFS_FH($old_dir) old_filelen = $old_name->len old_name = kernel_string_n($old_name->name, old_filelen) new_fh = NFS_FH($new_dir) new_filelen = $new_name->len new_name = kernel_string_n($new_name->name, new_filelen) } probe _nfs.proc4.missing_rename = never { client = 0 server_ip = 0 prot = 0 old_fh = 0 old_filelen = 0 old_name = "" new_fh = 0 new_filelen = 0 new_name = "" } probe nfs.proc4.rename.return = kernel.function("nfs4_proc_rename").return !, module("nfs").function("nfs4_proc_rename").return ?, module("nfsv4").function("nfs4_proc_rename").return !, never { name = "nfs.proc4.rename.return" version = 4 retstr = (@defined($return) ? sprintf("%d", $return) : "N/A") }
Upload File
Create Folder