Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /proc/17567/root/usr/share/systemtap/examples/memory/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/17567/root/usr/share/systemtap/examples/memory/hugepage_cow_delays.stp
#!/usr/bin/stap

global huge_cow

probe kernel.function("copy_user_huge_page").return
{
  huge_cow [execname(), pid()]
    <<< (gettimeofday_us() - @entry(gettimeofday_us()))
}

probe begin { printf("Collecting data... press Ctrl-C to stop.\n") }

probe end
{
  printf("\n")
  foreach([name, p] in huge_cow-) {
    printf("%16s(%5d) count=%d sum(us)=%d avg(us)=%d\n",
      name, p, @count(huge_cow[name,p]),
      @sum(huge_cow[name,p]),
      @avg(huge_cow[name,p]))
  }
}

haha - 2025