Home
last modified time | relevance | path

Searched refs:ringbuf (Results 1 – 21 of 21) sorted by relevance

/external/perfetto/src/profiling/memory/
Dclient_api_benchmark.cc60 auto ringbuf = SharedRingBuffer::Create(8 * 1048576); in ConstructClient() local
61 ringbuf->InfiniteBufferForTesting(); in ConstructClient()
62 PERFETTO_CHECK(ringbuf); in ConstructClient()
65 g_shmem_fd = ringbuf->fd(); in ConstructClient()
67 g_client_config, std::move(*ringbuf), in ConstructClient()
81 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiOneTenthAllocation() local
87 ringbuf->SetShuttingDown(); in BM_ClientApiOneTenthAllocation()
102 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiOneHundrethAllocation() local
108 ringbuf->SetShuttingDown(); in BM_ClientApiOneHundrethAllocation()
123 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiAlmostNoAllocation() local
[all …]
Dclient_api_unittest.cc62 auto ringbuf = SharedRingBuffer::Create(8 * 1048576); in ConstructClient() local
63 PERFETTO_CHECK(ringbuf); in ConstructClient()
66 g_shmem_fd = ringbuf->fd(); in ConstructClient()
68 g_client_config, std::move(*ringbuf), in ConstructClient()
92 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in TEST() local
94 PERFETTO_CHECK(ringbuf); in TEST()
97 EXPECT_TRUE(ringbuf->BeginRead()); in TEST()
99 ringbuf->SetShuttingDown(); in TEST()
114 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in TEST() local
116 PERFETTO_CHECK(ringbuf); in TEST()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_ringbuf.c18 } 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()
Dringbuf_bench.c12 } 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()
Dima.c17 } ringbuf SEC(".maps");
36 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(u64), 0); in BPF_PROG()
Dtest_d_path_check_types.c12 } ringbuf SEC(".maps");
Dmap_ptr_kern.c655 struct bpf_ringbuf_map *ringbuf = (struct bpf_ringbuf_map *)&m_ringbuf; in check_ringbuf() local
658 VERIFY(check(&ringbuf->map, map, 0, 0, page_size)); in check_ringbuf()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtest_ima.c46 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()
Dringbuf.c62 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 …]
Dringbuf_multi.c44 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()
/external/linux-kselftest/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c124 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()
/external/bcc/src/cc/export/
Dhelpers.h236 __attribute__((section("maps/ringbuf"))) \
/external/libbpf/src/
Dbpf_helper_defs.h3120 static long (*bpf_ringbuf_output)(void *ringbuf, void *data, __u64 size, __u64 flags) = (void *) 13…
3132 static void *(*bpf_ringbuf_reserve)(void *ringbuf, __u64 size, __u64 flags) = (void *) 131;
3189 static __u64 (*bpf_ringbuf_query)(void *ringbuf, __u64 flags) = (void *) 134;
DMakefile39 btf_dump.o hashmap.o ringbuf.o strset.o linker.o gen_loader.o \
/external/libbpf/
DAndroid.bp107 "src/ringbuf.c",
/external/libbpf/travis-ci/vmtest/configs/blacklist/
DBLACKLIST-latest.s390x31 ringbuf # skel_load skeleton load failed …
DBLACKLIST-5.5.061 ringbuf # BPF_MAP_TYPE_RINGBUF is supported in 5.8+
/external/liburing/test/
DMakefile129 ringbuf-read.c \
/external/bpftool/docs/
Dbpftool-map.rst57 | | **queue** | **stack** | **sk_storage** | **struct_ops** | **ringbuf** | **inode_storage**
/external/bcc/docs/
Dreference_guide.md750 Creates a BPF table for pushing out custom event data to user space via a ringbuf ring buffer.
774 // Creates a ringbuf called events with 8 pages of space, shared across all CPUs
2014 This polls from all open ringbuf ring buffers, calling the callback function that was provided when…
2038 This consumes from all open ringbuf ring buffers, calling the callback function that was provided w…
2365ringbuf ring buffer. This is part of the new (Linux 5.8+) recommended mechanism for transferring p…
/external/bpftool/bash-completion/
Dbpftool713 struct_ops ringbuf inode_storage task_storage \