| 15 | static int no_probe; |
| 16 | |
| 17 | static int verify_probe(struct io_uring_probe *p, int full) |
| 18 | { |
| 19 | if (!full && p->ops_len) { |
| 20 | fprintf(stderr, "Got ops_len=%u\n", p->ops_len); |
| 21 | return 1; |
| 22 | } |
| 23 | if (!p->last_op) { |
| 24 | fprintf(stderr, "Got last_op=%u\n", p->last_op); |
| 25 | return 1; |
| 26 | } |
| 27 | if (!full) |
| 28 | return 0; |
| 29 | /* check a few ops that must be supported */ |
| 30 | if (!(p->ops[IORING_OP_NOP].flags & IO_URING_OP_SUPPORTED)) { |
| 31 | fprintf(stderr, "NOP not supported!?\n"); |
| 32 | return 1; |
| 33 | } |
| 34 | if (!(p->ops[IORING_OP_READV].flags & IO_URING_OP_SUPPORTED)) { |
| 35 | fprintf(stderr, "READV not supported!?\n"); |
| 36 | return 1; |
| 37 | } |
| 38 | if (!(p->ops[IORING_OP_WRITE].flags & IO_URING_OP_SUPPORTED)) { |
| 39 | fprintf(stderr, "WRITE not supported!?\n"); |
| 40 | return 1; |
| 41 | } |
| 42 | |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | static int test_probe_helper(struct io_uring *ring) |
| 47 | { |
no outgoing calls