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/general/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/17567/root/usr/share/systemtap/examples/general/tcl-funtop.stp
#!/usr/bin/stap
# Copyright (C) 2018 Red Hat, Inc.
# Written by William Cohen <wcohen@redhat.com>
#
# This script continuously lists the top 20 Tcl functions in the interval 
# 5 seconds
#

global fn_calls

probe process("/usr/lib*/libtcl*.so").mark("proc__info")
{
  funcname = user_string2($arg3, "<unavailable>")
  filename = user_string2($arg4, "<unavailable>")
  lineno = $arg5
  fn_calls[pid(), filename, funcname, lineno] <<< 1
}

probe timer.ms(5000) {
  ansi_clear_screen()
  printf("%6s %-80s %6s %-30s %6s\n",
         "PID", "FILENAME", "LINE", "FUNCTION", "CALLS")
  foreach ([pid, filename, funcname, lineno] in fn_calls- limit 20) {
    printf("%6d %-80s %6d %-30s %6d\n",
           pid, filename, lineno, funcname,
           @sum(fn_calls[pid, filename, funcname, lineno]))
  }

  delete fn_calls
}

haha - 2025