Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
systemtap /
tapset /
linux /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
arm
[ DIR ]
drwxr-xr-x
?;
arm64
[ DIR ]
drwxr-xr-x
?;
i386
[ DIR ]
drwxr-xr-x
?;
ia64
[ DIR ]
drwxr-xr-x
?;
mips
[ DIR ]
drwxr-xr-x
?;
powerpc
[ DIR ]
drwxr-xr-x
?;
s390
[ DIR ]
drwxr-xr-x
?;
x86_64
[ DIR ]
drwxr-xr-x
atomic.stp
1.53
KB
-rw-r--r--
aux_syscalls.stp
143.78
KB
-rw-r--r--
context-caller.stp
3.07
KB
-rw-r--r--
context-envvar.stp
1.72
KB
-rw-r--r--
context-symbols.stp
11.99
KB
-rw-r--r--
context-unwind.stp
2.81
KB
-rw-r--r--
context.stp
18.57
KB
-rw-r--r--
context.stpm
125
B
-rw-r--r--
conversions-guru.stp
5.74
KB
-rw-r--r--
conversions.stp
15.34
KB
-rw-r--r--
ctime.stp
5.54
KB
-rw-r--r--
dentry.stp
10.11
KB
-rw-r--r--
dev.stp
1.9
KB
-rw-r--r--
endian.stp
602
B
-rw-r--r--
guru-delay.stp
1.2
KB
-rw-r--r--
guru-signal.stp
1.07
KB
-rw-r--r--
inet.stp
1.42
KB
-rw-r--r--
inet.stpm
383
B
-rw-r--r--
inet_sock.stp
1.25
KB
-rw-r--r--
ioblock.stp
15.04
KB
-rw-r--r--
ioscheduler.stp
11.89
KB
-rw-r--r--
ip.stp
5.35
KB
-rw-r--r--
ipmib-filter-default.stp
965
B
-rw-r--r--
ipmib.stp
12.68
KB
-rw-r--r--
irq.stp
5
KB
-rw-r--r--
json.stp
8.98
KB
-rw-r--r--
json.stpm
6.11
KB
-rw-r--r--
kprocess.stp
4.4
KB
-rw-r--r--
kretprobe.stp
2.1
KB
-rw-r--r--
linuxmib-filter-default.stp
876
B
-rw-r--r--
linuxmib.stp
3.63
KB
-rw-r--r--
loadavg.stp
1.95
KB
-rw-r--r--
logging.stp
2.12
KB
-rw-r--r--
memory.stp
18.74
KB
-rw-r--r--
netfilter.stp
35.49
KB
-rw-r--r--
networking.stp
9.37
KB
-rw-r--r--
nfs.stp
38.06
KB
-rw-r--r--
nfs_proc.stp
55.46
KB
-rw-r--r--
nfs_proc.stpm
1.18
KB
-rw-r--r--
nfsd.stp
46.27
KB
-rw-r--r--
nfsderrno.stp
11.7
KB
-rw-r--r--
panic.stp
1.07
KB
-rw-r--r--
perf.stp
5.16
KB
-rw-r--r--
proc_mem.stp
12.05
KB
-rw-r--r--
pstrace.stp
773
B
-rw-r--r--
rcu.stp
928
B
-rw-r--r--
rlimit.stp
1.35
KB
-rw-r--r--
rpc.stp
37.67
KB
-rw-r--r--
scheduler.stp
11.36
KB
-rw-r--r--
scsi.stp
9.47
KB
-rw-r--r--
signal.stp
28.69
KB
-rw-r--r--
socket.stp
34.2
KB
-rw-r--r--
sysc_accept.stp
7.32
KB
-rw-r--r--
sysc_accept4.stp
7.24
KB
-rw-r--r--
sysc_access.stp
2.45
KB
-rw-r--r--
sysc_acct.stp
2.18
KB
-rw-r--r--
sysc_add_key.stp
2.91
KB
-rw-r--r--
sysc_adjtimex.stp
5.28
KB
-rw-r--r--
sysc_alarm.stp
2.52
KB
-rw-r--r--
sysc_bdflush.stp
2.75
KB
-rw-r--r--
sysc_bind.stp
6.43
KB
-rw-r--r--
sysc_bpf.stp
2.33
KB
-rw-r--r--
sysc_brk.stp
2.33
KB
-rw-r--r--
sysc_capget.stp
2.71
KB
-rw-r--r--
sysc_capset.stp
2.71
KB
-rw-r--r--
sysc_chdir.stp
2.23
KB
-rw-r--r--
sysc_chmod.stp
2.51
KB
-rw-r--r--
sysc_chown.stp
3.27
KB
-rw-r--r--
sysc_chown16.stp
2.61
KB
-rw-r--r--
sysc_chroot.stp
2.29
KB
-rw-r--r--
sysc_clock_adjtime.stp
4.72
KB
-rw-r--r--
sysc_clock_getres.stp
3.82
KB
-rw-r--r--
sysc_clock_gettime.stp
3.62
KB
-rw-r--r--
sysc_clock_nanosleep.stp
7.25
KB
-rw-r--r--
sysc_clock_settime.stp
5.02
KB
-rw-r--r--
sysc_clone.stp
6.19
KB
-rw-r--r--
sysc_close.stp
2.47
KB
-rw-r--r--
sysc_connect.stp
6.82
KB
-rw-r--r--
sysc_copy_file_range.stp
3.15
KB
-rw-r--r--
sysc_creat.stp
2.28
KB
-rw-r--r--
sysc_delete_module.stp
2.87
KB
-rw-r--r--
sysc_dup.stp
2.09
KB
-rw-r--r--
sysc_dup2.stp
2.63
KB
-rw-r--r--
sysc_dup3.stp
2.66
KB
-rw-r--r--
sysc_epoll_create.stp
5.29
KB
-rw-r--r--
sysc_epoll_ctl.stp
3.5
KB
-rw-r--r--
sysc_epoll_pwait.stp
3.49
KB
-rw-r--r--
sysc_epoll_wait.stp
4.33
KB
-rw-r--r--
sysc_eventfd.stp
4.86
KB
-rw-r--r--
sysc_execve.stp
6.11
KB
-rw-r--r--
sysc_execveat.stp
6.78
KB
-rw-r--r--
sysc_exit.stp
1.54
KB
-rw-r--r--
sysc_exit_group.stp
1.66
KB
-rw-r--r--
sysc_faccessat.stp
3.2
KB
-rw-r--r--
sysc_fadvise64.stp
7.43
KB
-rw-r--r--
sysc_fallocate.stp
3.29
KB
-rw-r--r--
sysc_fanotify_init.stp
3.02
KB
-rw-r--r--
sysc_fanotify_mark.stp
5.75
KB
-rw-r--r--
sysc_fchdir.stp
2.23
KB
-rw-r--r--
sysc_fchmod.stp
2.52
KB
-rw-r--r--
sysc_fchmodat.stp
3.2
KB
-rw-r--r--
sysc_fchown.stp
3.28
KB
-rw-r--r--
sysc_fchown16.stp
2.59
KB
-rw-r--r--
sysc_fchownat.stp
3.24
KB
-rw-r--r--
sysc_fcntl.stp
4.37
KB
-rw-r--r--
sysc_fdatasync.stp
2.39
KB
-rw-r--r--
sysc_fgetxattr.stp
2.94
KB
-rw-r--r--
sysc_finit_module.stp
2.86
KB
-rw-r--r--
sysc_flistxattr.stp
2.61
KB
-rw-r--r--
sysc_flock.stp
2.28
KB
-rw-r--r--
sysc_fork.stp
2.53
KB
-rw-r--r--
sysc_fremovexattr.stp
2.73
KB
-rw-r--r--
sysc_fsetxattr.stp
3.34
KB
-rw-r--r--
sysc_fstat.stp
5.76
KB
-rw-r--r--
sysc_fstatat.stp
5.21
KB
-rw-r--r--
sysc_fstatfs.stp
2.94
KB
-rw-r--r--
sysc_fstatfs64.stp
2.86
KB
-rw-r--r--
sysc_fsync.stp
2.18
KB
-rw-r--r--
sysc_ftruncate.stp
5.54
KB
-rw-r--r--
sysc_futex.stp
5.11
KB
-rw-r--r--
sysc_futimesat.stp
5.91
KB
-rw-r--r--
sysc_get_mempolicy.stp
4.1
KB
-rw-r--r--
sysc_get_robust_list.stp
4.12
KB
-rw-r--r--
sysc_getcpu.stp
2.63
KB
-rw-r--r--
sysc_getcwd.stp
2.43
KB
-rw-r--r--
sysc_getdents.stp
5.18
KB
-rw-r--r--
sysc_getegid.stp
3.46
KB
-rw-r--r--
sysc_geteuid.stp
3.4
KB
-rw-r--r--
sysc_getgid.stp
3.32
KB
-rw-r--r--
sysc_getgroups.stp
3.91
KB
-rw-r--r--
sysc_gethostname.stp
1.22
KB
-rw-r--r--
sysc_getitimer.stp
4.87
KB
-rw-r--r--
sysc_getpeername.stp
7.01
KB
-rw-r--r--
sysc_getpgid.stp
2.6
KB
-rw-r--r--
sysc_getpgrp.stp
2.04
KB
-rw-r--r--
sysc_getpid.stp
1.98
KB
-rw-r--r--
sysc_getppid.stp
2.06
KB
-rw-r--r--
sysc_getpriority.stp
2.62
KB
-rw-r--r--
sysc_getrandom.stp
2.72
KB
-rw-r--r--
sysc_getresgid.stp
3.73
KB
-rw-r--r--
sysc_getresuid.stp
3.54
KB
-rw-r--r--
sysc_getrlimit.stp
4.08
KB
-rw-r--r--
sysc_getrusage.stp
3.45
KB
-rw-r--r--
sysc_getsid.stp
2.26
KB
-rw-r--r--
sysc_getsockname.stp
7.03
KB
-rw-r--r--
sysc_getsockopt.stp
7.88
KB
-rw-r--r--
sysc_gettid.stp
2.01
KB
-rw-r--r--
sysc_gettimeofday.stp
3.7
KB
-rw-r--r--
sysc_getuid.stp
3.35
KB
-rw-r--r--
sysc_getxattr.stp
3
KB
-rw-r--r--
sysc_init_module.stp
2.76
KB
-rw-r--r--
sysc_inotify_add_watch.stp
3.25
KB
-rw-r--r--
sysc_inotify_init.stp
5.26
KB
-rw-r--r--
sysc_inotify_rm_watch.stp
2.89
KB
-rw-r--r--
sysc_io_cancel.stp
2.85
KB
-rw-r--r--
sysc_io_destroy.stp
2.5
KB
-rw-r--r--
sysc_io_getevents.stp
4.25
KB
-rw-r--r--
sysc_io_setup.stp
3.43
KB
-rw-r--r--
sysc_io_submit.stp
3.46
KB
-rw-r--r--
sysc_ioctl.stp
3.12
KB
-rw-r--r--
sysc_ioperm.stp
2.41
KB
-rw-r--r--
sysc_ioprio_get.stp
2.65
KB
-rw-r--r--
sysc_ioprio_set.stp
2.82
KB
-rw-r--r--
sysc_kcmp.stp
2.51
KB
-rw-r--r--
sysc_kexec_file_load.stp
3.35
KB
-rw-r--r--
sysc_kexec_load.stp
3.96
KB
-rw-r--r--
sysc_keyctl.stp
3.16
KB
-rw-r--r--
sysc_kill.stp
2.25
KB
-rw-r--r--
sysc_lchown.stp
3.34
KB
-rw-r--r--
sysc_lchown16.stp
2.66
KB
-rw-r--r--
sysc_lgetxattr.stp
3.05
KB
-rw-r--r--
sysc_link.stp
2.34
KB
-rw-r--r--
sysc_linkat.stp
3.26
KB
-rw-r--r--
sysc_listen.stp
6.17
KB
-rw-r--r--
sysc_listxattr.stp
2.72
KB
-rw-r--r--
sysc_llistxattr.stp
2.78
KB
-rw-r--r--
sysc_llseek.stp
2.81
KB
-rw-r--r--
sysc_lookup_dcookie.stp
3.39
KB
-rw-r--r--
sysc_lremovexattr.stp
3.11
KB
-rw-r--r--
sysc_lseek.stp
3.98
KB
-rw-r--r--
sysc_lsetxattr.stp
3.22
KB
-rw-r--r--
sysc_lstat.stp
5.91
KB
-rw-r--r--
sysc_madvise.stp
2.55
KB
-rw-r--r--
sysc_mbind.stp
3.69
KB
-rw-r--r--
sysc_membarrier.stp
2.65
KB
-rw-r--r--
sysc_memfd_create.stp
2.77
KB
-rw-r--r--
sysc_migrate_pages.stp
3.83
KB
-rw-r--r--
sysc_mincore.stp
2.47
KB
-rw-r--r--
sysc_mkdir.stp
2.38
KB
-rw-r--r--
sysc_mkdirat.stp
2.92
KB
-rw-r--r--
sysc_mknod.stp
2.45
KB
-rw-r--r--
sysc_mknodat.stp
3.07
KB
-rw-r--r--
sysc_mlock.stp
2.27
KB
-rw-r--r--
sysc_mlock2.stp
2.47
KB
-rw-r--r--
sysc_mlockall.stp
2.46
KB
-rw-r--r--
sysc_mmap2.stp
5.45
KB
-rw-r--r--
sysc_modify_ldt.stp
2.67
KB
-rw-r--r--
sysc_mount.stp
3.53
KB
-rw-r--r--
sysc_move_pages.stp
4.09
KB
-rw-r--r--
sysc_mprotect.stp
2.55
KB
-rw-r--r--
sysc_mq_getsetattr.stp
3.95
KB
-rw-r--r--
sysc_mq_notify.stp
3.51
KB
-rw-r--r--
sysc_mq_open.stp
4.54
KB
-rw-r--r--
sysc_mq_timedreceive.stp
5.18
KB
-rw-r--r--
sysc_mq_timedsend.stp
4.96
KB
-rw-r--r--
sysc_mq_unlink.stp
2.53
KB
-rw-r--r--
sysc_mremap.stp
3.01
KB
-rw-r--r--
sysc_msgctl.stp
7.35
KB
-rw-r--r--
sysc_msgget.stp
3.73
KB
-rw-r--r--
sysc_msgrcv.stp
9.48
KB
-rw-r--r--
sysc_msgsnd.stp
7.81
KB
-rw-r--r--
sysc_msync.stp
2.44
KB
-rw-r--r--
sysc_munlock.stp
2.39
KB
-rw-r--r--
sysc_munlockall.stp
2.29
KB
-rw-r--r--
sysc_munmap.stp
2.35
KB
-rw-r--r--
sysc_name_to_handle_at.stp
3.46
KB
-rw-r--r--
sysc_nanosleep.stp
5.22
KB
-rw-r--r--
sysc_nfsservctl.stp
2.23
KB
-rw-r--r--
sysc_ni_syscall.stp
1.4
KB
-rw-r--r--
sysc_nice.stp
2.15
KB
-rw-r--r--
sysc_open.stp
3.79
KB
-rw-r--r--
sysc_open_by_handle_at.stp
3.8
KB
-rw-r--r--
sysc_openat.stp
3.34
KB
-rw-r--r--
sysc_pause.stp
2.5
KB
-rw-r--r--
sysc_perf_event_open.stp
3.24
KB
-rw-r--r--
sysc_personality.stp
2.74
KB
-rw-r--r--
sysc_pipe.stp
9.86
KB
-rw-r--r--
sysc_pivot_root.stp
2.71
KB
-rw-r--r--
sysc_poll.stp
2.35
KB
-rw-r--r--
sysc_ppoll.stp
5.38
KB
-rw-r--r--
sysc_prctl.stp
2.48
KB
-rw-r--r--
sysc_pread.stp
4.51
KB
-rw-r--r--
sysc_preadv.stp
4.12
KB
-rw-r--r--
sysc_preadv2.stp
4.48
KB
-rw-r--r--
sysc_prlimit64.stp
2.97
KB
-rw-r--r--
sysc_process_vm_readv.stp
4.08
KB
-rw-r--r--
sysc_process_vm_writev.stp
4.13
KB
-rw-r--r--
sysc_pselect6.stp
5.62
KB
-rw-r--r--
sysc_pselect7.stp
3.58
KB
-rw-r--r--
sysc_ptrace.stp
3.18
KB
-rw-r--r--
sysc_pwrite.stp
6.27
KB
-rw-r--r--
sysc_pwritev.stp
4.23
KB
-rw-r--r--
sysc_pwritev2.stp
4.58
KB
-rw-r--r--
sysc_quotactl.stp
4
KB
-rw-r--r--
sysc_read.stp
3.29
KB
-rw-r--r--
sysc_readahead.stp
3.02
KB
-rw-r--r--
sysc_readdir.stp
3.6
KB
-rw-r--r--
sysc_readlink.stp
2.59
KB
-rw-r--r--
sysc_readlinkat.stp
3.24
KB
-rw-r--r--
sysc_readv.stp
3.07
KB
-rw-r--r--
sysc_reboot.stp
2.77
KB
-rw-r--r--
sysc_recv.stp
6.7
KB
-rw-r--r--
sysc_recvfrom.stp
7.82
KB
-rw-r--r--
sysc_recvmmsg.stp
5.84
KB
-rw-r--r--
sysc_recvmsg.stp
10.35
KB
-rw-r--r--
sysc_remap_file_pages.stp
3.37
KB
-rw-r--r--
sysc_removexattr.stp
2.75
KB
-rw-r--r--
sysc_rename.stp
2.48
KB
-rw-r--r--
sysc_renameat.stp
3.3
KB
-rw-r--r--
sysc_renameat2.stp
3.61
KB
-rw-r--r--
sysc_request_key.stp
3.23
KB
-rw-r--r--
sysc_restart_syscall.stp
2.5
KB
-rw-r--r--
sysc_rmdir.stp
2.25
KB
-rw-r--r--
sysc_rt_sigaction.stp
6.2
KB
-rw-r--r--
sysc_rt_sigpending.stp
4.35
KB
-rw-r--r--
sysc_rt_sigprocmask.stp
7.87
KB
-rw-r--r--
sysc_rt_sigqueueinfo.stp
4.26
KB
-rw-r--r--
sysc_rt_sigreturn.stp
1.6
KB
-rw-r--r--
sysc_rt_sigsuspend.stp
3.45
KB
-rw-r--r--
sysc_rt_sigtimedwait.stp
5.08
KB
-rw-r--r--
sysc_rt_tgsigqueueinfo.stp
3.92
KB
-rw-r--r--
sysc_sched_get_priority_max.st...
3.26
KB
-rw-r--r--
sysc_sched_get_priority_min.st...
3.26
KB
-rw-r--r--
sysc_sched_getaffinity.stp
3.62
KB
-rw-r--r--
sysc_sched_getattr.stp
3.05
KB
-rw-r--r--
sysc_sched_getparam.stp
2.84
KB
-rw-r--r--
sysc_sched_getscheduler.stp
2.94
KB
-rw-r--r--
sysc_sched_rr_get_interval.stp
4.41
KB
-rw-r--r--
sysc_sched_setaffinity.stp
3.49
KB
-rw-r--r--
sysc_sched_setattr.stp
2.98
KB
-rw-r--r--
sysc_sched_setparam.stp
2.83
KB
-rw-r--r--
sysc_sched_setscheduler.stp
3.2
KB
-rw-r--r--
sysc_sched_yield.stp
2.26
KB
-rw-r--r--
sysc_seccomp.stp
2.76
KB
-rw-r--r--
sysc_select.stp
5.55
KB
-rw-r--r--
sysc_semctl.stp
7.22
KB
-rw-r--r--
sysc_semget.stp
3.79
KB
-rw-r--r--
sysc_semop.stp
4.73
KB
-rw-r--r--
sysc_semtimedop.stp
8.8
KB
-rw-r--r--
sysc_send.stp
6.81
KB
-rw-r--r--
sysc_sendfile.stp
4.38
KB
-rw-r--r--
sysc_sendmmsg.stp
8.61
KB
-rw-r--r--
sysc_sendmsg.stp
11.48
KB
-rw-r--r--
sysc_sendto.stp
7.66
KB
-rw-r--r--
sysc_set_mempolicy.stp
3.69
KB
-rw-r--r--
sysc_set_robust_list.stp
3.92
KB
-rw-r--r--
sysc_set_tid_address.stp
2.83
KB
-rw-r--r--
sysc_setdomainname.stp
3.04
KB
-rw-r--r--
sysc_setfsgid.stp
4.43
KB
-rw-r--r--
sysc_setfsuid.stp
4.48
KB
-rw-r--r--
sysc_setgid.stp
4.23
KB
-rw-r--r--
sysc_setgroups.stp
4.1
KB
-rw-r--r--
sysc_sethostname.stp
2.72
KB
-rw-r--r--
sysc_setitimer.stp
5.61
KB
-rw-r--r--
sysc_setns.stp
2.34
KB
-rw-r--r--
sysc_setpgid.stp
2.41
KB
-rw-r--r--
sysc_setpriority.stp
2.79
KB
-rw-r--r--
sysc_setregid.stp
5.84
KB
-rw-r--r--
sysc_setresgid.stp
6.12
KB
-rw-r--r--
sysc_setresuid.stp
6.13
KB
-rw-r--r--
sysc_setreuid.stp
5.84
KB
-rw-r--r--
sysc_setrlimit.stp
3.61
KB
-rw-r--r--
sysc_setsid.stp
2.05
KB
-rw-r--r--
sysc_setsockopt.stp
7.77
KB
-rw-r--r--
sysc_settimeofday.stp
6.01
KB
-rw-r--r--
sysc_setuid.stp
4.23
KB
-rw-r--r--
sysc_setxattr.stp
3.12
KB
-rw-r--r--
sysc_sgetmask.stp
2.12
KB
-rw-r--r--
sysc_shmat.stp
5.88
KB
-rw-r--r--
sysc_shmctl.stp
7.23
KB
-rw-r--r--
sysc_shmdt.stp
3.36
KB
-rw-r--r--
sysc_shmget.stp
3.7
KB
-rw-r--r--
sysc_shutdown.stp
6.46
KB
-rw-r--r--
sysc_sigaction.stp
5.2
KB
-rw-r--r--
sysc_sigaltstack.stp
3.83
KB
-rw-r--r--
sysc_signal.stp
2.5
KB
-rw-r--r--
sysc_signalfd.stp
11.53
KB
-rw-r--r--
sysc_sigpending.stp
3.19
KB
-rw-r--r--
sysc_sigprocmask.stp
3.69
KB
-rw-r--r--
sysc_sigreturn.stp
1.43
KB
-rw-r--r--
sysc_sigsuspend.stp
4.22
KB
-rw-r--r--
sysc_socket.stp
6.92
KB
-rw-r--r--
sysc_socketpair.stp
7.68
KB
-rw-r--r--
sysc_splice.stp
2.78
KB
-rw-r--r--
sysc_ssetmask.stp
2.49
KB
-rw-r--r--
sysc_stat.stp
5.91
KB
-rw-r--r--
sysc_statfs.stp
3.02
KB
-rw-r--r--
sysc_statfs64.stp
2.93
KB
-rw-r--r--
sysc_statx.stp
3.4
KB
-rw-r--r--
sysc_stime.stp
2.76
KB
-rw-r--r--
sysc_swapoff.stp
2.41
KB
-rw-r--r--
sysc_swapon.stp
2.6
KB
-rw-r--r--
sysc_symlink.stp
2.52
KB
-rw-r--r--
sysc_symlinkat.stp
3.28
KB
-rw-r--r--
sysc_sync.stp
1.88
KB
-rw-r--r--
sysc_sync_file_range.stp
4.76
KB
-rw-r--r--
sysc_syncfs.stp
2.27
KB
-rw-r--r--
sysc_sysctl.stp
2.78
KB
-rw-r--r--
sysc_sysfs.stp
3.22
KB
-rw-r--r--
sysc_sysinfo.stp
2.95
KB
-rw-r--r--
sysc_syslog.stp
2.41
KB
-rw-r--r--
sysc_tee.stp
2.3
KB
-rw-r--r--
sysc_tgkill.stp
2.48
KB
-rw-r--r--
sysc_time.stp
3.18
KB
-rw-r--r--
sysc_timer_create.stp
4.39
KB
-rw-r--r--
sysc_timer_delete.stp
2.61
KB
-rw-r--r--
sysc_timer_getoverrun.stp
2.86
KB
-rw-r--r--
sysc_timer_gettime.stp
4.15
KB
-rw-r--r--
sysc_timer_settime.stp
5.33
KB
-rw-r--r--
sysc_timerfd.stp
1.79
KB
-rw-r--r--
sysc_timerfd_create.stp
2.99
KB
-rw-r--r--
sysc_timerfd_gettime.stp
3.79
KB
-rw-r--r--
sysc_timerfd_settime.stp
4.71
KB
-rw-r--r--
sysc_times.stp
2.84
KB
-rw-r--r--
sysc_tkill.stp
2.35
KB
-rw-r--r--
sysc_truncate.stp
5.25
KB
-rw-r--r--
sysc_tux.stp
1.04
KB
-rw-r--r--
sysc_umask.stp
2.22
KB
-rw-r--r--
sysc_umount.stp
4.5
KB
-rw-r--r--
sysc_uname.stp
4.77
KB
-rw-r--r--
sysc_unlink.stp
2.38
KB
-rw-r--r--
sysc_unlinkat.stp
2.79
KB
-rw-r--r--
sysc_unshare.stp
2.48
KB
-rw-r--r--
sysc_uselib.stp
2.39
KB
-rw-r--r--
sysc_userfaultfd.stp
2.68
KB
-rw-r--r--
sysc_ustat.stp
4.77
KB
-rw-r--r--
sysc_utime.stp
5.37
KB
-rw-r--r--
sysc_utimensat.stp
6.16
KB
-rw-r--r--
sysc_utimes.stp
5.29
KB
-rw-r--r--
sysc_vfork.stp
1.98
KB
-rw-r--r--
sysc_vhangup.stp
2.08
KB
-rw-r--r--
sysc_vmsplice.stp
5.56
KB
-rw-r--r--
sysc_wait4.stp
4.55
KB
-rw-r--r--
sysc_waitid.stp
3.68
KB
-rw-r--r--
sysc_waitpid.stp
3.02
KB
-rw-r--r--
sysc_write.stp
3.5
KB
-rw-r--r--
sysc_writev.stp
3.22
KB
-rw-r--r--
syscall_any.stp
1.52
KB
-rw-r--r--
syscall_table.stp
1.44
KB
-rw-r--r--
syscalls.stpm
13.78
KB
-rw-r--r--
syscalls_cfg_trunc.stp
111
B
-rw-r--r--
target_set.stp
1.73
KB
-rw-r--r--
task.stp
22.21
KB
-rw-r--r--
task.stpm
253
B
-rw-r--r--
task_ancestry.stp
1.58
KB
-rw-r--r--
task_time.stp
7.68
KB
-rw-r--r--
tcp.stp
22.11
KB
-rw-r--r--
tcpmib-filter-default.stp
885
B
-rw-r--r--
tcpmib.stp
10.57
KB
-rw-r--r--
timestamp.stp
1.72
KB
-rw-r--r--
timestamp_gtod.stp
1.59
KB
-rw-r--r--
timestamp_monotonic.stp
5.46
KB
-rw-r--r--
tty.stp
7.18
KB
-rw-r--r--
tzinfo.stp
803
B
-rw-r--r--
ucontext-symbols.stp
8.63
KB
-rw-r--r--
ucontext-unwind.stp
3.64
KB
-rw-r--r--
ucontext.stp
2.18
KB
-rw-r--r--
udp.stp
5.95
KB
-rw-r--r--
utrace.stp
1.33
KB
-rw-r--r--
vfs.stp
32.43
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : socket.stp
// Socket tapset // Copyright (C) 2006 IBM Corp. // Copyright (C) 2010-2017 Red Hat Inc. // // 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. // <tapsetdescription> // This family of probe points is used to probe socket activities. // </tapsetdescription> %{ #include <net/sock.h> #include <asm/bitops.h> %} ################### # INTERNAL MACROS # ################### // Note that since these macros are defined in this file, they are // local to this file. They are internal only. // // Note the '&@sock[0]' usage below. This allows calling the macros // with either a dwarf variable (like '$sock') or casts (like // '@cast(_sock, "socket", "kernel") without needing additional casts // inside the macros (which would then lose type information when // called with a dwarf variable). // Return whether the operation was successful. @define _sock_success_check(ret) %( ( @ret >= 0 ? 1 : 0 ) %) // Return the socket protocol number. @define _sock_prot_num(sock) %( ( &@sock[0] ? ( @sock->sk ? @sock->sk->sk_protocol : -1 ) : -1 ) %) // Return the socket family number. @define _sock_fam_num(sock) %( ( &@sock[0] ? ( @sock->ops ? @sock->ops->family : -1 ) : -1 ) %) // Return the socket state number. @define _sock_state_num(sock) %( ( &@sock[0] ? @sock->state : -1 ) %) // Return the socket type number. @define _sock_type_num(sock) %( ( &@sock[0] ? @sock->type : -1 ) %) // Return the socket flags number. @define _sock_flags_num(sock) %( ( &@sock[0] ? @sock->flags : -1 ) %) // A macro that acts just like the kernel's iov_iter_count() (which is // an inlined function in include/linux/uio.h). @define iov_iter_count(i) %( ( @i->count ) %) // A macro that acts just like the kernel's msg_data_left() (which is // an inlined function in include/linux/socket.h). @define msg_data_left(msg) %( ( @iov_iter_count(@msg->msg_iter) ) %) ################# # PROBE ALIASES # ################# ### GENERAL SEND/RECEIVE PROBES ### /** * probe socket.send - Message sent on a socket. * @name: Name of this probe * @size: Size of message sent (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was send successful? (1 = yes, 0 = no) * * Context: * The message sender */ probe socket.send = socket.sendmsg.return, socket.writev.return ?, socket.aio_write.return ?, socket.write_iter.return ? { name = "socket.send" } /** * probe socket.receive - Message received on a socket. * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was send successful? (1 = yes, 0 = no) * * Context: * The message receiver */ probe socket.receive = socket.recvmsg.return, socket.readv.return ?, socket.aio_read.return ?, socket.read_iter.return ? { name = "socket.receive" } ### FUNCTION SPECIFIC SEND/RECEIVE PROBES ### /** * probe socket.sendmsg - Message is currently being sent on a socket. * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of sending a message on a socket * via the sock_sendmsg() function */ // // 4.1-rc1: // int sock_sendmsg(struct socket *sock, struct msghdr *msg); // before 4.1-rc1: // int sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); // probe socket.sendmsg = kernel.function ("sock_sendmsg") { name = "socket.sendmsg" size = @choose_defined($size, @msg_data_left($msg)) protocol = @_sock_prot_num($sock) family = @_sock_fam_num($sock) state = @_sock_state_num($sock) flags = @_sock_flags_num($sock) type = @_sock_type_num($sock) } /** * probe socket.sendmsg.return - Return from socket.sendmsg. * @name: Name of this probe * @size: Size of message sent (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was send successful? (1 = yes, 0 = no) * * Context: * The message sender. * * Fires at the conclusion of sending a message on a socket * via the sock_sendmsg() function */ probe socket.sendmsg.return = kernel.function("sock_sendmsg").return { name = "socket.sendmsg.return" size = $return protocol = @entry(@_sock_prot_num($sock)) family = @entry(@_sock_fam_num($sock)) state = @entry(@_sock_state_num($sock)) flags = @entry(@_sock_flags_num($sock)) type = @entry(@_sock_type_num($sock)) success = @_sock_success_check($return) } /** * probe socket.recvmsg - Message being received on socket * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message receiver. * * Fires at the beginning of receiving a message on a socket * via the sock_recvmsg() function * */ probe socket.recvmsg = kernel.function("sock_recvmsg") { name = "socket.recvmsg" size = @choose_defined($size, @msg_data_left($msg)) protocol = @_sock_prot_num($sock) family = @_sock_fam_num($sock) state = @_sock_state_num($sock) flags = @_sock_flags_num($sock) type = @_sock_type_num($sock) } /** * probe socket.recvmsg.return - Return from Message being received on socket * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of receiving a message on a socket * via the sock_recvmsg() function. * * */ probe socket.recvmsg.return = kernel.function("sock_recvmsg").return { name = "socket.recvmsg.return" size = $return protocol = @entry(@_sock_prot_num($sock)) family = @entry(@_sock_fam_num($sock)) state = @entry(@_sock_state_num($sock)) flags = @entry(@_sock_flags_num($sock)) type = @entry(@_sock_type_num($sock)) success = @_sock_success_check($return) } /** * probe socket.aio_write - Message send via sock_aio_write() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of sending a message on a socket * via the sock_aio_write() function */ // // 2.6.9~2.6.15: // static ssize_t sock_aio_write(struct kiocb *iocb, // const char __user *ubuf, size_t size, loff_t pos); // 2.6.16~2.6.18: // static ssize_t sock_aio_write(struct kiocb *iocb, // const char __user *ubuf, size_t count, loff_t pos); // 2.6.19~2.6.26: // static ssize_t sock_aio_write(struct kiocb *iocb, // const struct iovec *iov, unsigned long nr_segs, loff_t pos); // 4.0: // sock_aio_write() was removed in kernel 4.0 in favor of // sock_write_iter(). probe socket.aio_write = kernel.function("sock_aio_write") ? { name = "socket.aio_write" _sock = _get_sock_addr($iocb->ki_filp) size = (@defined($iov) ? _get_sock_size($iov, $nr_segs) : @choose_defined($count, $size)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.aio_write.return - Conclusion of message send via sock_aio_write() * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of sending a message on a socket * via the sock_aio_write() function */ probe socket.aio_write.return = kernel.function("sock_aio_write").return ? { name = "socket.aio_write.return" size = $return _sock = _get_sock_addr(@entry($iocb->ki_filp)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.aio_read - Receiving message via sock_aio_read() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of receiving a message on a socket * via the sock_aio_read() function */ // // 2.6.9~2.6.15: // static ssize_t sock_aio_read(struct kiocb *iocb, char __user *ubuf, // size_t size, loff_t pos); // 2.6.16~2.6.18: // static ssize_t sock_aio_read(struct kiocb *iocb, char __user *ubuf, // size_t count, loff_t pos); // 2.6.19~2.6.26: // static ssize_t sock_aio_read(struct kiocb *iocb, // const struct iovec *iov, unsigned long nr_segs, loff_t pos); // 4.0: // sock_aio_read() was removed in kernel 4.0 in favor of // sock_read_iter(). probe socket.aio_read = kernel.function("sock_aio_read") ? { name = "socket.aio_read" _sock = _get_sock_addr($iocb->ki_filp) size = (@defined($iov) ? _get_sock_size($iov, $nr_segs) : @choose_defined($count, $size)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.aio_read.return - Conclusion of message received via sock_aio_read() * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of receiving a message on a socket * via the sock_aio_read() function */ probe socket.aio_read.return = kernel.function("sock_aio_read").return ? { name = "socket.aio_read.return" size = $return _sock = _get_sock_addr(@entry($iocb->ki_filp)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.write_iter - Message send via sock_write_iter() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of sending a message on a socket * via the sock_write_iter() function */ // // 4.0: // static ssize_t sock_write_iter(struct kiocb *iocb, // struct iov_iter *from); probe socket.write_iter = kernel.function("sock_write_iter") ? { name = "socket.write_iter" _sock = _get_sock_addr($iocb->ki_filp) if ($from->type & @const("ITER_IOVEC")) size = __iov_length($from->iov, $from->nr_segs, 1, @const("VERIFY_READ")) else size = 0 protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.write_iter.return - Conclusion of message send via sock_write_iter() * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of sending a message on a socket * via the sock_write_iter() function */ probe socket.write_iter.return = kernel.function("sock_write_iter").return ? { name = "socket.write_iter.return" size = $return _sock = _get_sock_addr(@entry($iocb->ki_filp)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.read_iter - Receiving message via sock_read_iter() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of receiving a message on a socket * via the sock_read_iter() function */ // // 4.0: // static ssize_t sock_read_iter(struct kiocb *iocb, struct iov_iter *to); probe socket.read_iter = kernel.function("sock_read_iter") ? { name = "socket.read_iter" _sock = _get_sock_addr($iocb->ki_filp) if ($to->type & @const("ITER_IOVEC")) size = __iov_length($to->iov, $to->nr_segs, 1, @const("VERIFY_WRITE")) else size = 0 protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.read_iter.return - Conclusion of message received via sock_read_iter() * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of receiving a message on a socket * via the sock_read_iter() function */ probe socket.read_iter.return = kernel.function("sock_read_iter").return ? { name = "socket.read_iter.return" size = $return _sock = _get_sock_addr(@entry($iocb->ki_filp)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.writev - Message sent via socket_writev() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of sending a message on a socket * via the sock_writev() function */ probe socket.writev = kernel.function("sock_writev") ? { name = "socket.writev" _sock = _get_sock_addr($file) size = (@defined($iov) ? _get_sock_size($iov, $nr_segs) : _get_sock_size($vector, $count)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.writev.return - Conclusion of message sent via socket_writev() * @name: Name of this probe * @size: Size of message sent (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was send successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of sending a message on a socket * via the sock_writev() function */ probe socket.writev.return = kernel.function("sock_writev").return ? { name = "socket.writev.return" size = $return _sock = _get_sock_addr(@entry($file)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.readv - Receiving a message via sock_readv() * @name: Name of this probe * @size: Message size in bytes * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The message sender * * Fires at the beginning of receiving a message on a socket * via the sock_readv() function */ probe socket.readv = kernel.function("sock_readv") ? { name = "socket.readv" _sock = _get_sock_addr($file) size = (@defined($iov) ? _get_sock_size($iov, $nr_segs) : _get_sock_size($vector, $count)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) } /** * probe socket.readv.return - Conclusion of receiving a message via sock_readv() * @name: Name of this probe * @size: Size of message received (in bytes) or error code if success = 0 * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * @success: Was receive successful? (1 = yes, 0 = no) * * Context: * The message receiver. * * Fires at the conclusion of receiving a message on a socket * via the sock_readv() function */ probe socket.readv.return = kernel.function("sock_readv").return ? { name = "socket.readv.return" size = $return _sock = _get_sock_addr(@entry($file)) protocol = @_sock_prot_num(@cast(_sock, "socket", "kernel")) family = @_sock_fam_num(@cast(_sock, "socket", "kernel")) state = @_sock_state_num(@cast(_sock, "socket", "kernel")) flags = @_sock_flags_num(@cast(_sock, "socket", "kernel")) type = @_sock_type_num(@cast(_sock, "socket", "kernel")) success = @_sock_success_check($return) } /** * probe socket.create - Creation of a socket * @name: Name of this probe * @protocol: Protocol value * @family: Protocol family value * @type: Socket type value * @requester: Requested by user process or the kernel (1 = kernel, 0 = user) * * Context: * The requester (see requester variable) * * Fires at the beginning of creating a socket. */ probe socket.create = kernel.function("__sock_create") { name = "socket.create" protocol = $protocol family = $family type = $type requester = $kern } /** * probe socket.create.return - Return from Creation of a socket * @name: Name of this probe * @protocol: Protocol value * @family: Protocol family value * @type: Socket type value * @requester: Requested by user process or the kernel (1 = kernel, 0 = user) * @err: Error code if success == 0 * @success: Was socket creation successful? (1 = yes, 0 = no) * * Context: * The requester (user process or kernel) * * Fires at the conclusion of creating a socket. */ probe socket.create.return = kernel.function("__sock_create").return { name = "socket.create.return" protocol = @entry($protocol) family = @entry($family) type = @entry($type) requester = @entry($kern) err = $return success = @_sock_success_check($return) } /** * probe socket.close - Close a socket * @name: Name of this probe * @protocol: Protocol value * @family: Protocol family value * @state: Socket state value * @flags: Socket flags value * @type: Socket type value * * Context: * The requester (user process or kernel) * * Fires at the beginning of closing a socket. */ probe socket.close = kernel.function("sock_release") { name = "socket.close" protocol = @_sock_prot_num($sock) family = @_sock_fam_num($sock) state = @_sock_state_num($sock) flags = @_sock_flags_num($sock) type = @_sock_type_num($sock) } /** * probe socket.close.return - Return from closing a socket * @name: Name of this probe * * Context: * The requester (user process or kernel) * * Fires at the conclusion of closing a socket. */ probe socket.close.return = kernel.function("sock_release").return { name = "socket.close.return" /* void return */ } ################## # USER FUNCTIONS # ################## ####### PROTOCOL HELPER FUNCTIONS ######## /** * sfunction sock_prot_num2str - Given a protocol number, return a string representation * @proto: The protocol number */ function sock_prot_num2str:string(proto:long) { return (proto in _prot_num2str ? _prot_num2str[proto] : "UNDEF") } /** * sfunction sock_prot_str2num - Given a protocol name (string), return the corresponding protocol number * @proto: The protocol name */ function sock_prot_str2num:long(proto:string) { return (proto in _prot_str2num ? _prot_str2num[proto] : -1) } ######### PROTOCOL FAMILY HELPER FUNCTIONS ########### /** * sfunction sock_fam_num2str - Given a protocol family number, return a string representation * @family: The family number */ function sock_fam_num2str:string(family:long) { return (family in _fam_num2str ? _fam_num2str[family] : "UNDEF") } /** * sfunction sock_fam_str2num - Given a protocol family name (string), return the corresponding protocol family number * @family: The family name */ function sock_fam_str2num:long(family:string) { return (family in _fam_str2num ? _fam_str2num[family] : -1) } ######### SOCKET STATE HELPER FUNCTIONS ########## /** * sfunction sock_state_num2str - Given a socket state number, return a string representation * @state: The state number */ function sock_state_num2str:string(state:long) { return (state in _state_num2str ? _state_num2str[state] : "UNDEF") } /** * sfunction sock_state_str2num - Given a socket state string, return the corresponding state number * @state: The state name */ function sock_state_str2num:long(state:string) { return (state in _state_str2num ? _state_str2num[state] : -1) } ######## SOCKET TYPE HELPER FUNCTIONS ######## function sock_type_num2str:string(type:long) { return (type in _type_num2str ? _type_num2str[type] : "UNDEF") } function sock_type_str2num:long(type:string) { return (type in _type_str2num ? _type_str2num[type] : -1) } ######### SOCKET FLAGS HELPER FUNCTIONS ######### function sock_flags_num2str:string(flags:long) %{ /* pure */ #ifndef SOCK_PASSCRED #define SOCK_PASSCRED 3 /* introduced in 2.6.12? */ #endif #ifndef SOCK_PASSSEC #define SOCK_PASSSEC 4 /* introduced in 2.6.18 */ #endif #ifndef SOCKWQ_ASYNC_NOSPACE /* renamed in 4.4 */ #define SOCKWQ_ASYNC_NOSPACE SOCK_ASYNC_NOSPACE #endif #ifndef SOCKWQ_ASYNC_WAITDATA /* renamed in 4.4 */ #define SOCKWQ_ASYNC_WAITDATA SOCK_ASYNC_WAITDATA #endif unsigned long flags = STAP_ARG_flags; STAP_RETVALUE[0] = '\0'; if (test_bit(SOCKWQ_ASYNC_NOSPACE, &flags)) strlcat(STAP_RETVALUE, "ASYNC_NOSPACE|", MAXSTRINGLEN); if (test_bit(SOCKWQ_ASYNC_WAITDATA, &flags)) strlcat(STAP_RETVALUE, "ASYNC_WAITDATA|", MAXSTRINGLEN); if (test_bit(SOCK_NOSPACE, &flags)) strlcat(STAP_RETVALUE, "NOSPACE|", MAXSTRINGLEN); if (test_bit(SOCK_PASSCRED, &flags)) strlcat(STAP_RETVALUE, "PASSCRED|", MAXSTRINGLEN); if (test_bit(SOCK_PASSSEC, &flags)) strlcat(STAP_RETVALUE, "PASSSEC|", MAXSTRINGLEN); if (STAP_RETVALUE[0] != '\0') STAP_RETVALUE[strlen(STAP_RETVALUE)-1] = '\0'; %} ######### MESSAGE FLAGS HELPER FUNCTIONS ######### function msg_flags_num2str:string(flags:long) %{ /* pure */ STAP_RETVALUE[0] = '\0'; if (STAP_ARG_flags & MSG_OOB) strlcat(STAP_RETVALUE, "OOB|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_PEEK) strlcat(STAP_RETVALUE, "PEEK|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_DONTROUTE) strlcat(STAP_RETVALUE, "DONTROUTE|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_TRYHARD) strlcat(STAP_RETVALUE, "TRYHARD|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_CTRUNC) strlcat(STAP_RETVALUE, "CTRUNC|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_PROBE) strlcat(STAP_RETVALUE, "PROBE|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_TRUNC) strlcat(STAP_RETVALUE, "TRUNC|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_DONTWAIT) strlcat(STAP_RETVALUE, "DONTWAIT|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_EOR) strlcat(STAP_RETVALUE, "EOR|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_WAITALL) strlcat(STAP_RETVALUE, "WAITALL|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_FIN) strlcat(STAP_RETVALUE, "FIN|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_SYN) strlcat(STAP_RETVALUE, "SYN|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_CONFIRM) strlcat(STAP_RETVALUE, "CONFIRM|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_RST) strlcat(STAP_RETVALUE, "RST|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_ERRQUEUE) strlcat(STAP_RETVALUE, "ERRQUEUE|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_NOSIGNAL) strlcat(STAP_RETVALUE, "NOSIGNAL|", MAXSTRINGLEN); if (STAP_ARG_flags & MSG_MORE) strlcat(STAP_RETVALUE, "MORE|", MAXSTRINGLEN); if (STAP_RETVALUE[0] != '\0') STAP_RETVALUE[strlen(STAP_RETVALUE)-1] = '\0'; %} ########################### # INTERNAL MAPPING ARRAYS # ########################### @__private30 global _prot_num2str[138], _prot_str2num[138] @__private30 global _fam_num2str[34], _fam_str2num[34] @__private30 global _state_num2str[5], _state_str2num[5] @__private30 global _type_num2str[11], _type_str2num[11] probe init { /* From /etc/protocols. * Many of these protocols aren't currently used over * sockets, but are included for completeness */ _prot_num2str[0] = "IP" _prot_num2str[1] = "ICMP" _prot_num2str[2] = "IGMP" _prot_num2str[3] = "GGP" _prot_num2str[4] = "IPENCAP" _prot_num2str[5] = "ST" _prot_num2str[6] = "TCP" _prot_num2str[7] = "CBT" _prot_num2str[8] = "EGP" _prot_num2str[9] = "IGP" _prot_num2str[10] = "BBN-RCC" _prot_num2str[11] = "NVP" _prot_num2str[12] = "PUP" _prot_num2str[13] = "ARGUS" _prot_num2str[14] = "EMCON" _prot_num2str[15] = "XNET" _prot_num2str[16] = "CHAOS" _prot_num2str[17] = "UDP" _prot_num2str[18] = "MUX" _prot_num2str[19] = "DCN" _prot_num2str[20] = "HMP" _prot_num2str[21] = "PRM" _prot_num2str[22] = "XNS-IDP" _prot_num2str[23] = "TRUNK-1" _prot_num2str[24] = "TRUNK-2" _prot_num2str[25] = "LEAF-1" _prot_num2str[26] = "LEAF-2" _prot_num2str[27] = "RDP" _prot_num2str[28] = "IRTP" _prot_num2str[29] = "ISO-TP4" _prot_num2str[30] = "NETBLT" _prot_num2str[31] = "MFE-NSP" _prot_num2str[32] = "MERIT-INP" _prot_num2str[33] = "SEP" _prot_num2str[34] = "3PC" _prot_num2str[35] = "IDPR" _prot_num2str[36] = "XTP" _prot_num2str[37] = "DDP" _prot_num2str[38] = "IDPR-CMTP" _prot_num2str[39] = "TP++" _prot_num2str[40] = "IL" _prot_num2str[41] = "IPV6" _prot_num2str[42] = "SDRP" _prot_num2str[43] = "IPV6-ROUTE" _prot_num2str[44] = "IPV6-FRAG" _prot_num2str[45] = "IDRP" _prot_num2str[46] = "RSVP" _prot_num2str[47] = "GRE" _prot_num2str[48] = "MHRP" _prot_num2str[49] = "BNA" _prot_num2str[50] = "IPV6-CRYPT" _prot_num2str[51] = "IPV6-AUTH" _prot_num2str[52] = "I-NLSP" _prot_num2str[53] = "SWIPE" _prot_num2str[54] = "NARP" _prot_num2str[55] = "MOBILE" _prot_num2str[56] = "TLSP" _prot_num2str[57] = "SKIP" _prot_num2str[58] = "IPV6-ICMP" _prot_num2str[59] = "IPV6-NONXT" _prot_num2str[60] = "IPV6-OPTS" _prot_num2str[62] = "CFTP" _prot_num2str[64] = "SAT-EXPAK" _prot_num2str[65] = "KRYPTOLAN" _prot_num2str[66] = "RVD" _prot_num2str[67] = "IPPC" _prot_num2str[69] = "SAT-MON" _prot_num2str[70] = "VISA" _prot_num2str[71] = "IPCV" _prot_num2str[72] = "CPNX" _prot_num2str[73] = "CPHB" _prot_num2str[74] = "WSN" _prot_num2str[75] = "PVP" _prot_num2str[76] = "BR-SAT-MON" _prot_num2str[77] = "SUN-ND" _prot_num2str[78] = "WB-MON" _prot_num2str[79] = "WB-EXPAK" _prot_num2str[80] = "ISO-IP" _prot_num2str[81] = "VMTP" _prot_num2str[82] = "SECURE-VMTP" _prot_num2str[83] = "VINES" _prot_num2str[84] = "TTP" _prot_num2str[85] = "NSFNET-IGP" _prot_num2str[86] = "DGP" _prot_num2str[87] = "TCF" _prot_num2str[88] = "EIGRP" _prot_num2str[89] = "OSPF" _prot_num2str[90] = "SPRITE-RPC" _prot_num2str[91] = "LARP" _prot_num2str[92] = "MTP" _prot_num2str[93] = "AX.25" _prot_num2str[94] = "IPIP" _prot_num2str[95] = "MICP" _prot_num2str[96] = "SCC-SP" _prot_num2str[97] = "ETHERIP" _prot_num2str[98] = "ENCAP" _prot_num2str[100] = "GMTP" _prot_num2str[101] = "IFMP" _prot_num2str[102] = "PNNI" _prot_num2str[103] = "PIM" _prot_num2str[104] = "ARIS" _prot_num2str[105] = "SCPS" _prot_num2str[106] = "QNX" _prot_num2str[107] = "A/N" _prot_num2str[108] = "IPCOMP" _prot_num2str[109] = "SNP" _prot_num2str[110] = "COMPAQ-PEER" _prot_num2str[111] = "IPX-IN-IP" _prot_num2str[112] = "VRRP" _prot_num2str[113] = "PGM" _prot_num2str[115] = "L2TP" _prot_num2str[116] = "DDX" _prot_num2str[117] = "IATP" _prot_num2str[118] = "STP" _prot_num2str[119] = "SRP" _prot_num2str[120] = "UTI" _prot_num2str[121] = "SMP" _prot_num2str[122] = "SM" _prot_num2str[123] = "PTP" _prot_num2str[124] = "ISIS" _prot_num2str[125] = "FIRE" _prot_num2str[126] = "CRTP" _prot_num2str[127] = "CRDUP" _prot_num2str[128] = "SSCOPMCE" _prot_num2str[129] = "IPLT" _prot_num2str[130] = "SPS" _prot_num2str[131] = "PIPE" _prot_num2str[132] = "SCTP" _prot_num2str[133] = "FC" _prot_num2str[134] = "RSVP-E2E-IGNORE" _prot_num2str[135] = "Mobility-Header" _prot_num2str[136] = "UDPLite" _prot_num2str[137] = "MPLS-IN-IP" foreach (num in _prot_num2str) _prot_str2num[_prot_num2str[num]] = num /* from include/linux/socket.h */ _fam_num2str[0] = "UNSPEC" _fam_num2str[1] = "LOCAL" _fam_num2str[2] = "INET" _fam_num2str[3] = "AX25" _fam_num2str[4] = "IPX" _fam_num2str[5] = "APPLETALK" _fam_num2str[6] = "NETROM" _fam_num2str[7] = "BRIDGE" _fam_num2str[8] = "ATMPVC" _fam_num2str[9] = "X25" _fam_num2str[10] = "INET6" _fam_num2str[11] = "ROSE" _fam_num2str[12] = "DECNET" _fam_num2str[13] = "NETBEUI" _fam_num2str[14] = "SECURITY" _fam_num2str[15] = "KEY" _fam_num2str[16] = "NETLINK" _fam_num2str[17] = "PACKET" _fam_num2str[18] = "ASH" _fam_num2str[19] = "ECONET" _fam_num2str[20] = "ATMSVC" _fam_num2str[22] = "SNA" _fam_num2str[23] = "IRDA" _fam_num2str[24] = "PPPOX" _fam_num2str[25] = "WANPIPE" _fam_num2str[26] = "LLC" _fam_num2str[30] = "TIPC" _fam_num2str[31] = "BLUETOOTH" _fam_num2str[32] = "IUCV" _fam_num2str[33] = "RXRPC" foreach (num in _fam_num2str) _fam_str2num[_fam_num2str[num]] = num /* from include/linux/net.h */ _state_num2str[0] = "FREE" _state_num2str[1] = "UNCONNECTED" _state_num2str[2] = "CONNECTING" _state_num2str[3] = "CONNECTED" _state_num2str[4] = "DISCONNECTING" foreach (num in _state_num2str) _state_str2num[_state_num2str[num]] = num /* from include/linux/net.h */ _type_num2str[1] = "STREAM" _type_num2str[2] = "DGRAM" _type_num2str[3] = "RAW" _type_num2str[4] = "RDM" _type_num2str[5] = "SEQPACKET" _type_num2str[6] = "DCCP" _type_num2str[10] = "PACKET" foreach (num in _type_num2str) _type_str2num[_type_num2str[num]] = num } ###################### # INTERNAL FUNCTIONS # ###################### @__private30 function _get_sock_addr:long(file:long) %{ /* pure */ struct file *filep = (struct file *)(uintptr_t)(STAP_ARG_file); struct socket *sockp; if (filep) { #ifdef STAPCONF_DPATH_PATH struct dentry *dentry = kread(&(filep->f_path.dentry)); #else struct dentry *dentry = kread(&(filep->f_dentry)); #endif struct inode *inode = kread(&(dentry->d_inode)); sockp = &container_of(inode, struct socket_alloc, vfs_inode)->socket; } else { sockp = NULL; } if (sockp == NULL) STAP_RETVALUE = -1; else STAP_RETVALUE = (long) sockp; CATCH_DEREF_FAULT(); %} @__private30 function _get_sock_size:long(iov:long, nr_segs:long) %{ /* pure */ struct iovec *iovp = (struct iovec *)(uintptr_t)(STAP_ARG_iov); if (iovp == NULL) STAP_RETVALUE = -1; else { int i; STAP_RETVALUE = 0; for (i = 0 ; i < STAP_ARG_nr_segs ; i++) STAP_RETVALUE += kread(&(iovp[i].iov_len)); } CATCH_DEREF_FAULT(); %} %( systemtap_v < "2.3" %? function _success_check:long(ret:long) { return @_sock_success_check(ret) } function _sock_prot_num:long(sock:long) { return @_sock_prot_num(@cast(sock, "socket", "kernel")) } function _sock_fam_num:long(sock:long) { return @_sock_fam_num(@cast(sock, "socket", "kernel")) } function _sock_state_num:long(sock:long) { return @_sock_state_num(@cast(sock, "socket", "kernel")) } function _sock_type_num:long(sock:long) { return @_sock_type_num(@cast(sock, "socket", "kernel")) } function _sock_flags_num:long(sock:long) { return @_sock_flags_num(@cast(sock, "socket", "kernel")) } %)
Close