int urand_read_without_sema_call_cnt; int urand_read_without_sema_buf_sz_sum;
SEC("usdt/./urandom_read:urand:read_without_sema") int BPF_USDT(urand_read_without_sema, int iter_num, int iter_cnt, int buf_sz)
{ if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) return 0;
int urand_read_with_sema_call_cnt; int urand_read_with_sema_buf_sz_sum;
SEC("usdt/./urandom_read:urand:read_with_sema") int BPF_USDT(urand_read_with_sema, int iter_num, int iter_cnt, int buf_sz)
{ if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) return 0;
int urandlib_read_without_sema_call_cnt; int urandlib_read_without_sema_buf_sz_sum;
SEC("usdt/./liburandom_read.so:urandlib:read_without_sema") int BPF_USDT(urandlib_read_without_sema, int iter_num, int iter_cnt, int buf_sz)
{ if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) return 0;
int urandlib_read_with_sema_call_cnt; int urandlib_read_with_sema_buf_sz_sum;
SEC("usdt/./liburandom_read.so:urandlib:read_with_sema") int BPF_USDT(urandlib_read_with_sema, int iter_num, int iter_cnt, int buf_sz)
{ if (urand_pid != (bpf_get_current_pid_tgid() >> 32)) return 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.