Searched refs:ringbuf (Results 1 – 11 of 11) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | test_ringbuf.c | 18 } ringbuf SEC(".maps"); 48 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf() 63 bpf_ringbuf_output(&ringbuf, sample, sizeof(*sample), flags); in test_ringbuf() 71 avail_data = bpf_ringbuf_query(&ringbuf, BPF_RB_AVAIL_DATA); in test_ringbuf() 72 ring_size = bpf_ringbuf_query(&ringbuf, BPF_RB_RING_SIZE); in test_ringbuf() 73 cons_pos = bpf_ringbuf_query(&ringbuf, BPF_RB_CONS_POS); in test_ringbuf() 74 prod_pos = bpf_ringbuf_query(&ringbuf, BPF_RB_PROD_POS); in test_ringbuf()
|
D | ringbuf_bench.c | 12 } ringbuf SEC(".maps"); 29 sz = bpf_ringbuf_query(&ringbuf, BPF_RB_AVAIL_DATA); in get_flags() 41 sample = bpf_ringbuf_reserve(&ringbuf, in bench_ringbuf() 54 if (bpf_ringbuf_output(&ringbuf, &sample_val, in bench_ringbuf()
|
D | ima.c | 17 } ringbuf SEC(".maps"); 36 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(u64), 0); in BPF_PROG()
|
D | map_ptr_kern.c | 643 struct bpf_ringbuf_map *ringbuf = (struct bpf_ringbuf_map *)&m_ringbuf; in check_ringbuf() local 646 VERIFY(check(&ringbuf->map, map, 0, 0, page_size)); in check_ringbuf()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | test_ima.c | 46 struct ring_buffer *ringbuf = NULL; in test_test_ima() local 57 ringbuf = ring_buffer__new(bpf_map__fd(skel->maps.ringbuf), in test_test_ima() 59 if (!ASSERT_OK_PTR(ringbuf, "ringbuf")) in test_test_ima() 79 err = ring_buffer__consume(ringbuf); in test_test_ima() 88 ring_buffer__free(ringbuf); in test_test_ima()
|
D | ringbuf_multi.c | 44 struct ring_buffer *ringbuf = NULL; in test_ringbuf_multi() local 83 ringbuf = ring_buffer__new(bpf_map__fd(skel->maps.ringbuf1), in test_ringbuf_multi() 85 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf_multi() 88 err = ring_buffer__add(ringbuf, bpf_map__fd(skel->maps.ringbuf2), in test_ringbuf_multi() 112 err = ring_buffer__poll(ringbuf, -1); in test_ringbuf_multi() 117 err = ring_buffer__poll(ringbuf, 0); in test_ringbuf_multi() 131 ring_buffer__free(ringbuf); in test_ringbuf_multi()
|
D | ringbuf.c | 62 static struct ring_buffer *ringbuf; variable 81 return (void *)(long)ring_buffer__poll(ringbuf, timeout); in poll_thread() 97 skel->maps.ringbuf.max_entries = page_size; in test_ringbuf() 103 rb_fd = skel->maps.ringbuf.map_fd; in test_ringbuf() 152 ringbuf = ring_buffer__new(skel->maps.ringbuf.map_fd, in test_ringbuf() 154 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf() 178 err = ring_buffer__poll(ringbuf, -1); in test_ringbuf() 187 err = ring_buffer__poll(ringbuf, 0); in test_ringbuf() 205 err = ring_buffer__poll(ringbuf, -1); in test_ringbuf() 280 err = ring_buffer__consume(ringbuf); in test_ringbuf() [all …]
|
/tools/testing/selftests/bpf/benchs/ |
D | bench_ringbufs.c | 124 struct ring_buffer *ringbuf; member 154 bpf_map__resize(skel->maps.ringbuf, args.ringbuf_sz); in ringbuf_setup_skeleton() 176 ctx->ringbuf = ring_buffer__new(bpf_map__fd(ctx->skel->maps.ringbuf), in ringbuf_libbpf_setup() 178 if (!ctx->ringbuf) { in ringbuf_libbpf_setup() 194 while (ring_buffer__poll(ctx->ringbuf, -1) >= 0) { in ringbuf_libbpf_consumer() 213 struct ringbuf_custom ringbuf; member 243 r = &ctx->ringbuf; in ringbuf_custom_setup() 244 r->map_fd = bpf_map__fd(ctx->skel->maps.ringbuf); in ringbuf_custom_setup() 335 ringbuf_custom_process_ring(&ctx->ringbuf); in ringbuf_custom_consumer()
|
/tools/lib/bpf/ |
D | Build | 3 btf_dump.o ringbuf.o strset.o linker.o gen_loader.o relo_core.o
|
/tools/bpf/bpftool/Documentation/ |
D | bpftool-map.rst | 54 | | **queue** | **stack** | **sk_storage** | **struct_ops** | **ringbuf** | **inode_storage**
|
/tools/bpf/bpftool/bash-completion/ |
D | bpftool | 713 struct_ops inode_storage task_storage ringbuf'
|