Searched refs:BUF_SIZE (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/bpf/ |
D | urandom_read.c | 8 #define BUF_SIZE 256 macro 13 char buf[BUF_SIZE]; in urandom_read() 17 read(fd, buf, BUF_SIZE); in urandom_read()
|
/tools/testing/selftests/net/ |
D | tcp_inq.c | 29 #define BUF_SIZE 8192 macro 68 buf = malloc(BUF_SIZE); in start_server() 77 r = send(fd, buf, BUF_SIZE, 0); in start_server() 81 if (r != BUF_SIZE) in start_server() 157 buf = malloc(BUF_SIZE); in main() 159 iov[0].iov_len = BUF_SIZE / 2; in main() 170 if (inq != BUF_SIZE - iov[0].iov_len) { in main()
|
/tools/perf/util/ |
D | perf_event_attr_fprintf.c | 73 #define BUF_SIZE 1024 macro 75 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val)) 76 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val)) 77 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val)) 78 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val) 79 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val) 80 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val) 95 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
|
/tools/vm/ |
D | page_owner_sort.c | 86 #define BUF_SIZE (128 * 1024) macro 114 buf = malloc(BUF_SIZE); in main() 121 ret = read_block(buf, BUF_SIZE, fin); in main()
|