| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/systemtap/examples/profiling/ |
Upload File : |
fntimes.stp - Show Functions Taking Longer Than Usual
The fntimes.stp script monitors the execution time history of a given
function family (assumed non-recursive). Each time (beyond a warmup
interval) is then compared to the historical maximum. If it exceeds
a certain threshold (250%), a message is printed.
$ stap fntimes.stp 'kernel.function("sys_*")' -T 7
function SyS_ioctl well over maximum time (32 vs 12)
function SyS_open well over maximum time (2832 vs 188)
function SyS_newfstat well over maximum time (5 vs 2)
function SyS_mmap_pgoff well over maximum time (282 vs 12)
function SyS_mmap well over maximum time (286 vs 15)
function SyS_access well over maximum time (35 vs 11)
function SyS_access well over maximum time (92 vs 35)
function SyS_mprotect well over maximum time (44 vs 13)
function SyS_futex well over maximum time (9753 vs 3260)
function SyS_newstat well over maximum time (4882 vs 133)
function SyS_recvmsg well over maximum time (607 vs 44)
function SyS_futex well over maximum time (55896 vs 9753)
function SyS_futex well over maximum time (500089 vs 55927)
function SyS_poll well over maximum time (832629 vs 53308)
Getting no output is not a bad thing; it means that means that functions
did not exceed the threshold.
This output was gathered by running ls repeatedly in another terminal
a few seconds after the script started.