Lines Matching refs:CHECK
23 CHECK(ring != 1, "sample1_ring", "exp %d, got %d\n", 1, ring); in process_sample()
24 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample()
28 CHECK(ring != 2, "sample2_ring", "exp %d, got %d\n", 2, ring); in process_sample()
29 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample()
33 CHECK(true, "extra_sample", "unexpected sample seq %d, val %ld\n", in process_sample()
50 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_ringbuf_multi()
54 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
58 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
62 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_ringbuf_multi()
66 if (CHECK(proto_fd < 0, "bpf_create_map", "bpf_create_map failed\n")) in test_ringbuf_multi()
70 if (CHECK(err != 0, "bpf_map__set_inner_map_fd", "bpf_map__set_inner_map_fd failed\n")) in test_ringbuf_multi()
74 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_ringbuf_multi()
85 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf_multi()
90 if (CHECK(err, "ringbuf_add", "failed to add another ring\n")) in test_ringbuf_multi()
94 if (CHECK(err, "skel_attach", "skeleton attachment failed: %d\n", err)) in test_ringbuf_multi()
113 if (CHECK(err != 2, "poll_res", "expected 2 records, got %d\n", err)) in test_ringbuf_multi()
118 if (CHECK(err < 0, "extra_samples", "poll result: %d\n", err)) in test_ringbuf_multi()
121 CHECK(skel->bss->dropped != 0, "err_dropped", "exp %ld, got %ld\n", in test_ringbuf_multi()
123 CHECK(skel->bss->skipped != 1, "err_skipped", "exp %ld, got %ld\n", in test_ringbuf_multi()
125 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf_multi()