Searched refs:rb_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | user_ringbuf.c | 101 int err, rb_fd; in test_user_ringbuf_mappings() local 110 rb_fd = bpf_map__fd(skel->maps.user_ringbuf); in test_user_ringbuf_mappings() 112 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in test_user_ringbuf_mappings() 123 rb_fd, page_size); in test_user_ringbuf_mappings() 131 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, in test_user_ringbuf_mappings() 150 int err = -ENOMEM, rb_fd; in load_skel_create_ringbufs() local 160 rb_fd = bpf_map__fd(skel->maps.kernel_ringbuf); in load_skel_create_ringbufs() 161 kern_ringbuf = ring_buffer__new(rb_fd, callback, skel, NULL); in load_skel_create_ringbufs() 169 rb_fd = bpf_map__fd(skel->maps.user_ringbuf); in load_skel_create_ringbufs() 170 user_ringbuf = user_ring_buffer__new(rb_fd, NULL); in load_skel_create_ringbufs() [all …]
|
H A D | ringbuf.c | 94 int err, rb_fd; in ringbuf_subtest() 106 rb_fd = skel->maps.ringbuf.map_fd; in ringbuf_subtest() 108 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 116 ringbuf = ring_buffer__new(rb_fd, process_sample, NULL, NULL); in ringbuf_subtest() 146 int err, cnt, rb_fd; in ringbuf_subtest() 163 rb_fd = skel->maps.ringbuf.map_fd; in ringbuf_subtest() 165 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 174 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest() 180 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 184 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, in ringbuf_subtest() 92 int err, cnt, rb_fd; ringbuf_subtest() local [all...] |