Home
last modified time | relevance | path

Searched refs:perfbuf (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dunpriv_bpf_disabled.c63 struct perf_buffer *perfbuf = NULL; in test_unpriv_bpf_disabled_positive() local
78 perfbuf = perf_buffer__new(bpf_map__fd(skel->maps.perfbuf), 8, process_perfbuf, NULL, NULL, in test_unpriv_bpf_disabled_positive()
80 if (!ASSERT_OK_PTR(perfbuf, "perf_buffer__new")) in test_unpriv_bpf_disabled_positive()
90 ASSERT_GT(perf_buffer__poll(perfbuf, 100), -1, "perf_buffer__poll"); in test_unpriv_bpf_disabled_positive()
136 if (perfbuf) in test_unpriv_bpf_disabled_positive()
137 perf_buffer__free(perfbuf); in test_unpriv_bpf_disabled_positive()
251 map_fds[4] = bpf_map__fd(skel->maps.perfbuf); in test_unpriv_bpf_disabled()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dperfbuf_bench.c15 } perfbuf SEC(".maps");
28 if (bpf_perf_event_output(ctx, &perfbuf, BPF_F_CURRENT_CPU, in bench_perfbuf()
Dtest_unpriv_bpf_disabled.c47 } perfbuf SEC(".maps");
71 bpf_perf_event_output(ctx, &perfbuf, BPF_F_CURRENT_CPU, &perfbuf_val, sizeof(perfbuf_val)); in sys_nanosleep_enter()
/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c344 struct perf_buffer *perfbuf; member
420 ctx->perfbuf = perf_buffer__new_raw(bpf_map__fd(ctx->skel->maps.perfbuf), in perfbuf_libbpf_setup()
423 if (!ctx->perfbuf) { in perfbuf_libbpf_setup()
439 while (perf_buffer__poll(ctx->perfbuf, -1) >= 0) { in perfbuf_libbpf_consumer()
478 struct perf_buffer *pb = ctx->perfbuf; in perfbuf_custom_consumer()