Home
last modified time | relevance | path

Searched refs:buf_size_bytes (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/testing/vsock/
Dvsock_perf.c35 static unsigned long buf_size_bytes = DEFAULT_BUF_SIZE_BYTES; variable
164 printf("RX buffer %lu bytes\n", buf_size_bytes); in run_receiver()
191 data = malloc(buf_size_bytes); in run_receiver()
223 bytes_read = read(fds.fd, data, buf_size_bytes); in run_receiver()
270 printf("TX buffer %lu bytes\n", buf_size_bytes); in run_sender()
280 data = mmap(NULL, buf_size_bytes, PROT_READ | PROT_WRITE, in run_sender()
287 data = malloc(buf_size_bytes); in run_sender()
295 memset(data, 0, buf_size_bytes); in run_sender()
308 sent = send(fd, data, (rest_bytes > buf_size_bytes) ? in run_sender()
309 buf_size_bytes : rest_bytes, in run_sender()
[all …]