Searched refs:rb_fd (Results 1 – 2 of 2) sorted by relevance
/openbmc/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() 123 rb_fd, page_size); 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() 207 int rb_fd, page_size = getpagesize(); in manually_write_test_invalid_sample() local 209 rb_fd = bpf_map__fd(skel->maps.user_ringbuf); in manually_write_test_invalid_sample() [all …]
|
H A D | ringbuf.c | 91 int err, cnt, rb_fd; in ringbuf_subtest() local 105 rb_fd = skel->maps.ringbuf.map_fd; in ringbuf_subtest() 107 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 116 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest() 122 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 126 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 3 * page_size); in ringbuf_subtest() 128 mmap_ptr = mmap(NULL, 2 * page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 132 mmap_ptr = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 142 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest()
|