Lines Matching refs:write_data
39 char write_data[64] = "hello there, world!!"; in test_read_write() local
47 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(write_data), 0, &ptr); in test_read_write()
50 err = bpf_dynptr_write(&ptr, 0, write_data, sizeof(write_data), 0); in test_read_write()
57 if (read_data[i] != write_data[i]) { in test_read_write()
173 __u8 write_data[2] = {1, 2}; in test_skb_readonly() local
183 ret = bpf_dynptr_write(&ptr, 0, write_data, sizeof(write_data), 0); in test_skb_readonly()
268 char write_data[45] = "hello there, world!!"; in test_adjust_err() local
307 if (bpf_dynptr_write(&ptr, 0, &write_data, sizeof(write_data), 0) != -E2BIG) { in test_adjust_err()
326 char write_data = 'x', read_data; in test_zero_size_dynptr() local
350 if (bpf_dynptr_write(&ptr, 0, &write_data, sizeof(write_data), 0) != -E2BIG) { in test_zero_size_dynptr()
361 if (bpf_dynptr_write(&ptr, 0, &write_data, 0, 0)) { in test_zero_size_dynptr()
552 __u8 write_data[2] = {1, 2}; in BPF_PROG() local
562 ret = bpf_dynptr_write(&ptr, 0, write_data, sizeof(write_data), 0); in BPF_PROG()