One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
systemtap
/
examples
/
profiling
/
View File Name :
errno.stp
#!/usr/bin/stap # # Copyright (C) 2010, 2018 Red Hat, Inc. # By Dominic Duval, Red Hat Inc. # dduval@redhat.com # # Monitors errors returned by system calls. # # USAGE: stap errno.stp # global execname, errors probe syscall_any.return { errno = retval if ( errno < 0 ) { p = pid() execname[p]=execname(); errors[p, errno, name] <<< 1 } } probe end { printf("\n") printf("%8s %-32s %-16s %-12s %8s\n", "PID", "Syscall", "Process", "Error", "Count") foreach ([pid, error, thissyscall] in errors- limit 20) { printf("%8d %-32s %-16s %-12s %8d\n", pid, thissyscall, execname[pid], error ? errno_str(error) : "", @count(errors[pid, error, thissyscall]) ) } } global prom_arr probe prometheus { foreach ([p, errno, name] in errors- limit 20) { prom_arr[p, errno, name] = @count(errors[p, errno, name]) } @prometheus_dump_array3(prom_arr, "syscall_error_count", "pid", "errno", "name") delete prom_arr }