Lines Matching refs:CHECK
48 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample()
52 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample()
94 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_ringbuf()
100 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_ringbuf()
154 if (CHECK(!ringbuf, "ringbuf_create", "failed to create ringbuf\n")) in test_ringbuf()
158 if (CHECK(err, "skel_attach", "skeleton attachment failed: %d\n", err)) in test_ringbuf()
164 CHECK(skel->bss->avail_data != 3 * rec_sz, in test_ringbuf()
167 CHECK(skel->bss->ring_size != page_size, in test_ringbuf()
170 CHECK(skel->bss->cons_pos != 0, in test_ringbuf()
173 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()
181 if (CHECK(err != -EDONE, "err_done", "done err: %d\n", err)) in test_ringbuf()
184 CHECK(cnt != 2, "cnt", "exp %d samples, got %d\n", 2, cnt); in test_ringbuf()
188 if (CHECK(err != 0, "extra_samples", "poll result: %d\n", err)) in test_ringbuf()
191 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in test_ringbuf()
193 CHECK(skel->bss->dropped != 0, "err_dropped", "exp %ld, got %ld\n", in test_ringbuf()
195 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
197 CHECK(skel->bss->discarded != 1, "err_discarded", "exp %ld, got %ld\n", in test_ringbuf()
202 CHECK(skel->bss->cons_pos != 3 * rec_sz, in test_ringbuf()
206 CHECK(err <= 0, "poll_err", "err %d\n", err); in test_ringbuf()
208 CHECK(cnt != 2, "cnt", "exp %d samples, got %d\n", 2, cnt); in test_ringbuf()
212 if (CHECK(err, "bg_poll", "pthread_create failed: %d\n", err)) in test_ringbuf()
227 if (CHECK(err != EBUSY, "try_join", "err %d\n", err)) in test_ringbuf()
231 CHECK(skel->bss->dropped != 0, "err_dropped", "exp %ld, got %ld\n", in test_ringbuf()
233 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
235 CHECK(skel->bss->discarded != 1, "err_discarded", "exp %ld, got %ld\n", in test_ringbuf()
238 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in test_ringbuf()
250 if (CHECK(err != EBUSY, "try_join", "err %d\n", err)) in test_ringbuf()
255 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in test_ringbuf()
271 if (CHECK(err, "join_bg", "err %d\n", err)) in test_ringbuf()
274 if (CHECK(bg_ret <= 0, "bg_ret", "epoll_wait result: %ld", bg_ret)) in test_ringbuf()
281 CHECK(err < 0, "rb_consume", "failed: %d\b", err); in test_ringbuf()
285 CHECK(cnt != 6, "cnt", "exp %d samples, got %d\n", 6, cnt); in test_ringbuf()
288 CHECK(skel->bss->dropped != 0, "err_dropped", "exp %ld, got %ld\n", in test_ringbuf()
290 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
292 CHECK(skel->bss->discarded != 1, "err_discarded", "exp %ld, got %ld\n", in test_ringbuf()