Lines Matching full:pb
52 struct perf_buffer *pb; in serial_test_perf_buffer() local
84 pb = perf_buffer__new(bpf_map__fd(skel->maps.perf_buf_map), 1, in serial_test_perf_buffer()
86 if (!ASSERT_OK_PTR(pb, "perf_buf__new")) in serial_test_perf_buffer()
89 CHECK(perf_buffer__epoll_fd(pb) < 0, "epoll_fd", in serial_test_perf_buffer()
90 "bad fd: %d\n", perf_buffer__epoll_fd(pb)); in serial_test_perf_buffer()
105 err = perf_buffer__poll(pb, 100); in serial_test_perf_buffer()
113 if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", in serial_test_perf_buffer()
114 "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_on_cpus)) in serial_test_perf_buffer()
121 fd = perf_buffer__buffer_fd(pb, j); in serial_test_perf_buffer()
125 err = perf_buffer__consume_buffer(pb, j); in serial_test_perf_buffer()
133 err = perf_buffer__consume_buffer(pb, j); in serial_test_perf_buffer()
143 perf_buffer__free(pb); in serial_test_perf_buffer()