Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /sbin/ |
Upload File : |
#!/usr/bin/env bpftrace
/*
* ssllatency Trace SSL/TLS handshake for OpenSSL.
* For Linux, uses bpftrace and eBPF.
*
* ssllatency shows handshake latency stats and distribution.
*
* Copyright (c) 2021 Tao Xu.
* Licensed under the Apache License, Version 2.0 (the "License")
*
* 17-Dec-2021 Tao Xu created this.
*/
BEGIN
{
printf("Tracing SSL/TLS handshake... Hit Ctrl-C to end.\n");
}
uprobe:libssl:SSL_read,
uprobe:libssl:SSL_write,
uprobe:libssl:SSL_do_handshake
{
@start_ssl[tid] = nsecs;
@func_ssl[tid] = func; // store for uretprobe
}
uretprobe:libssl:SSL_read,
uretprobe:libssl:SSL_write,
uretprobe:libssl:SSL_do_handshake
/@start_ssl[tid] != 0/
{
$lat_us = (nsecs - @start_ssl[tid]) / 1000;
if ((int8)retval >= 1) {
@hist[@func_ssl[tid]] = lhist($lat_us, 0, 1000, 200);
@stat[@func_ssl[tid]] = stats($lat_us);
} else {
@histF[@func_ssl[tid]] = lhist($lat_us, 0, 1000, 200);
@statF[@func_ssl[tid]] = stats($lat_us);
}
delete(@start_ssl[tid]); delete(@func_ssl[tid]);
}
// need debug symbol for ossl local functions
uprobe:libcrypto:rsa_ossl_public_encrypt,
uprobe:libcrypto:rsa_ossl_public_decrypt,
uprobe:libcrypto:rsa_ossl_private_encrypt,
uprobe:libcrypto:rsa_ossl_private_decrypt,
uprobe:libcrypto:RSA_sign,
uprobe:libcrypto:RSA_verify,
uprobe:libcrypto:ossl_ecdsa_sign,
uprobe:libcrypto:ossl_ecdsa_verify,
uprobe:libcrypto:ecdh_simple_compute_key
{
@start_crypto[tid] = nsecs;
@func_crypto[tid] = func; // store for uretprobe
}
uretprobe:libcrypto:rsa_ossl_public_encrypt,
uretprobe:libcrypto:rsa_ossl_public_decrypt,
uretprobe:libcrypto:rsa_ossl_private_encrypt,
uretprobe:libcrypto:rsa_ossl_private_decrypt,
uretprobe:libcrypto:RSA_sign,
uretprobe:libcrypto:RSA_verify,
uretprobe:libcrypto:ossl_ecdsa_sign,
uretprobe:libcrypto:ossl_ecdsa_verify,
uretprobe:libcrypto:ecdh_simple_compute_key
/@start_crypto[tid] != 0/
{
$lat_us = (nsecs - @start_crypto[tid]) / 1000;
@hist[@func_crypto[tid]] = lhist($lat_us, 0, 1000, 200);
@stat[@func_crypto[tid]] = stats($lat_us);
delete(@start_crypto[tid]); delete(@func_crypto[tid]);
}
END
{
printf("\nLatency distribution in microsecond:");
}