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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

# Usage:  
#          TYPENAME
#          TYPENAME kernelmodule
#          TYPENAME /usr/bin/executable
#          TYPENAME kernel<include/linux/someheader.h>
#          TYPENAME </usr/include/someheader.h>

global cmd = " 'probe oneshot { println(\"type \", @1, %( $# > 1 %? \" in \", @2, %) \" byte-size: \",     %( $# > 1 %? @cast_module_sizeof(@2, @1) %: @cast_sizeof(@1) %)) }' "

probe begin {
	println("Ready")
}

probe input.char {
	print(char)
}

probe input.line {
	if (tokenize(line, " \n") == "") next
        system("stap -e" . cmd . line)
}

Hry