Home
last modified time | relevance | path

Searched refs:pb_opts (Results 1 – 7 of 7) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dperf_buffer.c49 struct perf_buffer_opts pb_opts = {}; in test_perf_buffer() local
80 pb_opts.sample_cb = on_sample; in test_perf_buffer()
81 pb_opts.ctx = &cpu_seen; in test_perf_buffer()
82 pb = perf_buffer__new(bpf_map__fd(skel->maps.perf_buf_map), 1, &pb_opts); in test_perf_buffer()
Dxdp_bpf2bpf.c52 struct perf_buffer_opts pb_opts = {}; in test_xdp_bpf2bpf() local
89 pb_opts.sample_cb = on_sample; in test_xdp_bpf2bpf()
90 pb_opts.ctx = &passed; in test_xdp_bpf2bpf()
92 1, &pb_opts); in test_xdp_bpf2bpf()
Dkfree_skb.c68 struct perf_buffer_opts pb_opts = {}; in test_kfree_skb() local
114 pb_opts.sample_cb = on_sample; in test_kfree_skb()
115 pb_opts.ctx = &passed; in test_kfree_skb()
116 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_kfree_skb()
Dget_stack_raw_tp.c88 struct perf_buffer_opts pb_opts = {}; in test_get_stack_raw_tp() local
127 pb_opts.sample_cb = get_stack_print_output; in test_get_stack_raw_tp()
128 pb = perf_buffer__new(bpf_map__fd(map), 8, &pb_opts); in test_get_stack_raw_tp()
/tools/bpf/runqslower/
Drunqslower.c126 struct perf_buffer_opts pb_opts; in main() local
168 pb_opts.sample_cb = handle_event; in main()
169 pb_opts.lost_cb = handle_lost_events; in main()
170 pb = perf_buffer__new(bpf_map__fd(obj->maps.events), 64, &pb_opts); in main()
/tools/testing/selftests/bpf/
Dtest_tcpnotify_user.c74 struct perf_buffer_opts pb_opts = {}; in main() local
119 pb_opts.sample_cb = dummyfn; in main()
120 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, &pb_opts); in main()
/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c397 struct perf_buffer_raw_opts pb_opts = { in perfbuf_libbpf_setup() local
426 args.perfbuf_sz, &pb_opts); in perfbuf_libbpf_setup()