tools/testing/memblock/tests/alloc_api.c
100
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/alloc_api.c
102
ASSERT_EQ(rgn2->size, r2_size);
tools/testing/memblock/tests/alloc_api.c
103
ASSERT_EQ(rgn2->base, expected_start);
tools/testing/memblock/tests/alloc_api.c
105
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_api.c
106
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
144
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_api.c
145
ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size);
tools/testing/memblock/tests/alloc_api.c
147
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
148
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
192
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_api.c
193
ASSERT_EQ(rgn->base, r1.base - r2_size);
tools/testing/memblock/tests/alloc_api.c
195
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
196
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
242
ASSERT_EQ(rgn->size, r2.size + r3_size);
tools/testing/memblock/tests/alloc_api.c
243
ASSERT_EQ(rgn->base, r2.base - r3_size);
tools/testing/memblock/tests/alloc_api.c
245
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_api.c
246
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
296
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_api.c
297
ASSERT_EQ(rgn->base, r1.base - r2.size - r3_size);
tools/testing/memblock/tests/alloc_api.c
299
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
300
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
339
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_api.c
362
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_api.c
396
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_api.c
41
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_api.c
42
ASSERT_EQ(rgn->base, expected_start);
tools/testing/memblock/tests/alloc_api.c
432
ASSERT_EQ(rgn->size, MEM_SIZE);
tools/testing/memblock/tests/alloc_api.c
433
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_api.c
435
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
436
ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE);
tools/testing/memblock/tests/alloc_api.c
44
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
45
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_api.c
459
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_api.c
460
ASSERT_EQ(rgn->size, 0);
tools/testing/memblock/tests/alloc_api.c
461
ASSERT_EQ(rgn->base, 0);
tools/testing/memblock/tests/alloc_api.c
462
ASSERT_EQ(memblock.reserved.total_size, 0);
tools/testing/memblock/tests/alloc_api.c
492
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_api.c
493
ASSERT_EQ(rgn->size, 0);
tools/testing/memblock/tests/alloc_api.c
494
ASSERT_EQ(rgn->base, 0);
tools/testing/memblock/tests/alloc_api.c
495
ASSERT_EQ(memblock.reserved.total_size, 0);
tools/testing/memblock/tests/alloc_api.c
520
ASSERT_EQ(rgn->size, SZ_2);
tools/testing/memblock/tests/alloc_api.c
521
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_api.c
523
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
524
ASSERT_EQ(memblock.reserved.total_size, SZ_2);
tools/testing/memblock/tests/alloc_api.c
576
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/alloc_api.c
577
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/alloc_api.c
579
ASSERT_EQ(rgn2->size, r2_size);
tools/testing/memblock/tests/alloc_api.c
580
ASSERT_EQ(rgn2->base, expected_start);
tools/testing/memblock/tests/alloc_api.c
582
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_api.c
583
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
618
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_api.c
619
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_api.c
621
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
622
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
665
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_api.c
666
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/alloc_api.c
668
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_api.c
669
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
716
ASSERT_EQ(rgn->size, r2.size + r3_size);
tools/testing/memblock/tests/alloc_api.c
717
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/alloc_api.c
719
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_api.c
720
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_api.c
99
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
108
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
109
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
112
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_exact_nid_api.c
113
ASSERT_EQ(memblock.reserved.total_size, size + r1.size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
165
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
166
ASSERT_EQ(new_rgn->base, req_node_end - size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
169
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
170
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
222
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
223
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
226
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
227
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
280
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
281
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
283
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
284
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
321
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
322
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
325
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
326
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
379
ASSERT_EQ(new_rgn->size, total_size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
380
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
383
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
384
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
436
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
437
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
440
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
441
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
493
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
494
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
497
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
498
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
52
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
53
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
551
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
552
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
555
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
556
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
56
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
57
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
597
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
639
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
687
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
728
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
771
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
809
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_exact_nid_api.c
874
ASSERT_EQ(new_rgn->size, total_size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
875
ASSERT_EQ(new_rgn->base, r2.base);
tools/testing/memblock/tests/alloc_exact_nid_api.c
880
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_exact_nid_api.c
881
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_exact_nid_api.c
940
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_helpers_api.c
124
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
125
ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES);
tools/testing/memblock/tests/alloc_helpers_api.c
127
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
128
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
171
ASSERT_EQ(rgn->base, min_addr - r1_size);
tools/testing/memblock/tests/alloc_helpers_api.c
172
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_helpers_api.c
174
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
175
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_helpers_api.c
207
ASSERT_EQ(rgn->base, start_addr);
tools/testing/memblock/tests/alloc_helpers_api.c
208
ASSERT_EQ(rgn->size, MEM_SIZE);
tools/testing/memblock/tests/alloc_helpers_api.c
210
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
211
ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE);
tools/testing/memblock/tests/alloc_helpers_api.c
250
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
251
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_helpers_api.c
253
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
254
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
296
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_helpers_api.c
297
ASSERT_EQ(rgn->size, r1_size);
tools/testing/memblock/tests/alloc_helpers_api.c
299
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_helpers_api.c
300
ASSERT_EQ(memblock.reserved.total_size, r1_size + r2_size);
tools/testing/memblock/tests/alloc_helpers_api.c
329
ASSERT_EQ(rgn->base, start_addr);
tools/testing/memblock/tests/alloc_helpers_api.c
330
ASSERT_EQ(rgn->size, r1_size);
tools/testing/memblock/tests/alloc_helpers_api.c
332
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
333
ASSERT_EQ(memblock.reserved.total_size, r1_size);
tools/testing/memblock/tests/alloc_helpers_api.c
35
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
36
ASSERT_EQ(rgn->base, min_addr);
tools/testing/memblock/tests/alloc_helpers_api.c
38
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
39
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
79
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_helpers_api.c
80
ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES);
tools/testing/memblock/tests/alloc_helpers_api.c
82
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_helpers_api.c
83
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1001
ASSERT_EQ(memblock.reserved.cnt, 3);
tools/testing/memblock/tests/alloc_nid_api.c
1002
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
1035
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1036
ASSERT_EQ(rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
1038
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1039
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1072
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1073
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_nid_api.c
1075
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1076
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1267
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1268
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1271
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1272
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1319
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1320
ASSERT_EQ(new_rgn->base, region_end(exp_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1323
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1324
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1373
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1374
ASSERT_EQ(new_rgn->base, region_end(exp_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1377
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
1378
ASSERT_EQ(memblock.reserved.total_size, size + req_node->size);
tools/testing/memblock/tests/alloc_nid_api.c
140
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
141
ASSERT_EQ(rgn->base, max_addr - size - misalign);
tools/testing/memblock/tests/alloc_nid_api.c
1428
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1429
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1432
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
1433
ASSERT_EQ(memblock.reserved.total_size, size + r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
144
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
145
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1489
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1490
ASSERT_EQ(new_rgn->base, region_end(exp_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1493
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
1494
ASSERT_EQ(memblock.reserved.total_size, size + r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
1545
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1546
ASSERT_EQ(new_rgn->base, req_node_end - size);
tools/testing/memblock/tests/alloc_nid_api.c
1549
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1550
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1602
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1603
ASSERT_EQ(new_rgn->base, exp_node_end - size);
tools/testing/memblock/tests/alloc_nid_api.c
1606
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1607
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1658
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1659
ASSERT_EQ(new_rgn->base, region_end(req_node) - size);
tools/testing/memblock/tests/alloc_nid_api.c
1662
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1663
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1714
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1715
ASSERT_EQ(new_rgn->base, max_addr - size);
tools/testing/memblock/tests/alloc_nid_api.c
1718
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1719
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1770
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1771
ASSERT_EQ(new_rgn->base, max_addr - size);
tools/testing/memblock/tests/alloc_nid_api.c
1774
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1775
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1811
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1812
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
1815
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1816
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1863
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1864
ASSERT_EQ(new_rgn->base, exp_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
1867
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1868
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
190
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
191
ASSERT_EQ(rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
1918
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1919
ASSERT_EQ(new_rgn->base, exp_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
192
ASSERT_EQ(rgn_end, max_addr);
tools/testing/memblock/tests/alloc_nid_api.c
1922
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
1923
ASSERT_EQ(memblock.reserved.total_size, size + req_node->size);
tools/testing/memblock/tests/alloc_nid_api.c
194
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
195
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
1975
ASSERT_EQ(new_rgn->size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
1976
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
1979
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
1980
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
2036
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2037
ASSERT_EQ(new_rgn->base, exp_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
2040
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
2041
ASSERT_EQ(memblock.reserved.total_size, size + r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
2092
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2093
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
2096
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2097
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2150
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2151
ASSERT_EQ(new_rgn->base, exp_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
2154
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2155
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2206
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2207
ASSERT_EQ(new_rgn->base, req_node->base);
tools/testing/memblock/tests/alloc_nid_api.c
2210
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2211
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2262
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2263
ASSERT_EQ(new_rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
2266
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2267
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2318
ASSERT_EQ(new_rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2319
ASSERT_EQ(new_rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
2322
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2323
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2360
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_nid_api.c
240
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
241
ASSERT_EQ(rgn->base, max_addr - size);
tools/testing/memblock/tests/alloc_nid_api.c
2424
ASSERT_EQ(new_rgn->size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
2425
ASSERT_EQ(new_rgn->base, r2.base);
tools/testing/memblock/tests/alloc_nid_api.c
243
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2430
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
2431
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
244
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
2490
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_nid_api.c
2518
ASSERT_EQ(nid_req, req_node->nid);
tools/testing/memblock/tests/alloc_nid_api.c
288
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_nid_api.c
336
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
337
ASSERT_EQ(rgn->base, reserved_base);
tools/testing/memblock/tests/alloc_nid_api.c
339
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
340
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
386
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
387
ASSERT_EQ(rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
389
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
390
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
449
ASSERT_EQ(rgn1->size, r1.size + r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
450
ASSERT_EQ(rgn1->base, max_addr - r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
452
ASSERT_EQ(rgn2->size, r2.size);
tools/testing/memblock/tests/alloc_nid_api.c
453
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/alloc_nid_api.c
455
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
456
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
512
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
513
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/alloc_nid_api.c
515
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
516
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
576
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
577
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/alloc_nid_api.c
579
ASSERT_EQ(rgn2->size, r2.size + r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
580
ASSERT_EQ(rgn2->base, r2.base - r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
582
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
583
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
638
ASSERT_EQ(allocated_ptr, NULL);
tools/testing/memblock/tests/alloc_nid_api.c
671
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
672
ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - size);
tools/testing/memblock/tests/alloc_nid_api.c
674
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
675
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
708
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
709
ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - size);
tools/testing/memblock/tests/alloc_nid_api.c
711
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
712
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
756
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
757
ASSERT_EQ(rgn->base, min_addr);
tools/testing/memblock/tests/alloc_nid_api.c
760
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
761
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
809
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
810
ASSERT_EQ(rgn->base, min_addr + (SMP_CACHE_BYTES - misalign));
tools/testing/memblock/tests/alloc_nid_api.c
813
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
814
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
859
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
860
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_nid_api.c
862
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
863
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
87
ASSERT_EQ(rgn->size, size);
tools/testing/memblock/tests/alloc_nid_api.c
88
ASSERT_EQ(rgn->base, max_addr - size);
tools/testing/memblock/tests/alloc_nid_api.c
89
ASSERT_EQ(rgn_end, max_addr);
tools/testing/memblock/tests/alloc_nid_api.c
91
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/alloc_nid_api.c
92
ASSERT_EQ(memblock.reserved.total_size, size);
tools/testing/memblock/tests/alloc_nid_api.c
922
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
923
ASSERT_EQ(rgn1->base, max_addr);
tools/testing/memblock/tests/alloc_nid_api.c
925
ASSERT_EQ(rgn2->size, r2.size + r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
926
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/alloc_nid_api.c
928
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/alloc_nid_api.c
929
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/alloc_nid_api.c
992
ASSERT_EQ(rgn3->size, r3_size);
tools/testing/memblock/tests/alloc_nid_api.c
993
ASSERT_EQ(rgn3->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/alloc_nid_api.c
995
ASSERT_EQ(rgn2->size, r2.size);
tools/testing/memblock/tests/alloc_nid_api.c
996
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/alloc_nid_api.c
998
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/alloc_nid_api.c
999
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1029
ASSERT_EQ(memblock.reserved.cnt, i + 1);
tools/testing/memblock/tests/basic_api.c
1030
ASSERT_EQ(memblock.reserved.total_size, (i + 1) * MEM_SIZE);
tools/testing/memblock/tests/basic_api.c
1032
ASSERT_EQ(memblock.reserved.cnt, i);
tools/testing/memblock/tests/basic_api.c
1033
ASSERT_EQ(memblock.reserved.total_size, i * MEM_SIZE);
tools/testing/memblock/tests/basic_api.c
1055
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 2);
tools/testing/memblock/tests/basic_api.c
1056
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
1058
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1065
ASSERT_EQ(memblock.reserved.regions[0].base, r.base);
tools/testing/memblock/tests/basic_api.c
1066
ASSERT_EQ(memblock.reserved.regions[0].size, r.size);
tools/testing/memblock/tests/basic_api.c
1068
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 3);
tools/testing/memblock/tests/basic_api.c
1069
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
1072
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1170
ASSERT_EQ(memblock.reserved.cnt, i);
tools/testing/memblock/tests/basic_api.c
1171
ASSERT_EQ(memblock.reserved.total_size, i * MEM_SIZE);
tools/testing/memblock/tests/basic_api.c
1173
ASSERT_EQ(memblock.reserved.cnt, i - 1);
tools/testing/memblock/tests/basic_api.c
1174
ASSERT_EQ(memblock.reserved.total_size, (i - 1) * MEM_SIZE);
tools/testing/memblock/tests/basic_api.c
1196
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 2);
tools/testing/memblock/tests/basic_api.c
1197
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
1199
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1206
ASSERT_EQ(memblock.reserved.regions[0].base + memblock.reserved.regions[0].size,
tools/testing/memblock/tests/basic_api.c
1208
ASSERT_EQ(memblock.reserved.regions[0].size, new_reserved_regions_size);
tools/testing/memblock/tests/basic_api.c
1215
ASSERT_EQ(memblock.reserved.regions[0].base, r.base);
tools/testing/memblock/tests/basic_api.c
1216
ASSERT_EQ(memblock.reserved.regions[0].size, r.size);
tools/testing/memblock/tests/basic_api.c
1218
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 3);
tools/testing/memblock/tests/basic_api.c
1219
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
1222
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1302
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/basic_api.c
1303
ASSERT_EQ(rgn->size, r2.size);
tools/testing/memblock/tests/basic_api.c
1305
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1306
ASSERT_EQ(memblock.memory.total_size, r2.size);
tools/testing/memblock/tests/basic_api.c
1350
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1351
ASSERT_EQ(rgn->size, r1.size);
tools/testing/memblock/tests/basic_api.c
1353
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1354
ASSERT_EQ(memblock.memory.total_size, r1.size);
tools/testing/memblock/tests/basic_api.c
139
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
140
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/basic_api.c
1406
ASSERT_EQ(rgn->base, r1.base + r2.base);
tools/testing/memblock/tests/basic_api.c
1407
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
1409
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1410
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
142
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/basic_api.c
143
ASSERT_EQ(rgn2->size, r2.size);
tools/testing/memblock/tests/basic_api.c
145
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
1458
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1459
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
146
ASSERT_EQ(memblock.memory.total_size, r1.size + r2.size);
tools/testing/memblock/tests/basic_api.c
1461
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1462
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1515
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1516
ASSERT_EQ(rgn1->size, r1_size);
tools/testing/memblock/tests/basic_api.c
1518
ASSERT_EQ(rgn2->base, r2.base + r2.size);
tools/testing/memblock/tests/basic_api.c
1519
ASSERT_EQ(rgn2->size, r2_size);
tools/testing/memblock/tests/basic_api.c
1521
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
1522
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1553
ASSERT_EQ(rgn->base, 0);
tools/testing/memblock/tests/basic_api.c
1554
ASSERT_EQ(rgn->size, 0);
tools/testing/memblock/tests/basic_api.c
1556
ASSERT_EQ(memblock.memory.cnt, 0);
tools/testing/memblock/tests/basic_api.c
1557
ASSERT_EQ(memblock.memory.total_size, 0);
tools/testing/memblock/tests/basic_api.c
1604
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1605
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
1607
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1608
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1664
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1665
ASSERT_EQ(rgn1->size, new_r1_size);
tools/testing/memblock/tests/basic_api.c
1667
ASSERT_EQ(rgn2->base, r3_end);
tools/testing/memblock/tests/basic_api.c
1668
ASSERT_EQ(rgn2->size, new_r2_size);
tools/testing/memblock/tests/basic_api.c
1670
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
1671
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1735
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/basic_api.c
1736
ASSERT_EQ(rgn->size, r2.size);
tools/testing/memblock/tests/basic_api.c
1738
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1739
ASSERT_EQ(memblock.reserved.total_size, r2.size);
tools/testing/memblock/tests/basic_api.c
1783
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1784
ASSERT_EQ(rgn->size, r1.size);
tools/testing/memblock/tests/basic_api.c
1786
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1787
ASSERT_EQ(memblock.reserved.total_size, r1.size);
tools/testing/memblock/tests/basic_api.c
18
ASSERT_EQ(memblock.memory.cnt, 0);
tools/testing/memblock/tests/basic_api.c
1837
ASSERT_EQ(rgn->base, r2.base + r2.size);
tools/testing/memblock/tests/basic_api.c
1838
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
1840
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1841
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1886
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1887
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
1889
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
1890
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
19
ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS);
tools/testing/memblock/tests/basic_api.c
194
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/basic_api.c
1943
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
1944
ASSERT_EQ(rgn1->size, r1_size);
tools/testing/memblock/tests/basic_api.c
1946
ASSERT_EQ(rgn2->base, r2.base + r2.size);
tools/testing/memblock/tests/basic_api.c
1947
ASSERT_EQ(rgn2->size, r2_size);
tools/testing/memblock/tests/basic_api.c
1949
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/basic_api.c
195
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
1950
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
197
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
198
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
1981
ASSERT_EQ(rgn->base, 0);
tools/testing/memblock/tests/basic_api.c
1982
ASSERT_EQ(rgn->size, 0);
tools/testing/memblock/tests/basic_api.c
1984
ASSERT_EQ(memblock.reserved.cnt, 0);
tools/testing/memblock/tests/basic_api.c
1985
ASSERT_EQ(memblock.reserved.total_size, 0);
tools/testing/memblock/tests/basic_api.c
20
ASSERT_EQ(strcmp(memblock.memory.name, "memory"), 0);
tools/testing/memblock/tests/basic_api.c
2031
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2032
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
2034
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
2035
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
2091
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2092
ASSERT_EQ(rgn1->size, new_r1_size);
tools/testing/memblock/tests/basic_api.c
2094
ASSERT_EQ(rgn2->base, r3_end);
tools/testing/memblock/tests/basic_api.c
2095
ASSERT_EQ(rgn2->size, new_r2_size);
tools/testing/memblock/tests/basic_api.c
2097
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/basic_api.c
2098
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
2130
ASSERT_EQ(memblock.bottom_up, false);
tools/testing/memblock/tests/basic_api.c
2132
ASSERT_EQ(memblock.bottom_up, true);
tools/testing/memblock/tests/basic_api.c
2145
ASSERT_EQ(memblock_bottom_up(), memblock.bottom_up);
tools/testing/memblock/tests/basic_api.c
2146
ASSERT_EQ(memblock_bottom_up(), false);
tools/testing/memblock/tests/basic_api.c
2148
ASSERT_EQ(memblock_bottom_up(), memblock.bottom_up);
tools/testing/memblock/tests/basic_api.c
2149
ASSERT_EQ(memblock_bottom_up(), true);
tools/testing/memblock/tests/basic_api.c
2192
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
2193
ASSERT_EQ(rgn->size, r.size);
tools/testing/memblock/tests/basic_api.c
2195
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
2243
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2244
ASSERT_EQ(rgn->size, r1.size);
tools/testing/memblock/tests/basic_api.c
2246
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
23
ASSERT_EQ(memblock.reserved.cnt, 0);
tools/testing/memblock/tests/basic_api.c
2301
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2302
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/basic_api.c
2304
ASSERT_EQ(rgn2->base, new_r2_base);
tools/testing/memblock/tests/basic_api.c
2305
ASSERT_EQ(rgn2->size, new_r2_size);
tools/testing/memblock/tests/basic_api.c
2307
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
2361
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2362
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/basic_api.c
2364
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/basic_api.c
2365
ASSERT_EQ(rgn2->size, new_r2_size);
tools/testing/memblock/tests/basic_api.c
2367
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
24
ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS);
tools/testing/memblock/tests/basic_api.c
2459
ASSERT_EQ(memblock.memory.cnt, 2);
tools/testing/memblock/tests/basic_api.c
246
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
2461
ASSERT_EQ(rgn->base, memblock_start_of_DRAM());
tools/testing/memblock/tests/basic_api.c
2462
ASSERT_EQ(rgn->size, memblock_phys_mem_size() / 2);
tools/testing/memblock/tests/basic_api.c
2463
ASSERT_EQ(memblock_get_region_node(rgn), 0);
tools/testing/memblock/tests/basic_api.c
2465
ASSERT_EQ(rgn->base, memblock_start_of_DRAM() + memblock_phys_mem_size() / 2);
tools/testing/memblock/tests/basic_api.c
2466
ASSERT_EQ(rgn->size, memblock_phys_mem_size() / 2);
tools/testing/memblock/tests/basic_api.c
2467
ASSERT_EQ(memblock_get_region_node(rgn), 1);
tools/testing/memblock/tests/basic_api.c
247
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
249
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
2498
ASSERT_EQ(1, memblock_get_region_node(rgn));
tools/testing/memblock/tests/basic_api.c
25
ASSERT_EQ(strcmp(memblock.reserved.name, "reserved"), 0);
tools/testing/memblock/tests/basic_api.c
250
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
2500
ASSERT_EQ(0, memblock_get_region_node(rgn));
tools/testing/memblock/tests/basic_api.c
27
ASSERT_EQ(memblock.bottom_up, false);
tools/testing/memblock/tests/basic_api.c
28
ASSERT_EQ(memblock.current_limit, MEMBLOCK_ALLOC_ANYWHERE);
tools/testing/memblock/tests/basic_api.c
293
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
294
ASSERT_EQ(rgn->size, r1.size);
tools/testing/memblock/tests/basic_api.c
296
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
297
ASSERT_EQ(memblock.memory.total_size, r1.size);
tools/testing/memblock/tests/basic_api.c
322
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
323
ASSERT_EQ(memblock.memory.total_size, r.size);
tools/testing/memblock/tests/basic_api.c
371
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
372
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
374
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
375
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
415
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
416
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
418
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
419
ASSERT_EQ(memblock.memory.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
473
ASSERT_EQ(memblock.memory.cnt, i + 2);
tools/testing/memblock/tests/basic_api.c
474
ASSERT_EQ(memblock.memory.total_size, new_memory_regions_size +
tools/testing/memblock/tests/basic_api.c
482
ASSERT_EQ(memblock.memory.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
485
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
486
ASSERT_EQ(memblock.reserved.total_size, new_memory_regions_size);
tools/testing/memblock/tests/basic_api.c
493
ASSERT_EQ(memblock.memory.regions[0].base, r.base);
tools/testing/memblock/tests/basic_api.c
494
ASSERT_EQ(memblock.memory.regions[0].size, r.size);
tools/testing/memblock/tests/basic_api.c
496
ASSERT_EQ(memblock.memory.cnt, INIT_MEMBLOCK_REGIONS + 2);
tools/testing/memblock/tests/basic_api.c
497
ASSERT_EQ(memblock.memory.total_size, INIT_MEMBLOCK_REGIONS * size +
tools/testing/memblock/tests/basic_api.c
500
ASSERT_EQ(memblock.memory.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
562
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
563
ASSERT_EQ(rgn->size, r.size);
tools/testing/memblock/tests/basic_api.c
57
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
58
ASSERT_EQ(rgn->size, r.size);
tools/testing/memblock/tests/basic_api.c
60
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
603
ASSERT_EQ(rgn1->base, r1.base);
tools/testing/memblock/tests/basic_api.c
604
ASSERT_EQ(rgn1->size, r1.size);
tools/testing/memblock/tests/basic_api.c
606
ASSERT_EQ(rgn2->base, r2.base);
tools/testing/memblock/tests/basic_api.c
607
ASSERT_EQ(rgn2->size, r2.size);
tools/testing/memblock/tests/basic_api.c
609
ASSERT_EQ(memblock.reserved.cnt, 2);
tools/testing/memblock/tests/basic_api.c
61
ASSERT_EQ(memblock.memory.total_size, r.size);
tools/testing/memblock/tests/basic_api.c
610
ASSERT_EQ(memblock.reserved.total_size, r1.size + r2.size);
tools/testing/memblock/tests/basic_api.c
659
ASSERT_EQ(rgn->base, r2.base);
tools/testing/memblock/tests/basic_api.c
660
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
662
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
663
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
712
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
713
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
715
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
716
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
761
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
762
ASSERT_EQ(rgn->size, r1.size);
tools/testing/memblock/tests/basic_api.c
764
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
765
ASSERT_EQ(memblock.reserved.total_size, r1.size);
tools/testing/memblock/tests/basic_api.c
791
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
792
ASSERT_EQ(memblock.reserved.total_size, r.size);
tools/testing/memblock/tests/basic_api.c
840
ASSERT_EQ(rgn->base, r1.base);
tools/testing/memblock/tests/basic_api.c
841
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
843
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
844
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
884
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
885
ASSERT_EQ(rgn->size, total_size);
tools/testing/memblock/tests/basic_api.c
887
ASSERT_EQ(memblock.reserved.cnt, 1);
tools/testing/memblock/tests/basic_api.c
888
ASSERT_EQ(memblock.reserved.total_size, total_size);
tools/testing/memblock/tests/basic_api.c
90
ASSERT_EQ(rgn->base, r.base);
tools/testing/memblock/tests/basic_api.c
91
ASSERT_EQ(rgn->size, r.size);
tools/testing/memblock/tests/basic_api.c
925
ASSERT_EQ(memblock.reserved.cnt, i + 1);
tools/testing/memblock/tests/basic_api.c
926
ASSERT_EQ(memblock.reserved.total_size, (i + 1) * MEM_SIZE);
tools/testing/memblock/tests/basic_api.c
93
ASSERT_EQ(rgn->nid, 1);
tools/testing/memblock/tests/basic_api.c
95
ASSERT_EQ(rgn->flags, MEMBLOCK_HOTPLUG);
tools/testing/memblock/tests/basic_api.c
950
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 2);
tools/testing/memblock/tests/basic_api.c
951
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
953
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
960
ASSERT_EQ(memblock.reserved.regions[0].base, r.base);
tools/testing/memblock/tests/basic_api.c
961
ASSERT_EQ(memblock.reserved.regions[0].size, r.size);
tools/testing/memblock/tests/basic_api.c
963
ASSERT_EQ(memblock.reserved.cnt, INIT_MEMBLOCK_REGIONS + 3);
tools/testing/memblock/tests/basic_api.c
964
ASSERT_EQ(memblock.reserved.total_size, (INIT_MEMBLOCK_REGIONS + 1) * MEM_SIZE +
tools/testing/memblock/tests/basic_api.c
967
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
97
ASSERT_EQ(memblock.memory.cnt, 1);
tools/testing/memblock/tests/basic_api.c
98
ASSERT_EQ(memblock.memory.total_size, r.size);
tools/testing/memblock/tests/common.h
43
#define ASSERT_TRUE(_seen) ASSERT_EQ(true, _seen)
tools/testing/memblock/tests/common.h
44
#define ASSERT_FALSE(_seen) ASSERT_EQ(false, _seen)
tools/testing/memblock/tests/common.h
93
ASSERT_EQ(((char *)_seen)[_i], (_expected)); \
tools/testing/selftests/alsa/test-pcmtest-driver.c
181
ASSERT_EQ(setup_handle(&handle, self->swparams, self->hwparams, params,
tools/testing/selftests/alsa/test-pcmtest-driver.c
198
ASSERT_EQ(test_results, 1);
tools/testing/selftests/alsa/test-pcmtest-driver.c
220
ASSERT_EQ(setup_handle(&handle, self->swparams, self->hwparams,
tools/testing/selftests/alsa/test-pcmtest-driver.c
232
ASSERT_EQ(it[i], patterns[cur_ch].buf[pos_in_ch % patterns[cur_ch].len]);
tools/testing/selftests/alsa/test-pcmtest-driver.c
252
ASSERT_EQ(setup_handle(&handle, self->swparams, self->hwparams,
tools/testing/selftests/alsa/test-pcmtest-driver.c
266
ASSERT_EQ(chan_samples[i][j], patterns[i].buf[j % patterns[i].len]);
tools/testing/selftests/alsa/test-pcmtest-driver.c
287
ASSERT_EQ(setup_handle(&handle, self->swparams, self->hwparams,
tools/testing/selftests/alsa/test-pcmtest-driver.c
303
ASSERT_EQ(test_res, 1);
tools/testing/selftests/alsa/test-pcmtest-driver.c
322
ASSERT_EQ(setup_handle(&handle, self->swparams, self->hwparams, params,
tools/testing/selftests/alsa/test-pcmtest-driver.c
326
ASSERT_EQ(test_res, 1);
tools/testing/selftests/alsa/utimer-test.c
136
ASSERT_EQ(total_ticks, TICKS_COUNT);
tools/testing/selftests/alsa/utimer-test.c
156
ASSERT_EQ(wrong_timer.id, UTIMER_DEFAULT_ID);
tools/testing/selftests/alsa/utimer-test.c
55
ASSERT_EQ(ioctl(timer_dev_fd, SNDRV_TIMER_IOCTL_CREATE, self->utimer_info), 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
108
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
111
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
112
ASSERT_EQ(mode, variant->mode);
tools/testing/selftests/arm64/gcs/gcs-locking.c
115
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
118
ASSERT_EQ(ret, -EBUSY);
tools/testing/selftests/arm64/gcs/gcs-locking.c
130
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
134
ASSERT_EQ(ret, -EBUSY);
tools/testing/selftests/arm64/gcs/gcs-locking.c
137
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
138
ASSERT_EQ(mode, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
151
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
154
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
155
ASSERT_EQ(mode, variant->mode);
tools/testing/selftests/arm64/gcs/gcs-locking.c
158
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
162
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
165
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
166
ASSERT_EQ(mode, PR_SHADOW_STACK_ALL_MODES);
tools/testing/selftests/arm64/gcs/gcs-locking.c
170
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
173
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
174
ASSERT_EQ(mode, variant->mode);
tools/testing/selftests/arm64/gcs/gcs-locking.c
47
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
95
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/libc-gcs.c
448
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/libc-gcs.c
473
ASSERT_EQ(stack[cap_index], GCS_CAP(&stack[cap_index]));
tools/testing/selftests/arm64/gcs/libc-gcs.c
487
ASSERT_EQ(stack[term_index], 0);
tools/testing/selftests/arm64/gcs/libc-gcs.c
669
ASSERT_EQ(ret, 0);
tools/testing/selftests/arm64/gcs/libc-gcs.c
683
ASSERT_EQ(ret, -1);
tools/testing/selftests/arm64/gcs/libc-gcs.c
692
ASSERT_EQ(ret, -1);
tools/testing/selftests/arm64/pauth/pac.c
290
ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same);
tools/testing/selftests/arm64/pauth/pac.c
315
ASSERT_EQ(0, ret) TH_LOG("failed to run worker");
tools/testing/selftests/arm64/pauth/pac.c
327
ASSERT_EQ(0, same) TH_LOG("exec() did not change %d keys", same);
tools/testing/selftests/arm64/pauth/pac.c
343
ASSERT_EQ(0, ret) TH_LOG("failed to run worker");
tools/testing/selftests/arm64/pauth/pac.c
347
ASSERT_EQ(before.keyia, after.keyia) TH_LOG("keyia changed after context switching");
tools/testing/selftests/arm64/pauth/pac.c
348
ASSERT_EQ(before.keyib, after.keyib) TH_LOG("keyib changed after context switching");
tools/testing/selftests/arm64/pauth/pac.c
349
ASSERT_EQ(before.keyda, after.keyda) TH_LOG("keyda changed after context switching");
tools/testing/selftests/arm64/pauth/pac.c
350
ASSERT_EQ(before.keydb, after.keydb) TH_LOG("keydb changed after context switching");
tools/testing/selftests/arm64/pauth/pac.c
366
ASSERT_EQ(0, ret) TH_LOG("failed to run worker");
tools/testing/selftests/arm64/pauth/pac.c
370
ASSERT_EQ(before, after) TH_LOG("keyg changed after context switching");
tools/testing/selftests/bpf/btf_helpers.c
239
ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types");
tools/testing/selftests/bpf/jit_disasm_helpers.c
108
if (!ASSERT_EQ(cnt, 1, "LLVMSetDisasmOptions")) {
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
103
ASSERT_EQ(skel->arena->xor64_value, 0x101ull << 32, "xor64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
104
ASSERT_EQ(skel->arena->xor32_value, 0x101, "xor32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
120
ASSERT_EQ(skel->arena->cmpxchg64_value, 2, "cmpxchg64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
121
ASSERT_EQ(skel->arena->cmpxchg64_result_fail, 1, "cmpxchg_result_fail");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
122
ASSERT_EQ(skel->arena->cmpxchg64_result_succeed, 1, "cmpxchg_result_succeed");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
124
ASSERT_EQ(skel->arena->cmpxchg32_value, 2, "lcmpxchg32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
125
ASSERT_EQ(skel->arena->cmpxchg32_result_fail, 1, "cmpxchg_result_fail");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
126
ASSERT_EQ(skel->arena->cmpxchg32_result_succeed, 1, "cmpxchg_result_succeed");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
142
ASSERT_EQ(skel->arena->xchg64_value, 2, "xchg64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
143
ASSERT_EQ(skel->arena->xchg64_result, 1, "xchg64_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
145
ASSERT_EQ(skel->arena->xchg32_value, 2, "xchg32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
146
ASSERT_EQ(skel->arena->xchg32_result, 1, "xchg32_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
162
ASSERT_EQ(skel->arena->uaf_recovery_fails, 0, "uaf_recovery_fails");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
185
ASSERT_EQ(skel->arena->load_acquire8_result, 0x12,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
187
ASSERT_EQ(skel->arena->load_acquire16_result, 0x1234,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
189
ASSERT_EQ(skel->arena->load_acquire32_result, 0x12345678,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
19
ASSERT_EQ(skel->arena->add64_value, 3, "add64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
191
ASSERT_EQ(skel->arena->load_acquire64_result, 0x1234567890abcdef,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
20
ASSERT_EQ(skel->arena->add64_result, 1, "add64_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
215
ASSERT_EQ(skel->arena->store_release8_result, 0x12,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
217
ASSERT_EQ(skel->arena->store_release16_result, 0x1234,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
219
ASSERT_EQ(skel->arena->store_release32_result, 0x12345678,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
22
ASSERT_EQ(skel->arena->add32_value, 3, "add32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
221
ASSERT_EQ(skel->arena->store_release64_result, 0x1234567890abcdef,
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
23
ASSERT_EQ(skel->arena->add32_result, 1, "add32_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
25
ASSERT_EQ(skel->arena->add_stack_value_copy, 3, "add_stack_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
26
ASSERT_EQ(skel->arena->add_stack_result, 1, "add_stack_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
28
ASSERT_EQ(skel->arena->add_noreturn_value, 3, "add_noreturn_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
44
ASSERT_EQ(skel->arena->sub64_value, -1, "sub64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
45
ASSERT_EQ(skel->arena->sub64_result, 1, "sub64_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
47
ASSERT_EQ(skel->arena->sub32_value, -1, "sub32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
48
ASSERT_EQ(skel->arena->sub32_result, 1, "sub32_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
50
ASSERT_EQ(skel->arena->sub_stack_value_copy, -1, "sub_stack_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
51
ASSERT_EQ(skel->arena->sub_stack_result, 1, "sub_stack_result");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
53
ASSERT_EQ(skel->arena->sub_noreturn_value, -1, "sub_noreturn_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
69
ASSERT_EQ(skel->arena->and64_value, 0x010ull << 32, "and64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
70
ASSERT_EQ(skel->arena->and32_value, 0x010, "and32_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
86
ASSERT_EQ(skel->arena->or64_value, 0x111ull << 32, "or64_value");
tools/testing/selftests/bpf/prog_tests/arena_atomics.c
87
ASSERT_EQ(skel->arena->or32_value, 0x111, "or32_value");
tools/testing/selftests/bpf/prog_tests/arena_htab.c
29
ASSERT_EQ(i, val, "key == value");
tools/testing/selftests/bpf/prog_tests/arena_list.c
57
ASSERT_EQ(sum, expected_sum, "sum of elems");
tools/testing/selftests/bpf/prog_tests/arena_list.c
58
ASSERT_EQ(skel->arena->arena_sum, expected_sum, "__arena sum of elems");
tools/testing/selftests/bpf/prog_tests/arena_list.c
59
ASSERT_EQ(skel->arena->test_val, cnt + 1, "num of elems");
tools/testing/selftests/bpf/prog_tests/arena_list.c
64
ASSERT_EQ(sum, 0, "sum of list elems after del");
tools/testing/selftests/bpf/prog_tests/arena_list.c
65
ASSERT_EQ(skel->bss->list_sum, expected_sum, "sum of list elems computed by prog");
tools/testing/selftests/bpf/prog_tests/arena_list.c
66
ASSERT_EQ(skel->arena->arena_sum, expected_sum, "__arena sum of elems");
tools/testing/selftests/bpf/prog_tests/arena_spin_lock.c
102
ASSERT_EQ(skel->bss->counter, repeat * nthreads, "check counter value");
tools/testing/selftests/bpf/prog_tests/arena_spin_lock.c
47
ASSERT_EQ((int)topts.retval, 0, "test_run retval");
tools/testing/selftests/bpf/prog_tests/arena_spin_lock.c
91
if (!ASSERT_EQ(ret, &prog_fd, "ret == prog_fd"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
103
if (!ASSERT_EQ(set.cnt, 1, "count of test filters"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
107
if (!ASSERT_EQ(set.tests[0].subtest_cnt, 2, "subtest filters count"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
155
if (!ASSERT_EQ(set.cnt, 4, "test count"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
159
ASSERT_EQ(set.tests[0].subtest_cnt, 0, "test 0 subtest count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
161
ASSERT_EQ(set.tests[1].subtest_cnt, 2, "test 1 subtest count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
34
if (!ASSERT_EQ(set.cnt, 1, "test filters count"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
38
ASSERT_EQ(set.tests[0].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
44
if (!ASSERT_EQ(set.cnt, 2, "count of test filters"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
48
ASSERT_EQ(set.tests[0].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
49
ASSERT_EQ(set.tests[1].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
58
if (!ASSERT_EQ(set.cnt, 2, "count of test filters"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
62
if (!ASSERT_EQ(set.tests[0].subtest_cnt, 1, "subtest filters count"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
64
ASSERT_EQ(set.tests[1].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
75
if (!ASSERT_EQ(set.cnt, 3, "count of test filters"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
79
if (!ASSERT_EQ(set.tests[0].subtest_cnt, 1, "subtest filters count"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
81
ASSERT_EQ(set.tests[1].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
82
ASSERT_EQ(set.tests[2].subtest_cnt, 0, "subtest filters count");
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
91
if (!ASSERT_EQ(set.cnt, 1, "count of test filters"))
tools/testing/selftests/bpf/prog_tests/arg_parsing.c
95
if (!ASSERT_EQ(set.tests[0].subtest_cnt, 1, "subtest filters count"))
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
109
ASSERT_EQ(skel->bss->sk_cookie_seen, 0, "cookie_init");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
143
ASSERT_EQ(echo_test_tcp(*fd_sv), ECONNREFUSED, "drop_tcp");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
145
ASSERT_EQ(echo_test_udp(*fd_sv), EAGAIN, "drop_udp");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
146
ASSERT_EQ(skel->bss->reuseport_executed, 1, "program executed once");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
153
ASSERT_EQ(echo_test_tcp(*fd_sv), 0, "echo_tcp");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
155
ASSERT_EQ(echo_test_udp(*fd_sv), 0, "echo_udp");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
157
ASSERT_EQ(skel->bss->sk_cookie_seen, cookie(*fd_sv),
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
159
ASSERT_EQ(skel->bss->reuseport_executed, 1, "program executed once");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
44
ASSERT_EQ(getsockname(fd_cl, (void *)&addr, &len), 0, "getsockname");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
46
ASSERT_EQ(send(fd_cl, buff, sizeof(buff), 0), 1, "send_client");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
54
ASSERT_EQ(ret, 1, "recv_server");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
55
ASSERT_EQ(sendto(fd_sv, buff, sizeof(buff), 0, (void *)&addr, len), 1, "send_server");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
56
ASSERT_EQ(recv(fd_cl, buff, sizeof(buff), 0), 1, "recv_client");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
73
ASSERT_EQ(send(fd_cl, buff, sizeof(buff), 0), 1, "send_client");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
74
ASSERT_EQ(recv(fd_sv_cl, buff, sizeof(buff), 0), 1, "recv_server");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
75
ASSERT_EQ(send(fd_sv_cl, buff, sizeof(buff), 0), 1, "send_server");
tools/testing/selftests/bpf/prog_tests/assign_reuse.c
76
ASSERT_EQ(recv(fd_cl, buff, sizeof(buff), 0), 1, "recv_client");
tools/testing/selftests/bpf/prog_tests/atomics.c
114
ASSERT_EQ(skel->data->xor64_value, 0x101ull << 32, "xor64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
115
ASSERT_EQ(skel->bss->xor64_result, 0x110ull << 32, "xor64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
117
ASSERT_EQ(skel->data->xor32_value, 0x101, "xor32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
118
ASSERT_EQ(skel->bss->xor32_result, 0x110, "xor32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
120
ASSERT_EQ(skel->data->xor_noreturn_value, 0x101ull << 32, "xor_nxoreturn_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
136
ASSERT_EQ(skel->data->cmpxchg64_value, 2, "cmpxchg64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
137
ASSERT_EQ(skel->bss->cmpxchg64_result_fail, 1, "cmpxchg_result_fail");
tools/testing/selftests/bpf/prog_tests/atomics.c
138
ASSERT_EQ(skel->bss->cmpxchg64_result_succeed, 1, "cmpxchg_result_succeed");
tools/testing/selftests/bpf/prog_tests/atomics.c
140
ASSERT_EQ(skel->data->cmpxchg32_value, 2, "lcmpxchg32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
141
ASSERT_EQ(skel->bss->cmpxchg32_result_fail, 1, "cmpxchg_result_fail");
tools/testing/selftests/bpf/prog_tests/atomics.c
142
ASSERT_EQ(skel->bss->cmpxchg32_result_succeed, 1, "cmpxchg_result_succeed");
tools/testing/selftests/bpf/prog_tests/atomics.c
158
ASSERT_EQ(skel->data->xchg64_value, 2, "xchg64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
159
ASSERT_EQ(skel->bss->xchg64_result, 1, "xchg64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
161
ASSERT_EQ(skel->data->xchg32_value, 2, "xchg32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
162
ASSERT_EQ(skel->bss->xchg32_result, 1, "xchg32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
20
ASSERT_EQ(skel->data->add64_value, 3, "add64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
21
ASSERT_EQ(skel->bss->add64_result, 1, "add64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
23
ASSERT_EQ(skel->data->add32_value, 3, "add32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
24
ASSERT_EQ(skel->bss->add32_result, 1, "add32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
26
ASSERT_EQ(skel->bss->add_stack_value_copy, 3, "add_stack_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
27
ASSERT_EQ(skel->bss->add_stack_result, 1, "add_stack_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
29
ASSERT_EQ(skel->data->add_noreturn_value, 3, "add_noreturn_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
45
ASSERT_EQ(skel->data->sub64_value, -1, "sub64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
46
ASSERT_EQ(skel->bss->sub64_result, 1, "sub64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
48
ASSERT_EQ(skel->data->sub32_value, -1, "sub32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
49
ASSERT_EQ(skel->bss->sub32_result, 1, "sub32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
51
ASSERT_EQ(skel->bss->sub_stack_value_copy, -1, "sub_stack_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
52
ASSERT_EQ(skel->bss->sub_stack_result, 1, "sub_stack_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
54
ASSERT_EQ(skel->data->sub_noreturn_value, -1, "sub_noreturn_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
70
ASSERT_EQ(skel->data->and64_value, 0x010ull << 32, "and64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
71
ASSERT_EQ(skel->bss->and64_result, 0x110ull << 32, "and64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
73
ASSERT_EQ(skel->data->and32_value, 0x010, "and32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
74
ASSERT_EQ(skel->bss->and32_result, 0x110, "and32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
76
ASSERT_EQ(skel->data->and_noreturn_value, 0x010ull << 32, "and_noreturn_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
92
ASSERT_EQ(skel->data->or64_value, 0x111ull << 32, "or64_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
93
ASSERT_EQ(skel->bss->or64_result, 0x110ull << 32, "or64_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
95
ASSERT_EQ(skel->data->or32_value, 0x111, "or32_value");
tools/testing/selftests/bpf/prog_tests/atomics.c
96
ASSERT_EQ(skel->bss->or32_result, 0x110, "or32_result");
tools/testing/selftests/bpf/prog_tests/atomics.c
98
ASSERT_EQ(skel->data->or_noreturn_value, 0x111ull << 32, "or_noreturn_value");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
116
ASSERT_EQ(skel->bss->kprobe_res, 1, "check_kprobe_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
117
ASSERT_EQ(skel->bss->kretprobe_res, 2, "check_kretprobe_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
118
ASSERT_EQ(skel->bss->uprobe_res, 3, "check_uprobe_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
119
ASSERT_EQ(skel->bss->uretprobe_res, 4, "check_uretprobe_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
120
ASSERT_EQ(skel->bss->uprobe_byname_res, 5, "check_uprobe_byname_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
243
if (!ASSERT_EQ(libbpf_get_error(uprobe_err_link), -EOPNOTSUPP,
tools/testing/selftests/bpf/prog_tests/attach_probe.c
259
ASSERT_EQ(skel->bss->kprobe2_res, 11, "check_kprobe_auto_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
260
ASSERT_EQ(skel->bss->kretprobe2_res, 22, "check_kretprobe_auto_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
261
ASSERT_EQ(skel->bss->uretprobe_byname_res, 6, "check_uretprobe_byname_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
296
ASSERT_EQ(skel->bss->uprobe_byname2_res, 7, "check_uprobe_byname2_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
297
ASSERT_EQ(skel->bss->uretprobe_byname2_res, 8, "check_uretprobe_byname2_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
314
ASSERT_EQ(uprobe_ref_ctr, 0, "uprobe_ref_ctr_before");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
390
ASSERT_EQ(skel->bss->uprobe_byname3_sleepable_res, 9, "check_uprobe_byname3_sleepable_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
391
ASSERT_EQ(skel->bss->uprobe_byname3_str_sleepable_res, 10, "check_uprobe_byname3_str_sleepable_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
392
ASSERT_EQ(skel->bss->uprobe_byname3_res, 11, "check_uprobe_byname3_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
393
ASSERT_EQ(skel->bss->uretprobe_byname3_sleepable_res, 12, "check_uretprobe_byname3_sleepable_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
394
ASSERT_EQ(skel->bss->uretprobe_byname3_str_sleepable_res, 13, "check_uretprobe_byname3_str_sleepable_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
395
ASSERT_EQ(skel->bss->uretprobe_byname3_res, 14, "check_uretprobe_byname3_res");
tools/testing/selftests/bpf/prog_tests/attach_probe.c
440
ASSERT_EQ(uprobe_ref_ctr, 0, "uprobe_ref_ctr_cleanup");
tools/testing/selftests/bpf/prog_tests/bind_perm.c
43
ASSERT_EQ(errno, expected_errno, "bind");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
104
ASSERT_EQ(skel->bss->error, 0, "error");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
140
ASSERT_EQ(skel->bss->error, 0, "error");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
51
ASSERT_EQ(err, -EINVAL, "bpf_map_update_elem bloom filter invalid flags");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
54
ASSERT_EQ(err, -EINVAL, "bpf_map_update_elem bloom filter invalid flags");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
57
ASSERT_EQ(err, -EINVAL, "bpf_map_update_elem bloom filter invalid flags");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
60
ASSERT_EQ(err, -EINVAL, "bpf_map_update_elem bloom filter invalid flags");
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
63
ASSERT_EQ(err, -EINVAL, "bpf_map_update_elem bloom filter invalid flags");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
262
ASSERT_EQ(skel->bss->uprobe_multi_func_1_result, 1, "uprobe_multi_func_1_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
263
ASSERT_EQ(skel->bss->uprobe_multi_func_2_result, 1, "uprobe_multi_func_2_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
264
ASSERT_EQ(skel->bss->uprobe_multi_func_3_result, 1, "uprobe_multi_func_3_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
266
ASSERT_EQ(skel->bss->uretprobe_multi_func_1_result, 1, "uretprobe_multi_func_1_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
267
ASSERT_EQ(skel->bss->uretprobe_multi_func_2_result, 1, "uretprobe_multi_func_2_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
268
ASSERT_EQ(skel->bss->uretprobe_multi_func_3_result, 1, "uretprobe_multi_func_3_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
362
ASSERT_EQ(skel->bss->uprobe_res, 0x100 | 0x200, "uprobe_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
363
ASSERT_EQ(skel->bss->uretprobe_res, 0x1000 | 0x2000, "uretprobe_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
394
ASSERT_EQ(skel->bss->tp_res, 0x10000 | 0x20000, "tp_res1");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
416
ASSERT_EQ(skel->bss->tp_res, 0x20000 | 0x40000, "tp_res2");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
465
ASSERT_EQ(skel->bss->pe_res, 0x100000, "pe_res1");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
484
ASSERT_EQ(skel->bss->pe_res, 0x200000, "pe_res2");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
501
if (!ASSERT_EQ(info.type, BPF_LINK_TYPE_TRACING, "link_type"))
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
504
ASSERT_EQ(info.tracing.cookie, cookie, "tracing_cookie");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
551
ASSERT_EQ(skel->bss->fentry_res, 0x10000000000000L, "fentry_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
552
ASSERT_EQ(skel->bss->fexit_res, 0x20000000000000L, "fexit_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
553
ASSERT_EQ(skel->bss->fmod_ret_res, 0x30000000000000L, "fmod_ret_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
584
if (!ASSERT_EQ(err, -1, "stack_mprotect") ||
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
585
!ASSERT_EQ(errno, EPERM, "stack_mprotect"))
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
590
ASSERT_EQ(skel->bss->lsm_res, 0x90000000000090L, "fentry_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
61
ASSERT_EQ(skel->bss->kprobe_res, 0x1 | 0x2, "kprobe_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
62
ASSERT_EQ(skel->bss->kretprobe_res, 0x10 | 0x20, "kretprobe_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
623
ASSERT_EQ(skel->bss->tp_btf_res, cookie, "raw_tp_open_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
637
ASSERT_EQ(skel->bss->tp_btf_res, cookie, "link_create_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
651
ASSERT_EQ(skel->bss->tp_btf_res, cookie, "attach_trace_opts_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
670
if (!ASSERT_EQ(info.type, BPF_LINK_TYPE_RAW_TRACEPOINT, "link_type"))
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
673
ASSERT_EQ(info.raw_tracepoint.cookie, cookie, "raw_tp_cookie");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
707
ASSERT_EQ(skel->bss->raw_tp_res, cookie, "raw_tp_open_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
722
ASSERT_EQ(skel->bss->raw_tp_res, cookie, "attach_raw_tp_opts_res");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
79
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
81
ASSERT_EQ(skel->bss->kprobe_test1_result, 1, "kprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
82
ASSERT_EQ(skel->bss->kprobe_test2_result, 1, "kprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
83
ASSERT_EQ(skel->bss->kprobe_test3_result, 1, "kprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
84
ASSERT_EQ(skel->bss->kprobe_test4_result, 1, "kprobe_test4_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
85
ASSERT_EQ(skel->bss->kprobe_test5_result, 1, "kprobe_test5_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
86
ASSERT_EQ(skel->bss->kprobe_test6_result, 1, "kprobe_test6_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
87
ASSERT_EQ(skel->bss->kprobe_test7_result, 1, "kprobe_test7_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
88
ASSERT_EQ(skel->bss->kprobe_test8_result, 1, "kprobe_test8_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
90
ASSERT_EQ(skel->bss->kretprobe_test1_result, 1, "kretprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
91
ASSERT_EQ(skel->bss->kretprobe_test2_result, 1, "kretprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
92
ASSERT_EQ(skel->bss->kretprobe_test3_result, 1, "kretprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
93
ASSERT_EQ(skel->bss->kretprobe_test4_result, 1, "kretprobe_test4_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
94
ASSERT_EQ(skel->bss->kretprobe_test5_result, 1, "kretprobe_test5_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
95
ASSERT_EQ(skel->bss->kretprobe_test6_result, 1, "kretprobe_test6_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
96
ASSERT_EQ(skel->bss->kretprobe_test7_result, 1, "kretprobe_test7_result");
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
97
ASSERT_EQ(skel->bss->kretprobe_test8_result, 1, "kretprobe_test8_result");
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
105
if (!ASSERT_EQ(seen, false, "more than one INSN_ARRAY map")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
114
ASSERT_EQ(seen, true, "no INSN_ARRAY map");
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
275
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
306
if (!ASSERT_EQ(prog_fd, -EACCES, "__check_ldimm64_off_prog_load: should be -EACCES")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
312
if (!ASSERT_EQ(prog_fd, -EACCES, "__check_ldimm64_off_prog_load: should be -EACCES")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
333
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0,
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
340
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
362
if (!ASSERT_EQ(prog_fd, -EACCES, "__check_ldimm64_gotox_prog_load"))
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
425
if (!ASSERT_EQ(topts.retval, off1 + off2, "test_run_opts retval")) {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
48
if (!ASSERT_EQ(skel->bss->ret_user, expected, "skel->bss->ret_user"))
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
63
if (!ASSERT_EQ(skel->bss->ret_user, expected, "skel->bss->ret_user"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
173
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &key, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
176
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
180
if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
208
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &key, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
211
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
215
if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
286
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
290
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
306
if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
310
ASSERT_EQ(val.xlated_off, i * 3, fmt);
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
339
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
344
if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
349
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
357
if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
360
ASSERT_EQ(val.xlated_off, i, "val should be equal i");
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
37
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
385
if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
389
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
397
if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
400
ASSERT_EQ(val.xlated_off, i, "val should be equal i");
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
404
if (!ASSERT_EQ(extra_fd, -EBUSY, "program should have been rejected (extra_fd != -EBUSY)"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
41
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
436
if (!ASSERT_EQ(bpf_map_freeze(map_fd), 0, "bpf_map_freeze"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
440
if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
51
if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
55
ASSERT_EQ(val.xlated_off, map_out[i], buf);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1002
if (!ASSERT_EQ(skel->bss->key_sum_a, expected_key_a, "key_sum_a"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1004
if (!ASSERT_EQ(skel->bss->key_sum_b, expected_key_b, "key_sum_b"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1006
if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1070
if (!ASSERT_EQ(res_first_key, 0, "bpf_seq_write") ||
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1071
!ASSERT_EQ(res_first_val, first_val, "bpf_seq_write"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1074
if (!ASSERT_EQ(skel->bss->key_sum, expected_key, "key_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1076
if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1084
if (!ASSERT_EQ(i, val, "invalid_val arraymap1"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1091
if (!ASSERT_EQ(key, val - 4, "invalid_val hashmap1"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1176
if (!ASSERT_EQ(skel->bss->key_sum, expected_key, "key_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1178
if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1244
ASSERT_EQ(errno, ENOENT, "bpf_map_lookup_elem");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1290
!ASSERT_EQ(val, getpid(), "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1297
ASSERT_EQ(val, -getpid(), "bpf_map_lookup_elem");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1356
if (!ASSERT_EQ(err, -EACCES, "attach_oob_write_iter")) {
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1378
if (!ASSERT_EQ(skel->bss->ipv6_sk_count, num_sockets, "ipv6_sk_count"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1381
if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1387
!ASSERT_EQ(val, i + 1 + skel->bss->to_add_val, "check_map_value"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1524
ASSERT_EQ(skel->bss->one_task_error, 0, "unexpected task");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1682
ASSERT_EQ(strcmp(buf, "OK\n"), 0, "strcmp");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1684
ASSERT_EQ(skel->bss->offset, get_uprobe_offset(trigger_func), "offset");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1686
ASSERT_EQ(skel->bss->unique_tgid_cnt, 1, "unique_tgid_count");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
198
ASSERT_EQ(info.iter.task.tid, getpid(), "check_task_tid");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
248
ASSERT_EQ(num_unknown_tid, num_unknown, "check_num_unknown_tid");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
249
ASSERT_EQ(num_known_tid, num_known, "check_num_known_tid");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
275
ASSERT_EQ(num_known_tid, 1, "check_num_known_tid");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
380
ASSERT_EQ(err, sizeof(data), "read_check");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
401
ASSERT_EQ(err, pid, "waitpid");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
402
ASSERT_EQ(status, 0, "zero_child_exit");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
419
ASSERT_EQ(skel->bss->num_user_stacks, 1, "num_user_stacks");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
450
ASSERT_EQ(skel->bss->count, 0, "check_count");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
451
ASSERT_EQ(skel->bss->unique_tgid_count, 1, "check_unique_tgid_count");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
459
ASSERT_EQ(skel->bss->count, 0, "check_count");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
531
ASSERT_EQ(bss->seq_err, 0, "check for unexpected err");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
796
ASSERT_EQ(len, -1, "read");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
797
ASSERT_EQ(errno, E2BIG, "read");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
816
if (!ASSERT_EQ(total_read_len, expected_read_len, "read"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
819
if (!ASSERT_EQ(skel->bss->map1_accessed, 1, "map1_accessed"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
822
if (!ASSERT_EQ(skel->bss->map2_accessed, 2, "map2_accessed"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
825
ASSERT_EQ(skel->bss->map2_seqnum1, skel->bss->map2_seqnum2, "map2_seqnum");
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
919
if (!ASSERT_EQ(skel->bss->key_sum_a, expected_key_a, "key_sum_a"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
921
if (!ASSERT_EQ(skel->bss->key_sum_b, expected_key_b, "key_sum_b"))
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
923
if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum"))
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
116
if (!ASSERT_EQ(set_bpf_cubic(&listen_fd, 1), 1,
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
135
if (!ASSERT_EQ(set_bpf_cubic(reuse_listen_fds, nr_reuse_listens),
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
156
ASSERT_EQ(check_bpf_dctcp(reuse_listen_fds, nr_reuse_listens),
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
161
ASSERT_EQ(check_bpf_dctcp(&listen_fd, 1), 1,
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
165
ASSERT_EQ(check_bpf_dctcp(est_fds, nr_est), nr_est,
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
169
ASSERT_EQ(check_bpf_dctcp(accepted_fds, nr_est), nr_est,
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt.c
83
if (!ASSERT_EQ(i, nr_est, "create established fds")) {
tools/testing/selftests/bpf/prog_tests/bpf_iter_setsockopt_unix.c
62
if (!ASSERT_EQ(skel->data->sndbuf_getsockopt[i],
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
115
ASSERT_EQ(skel->bss->nr_loops_returned, nr_loops * nested_callback_nr_loops
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
117
ASSERT_EQ(skel->bss->g_output, (4 * 3) / 2 * nested_callback_nr_loops
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
133
ASSERT_EQ(skel->bss->g_output, 0x0F, "g_output #1");
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
137
ASSERT_EQ(skel->bss->g_output, 0xF0, "g_output #2");
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
173
if (!ASSERT_EQ(val, key + 1, "bad value in the map"))
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
21
ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops,
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
29
ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops,
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
31
ASSERT_EQ(skel->bss->g_output, (500 * 499) / 2, "g_output");
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
38
ASSERT_EQ(skel->bss->err, -E2BIG, "over max limit");
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
57
ASSERT_EQ(skel->bss->nr_loops_returned, skel->data->stop_index + 1,
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
59
ASSERT_EQ(skel->bss->g_output, (50 * 49) / 2,
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
78
ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops,
tools/testing/selftests/bpf/prog_tests/bpf_loop.c
95
ASSERT_EQ(skel->bss->err, -EINVAL, "err");
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
131
if (!ASSERT_EQ(state, _TS_INVALID, "module load should block"))
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
133
if (!ASSERT_EQ(*blockingp, 1, "module load blocked")) {
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
141
if (!ASSERT_EQ(read(uffd, &uffd_msg, sizeof(uffd_msg)), sizeof(uffd_msg),
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
144
if (!ASSERT_EQ(uffd_msg.event, UFFD_EVENT_PAGEFAULT, "read uffd event is pagefault"))
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
154
if (!ASSERT_EQ(skel_fail, NULL, config->str_open)) {
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
165
ASSERT_EQ(ret, ENXIO, "verifier returns ENXIO");
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
166
ASSERT_EQ(skel->data->res_try_get_module, false, "btf_try_get_module == false");
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c
173
ASSERT_EQ(atomic_load(&state), TS_MODULE_LOAD_FAIL, "load_mod_thrd success");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
101
if (!ASSERT_EQ(len, sizeof(struct sockaddr_in), "sockaddr len"))
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
118
ASSERT_EQ(skel->bss->test_einval_reserved, -EINVAL, "Test EINVAL for reserved not set to 0");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
119
ASSERT_EQ(skel->bss->test_einval_reserved_new, -EINVAL, "Test EINVAL for reserved in new struct not set to 0");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
120
ASSERT_EQ(skel->bss->test_einval_netns_id, -EINVAL, "Test EINVAL for netns_id < -1");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
121
ASSERT_EQ(skel->bss->test_einval_len_opts, -EINVAL, "Test EINVAL for len__opts != NF_BPF_CT_OPTS_SZ");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
122
ASSERT_EQ(skel->bss->test_eproto_l4proto, -EPROTO, "Test EPROTO for l4proto != TCP or UDP");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
123
ASSERT_EQ(skel->bss->test_enonet_netns_id, -ENONET, "Test ENONET for bad but valid netns_id");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
124
ASSERT_EQ(skel->bss->test_enoent_lookup, -ENOENT, "Test ENOENT for failed lookup");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
125
ASSERT_EQ(skel->bss->test_eafnosupport, -EAFNOSUPPORT, "Test EAFNOSUPPORT for invalid len__tuple");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
126
ASSERT_EQ(skel->data->test_alloc_entry, 0, "Test for alloc new entry");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
127
ASSERT_EQ(skel->data->test_insert_entry, 0, "Test for insert new entry");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
128
ASSERT_EQ(skel->data->test_succ_lookup, 0, "Test for successful lookup");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
132
ASSERT_EQ(skel->bss->test_insert_lookup_mark, 77, "Test for insert and lookup mark value");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
133
ASSERT_EQ(skel->bss->test_status, IPS_STATUS_MASK, "Test for ct status update ");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
134
ASSERT_EQ(skel->data->test_exist_lookup, 0, "Test existing connection lookup");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
135
ASSERT_EQ(skel->bss->test_exist_lookup_mark, 43, "Test existing connection lookup ctmark");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
136
ASSERT_EQ(skel->data->test_snat_addr, 0, "Test for source natting");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
137
ASSERT_EQ(skel->data->test_dnat_addr, 0, "Test for destination natting");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
138
ASSERT_EQ(skel->data->test_ct_zone_id_alloc_entry, 0, "Test for alloc new entry in specified ct zone");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
139
ASSERT_EQ(skel->data->test_ct_zone_id_insert_entry, 0, "Test for insert new entry in specified ct zone");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
140
ASSERT_EQ(skel->data->test_ct_zone_id_succ_lookup, 0, "Test for successful lookup in specified ct_zone");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
141
ASSERT_EQ(skel->bss->test_ct_zone_dir_enoent_lookup, -ENOENT, "Test ENOENT for lookup with wrong ct zone dir");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
142
ASSERT_EQ(skel->bss->test_ct_zone_id_enoent_lookup, -ENOENT, "Test ENOENT for lookup in wrong ct zone");
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
46
if (!ASSERT_EQ(connect_fd_to_fd(fd, srv_fd, TIMEOUT_MS), 0, "connect_fd_to_fd")) {
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
121
!ASSERT_EQ(prog_infos[i].type, BPF_PROG_TYPE_RAW_TRACEPOINT, "prog_type") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
122
!ASSERT_EQ(info_len, sizeof(struct bpf_prog_info), "prog_info_len") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
130
!ASSERT_EQ(prog_infos[i].created_by_uid, my_uid, "created_by_uid") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
131
!ASSERT_EQ(prog_infos[i].nr_map_ids, 1, "nr_map_ids") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
132
!ASSERT_EQ(*(int *)(long)prog_infos[i].map_ids, map_infos[i].id, "map_ids") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
144
!ASSERT_EQ(link_infos[i].type, BPF_LINK_TYPE_RAW_TRACEPOINT, "link_type") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
145
!ASSERT_EQ(link_infos[i].prog_id, prog_infos[i].id, "prog_id") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
146
!ASSERT_EQ(link_infos[i].raw_tracepoint.tp_name, ptr_to_u64(&tp_name), "&tp_name") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
184
!ASSERT_EQ(errno, EFAULT, "bpf_prog_get_info_by_fd"))
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
198
ASSERT_EQ(info_len, sizeof(struct bpf_prog_info), "prog_info_len");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
200
ASSERT_EQ(*(int *)(long)prog_info.map_ids, saved_map_id, "map_id");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
203
ASSERT_EQ(nr_id_found, nr_iters, "prog_nr_id_found");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
237
ASSERT_EQ(info_len, sizeof(struct bpf_map_info), "info_len");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
239
ASSERT_EQ(array_value, array_magic_value, "array_value");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
243
ASSERT_EQ(nr_id_found, nr_iters, "map_nr_id_found");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
275
ASSERT_EQ(info_len, sizeof(link_info), "info_len");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
280
ASSERT_EQ(nr_id_found, nr_iters, "link_nr_id_found");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
37
ASSERT_EQ(errno, ENOENT, "bpf_prog_get_fd_by_id");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
41
ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
45
ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id");
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
86
!ASSERT_EQ(map_infos[i].type, BPF_MAP_TYPE_ARRAY, "map_type") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
87
!ASSERT_EQ(map_infos[i].key_size, sizeof(__u32), "key_size") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
88
!ASSERT_EQ(map_infos[i].value_size, sizeof(__u64), "value_size") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
89
!ASSERT_EQ(map_infos[i].max_entries, 1, "max_entries") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
90
!ASSERT_EQ(map_infos[i].map_flags, 0, "map_flags") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
91
!ASSERT_EQ(info_len, sizeof(struct bpf_map_info), "map_info_len") ||
tools/testing/selftests/bpf/prog_tests/bpf_obj_pinning.c
102
ASSERT_EQ(dst_value, src_value, "map_value_eq1");
tools/testing/selftests/bpf/prog_tests/bpf_obj_pinning.c
103
ASSERT_EQ(dst_value, 0xcafebeef, "map_value_eq2");
tools/testing/selftests/bpf/prog_tests/bpf_obj_pinning.c
176
ASSERT_EQ(dst_value, src_value, "map_value_eq");
tools/testing/selftests/bpf/prog_tests/bpf_obj_pinning.c
237
ASSERT_EQ(dst_value, src_value, "map_value_eq");
tools/testing/selftests/bpf/prog_tests/bpf_qdisc.c
203
ASSERT_EQ(fifo_skel->bss->init_called, true, "init_called");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
113
ASSERT_EQ(cubic_skel->bss->bpf_cubic_acked_called, 1, "pkts_acked called");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
169
!ASSERT_EQ(errno, ENOENT, "bpf_map_lookup_elem(sk_stg_map)"))
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
173
ASSERT_EQ(dctcp_skel->bss->stg_result, expected_stg, "stg_result");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
253
ASSERT_EQ(found, true, "expected_err_msg");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
299
ASSERT_EQ(dctcp_skel->bss->tcp_cdg_res, -ENOTSUPP, "tcp_cdg_res");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
303
ASSERT_EQ(dctcp_skel->bss->ebusy_cnt, 3, "ebusy_cnt");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
385
ASSERT_EQ(found, true, "expected_err_msg");
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
421
ASSERT_EQ(skel->bss->ca1_cnt, saved_ca1_cnt, "ca2_ca1_cnt");
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
41
ASSERT_EQ(btf__pointer_size(btf2), 8, "inherit_ptr_sz");
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
49
ASSERT_EQ(btf_is_int(t), true, "int_kind");
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
503
if (!ASSERT_EQ(btf_is_func_proto(t), true, "is_func_proto"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
173
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
177
!ASSERT_EQ(8, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
220
if (!ASSERT_EQ(btf__relocate(btf4, btf1), 0, "relocate_split"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
322
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
326
!ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
332
if (!ASSERT_EQ(btf__relocate(btf4, btf1), 0, "relocate_split"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
376
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
380
!ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
393
ASSERT_EQ(btf__relocate(btf4, btf5), -EINVAL, "relocate_split");
tools/testing/selftests/bpf/prog_tests/btf_distill.c
430
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
434
!ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
440
ASSERT_EQ(btf__relocate(btf4, btf1), -EINVAL, "relocate_split");
tools/testing/selftests/bpf/prog_tests/btf_distill.c
470
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
474
!ASSERT_EQ(2, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
488
ASSERT_EQ(btf__relocate(btf4, btf5), -EINVAL, "relocate_split");
tools/testing/selftests/bpf/prog_tests/btf_distill.c
518
if (!ASSERT_EQ(btf__distill_base(split_btf, &base_dist, &split_dist), 0,
tools/testing/selftests/bpf/prog_tests/btf_distill.c
565
if (!ASSERT_EQ(0, btf__distill_base(split, &new_base, &new_split),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
569
!ASSERT_EQ(2, btf__type_cnt(new_base), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
589
ASSERT_EQ(btf__endianness(new_base1), inverse_endianness, "new_base1 endianness");
tools/testing/selftests/bpf/prog_tests/btf_distill.c
590
ASSERT_EQ(btf__endianness(new_split1), inverse_endianness, "new_split1 endianness");
tools/testing/selftests/bpf/prog_tests/btf_distill.c
642
if (!ASSERT_EQ(0, btf__distill_base(btf2, &btf3, &btf4),
tools/testing/selftests/bpf/prog_tests/btf_distill.c
646
!ASSERT_EQ(2, btf__type_cnt(btf3), "distilled_base_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_distill.c
665
ASSERT_EQ(btf__relocate(btf4, btf5), -EINVAL, "relocate_split");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1014
ASSERT_EQ(secsize, 0, "verify section size");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1018
ASSERT_EQ(ret, 0, "unexpected return value");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
1021
ASSERT_EQ(cmp, 0, "ensure expected/actual match");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
206
ASSERT_EQ(id, 1, "enum_declaration_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
208
ASSERT_EQ(id, 2, "named_enum_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
213
ASSERT_EQ(id, 3, "anon_enum_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
218
ASSERT_EQ(id, 4, "int_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
221
ASSERT_EQ(id, 5, "fwd_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
224
ASSERT_EQ(id, 6, "struct_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
262
ASSERT_EQ(id, 7, "struct_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
303
ASSERT_EQ(id, 1, "type_tag_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
305
ASSERT_EQ(id, 2, "void_ptr_id1");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
308
ASSERT_EQ(id, 3, "type_attr_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
310
ASSERT_EQ(id, 4, "void_ptr_id2");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
313
ASSERT_EQ(id, 5, "struct_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
366
if (!ASSERT_EQ(ret, type_sz, "failed/unexpected type_sz"))
tools/testing/selftests/bpf/prog_tests/btf_dump.c
369
if (!ASSERT_EQ(ret, -E2BIG, "failed to return -E2BIG"))
tools/testing/selftests/bpf/prog_tests/btf_dump.c
721
ASSERT_EQ(ret, type_sz,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
823
ASSERT_EQ(ret, type_sz,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
850
ASSERT_EQ(ret, type_sz,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
901
if (!ASSERT_EQ(ret, type_sz, "failed/unexpected type_sz"))
tools/testing/selftests/bpf/prog_tests/btf_dump.c
980
ASSERT_EQ(char_id, 1, "char_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
982
ASSERT_EQ(int_id, 2, "int_id");
tools/testing/selftests/bpf/prog_tests/btf_dump.c
984
ASSERT_EQ(array_id, 3, "array_id");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
30
ASSERT_EQ(btf__endianness(btf), endian, "endian");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
32
ASSERT_EQ(btf__endianness(btf), swap_endian, "endian");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
44
ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
45
ASSERT_EQ(btf__type_cnt(swap_btf), btf__type_cnt(btf), "nr_types");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
56
ASSERT_EQ(bswap_16(hdr->magic), BTF_MAGIC, "btf_magic_swapped");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
57
ASSERT_EQ(raw_sz, swap_raw_sz, "raw_sizes");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
67
ASSERT_EQ(hdr->magic, BTF_MAGIC, "btf_magic_native");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
68
ASSERT_EQ(raw_sz, swap_raw_sz, "raw_sizes");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
87
ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
88
ASSERT_EQ(btf__type_cnt(swap_btf), btf__type_cnt(btf), "nr_types");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
93
ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_linkage");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
94
ASSERT_EQ(t->type, 1, "var_type");
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
150
ASSERT_EQ(fields[id].strs[str_idx], NULL, "field_str_cnt");
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
153
if (!ASSERT_EQ(*next_id, fields[id].ids[id_idx], "field_id_match"))
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
158
ASSERT_EQ(fields[id].ids[id_idx], 0, "field_id_cnt");
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
173
ASSERT_EQ(skel->bss->listen_tp_sport, srv_port, "listen tp src port");
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
176
ASSERT_EQ(skel->bss->req_sk_sport, srv_port,
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
178
ASSERT_EQ(skel->bss->gen_cookie, 0,
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
180
ASSERT_EQ(skel->bss->recv_cookie, 0,
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
183
ASSERT_EQ(skel->bss->req_sk_sport, 0,
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
187
ASSERT_EQ(skel->bss->gen_cookie, skel->bss->recv_cookie,
tools/testing/selftests/bpf/prog_tests/btf_split.c
122
ASSERT_EQ(btf_is_union(t), true, "split_union_kind");
tools/testing/selftests/bpf/prog_tests/btf_split.c
123
ASSERT_EQ(btf_vlen(t), 2, "split_union_vlen");
tools/testing/selftests/bpf/prog_tests/btf_split.c
125
ASSERT_EQ(btf__type_cnt(btf3), 6, "split_type_cnt");
tools/testing/selftests/bpf/prog_tests/btf_split.c
130
ASSERT_EQ(btf_is_int(t), true, "split_base_int");
tools/testing/selftests/bpf/prog_tests/btf_split.c
184
if (!ASSERT_EQ(btf__type_cnt(btf3), btf__type_cnt(btf6), "cmp_type_cnt"))
tools/testing/selftests/bpf/prog_tests/btf_split.c
195
if (!ASSERT_EQ(memcmp(t, ot, sizeof(*ot)), 0, "cmp_parsed_orig_btf"))
tools/testing/selftests/bpf/prog_tests/btf_split.c
74
ASSERT_EQ(btf__pointer_size(btf2), 8, "inherit_ptr_sz");
tools/testing/selftests/bpf/prog_tests/btf_split.c
82
ASSERT_EQ(btf_is_int(t), true, "int_kind");
tools/testing/selftests/bpf/prog_tests/btf_split.c
97
ASSERT_EQ(btf_is_struct(t), true, "split_struct_kind");
tools/testing/selftests/bpf/prog_tests/btf_split.c
98
ASSERT_EQ(btf_vlen(t), 3, "split_struct_vlen");
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c
35
if (!ASSERT_EQ(raw_data, MAP_FAILED, "mmap_btf_writable"))
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c
39
if (!ASSERT_EQ(raw_data, MAP_FAILED, "mmap_btf_shared"))
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c
43
if (!ASSERT_EQ(raw_data, MAP_FAILED, "mmap_btf_invalid_size"))
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c
50
if (!ASSERT_EQ(mprotect(raw_data, btf_size, PROT_READ | PROT_WRITE), -1,
tools/testing/selftests/bpf/prog_tests/btf_sysfs.c
54
if (!ASSERT_EQ(mprotect(raw_data, btf_size, PROT_READ | PROT_EXEC), -1,
tools/testing/selftests/bpf/prog_tests/btf_write.c
102
ASSERT_EQ(id, 7, "struct_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
110
ASSERT_EQ(btf_kind(t), BTF_KIND_STRUCT, "struct_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
111
ASSERT_EQ(btf_vlen(t), 2, "struct_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
112
ASSERT_EQ(btf_kflag(t), true, "struct_kflag");
tools/testing/selftests/bpf/prog_tests/btf_write.c
113
ASSERT_EQ(t->size, 8, "struct_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
116
ASSERT_EQ(m->type, 1, "f1_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
117
ASSERT_EQ(btf_member_bit_offset(t, 0), 0, "f1_bit_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
118
ASSERT_EQ(btf_member_bitfield_size(t, 0), 0, "f1_bit_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
121
ASSERT_EQ(m->type, 1, "f2_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
122
ASSERT_EQ(btf_member_bit_offset(t, 1), 32, "f2_bit_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
123
ASSERT_EQ(btf_member_bitfield_size(t, 1), 16, "f2_bit_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
131
ASSERT_EQ(id, 8, "union_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
142
ASSERT_EQ(btf_kind(t), BTF_KIND_UNION, "union_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
143
ASSERT_EQ(btf_vlen(t), 1, "union_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
144
ASSERT_EQ(btf_kflag(t), true, "union_kflag");
tools/testing/selftests/bpf/prog_tests/btf_write.c
145
ASSERT_EQ(t->size, 8, "union_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
148
ASSERT_EQ(m->type, 1, "f1_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
149
ASSERT_EQ(btf_member_bit_offset(t, 0), 0, "f1_bit_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
150
ASSERT_EQ(btf_member_bitfield_size(t, 0), 16, "f1_bit_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
157
ASSERT_EQ(id, 9, "enum_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
165
ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
166
ASSERT_EQ(btf_vlen(t), 2, "enum_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
167
ASSERT_EQ(t->size, 4, "enum_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
170
ASSERT_EQ(v->val, 1, "v1_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
173
ASSERT_EQ(v->val, 2, "v2_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
18
ASSERT_EQ(str_off, -ENOENT, "int_str_missing_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
181
ASSERT_EQ(id, 10, "struct_fwd_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
184
ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
185
ASSERT_EQ(btf_kflag(t), 0, "fwd_kflag");
tools/testing/selftests/bpf/prog_tests/btf_write.c
190
ASSERT_EQ(id, 11, "union_fwd_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
193
ASSERT_EQ(btf_kind(t), BTF_KIND_FWD, "fwd_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
194
ASSERT_EQ(btf_kflag(t), 1, "fwd_kflag");
tools/testing/selftests/bpf/prog_tests/btf_write.c
199
ASSERT_EQ(id, 12, "enum_fwd_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
202
ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM, "enum_fwd_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
203
ASSERT_EQ(btf_vlen(t), 0, "enum_fwd_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
204
ASSERT_EQ(t->size, 4, "enum_fwd_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
21
ASSERT_EQ(str_off, 1, "int_str_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
210
ASSERT_EQ(id, 13, "typedef_fwd_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
213
ASSERT_EQ(btf_kind(t), BTF_KIND_TYPEDEF, "typedef_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
214
ASSERT_EQ(t->type, 1, "typedef_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
220
ASSERT_EQ(id, 14, "func_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
223
ASSERT_EQ(t->type, 15, "func_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
224
ASSERT_EQ(btf_kind(t), BTF_KIND_FUNC, "func_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
225
ASSERT_EQ(btf_vlen(t), BTF_FUNC_GLOBAL, "func_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
230
ASSERT_EQ(id, 15, "func_proto_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
237
ASSERT_EQ(btf_kind(t), BTF_KIND_FUNC_PROTO, "func_proto_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
238
ASSERT_EQ(btf_vlen(t), 2, "func_proto_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
239
ASSERT_EQ(t->type, 1, "func_proto_ret_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
24
ASSERT_EQ(str_off, 1, "int_str_found_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
242
ASSERT_EQ(p->type, 1, "p1_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
245
ASSERT_EQ(p->type, 2, "p2_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
253
ASSERT_EQ(id, 16, "var_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
256
ASSERT_EQ(btf_kind(t), BTF_KIND_VAR, "var_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
257
ASSERT_EQ(t->type, 1, "var_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
258
ASSERT_EQ(btf_var(t)->linkage, BTF_VAR_GLOBAL_ALLOCATED, "var_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
264
ASSERT_EQ(id, 17, "datasec_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
270
ASSERT_EQ(t->size, 12, "datasec_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
271
ASSERT_EQ(btf_kind(t), BTF_KIND_DATASEC, "datasec_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
272
ASSERT_EQ(btf_vlen(t), 1, "datasec_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
274
ASSERT_EQ(vi->type, 1, "v1_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
275
ASSERT_EQ(vi->offset, 4, "v1_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
276
ASSERT_EQ(vi->size, 8, "v1_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
28
ASSERT_EQ(id, 1, "int_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
283
ASSERT_EQ(id, 18, "tag_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
286
ASSERT_EQ(btf_kind(t), BTF_KIND_DECL_TAG, "tag_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
287
ASSERT_EQ(t->type, 16, "tag_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
288
ASSERT_EQ(btf_decl_tag(t)->component_idx, -1, "tag_component_idx");
tools/testing/selftests/bpf/prog_tests/btf_write.c
293
ASSERT_EQ(id, 19, "tag_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
296
ASSERT_EQ(btf_kind(t), BTF_KIND_DECL_TAG, "tag_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
297
ASSERT_EQ(t->type, 14, "tag_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
298
ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx");
tools/testing/selftests/bpf/prog_tests/btf_write.c
304
ASSERT_EQ(id, 20, "tag_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
307
ASSERT_EQ(btf_kind(t), BTF_KIND_TYPE_TAG, "tag_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
308
ASSERT_EQ(t->type, 1, "tag_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
314
ASSERT_EQ(id, 21, "enum64_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
32
ASSERT_EQ(t->name_off, str_off, "int_name_off");
tools/testing/selftests/bpf/prog_tests/btf_write.c
321
ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM64, "enum64_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
322
ASSERT_EQ(btf_vlen(t), 2, "enum64_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
323
ASSERT_EQ(t->size, 8, "enum64_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
326
ASSERT_EQ(v64->val_hi32, 0xffffffff, "v1_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
327
ASSERT_EQ(v64->val_lo32, 0xffffffff, "v1_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
330
ASSERT_EQ(v64->val_hi32, 0x1, "v2_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
331
ASSERT_EQ(v64->val_lo32, 0x23456789, "v2_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
338
ASSERT_EQ(id, 22, "enum64_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
34
ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
343
ASSERT_EQ(btf_kind(t), BTF_KIND_ENUM64, "enum64_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
344
ASSERT_EQ(btf_vlen(t), 1, "enum64_vlen");
tools/testing/selftests/bpf/prog_tests/btf_write.c
345
ASSERT_EQ(t->size, 8, "enum64_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
348
ASSERT_EQ(v64->val_hi32, 0xffffffff, "v1_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
349
ASSERT_EQ(v64->val_lo32, 0xffffffff, "v1_val");
tools/testing/selftests/bpf/prog_tests/btf_write.c
35
ASSERT_EQ(t->size, 4, "int_sz");
tools/testing/selftests/bpf/prog_tests/btf_write.c
36
ASSERT_EQ(btf_int_encoding(t), BTF_INT_SIGNED, "int_enc");
tools/testing/selftests/bpf/prog_tests/btf_write.c
37
ASSERT_EQ(btf_int_bits(t), 32, "int_bits");
tools/testing/selftests/bpf/prog_tests/btf_write.c
421
if (!ASSERT_EQ(id, 23, "id"))
tools/testing/selftests/bpf/prog_tests/btf_write.c
56
ASSERT_EQ(id, 2, "ptr_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
58
ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
59
ASSERT_EQ(t->type, 1, "ptr_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
64
ASSERT_EQ(id, 3, "const_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
66
ASSERT_EQ(btf_kind(t), BTF_KIND_CONST, "const_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
67
ASSERT_EQ(t->type, 5, "const_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
72
ASSERT_EQ(id, 4, "volatile_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
74
ASSERT_EQ(btf_kind(t), BTF_KIND_VOLATILE, "volatile_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
75
ASSERT_EQ(t->type, 3, "volatile_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
80
ASSERT_EQ(id, 5, "restrict_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
82
ASSERT_EQ(btf_kind(t), BTF_KIND_RESTRICT, "restrict_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
83
ASSERT_EQ(t->type, 4, "restrict_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
89
ASSERT_EQ(id, 6, "array_id");
tools/testing/selftests/bpf/prog_tests/btf_write.c
91
ASSERT_EQ(btf_kind(t), BTF_KIND_ARRAY, "array_kind");
tools/testing/selftests/bpf/prog_tests/btf_write.c
92
ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
93
ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
94
ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems");
tools/testing/selftests/bpf/prog_tests/build_id.c
100
ASSERT_EQ(stack[0].status, BPF_STACK_BUILD_ID_VALID, "build_id_status");
tools/testing/selftests/bpf/prog_tests/build_id.c
101
ASSERT_EQ(memcmp(stack[0].build_id, build_id, build_id_sz), 0, "build_id_match");
tools/testing/selftests/bpf/prog_tests/build_id.c
110
ASSERT_EQ(build_id_sz, BPF_BUILD_ID_SIZE, "parse_build_id");
tools/testing/selftests/bpf/prog_tests/build_id.c
65
ASSERT_EQ(stack[0].status, BPF_STACK_BUILD_ID_VALID, "build_id_status");
tools/testing/selftests/bpf/prog_tests/build_id.c
66
ASSERT_EQ(memcmp(stack[0].build_id, build_id, build_id_sz), 0, "build_id_match");
tools/testing/selftests/bpf/prog_tests/build_id.c
68
ASSERT_EQ(stack[0].status, BPF_STACK_BUILD_ID_IP, "build_id_status");
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
107
ASSERT_EQ(t->skel->bss->cgroup_ids[level], expected_ids[level],
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
30
if (!ASSERT_EQ(inet_pton(AF_INET6, DST_ADDR, &addr.sin6_addr), 1,
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
46
return ASSERT_EQ(n, sizeof(buf), "send data") ? 0 : -1;
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
20
ASSERT_EQ(ret, expected_ret, "mknod");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
22
ASSERT_EQ(errno, expected_errno, "mknod errno");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
36
ASSERT_EQ(fd, expected_ret, "open ret for read");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
37
ASSERT_EQ(errno, expected_errno, "open errno for read");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
47
ASSERT_EQ(ret, expected_ret, "read");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
61
ASSERT_EQ(fd, expected_ret, "open ret for write");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
62
ASSERT_EQ(errno, expected_errno, "open errno for write");
tools/testing/selftests/bpf/prog_tests/cgroup_dev.c
72
ASSERT_EQ(ret, expected_ret, "write");
tools/testing/selftests/bpf/prog_tests/cgroup_get_current_cgroup_id.c
39
ASSERT_EQ(skel->bss->cg_id, ucgid, "compare cgroup ids");
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
121
if (!ASSERT_EQ(obj->bss->invocations, 1, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
125
if (!ASSERT_EQ(obj->bss->retval_value, 0, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
161
if (!ASSERT_EQ(errno, EUNATCH, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
164
if (!ASSERT_EQ(obj->bss->invocations, 2, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
168
if (!ASSERT_EQ(obj->bss->retval_value, 0, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
210
if (!ASSERT_EQ(errno, EISCONN, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
213
if (!ASSERT_EQ(obj->bss->invocations, 3, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
217
if (!ASSERT_EQ(obj->bss->retval_value, -EISCONN, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
256
if (!ASSERT_EQ(errno, EPERM, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
259
if (!ASSERT_EQ(obj->bss->invocations, 2, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
263
if (!ASSERT_EQ(obj->bss->retval_value, -EPERM, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
307
if (!ASSERT_EQ(errno, EUNATCH, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
310
if (!ASSERT_EQ(obj->bss->invocations, 3, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
314
if (!ASSERT_EQ(obj->bss->retval_value, -EUNATCH, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
349
if (!ASSERT_EQ(errno, EOPNOTSUPP, "getsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
352
if (!ASSERT_EQ(obj->bss->invocations, 1, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
356
if (!ASSERT_EQ(obj->bss->retval_value, -EOPNOTSUPP, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
358
if (!ASSERT_EQ(obj->bss->ctx_retval_value, -EOPNOTSUPP, "ctx_retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
391
if (!ASSERT_EQ(errno, EISCONN, "getsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
394
if (!ASSERT_EQ(obj->bss->invocations, 1, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
41
if (!ASSERT_EQ(errno, EUNATCH, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
44
if (!ASSERT_EQ(obj->bss->invocations, 1, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
440
if (!ASSERT_EQ(obj->bss->invocations, 3, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
444
if (!ASSERT_EQ(obj->bss->retval_value, 0, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
446
if (!ASSERT_EQ(obj->bss->ctx_retval_value, 0, "ctx_retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
494
ASSERT_EQ(err, exposed_hooks[i].expected_err, "expected_err");
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
81
if (!ASSERT_EQ(errno, EUNATCH, "setsockopt-errno"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
84
if (!ASSERT_EQ(obj->bss->invocations, 2, "invocations"))
tools/testing/selftests/bpf/prog_tests/cgroup_getset_retval.c
88
if (!ASSERT_EQ(obj->bss->retval_value, -EUNATCH, "retval_value"))
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
184
if (!ASSERT_EQ(WEXITSTATUS(status), 0,
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
204
ASSERT_EQ(sscanf(buf, "cg_id: %llu, attach_counter: %llu\n",
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
208
ASSERT_EQ(id, cgroup_id, "cgroup_id");
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
228
ASSERT_EQ(attach_counters[i], PROCESSES_PER_CGROUP,
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
232
ASSERT_EQ(attach_counters[1], attach_counters[3] + attach_counters[4],
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
235
ASSERT_EQ(attach_counters[2], attach_counters[5] + attach_counters[6],
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
238
ASSERT_EQ(attach_counters[0], attach_counters[1] + attach_counters[2],
tools/testing/selftests/bpf/prog_tests/cgroup_iter.c
301
ASSERT_EQ(skel->bss->css_task_cnt, 1, "css_task_cnt");
tools/testing/selftests/bpf/prog_tests/cgroup_iter_memcg.c
29
if (!ASSERT_EQ(bytes, 0, "read fd"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
109
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
110
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
111
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
112
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
113
ASSERT_EQ(optq.prog_ids[2], id1, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
114
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
115
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
116
ASSERT_EQ(optq.link_ids, NULL, "link_ids");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
133
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
14
ASSERT_EQ(count, expected, "count");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
15
ASSERT_EQ(err, 0, "prog_query");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
241
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
242
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
243
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
244
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
245
ASSERT_EQ(optq.prog_ids[2], id1, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
246
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
247
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
248
ASSERT_EQ(optq.link_ids, NULL, "link_ids");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
261
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
306
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
318
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
330
if (!ASSERT_EQ(err, -EINVAL, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
343
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
355
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
511
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
519
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
527
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
536
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
545
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
55
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
554
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
563
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
572
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
580
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
589
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
598
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
67
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
80
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_mprog_opts.c
92
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/cgroup_skb_direct_packet_access.c
23
ASSERT_EQ(topts.retval, 1, "retval");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
102
if (!ASSERT_EQ(cp, 5, "read"))
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
146
if (!ASSERT_EQ(cp, 5, "write"))
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
149
if (!ASSERT_EQ(cp, 5, "read"))
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
171
if (!ASSERT_EQ(skel->bss->g_packet_count, saved_packet_count,
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
273
ASSERT_EQ(skel->bss->g_unexpected, 0, "g_unexpected");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
274
ASSERT_EQ(skel->bss->g_sock_state, CLOSED, "g_sock_state");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
292
ASSERT_EQ(skel->bss->g_unexpected, 0, "g_unexpected");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
293
ASSERT_EQ(skel->bss->g_sock_state, TIME_WAIT, "g_sock_state");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
311
ASSERT_EQ(skel->bss->g_unexpected, 0, "g_unexpected");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
312
ASSERT_EQ(skel->bss->g_sock_state, CLOSED, "g_sock_state");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
330
ASSERT_EQ(skel->bss->g_unexpected, 0, "g_unexpected");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
331
ASSERT_EQ(skel->bss->g_sock_state, TIME_WAIT, "g_sock_state");
tools/testing/selftests/bpf/prog_tests/cgroup_tcp_skb.c
99
if (!ASSERT_EQ(cp, 5, "write"))
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
136
if (!ASSERT_EQ(write(pipe_fd[1], &ret, sizeof(ret)), sizeof(ret), "write pipe"))
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
145
ASSERT_EQ(read(pipe_fd[0], &res, sizeof(res)), sizeof(res), "read res");
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
146
ASSERT_EQ(waitpid(pid, NULL, 0), pid, "wait on child");
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
71
ASSERT_EQ(skel->bss->invocations, 0, "pre_rmdir_count");
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
75
ASSERT_EQ(skel->bss->invocations, 1, "post_rmdir_count");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
131
ASSERT_EQ(val.cookie_value, cookie_expected_value, "cookie_value");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
210
ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
242
ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
58
if (!ASSERT_EQ(val2, 1, "map_lookup_elem, invalid val"))
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
78
ASSERT_EQ(skel->bss->enter_cnt, 3, "enter_cnt");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
79
ASSERT_EQ(skel->bss->exit_cnt, 3, "exit_cnt");
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
80
ASSERT_EQ(skel->bss->mismatch_cnt, 0, "mismatch_cnt");
tools/testing/selftests/bpf/prog_tests/check_mtu.c
100
ASSERT_EQ(mtu_result, mtu_expect, "MTU-compare-user");
tools/testing/selftests/bpf/prog_tests/check_mtu.c
149
ASSERT_EQ(topts.retval, retval_expect, "retval");
tools/testing/selftests/bpf/prog_tests/check_mtu.c
153
ASSERT_EQ(mtu_result, mtu_expect, "MTU-compare-user");
tools/testing/selftests/bpf/prog_tests/check_mtu.c
174
ASSERT_EQ(topts.retval, BPF_OK, "retval");
tools/testing/selftests/bpf/prog_tests/check_mtu.c
96
ASSERT_EQ(topts.retval, retval_expect, "retval");
tools/testing/selftests/bpf/prog_tests/connect_ping.c
59
if (!ASSERT_EQ(skel->bss->invocations_v4, family == AF_INET ? 1 : 0,
tools/testing/selftests/bpf/prog_tests/connect_ping.c
62
if (!ASSERT_EQ(skel->bss->invocations_v6, family == AF_INET6 ? 1 : 0,
tools/testing/selftests/bpf/prog_tests/connect_ping.c
65
if (!ASSERT_EQ(skel->bss->has_error, 0, "has_error"))
tools/testing/selftests/bpf/prog_tests/connect_ping.c
74
if (!ASSERT_EQ(sa4.sin_family, family, "sin_family"))
tools/testing/selftests/bpf/prog_tests/connect_ping.c
76
if (!ASSERT_EQ(sa4.sin_addr.s_addr,
tools/testing/selftests/bpf/prog_tests/connect_ping.c
82
if (!ASSERT_EQ(sa6.sin6_family, AF_INET6, "sin6_family"))
tools/testing/selftests/bpf/prog_tests/connect_ping.c
84
if (!ASSERT_EQ(memcmp(&sa6.sin6_addr,
tools/testing/selftests/bpf/prog_tests/core_autosize.c
100
ASSERT_EQ(id, 6, "struct_id");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
174
ASSERT_EQ(out.ptr_samesized, 0x01020304, "ptr_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
175
ASSERT_EQ(out.val1_samesized, 0x1020304050607080, "val1_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
176
ASSERT_EQ(out.val2_samesized, 0x0a0b0c0d, "val2_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
177
ASSERT_EQ(out.val3_samesized, 0xfeed, "val3_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
178
ASSERT_EQ(out.val4_samesized, 0xb9, "val4_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
179
ASSERT_EQ(out.output_samesized.ptr, 0x01020304, "ptr_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
180
ASSERT_EQ(out.output_samesized.val1, 0x1020304050607080, "val1_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
181
ASSERT_EQ(out.output_samesized.val2, 0x0a0b0c0d, "val2_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
182
ASSERT_EQ(out.output_samesized.val3, 0xfeed, "val3_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
183
ASSERT_EQ(out.output_samesized.val4, 0xb9, "val4_samesized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
185
ASSERT_EQ(out.ptr_downsized, 0x01020304, "ptr_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
186
ASSERT_EQ(out.val1_downsized, 0x1020304050607080, "val1_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
187
ASSERT_EQ(out.val2_downsized, 0x0a0b0c0d, "val2_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
188
ASSERT_EQ(out.val3_downsized, 0xfeed, "val3_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
189
ASSERT_EQ(out.val4_downsized, 0xb9, "val4_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
190
ASSERT_EQ(out.output_downsized.ptr, 0x01020304, "ptr_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
191
ASSERT_EQ(out.output_downsized.val1, 0x1020304050607080, "val1_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
192
ASSERT_EQ(out.output_downsized.val2, 0x0a0b0c0d, "val2_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
193
ASSERT_EQ(out.output_downsized.val3, 0xfeed, "val3_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
194
ASSERT_EQ(out.output_downsized.val4, 0xb9, "val4_downsized");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
196
ASSERT_EQ(out.ptr_probed, 0x01020304, "ptr_probed");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
197
ASSERT_EQ(out.val1_probed, 0x1020304050607080, "val1_probed");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
198
ASSERT_EQ(out.val2_probed, 0x0a0b0c0d, "val2_probed");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
199
ASSERT_EQ(out.val3_probed, 0xfeed, "val3_probed");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
200
ASSERT_EQ(out.val4_probed, 0xb9, "val4_probed");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
88
ASSERT_EQ(char_id, 1, "char_id");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
90
ASSERT_EQ(short_id, 2, "short_id");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
93
ASSERT_EQ(int_id, 3, "int_id");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
95
ASSERT_EQ(long_long_id, 4, "long_long_id");
tools/testing/selftests/bpf/prog_tests/core_autosize.c
97
ASSERT_EQ(void_ptr_id, 5, "void_ptr_id");
tools/testing/selftests/bpf/prog_tests/core_extern.c
160
ASSERT_EQ(got[j], exp[j], "result");
tools/testing/selftests/bpf/prog_tests/core_read_macros.c
56
ASSERT_EQ(bss->k_probe_out, 0x1234, "k_probe_out");
tools/testing/selftests/bpf/prog_tests/core_read_macros.c
57
ASSERT_EQ(bss->k_core_out, 0xabcd, "k_core_out");
tools/testing/selftests/bpf/prog_tests/core_read_macros.c
59
ASSERT_EQ(bss->u_probe_out, 0x5678, "u_probe_out");
tools/testing/selftests/bpf/prog_tests/core_read_macros.c
60
ASSERT_EQ(bss->u_core_out, 0xdbca, "u_core_out");
tools/testing/selftests/bpf/prog_tests/core_retro.c
34
ASSERT_EQ(res, my_pid, "pid_check");
tools/testing/selftests/bpf/prog_tests/crypto_sanity.c
152
if (!ASSERT_EQ(err, sizeof(plain_text), "encrypt send"))
tools/testing/selftests/bpf/prog_tests/crypto_sanity.c
177
if (!ASSERT_EQ(err, sizeof(afalg_dst), "decrypt send"))
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
133
ASSERT_EQ(bpf_program__type(skel->progs.abc1), BPF_PROG_TYPE_RAW_TRACEPOINT, "abc1_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
136
ASSERT_EQ(bpf_program__type(skel->progs.abc2), BPF_PROG_TYPE_RAW_TRACEPOINT, "abc2_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
137
ASSERT_EQ(bpf_program__type(skel->progs.custom1), BPF_PROG_TYPE_TRACEPOINT, "custom1_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
138
ASSERT_EQ(bpf_program__type(skel->progs.custom2), BPF_PROG_TYPE_TRACEPOINT, "custom2_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
139
ASSERT_EQ(bpf_program__type(skel->progs.kprobe1), BPF_PROG_TYPE_TRACEPOINT, "kprobe1_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
140
ASSERT_EQ(bpf_program__type(skel->progs.xyz), BPF_PROG_TYPE_SYSCALL, "xyz_type");
tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c
155
ASSERT_EQ(errno, EOPNOTSUPP, "xyz_attach_err");
tools/testing/selftests/bpf/prog_tests/decap_sanity.c
62
if (!ASSERT_EQ(err, sizeof(buf), "send"))
tools/testing/selftests/bpf/prog_tests/deny_namespace.c
60
ASSERT_EQ(create_user_ns(), EPERM, "unpriv new user ns");
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
160
ASSERT_EQ(read(iter_fd, buf, sizeof(buf)), 0, "read");
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
185
ASSERT_EQ(sscanf(line, "%ld", &bufinfo.inode), 1,
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
188
ASSERT_EQ(sscanf(line, "%ld", &bufinfo.size), 1,
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
191
ASSERT_EQ(sscanf(line, "%s", bufinfo.name), 1,
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
194
ASSERT_EQ(sscanf(line, "%31s", bufinfo.exporter), 1,
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
211
ASSERT_EQ(f % FIELD_COUNT, INODE, "number of fields");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
122
ASSERT_EQ(skel->bss->test_2_args[i], args[i], name);
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
170
ASSERT_EQ(err, -EINVAL, "test_run");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
23
ASSERT_EQ(libbpf_get_error(link), -EOPNOTSUPP, "dummy_st_ops_attach");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
45
ASSERT_EQ(attr.retval, 0xf2f3f4f5, "test_ret");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
90
ASSERT_EQ(in_state.val, 0x5a, "test_ptr_ret");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
91
ASSERT_EQ(attr.retval, exp_retval, "test_ret");
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
92
ASSERT_EQ(trace_skel->bss->val, exp_retval, "fentry_val");
tools/testing/selftests/bpf/prog_tests/dynptr.c
178
ASSERT_EQ(skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/empty_skb.c
136
ASSERT_EQ(err, tests[i].err, buf);
tools/testing/selftests/bpf/prog_tests/empty_skb.c
141
ASSERT_EQ(bpf_obj->bss->ret, expected_ret, buf);
tools/testing/selftests/bpf/prog_tests/exceptions.c
100
if (!ASSERT_EQ(exceptions_ext__load(eskel), load_ret, \
tools/testing/selftests/bpf/prog_tests/exceptions.c
45
ASSERT_EQ(ropts.retval, return_val, #_prog " prog run retval"); \
tools/testing/selftests/bpf/prog_tests/fd_array.c
139
if (!ASSERT_EQ(*nr_map_ids, expected, "unexpected nr_map_ids"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
191
if (!ASSERT_EQ(map_exists(map_ids[0]), true, "map_ids[0] should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
193
if (!ASSERT_EQ(map_exists(map_ids[1]), true, "map_ids[1] should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
230
if (!ASSERT_EQ(map_exists(map_ids[0]), true, "map should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
232
if (!ASSERT_EQ(map_exists(map_ids[1]), true, "map should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
265
if (!ASSERT_EQ(map_exists(map_ids[0]), true, "map should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
315
if (!ASSERT_EQ(err, 0, "get_btf_id_by_fd"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
323
if (!ASSERT_EQ(btf_exists(btf_id), true, "btf should exist"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
367
if (!ASSERT_EQ(prog_fd, -EBADF, "prog should have been rejected with -EBADF"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
376
if (!ASSERT_EQ(prog_fd, -EINVAL, "prog should have been rejected with -EINVAL"))
tools/testing/selftests/bpf/prog_tests/fd_array.c
412
ASSERT_EQ(prog_fd, -E2BIG, "prog should have been rejected with -E2BIG");
tools/testing/selftests/bpf/prog_tests/fd_htab_lookup.c
188
ASSERT_EQ(ret, NULL, desc);
tools/testing/selftests/bpf/prog_tests/fentry_fexit.c
49
ASSERT_EQ(fentry_res[i], 1, "fentry result");
tools/testing/selftests/bpf/prog_tests/fentry_fexit.c
50
ASSERT_EQ(fexit_res[i], 1, "fexit result");
tools/testing/selftests/bpf/prog_tests/fentry_test.c
26
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/fentry_test.c
30
if (!ASSERT_EQ(result[i], 1, "fentry_result"))
tools/testing/selftests/bpf/prog_tests/fentry_test.c
81
ASSERT_EQ(fentry_skel->bss->test1_result, 1,
tools/testing/selftests/bpf/prog_tests/fentry_test.c
83
ASSERT_EQ(fentry_skel->bss->test2_result, 1,
tools/testing/selftests/bpf/prog_tests/fentry_test.c
85
ASSERT_EQ(fentry_skel->bss->test3_result, 1,
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
142
ASSERT_EQ(link_info.tracing.attach_type,
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
145
ASSERT_EQ(link_info.tracing.target_obj_id, tgt_prog_id, "link_tgt_obj_id");
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
146
ASSERT_EQ(link_info.tracing.target_btf_id, btf_id, "link_tgt_btf_id");
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
160
ASSERT_EQ(topts.retval, 0, "prog_run_ret");
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
515
ASSERT_EQ(info.btf_id, 0, "info.btf_id");
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
516
ASSERT_EQ(info.attach_btf_id, btf_id, "info.attach_btf_id");
tools/testing/selftests/bpf/prog_tests/fexit_test.c
26
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/fexit_test.c
30
if (!ASSERT_EQ(result[i], 1, "fexit_result"))
tools/testing/selftests/bpf/prog_tests/fexit_test.c
81
ASSERT_EQ(fexit_skel->bss->test1_result, 1,
tools/testing/selftests/bpf/prog_tests/fexit_test.c
83
ASSERT_EQ(fexit_skel->bss->test2_result, 1,
tools/testing/selftests/bpf/prog_tests/fexit_test.c
85
ASSERT_EQ(fexit_skel->bss->test3_result, 1,
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
229
if (!ASSERT_EQ(ret, 1, "inet_pton(IPV6_IFACE_ADDR)"))
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
237
if (!ASSERT_EQ(ret, 1, "convert IP[46] address"))
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
243
if (!ASSERT_EQ(ret, 1, "inet_pton(IPV4_IFACE_ADDR)"))
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
266
ASSERT_EQ(ret, 1, "inet_pton(AF_INET6, expected_str)");
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
271
ASSERT_EQ(ret, 1, "inet_pton(AF_INET, expected_str)");
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
346
ASSERT_EQ(skel->bss->fib_lookup_ret, tests[i].expected_ret,
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
356
if (!ASSERT_EQ(ret, 0, "dmac not match")) {
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
366
if (!ASSERT_EQ(skel->bss->fib_params.tbid, 0,
tools/testing/selftests/bpf/prog_tests/file_reader.c
101
ASSERT_EQ(skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/file_reader.c
102
ASSERT_EQ(skel->bss->run_success, 1, "run_success");
tools/testing/selftests/bpf/prog_tests/file_reader.c
45
if (!ASSERT_EQ(n, sizeof(file_contents), "Read /proc/self/exe\n"))
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
100
ASSERT_EQ(info.perf_event.uprobe.offset, offset, "uprobe_offset");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
101
ASSERT_EQ(info.perf_event.uprobe.ref_ctr_offset, ref_ctr_offset, "uprobe_ref_ctr_offset");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
103
ASSERT_EQ(info.perf_event.uprobe.name_len, strlen(UPROBE_FILE) + 1,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
111
ASSERT_EQ(info.perf_event.uprobe.cookie, PERF_EVENT_COOKIE, "uprobe_cookie");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
115
ASSERT_EQ(err, 0, "cmp_file_name");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
118
ASSERT_EQ(info.perf_event.event.type, PERF_TYPE_SOFTWARE, "event_type");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
119
ASSERT_EQ(info.perf_event.event.config, PERF_COUNT_SW_PAGE_FAULTS, "event_config");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
120
ASSERT_EQ(info.perf_event.event.cookie, PERF_EVENT_COOKIE, "event_cookie");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
139
ASSERT_EQ(err, -EINVAL, "invalid_buff_and_len");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
143
ASSERT_EQ(err, -EFAULT, "invalid_buff");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
147
ASSERT_EQ(err, -EINVAL, "invalid_len");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
149
ASSERT_EQ(info.perf_event.kprobe.addr, 0, "func_addr");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
150
ASSERT_EQ(info.perf_event.kprobe.offset, 0, "func_offset");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
151
ASSERT_EQ(info.perf_event.type, 0, "type");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
288
if (!ASSERT_EQ(info.type, BPF_LINK_TYPE_KPROBE_MULTI, "kmulti_type"))
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
291
ASSERT_EQ(info.kprobe_multi.count, KMULTI_CNT, "func_cnt");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
294
ASSERT_EQ(flags, 0, "kmulti_flags");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
304
ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
305
ASSERT_EQ(cookies[i], has_cookies ? kmulti_cookies[i] : 0,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
322
ASSERT_EQ(err, -EINVAL, "no_addr");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
327
ASSERT_EQ(err, -EINVAL, "no_cnt");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
333
ASSERT_EQ(err, -ENOSPC, "smaller_cnt");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
335
ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
336
ASSERT_EQ(addrs[i], 0, "kmulti_addrs");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
342
ASSERT_EQ(err, 0, "bigger_cnt");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
344
ASSERT_EQ(addrs[i], kmulti_addrs[i], "kmulti_addrs");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
349
ASSERT_EQ(err, -EFAULT, "invalid_buff_addrs");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
355
ASSERT_EQ(err, -EFAULT, "invalid_buff_cookies");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
362
ASSERT_EQ(err, -EINVAL, "invalid_cookies_count");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
446
ASSERT_EQ(info.uprobe_multi.count, 3, "info.uprobe_multi.count");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
447
ASSERT_EQ(info.uprobe_multi.path_size, strlen(path) + 1,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
467
if (!ASSERT_EQ(info.type, BPF_LINK_TYPE_UPROBE_MULTI, "info.type"))
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
470
ASSERT_EQ(info.uprobe_multi.pid, getpid(), "info.uprobe_multi.pid");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
471
ASSERT_EQ(info.uprobe_multi.count, 3, "info.uprobe_multi.count");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
472
ASSERT_EQ(info.uprobe_multi.flags & BPF_F_KPROBE_MULTI_RETURN,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
474
ASSERT_EQ(info.uprobe_multi.path_size, strlen(path) + 1, "info.uprobe_multi.path_size");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
479
ASSERT_EQ(offsets_buf[i], offsets[i], "info.uprobe_multi.offsets");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
481
ASSERT_EQ(cookies_buf[i], cookies[i], "info.uprobe_multi.cookies");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
483
ASSERT_EQ(ref_ctr_offsets_buf[i], ref_ctr_offsets[i],
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
504
ASSERT_EQ(err, -EINVAL, "failed_upath_size");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
518
ASSERT_EQ(err, -EFAULT, "failed_bad_path_ptr");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
524
ASSERT_EQ(err, -EINVAL, "failed_count");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
531
ASSERT_EQ(err, -ENOSPC, "failed_small_count");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
538
ASSERT_EQ(err, -EFAULT, "failed_wrong_offsets");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
54
if (!ASSERT_EQ(info.type, BPF_LINK_TYPE_PERF_EVENT, "link_type"))
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
56
if (!ASSERT_EQ(info.perf_event.type, type, "perf_type_match"))
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
62
ASSERT_EQ(info.perf_event.kprobe.offset, offset, "kprobe_offset");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
66
ASSERT_EQ(info.perf_event.kprobe.addr, addr + entry_offset,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
69
ASSERT_EQ(info.perf_event.kprobe.cookie, PERF_EVENT_COOKIE, "kprobe_cookie");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
71
ASSERT_EQ(info.perf_event.kprobe.name_len, strlen(KPROBE_FUNC) + 1,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
81
ASSERT_EQ(err, 0, "cmp_kprobe_func_name");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
84
ASSERT_EQ(info.perf_event.tracepoint.name_len, strlen(TP_NAME) + 1,
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
92
ASSERT_EQ(info.perf_event.tracepoint.cookie, PERF_EVENT_COOKIE, "tracepoint_cookie");
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
96
ASSERT_EQ(err, 0, "cmp_tp_name");
tools/testing/selftests/bpf/prog_tests/find_vma.c
13
ASSERT_EQ(skel->bss->found_vm_exec, 1, "found_vm_exec");
tools/testing/selftests/bpf/prog_tests/find_vma.c
14
ASSERT_EQ(skel->data->find_addr_ret, 0, "find_addr_ret");
tools/testing/selftests/bpf/prog_tests/find_vma.c
15
ASSERT_EQ(skel->data->find_zero_ret, expected_find_zero_ret, "find_zero_ret");
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
533
ASSERT_EQ(errno, EEXIST,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
554
ASSERT_EQ(errno, EEXIST,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
683
if (!ASSERT_EQ(err, sizeof(tests[i].pkt), "tx_tap"))
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
839
ASSERT_EQ(topts.retval, tests[i].retval, "test_run retval");
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
844
ASSERT_EQ(topts.data_size_out, sizeof(flow_keys),
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
438
if (!ASSERT_EQ(rbuf, TEST_PACKET_PATTERN, "check pkt pattern"))
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
788
ASSERT_EQ(run_test(test, 0), TEST_PACKETS_COUNT,
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
790
ASSERT_EQ(run_test(test, 1), 0, "test second port");
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
791
ASSERT_EQ(run_test(test, 2), TEST_PACKETS_COUNT,
tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c
45
ASSERT_EQ(topts.data_size_out, sizeof(flow_keys),
tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c
47
ASSERT_EQ(topts.retval, BPF_OK, "test_run retval");
tools/testing/selftests/bpf/prog_tests/for_each.c
131
ASSERT_EQ(skel->bss->arraymap_output, expected_total, "array_output");
tools/testing/selftests/bpf/prog_tests/for_each.c
132
ASSERT_EQ(skel->bss->cpu + 1, skel->bss->percpu_val, "percpu_val");
tools/testing/selftests/bpf/prog_tests/for_each.c
194
ASSERT_EQ(skel->bss->data_output, array_total, "array output");
tools/testing/selftests/bpf/prog_tests/for_each.c
201
ASSERT_EQ(skel->bss->data_output, hash_total, "hash output");
tools/testing/selftests/bpf/prog_tests/for_each.c
61
ASSERT_EQ(skel->bss->hashmap_output, 4, "hashmap_output");
tools/testing/selftests/bpf/prog_tests/for_each.c
62
ASSERT_EQ(skel->bss->hashmap_elems, max_entries, "hashmap_elems");
tools/testing/selftests/bpf/prog_tests/for_each.c
68
ASSERT_EQ(skel->bss->percpu_called, 1, "percpu_called");
tools/testing/selftests/bpf/prog_tests/for_each.c
70
ASSERT_EQ(skel->bss->percpu_map_elems, 1, "percpu_map_elems");
tools/testing/selftests/bpf/prog_tests/for_each.c
71
ASSERT_EQ(skel->bss->percpu_key, 1, "percpu_key");
tools/testing/selftests/bpf/prog_tests/for_each.c
72
ASSERT_EQ(skel->bss->percpu_val, skel->bss->cpu + 1, "percpu_val");
tools/testing/selftests/bpf/prog_tests/for_each.c
73
ASSERT_EQ(skel->bss->percpu_output, 100, "percpu_output");
tools/testing/selftests/bpf/prog_tests/free_timer.c
163
ASSERT_EQ(err | (long)ret, 0, "start_timer");
tools/testing/selftests/bpf/prog_tests/free_timer.c
166
ASSERT_EQ(err | (long)ret, 0, "overwrite_timer");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
101
ASSERT_EQ(err, sizeof(skel->data->value_bar), "getxattr size bar");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
102
ASSERT_EQ(strncmp(value_out, skel->data->value_bar, sizeof(skel->data->value_bar)), 0,
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
215
if (!ASSERT_EQ(err, 4096, "write_file"))
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
263
ASSERT_EQ(skel->bss->got_fsverity, 1, "got_fsverity");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
264
ASSERT_EQ(skel->bss->digest_matches, 1, "digest_matches");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
60
ASSERT_EQ(err, -1, "getxattr_return");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
61
ASSERT_EQ(errno, EINVAL, "getxattr_errno");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
62
ASSERT_EQ(skel->bss->found_xattr_from_file, 1, "found_xattr_from_file");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
63
ASSERT_EQ(skel->bss->found_xattr_from_dentry, 1, "found_xattr_from_dentry");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
65
ASSERT_EQ(err, strlen(value) + 1, "getxattr_return");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
66
ASSERT_EQ(skel->bss->found_xattr_from_file, 0, "found_xattr_from_file");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
67
ASSERT_EQ(skel->bss->found_xattr_from_dentry, 0, "found_xattr_from_dentry");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
85
ASSERT_EQ(err, sizeof(value_foo), "getxattr size foo");
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
86
ASSERT_EQ(strncmp(value_out, value_foo, sizeof(value_foo)), 0, "strncmp value_foo");
tools/testing/selftests/bpf/prog_tests/fsession_test.c
20
if (!ASSERT_EQ(((__u64 *)skel->bss)[i], 1, "test_result"))
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
25
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
34
ASSERT_EQ(topts.retval >> 16, 1, "test_run");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
35
ASSERT_EQ(topts.retval & 0xffff, 1234 + 29, "test_run");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
38
ASSERT_EQ(skel->bss->test1_result, 1, "test1_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
39
ASSERT_EQ(skel->bss->test2_result, 1, "test2_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
40
ASSERT_EQ(skel->bss->test3_result, 1, "test3_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
41
ASSERT_EQ(skel->bss->test4_result, 1, "test4_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
42
ASSERT_EQ(skel->bss->test5_result, 1, "test5_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
43
ASSERT_EQ(skel->bss->test6_result, 1, "test6_result");
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
44
ASSERT_EQ(skel->bss->test7_result, 1, "test7_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
122
ASSERT_EQ(skel->bss->test1_result, 1, "test1_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
33
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
42
ASSERT_EQ(skel->bss->test1_result, 1, "test1_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
43
ASSERT_EQ(skel->bss->test2_result, 1, "test2_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
44
ASSERT_EQ(skel->bss->test3_result, 1, "test3_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
45
ASSERT_EQ(skel->bss->test4_result, 1, "test4_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
46
ASSERT_EQ(skel->bss->test5_result, 1, "test5_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
47
ASSERT_EQ(skel->bss->test7_result, 1, "test7_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
48
ASSERT_EQ(skel->bss->test8_result, 1, "test8_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
49
ASSERT_EQ(skel->bss->test9_entry_result, 1, "test9_entry_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
50
ASSERT_EQ(skel->bss->test9_exit_result, 1, "test9_exit_result");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
96
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
98
ASSERT_EQ(skel->bss->test6_result, 1, "test6_result");
tools/testing/selftests/bpf/prog_tests/global_data.c
117
if (!ASSERT_EQ(map, map2, "same_maps"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
112
if (!ASSERT_EQ(bpf_map__value_size(map), desired_sz, "resize"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
127
if (!ASSERT_EQ(actual_sz, desired_sz, "bpf_map__initial_value (size)"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
152
if (!ASSERT_EQ(skel->bss->sum, array_len, "sum"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
185
!ASSERT_EQ(bpf_map__btf_key_type_id(map), 0, ".data.custom clear btf key") ||
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
186
!ASSERT_EQ(bpf_map__btf_value_type_id(map), 0, ".data.custom clear btf val"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
198
!ASSERT_EQ(bpf_map__btf_key_type_id(map), 0, ".data.non_array clear btf key") ||
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
199
!ASSERT_EQ(bpf_map__btf_value_type_id(map), 0, ".data.non_array clear btf val"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
212
if (!ASSERT_EQ(desired_sz % element_sz, 0, "my_array_first alignment"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
217
!ASSERT_EQ(bpf_map__btf_key_type_id(map), 0, ".data.array_not_last clear btf key") ||
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
218
!ASSERT_EQ(bpf_map__btf_value_type_id(map), 0, ".data.array_not_last clear btf val"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
42
if (!ASSERT_EQ(bpf_map__value_size(map), desired_sz, "resize"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
57
if (!ASSERT_EQ(actual_sz, desired_sz, "bpf_map__initial_value (size)"))
tools/testing/selftests/bpf/prog_tests/global_map_resize.c
82
if (!ASSERT_EQ(skel->bss->sum, array_len, "sum"))
tools/testing/selftests/bpf/prog_tests/htab_update.c
131
ASSERT_EQ(thread_err, NULL, "update error");
tools/testing/selftests/bpf/prog_tests/htab_update.c
62
ASSERT_EQ(skel->bss->update_err, -EDEADLK, "no reentrancy");
tools/testing/selftests/bpf/prog_tests/inner_array_lookup.c
27
ASSERT_EQ(val, 2, "value_is_2");
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
249
if (!ASSERT_EQ(skel->bss->shootdowns, 0, "shootdowns"))
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
263
if (!ASSERT_EQ(len, sizeof(MAGIC_MESSAGE) - 1, "client short read"))
tools/testing/selftests/bpf/prog_tests/iters.c
147
ASSERT_EQ(bpf_iter_start, start, "vma->vm_start match");
tools/testing/selftests/bpf/prog_tests/iters.c
148
ASSERT_EQ(bpf_iter_end, end, "vma->vm_end match");
tools/testing/selftests/bpf/prog_tests/iters.c
152
if (!ASSERT_EQ(skel->bss->vmas_seen, seen, "vmas_seen_eq"))
tools/testing/selftests/bpf/prog_tests/iters.c
194
ASSERT_EQ(skel->bss->procs_cnt, 1, "procs_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
195
ASSERT_EQ(skel->bss->threads_cnt, thread_num + 2, "threads_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
196
ASSERT_EQ(skel->bss->proc_threads_cnt, thread_num + 2, "proc_threads_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
197
ASSERT_EQ(skel->bss->invalid_cnt, 0, "invalid_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
234
if (!ASSERT_EQ(err, -1, "stack_mprotect") ||
tools/testing/selftests/bpf/prog_tests/iters.c
235
!ASSERT_EQ(errno, EPERM, "stack_mprotect"))
tools/testing/selftests/bpf/prog_tests/iters.c
238
ASSERT_EQ(skel->bss->css_task_cnt, 1, "css_task_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
287
ASSERT_EQ(skel->bss->pre_order_cnt, cg_nr, "pre_order_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
288
ASSERT_EQ(skel->bss->first_cg_id, get_cgroup_id(cgs[0].path), "first_cg_id");
tools/testing/selftests/bpf/prog_tests/iters.c
290
ASSERT_EQ(skel->bss->post_order_cnt, cg_nr, "post_order_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
291
ASSERT_EQ(skel->bss->last_cg_id, get_cgroup_id(cgs[0].path), "last_cg_id");
tools/testing/selftests/bpf/prog_tests/iters.c
292
ASSERT_EQ(skel->bss->children_cnt, 3, "children_cnt");
tools/testing/selftests/bpf/prog_tests/iters.c
293
ASSERT_EQ(skel->bss->tree_high, 3, "tree_high");
tools/testing/selftests/bpf/prog_tests/iters.c
42
ASSERT_EQ(skel->bss->res_##case_name, \
tools/testing/selftests/bpf/prog_tests/iters.c
92
ASSERT_EQ(skel->bss->res_##case_name, \
tools/testing/selftests/bpf/prog_tests/jit_probe_mem.c
25
ASSERT_EQ(skel->data->total_sum, 192, "jit_probe_mem total_sum");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
130
if (!ASSERT_EQ(topts.retval, param->retval, "retval"))
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
145
ASSERT_EQ(topts.retval, param->retval, "retval");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
205
if (!ASSERT_EQ(err, param->retval, param->prog_name))
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
251
ASSERT_EQ(topts.retval, 10, "test1-retval");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
253
ASSERT_EQ(skel->data->sk_state_res, BPF_TCP_CLOSE, "sk_state_res");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
275
ASSERT_EQ(topts.retval, 10, "test1-retval");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
277
ASSERT_EQ(skel->data->sk_state_res, BPF_TCP_CLOSE, "sk_state_res");
tools/testing/selftests/bpf/prog_tests/kfunc_call.c
307
ASSERT_EQ(test_destructive_open_and_load(), -13, "no_caps_failure");
tools/testing/selftests/bpf/prog_tests/kfunc_dynptr_param.c
98
ASSERT_EQ(skel->bss->err, expected_runtime_err, "err");
tools/testing/selftests/bpf/prog_tests/kfunc_module_order.c
16
if (!ASSERT_EQ((int)opts->retval, 0, bpf_program__name(prog)))
tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c
111
ASSERT_EQ(read(iter_fd, buf, sizeof(buf)), 0, "read");
tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c
27
ASSERT_EQ(skel->bss->task_struct_found, 1, "task_struct_found");
tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c
62
ASSERT_EQ(r.obj_size, objsize, "kmem_cache_objsize");
tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c
67
ASSERT_EQ(skel->bss->kmem_cache_seen, seen, "kmem_cache_seen_eq");
tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c
87
ASSERT_EQ(skel->bss->open_coded_seen, skel->bss->kmem_cache_seen, "open_code_seen_eq");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
24
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
252
if (!ASSERT_EQ(saved_error, -EINVAL, "fail_1_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
26
ASSERT_EQ(skel->bss->kprobe_test1_result, 1, "kprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
267
if (!ASSERT_EQ(saved_error, -EINVAL, "fail_2_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
27
ASSERT_EQ(skel->bss->kprobe_test2_result, 1, "kprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
28
ASSERT_EQ(skel->bss->kprobe_test3_result, 1, "kprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
282
if (!ASSERT_EQ(saved_error, -EINVAL, "fail_3_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
29
ASSERT_EQ(skel->bss->kprobe_test4_result, 1, "kprobe_test4_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
297
if (!ASSERT_EQ(saved_error, -EINVAL, "fail_4_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
30
ASSERT_EQ(skel->bss->kprobe_test5_result, 1, "kprobe_test5_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
31
ASSERT_EQ(skel->bss->kprobe_test6_result, 1, "kprobe_test6_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
312
if (!ASSERT_EQ(saved_error, -EINVAL, "fail_5_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
32
ASSERT_EQ(skel->bss->kprobe_test7_result, 1, "kprobe_test7_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
327
if (!ASSERT_EQ(saved_error, -E2BIG, "fail_6_error"))
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
33
ASSERT_EQ(skel->bss->kprobe_test8_result, 1, "kprobe_test8_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
356
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
36
ASSERT_EQ(skel->bss->kretprobe_test1_result, 1, "kretprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
360
ASSERT_EQ(skel->bss->kprobe_session_result[i], 2, "kprobe_session_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
364
ASSERT_EQ(skel->bss->kprobe_session_result[i], 1, "kprobe_session_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
37
ASSERT_EQ(skel->bss->kretprobe_test2_result, 1, "kretprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
38
ASSERT_EQ(skel->bss->kretprobe_test3_result, 1, "kretprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
39
ASSERT_EQ(skel->bss->kretprobe_test4_result, 1, "kretprobe_test4_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
392
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
394
ASSERT_EQ(skel->bss->test_kprobe_1_result, 1, "test_kprobe_1_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
395
ASSERT_EQ(skel->bss->test_kprobe_2_result, 2, "test_kprobe_2_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
396
ASSERT_EQ(skel->bss->test_kprobe_3_result, 3, "test_kprobe_3_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
40
ASSERT_EQ(skel->bss->kretprobe_test5_result, 1, "kretprobe_test5_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
41
ASSERT_EQ(skel->bss->kretprobe_test6_result, 1, "kretprobe_test6_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
42
ASSERT_EQ(skel->bss->kretprobe_test7_result, 1, "kretprobe_test7_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
43
ASSERT_EQ(skel->bss->kretprobe_test8_result, 1, "kretprobe_test8_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
556
ASSERT_EQ(err, -1, "err");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
565
ASSERT_EQ(err, 123, "err");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
577
ASSERT_EQ(err, 123, "err");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
11
ASSERT_EQ(skel->bss->kprobe_testmod_test1_result, 1, "kprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
12
ASSERT_EQ(skel->bss->kprobe_testmod_test2_result, 1, "kprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
13
ASSERT_EQ(skel->bss->kprobe_testmod_test3_result, 1, "kprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
15
ASSERT_EQ(skel->bss->kretprobe_testmod_test1_result, 1, "kretprobe_test1_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
16
ASSERT_EQ(skel->bss->kretprobe_testmod_test2_result, 1, "kretprobe_test2_result");
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c
17
ASSERT_EQ(skel->bss->kretprobe_testmod_test3_result, 1, "kretprobe_test3_result");
tools/testing/selftests/bpf/prog_tests/ksyms.c
46
ASSERT_EQ(data->out__bpf_link_fops, link_fops_addr, "bpf_link_fops");
tools/testing/selftests/bpf/prog_tests/ksyms.c
47
ASSERT_EQ(data->out__bpf_link_fops1, 0, "bpf_link_fops1");
tools/testing/selftests/bpf/prog_tests/ksyms.c
48
ASSERT_EQ(data->out__btf_size, btf_size, "btf_size");
tools/testing/selftests/bpf/prog_tests/ksyms.c
49
ASSERT_EQ(data->out__per_cpu_start, per_cpu_start_addr, "__per_cpu_start");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
105
ASSERT_EQ(data->out__existing_typed, 0, "existing typed ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
107
ASSERT_EQ(data->out__non_existent_typeless, 0, "nonexistent typeless ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
108
ASSERT_EQ(data->out__non_existent_typed, 0, "nonexistent typed ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
132
ASSERT_EQ(data->out__existing_typed, 0, "existing typed ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
134
ASSERT_EQ(data->out__non_existent_typeless, 0, "nonexistent typeless ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_btf.c
135
ASSERT_EQ(data->out__non_existent_typed, 0, "nonexistent typed ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_module.c
30
ASSERT_EQ(topts.retval, 0, "retval");
tools/testing/selftests/bpf/prog_tests/ksyms_module.c
31
ASSERT_EQ(skel->bss->out_bpf_testmod_ksym, 42, "bpf_testmod_ksym");
tools/testing/selftests/bpf/prog_tests/ksyms_module.c
57
ASSERT_EQ(topts.retval, 0, "retval");
tools/testing/selftests/bpf/prog_tests/ksyms_module.c
58
ASSERT_EQ(skel->bss->out_bpf_testmod_ksym, 42, "bpf_testmod_ksym");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
61
ASSERT_EQ(topts.retval, 7 /*TC_ACT_REDIRECT*/, "ipv4 test_run retval");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
62
ASSERT_EQ(topts.data_size_out, 54, "ipv4 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
63
ASSERT_EQ(*magic, MAGIC_VAL, "ipv4 magic");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
71
ASSERT_EQ(topts.retval, 7 /*TC_ACT_REDIRECT*/, "ipv6 test_run retval");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
72
ASSERT_EQ(topts.data_size_out, 74, "ipv6 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
73
ASSERT_EQ(*magic, MAGIC_VAL, "ipv6 magic");
tools/testing/selftests/bpf/prog_tests/libbpf_get_fd_by_id_opts.c
54
if (!ASSERT_EQ(value, 0, "map value mismatch"))
tools/testing/selftests/bpf/prog_tests/libbpf_get_fd_by_id_opts.c
70
if (!ASSERT_EQ(ret, -EINVAL, "bpf_prog_get_fd_by_id_opts"))
tools/testing/selftests/bpf/prog_tests/libbpf_get_fd_by_id_opts.c
75
if (!ASSERT_EQ(ret, -EINVAL, "bpf_link_get_fd_by_id_opts"))
tools/testing/selftests/bpf/prog_tests/libbpf_get_fd_by_id_opts.c
80
ASSERT_EQ(ret, -EINVAL, "bpf_btf_get_fd_by_id_opts");
tools/testing/selftests/bpf/prog_tests/libbpf_probes.c
126
ASSERT_EQ(res, d->supported, buf);
tools/testing/selftests/bpf/prog_tests/libbpf_probes.c
40
ASSERT_EQ(res, 1, prog_type_name);
tools/testing/selftests/bpf/prog_tests/libbpf_probes.c
80
ASSERT_EQ(res, 1, map_type_name);
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
37
ASSERT_EQ(skel->bss->output_val1, 2000 + 2000, "output_val1");
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
38
ASSERT_EQ(skel->bss->output_ctx1, SYS_getpgid, "output_ctx1");
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
39
ASSERT_EQ(skel->bss->output_weak1, 42, "output_weak1");
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
41
ASSERT_EQ(skel->bss->output_val2, 2 * 1000 + 2 * (2 * 1000), "output_val2");
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
42
ASSERT_EQ(skel->bss->output_ctx2, SYS_getpgid, "output_ctx2");
tools/testing/selftests/bpf/prog_tests/linked_funcs.c
44
ASSERT_EQ(skel->bss->output_weak2, 0, "output_weak2");
tools/testing/selftests/bpf/prog_tests/linked_list.c
259
if (!ASSERT_EQ(id, 1, "btf__add_int"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
262
if (!ASSERT_EQ(lid, SPIN_LOCK, "btf__add_struct bpf_spin_lock"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
265
if (!ASSERT_EQ(hid, LIST_HEAD, "btf__add_struct bpf_list_head"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
268
if (!ASSERT_EQ(nid, LIST_NODE, "btf__add_struct bpf_list_node"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
325
ASSERT_EQ(err, refcount_field ? 0 : -EINVAL, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
339
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
352
ASSERT_EQ(err, -E2BIG, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
362
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
368
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:baz:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
371
if (!ASSERT_EQ(id, 7, "btf__add_struct baz"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
378
ASSERT_EQ(err, -EINVAL, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
388
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
400
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:foo:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
404
ASSERT_EQ(err, -EEXIST, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
414
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
424
ASSERT_EQ(err, -EINVAL, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
434
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
443
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
447
ASSERT_EQ(err, -ENOENT, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
457
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
466
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:foo:c"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
471
ASSERT_EQ(err, -ENOENT, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
480
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
489
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
492
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
499
ASSERT_EQ(err, -EINVAL, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
509
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
524
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:foo:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
528
ASSERT_EQ(err, -EINVAL, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
538
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
550
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:foo:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
554
ASSERT_EQ(err, -ELOOP, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
564
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
576
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
579
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
591
if (!ASSERT_EQ(id, 8, "btf__add_decl_tag contains:foo:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
595
ASSERT_EQ(err, -ELOOP, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
605
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
614
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
617
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
624
ASSERT_EQ(err, 0, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
634
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
643
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
646
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
658
if (!ASSERT_EQ(id, 8, "btf__add_decl_tag contains:baz:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
661
if (!ASSERT_EQ(id, 9, "btf__add_struct baz"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
668
ASSERT_EQ(err, 0, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
678
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
690
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
693
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
705
if (!ASSERT_EQ(id, 8, "btf__add_decl_tag contains:baz:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
708
if (!ASSERT_EQ(id, 9, "btf__add_struct baz"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
715
ASSERT_EQ(err, -ELOOP, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_list.c
725
if (!ASSERT_EQ(id, 5, "btf__add_struct foo"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
734
if (!ASSERT_EQ(id, 6, "btf__add_decl_tag contains:bar:b"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
737
if (!ASSERT_EQ(id, 7, "btf__add_struct bar"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
749
if (!ASSERT_EQ(id, 8, "btf__add_decl_tag"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
752
if (!ASSERT_EQ(id, 9, "btf__add_struct baz"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
764
if (!ASSERT_EQ(id, 10, "btf__add_decl_tag contains:bam:a"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
767
if (!ASSERT_EQ(id, 11, "btf__add_struct bam"))
tools/testing/selftests/bpf/prog_tests/linked_list.c
774
ASSERT_EQ(err, -ELOOP, "check btf");
tools/testing/selftests/bpf/prog_tests/linked_maps.c
24
ASSERT_EQ(skel->bss->output_first1, 2000, "output_first1");
tools/testing/selftests/bpf/prog_tests/linked_maps.c
25
ASSERT_EQ(skel->bss->output_second1, 2, "output_second1");
tools/testing/selftests/bpf/prog_tests/linked_maps.c
26
ASSERT_EQ(skel->bss->output_weak1, 2, "output_weak1");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
32
ASSERT_EQ(skel->bss->output_bss1, 1000 + 2000 + 3000, "output_bss1");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
33
ASSERT_EQ(skel->bss->output_bss2, 1000 + 2000 + 3000, "output_bss2");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
35
ASSERT_EQ(skel->bss->output_data1, 1 + 2 + 10, "output_bss1");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
36
ASSERT_EQ(skel->bss->output_data2, 1 + 2 + 10, "output_bss2");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
38
ASSERT_EQ(skel->bss->output_rodata1, 11 + 22 + 100, "output_weak1");
tools/testing/selftests/bpf/prog_tests/linked_vars.c
39
ASSERT_EQ(skel->bss->output_rodata2, 11 + 22 + 100, "output_weak2");
tools/testing/selftests/bpf/prog_tests/livepatch_trampoline.c
75
ASSERT_EQ(skel->bss->fentry_hit, 1, "fentry_hit");
tools/testing/selftests/bpf/prog_tests/livepatch_trampoline.c
76
ASSERT_EQ(skel->bss->fexit_hit, 1, "fexit_hit");
tools/testing/selftests/bpf/prog_tests/local_kptr_stash.c
114
ASSERT_EQ(opts.retval, 2, "refcount_acquire_without_unstash retval");
tools/testing/selftests/bpf/prog_tests/local_kptr_stash.c
123
ASSERT_EQ(opts.retval, 42, "refcount_acquire_without_unstash (2) retval");
tools/testing/selftests/bpf/prog_tests/local_kptr_stash.c
92
ASSERT_EQ(opts.retval, 42, "local_kptr_stash_add_nodes retval");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
102
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 0, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
103
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 0, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
111
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
112
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 1, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
114
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 0, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
118
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
119
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 2, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
123
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 0, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
128
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
129
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 3, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
136
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
137
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 3, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
141
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_bind"), 0, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
146
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_bind"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
147
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 4, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
155
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_bind"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
156
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 4, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
163
ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_bind"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
164
ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 0, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
169
ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 1, "prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
170
ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 4, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
171
ASSERT_EQ(query_prog_cnt(cgroup_fd2, NULL), 1, "total prog count");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
191
ASSERT_EQ(prio, 123, "sk_priority");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
227
ASSERT_EQ(prio, 234, "sk_priority");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
230
ASSERT_EQ(skel->bss->called_socket_post_create, 0, "called_create");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
231
ASSERT_EQ(skel->bss->called_socket_bind, 0, "called_bind");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
244
ASSERT_EQ(skel->bss->called_socket_post_create2, 6, "called_create2");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
246
ASSERT_EQ(skel->bss->called_socket_post_create2, 5, "called_create2");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
251
ASSERT_EQ(skel->bss->called_socket_bind2, 2, "called_bind2");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
253
ASSERT_EQ(skel->bss->called_socket_clone, 1, "called_clone");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
263
ASSERT_EQ(skel->bss->called_socket_alloc, 7, "called_alloc");
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
282
ASSERT_EQ(prio, 0, "sk_priority");
tools/testing/selftests/bpf/prog_tests/lwt_ip_encap.c
384
if (!ASSERT_EQ(bytes, GSO_SIZE, "send packet"))
tools/testing/selftests/bpf/prog_tests/lwt_ip_encap.c
389
if (!ASSERT_EQ(bytes, GSO_SIZE, "receive packet"))
tools/testing/selftests/bpf/prog_tests/lwt_redirect.c
174
if (!ASSERT_EQ(ret, 1, "wait_for_epacket")) {
tools/testing/selftests/bpf/prog_tests/lwt_redirect.c
183
if (!ASSERT_EQ(ret, 1, "wait_for_ipacket")) {
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
115
if (!ASSERT_EQ(err, 1, "inet_pton"))
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
210
if (!ASSERT_EQ(wait_for_packet(tun_fd, __expect_icmp_ipv4, &timeo), 1,
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
237
ASSERT_EQ(overflow_fq(10, ip), 0, "overflow_fq");
tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
152
if (!ASSERT_EQ(inet_pton(AF_INET6, "fb00::6", &server_addr.sin6_addr), 1,
tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
158
if (!ASSERT_EQ(bytes, sizeof(foobar), "send packet"))
tools/testing/selftests/bpf/prog_tests/lwt_seg6local.c
163
if (!ASSERT_EQ(bytes, sizeof(buf), "receive packet"))
tools/testing/selftests/bpf/prog_tests/map_excl.c
42
ASSERT_EQ(err, -EACCES, "exclusive map access not denied\n");
tools/testing/selftests/bpf/prog_tests/map_in_map.c
194
ASSERT_EQ(err, -ENOTSUPP, "lookup_del");
tools/testing/selftests/bpf/prog_tests/map_in_map.c
227
ASSERT_EQ(cnt, ARRAY_SIZE(keys), "delete_batch cnt");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
136
ASSERT_EQ(watcher->bss->map_freed, 1, "map_freed");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
137
ASSERT_EQ(read_refs(watcher), 2, "percpu_htab refcount");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
165
if (!ASSERT_EQ(skel->bss->sk_ls_leak_done, 1, "sk_ls_leak_done"))
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
197
ASSERT_EQ(watcher->bss->map_freed, 1, "map_freed");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
198
ASSERT_EQ(read_refs(watcher), 2, "sk_ls refcount");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
75
ASSERT_EQ(watcher->bss->map_freed, 1, "map_freed");
tools/testing/selftests/bpf/prog_tests/map_kptr_race.c
76
ASSERT_EQ(read_refs(watcher), 2, "htab refcount");
tools/testing/selftests/bpf/prog_tests/map_lookup_percpu_elem.c
50
ASSERT_EQ(skel->bss->percpu_array_elem_sum, sum, "percpu_array lookup percpu elem");
tools/testing/selftests/bpf/prog_tests/map_lookup_percpu_elem.c
51
ASSERT_EQ(skel->bss->percpu_hash_elem_sum, sum, "percpu_hash lookup percpu elem");
tools/testing/selftests/bpf/prog_tests/map_lookup_percpu_elem.c
52
ASSERT_EQ(skel->bss->percpu_lru_hash_elem_sum, sum, "percpu_lru_hash lookup percpu elem");
tools/testing/selftests/bpf/prog_tests/map_ops.c
113
ASSERT_EQ(skel->bss->err, -E2BIG, "map_push_when_full");
tools/testing/selftests/bpf/prog_tests/map_ops.c
123
ASSERT_EQ(skel->bss->err, -ENOENT, "map_peek_when_empty");
tools/testing/selftests/bpf/prog_tests/map_ops.c
127
ASSERT_EQ(skel->bss->err, -ENOENT, "map_pop_when_empty");
tools/testing/selftests/bpf/prog_tests/map_ops.c
142
ASSERT_EQ(skel->bss->err, 1, "map_for_each_no_flags");
tools/testing/selftests/bpf/prog_tests/map_ops.c
146
ASSERT_EQ(skel->bss->err, -EINVAL, "map_for_each_with_flags");
tools/testing/selftests/bpf/prog_tests/map_ops.c
88
ASSERT_EQ(skel->bss->err, -EEXIST, "map_update_existing");
tools/testing/selftests/bpf/prog_tests/map_ops.c
95
ASSERT_EQ(skel->bss->err, -ENOENT, "map_delete_non_existing");
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
158
if (!ASSERT_EQ(len, *saved_len, "write - restore"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
175
if (!ASSERT_EQ(len, 3, "write - setup"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
314
if (!ASSERT_EQ(err, MSGLEN, "write"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
434
ASSERT_EQ(cnt, NR_CLIENTS, "count in userspace");
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
453
ASSERT_EQ(cnt, NR_CLIENTS, "count in BPF prog");
tools/testing/selftests/bpf/prog_tests/missed.c
120
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/missed.c
122
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test1)), 0, "test1_recursion_misses");
tools/testing/selftests/bpf/prog_tests/missed.c
123
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test2)), 1, "test2_recursion_misses");
tools/testing/selftests/bpf/prog_tests/missed.c
124
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test3)), 1, "test3_recursion_misses");
tools/testing/selftests/bpf/prog_tests/missed.c
125
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test4)), 1, "test4_recursion_misses");
tools/testing/selftests/bpf/prog_tests/missed.c
31
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/missed.c
37
ASSERT_EQ(info.type, BPF_LINK_TYPE_PERF_EVENT, "info.type");
tools/testing/selftests/bpf/prog_tests/missed.c
38
ASSERT_EQ(info.perf_event.type, BPF_PERF_EVENT_KPROBE, "info.perf_event.type");
tools/testing/selftests/bpf/prog_tests/missed.c
39
ASSERT_EQ(info.perf_event.kprobe.missed, 1, "info.perf_event.kprobe.missed");
tools/testing/selftests/bpf/prog_tests/missed.c
81
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/missed.c
83
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test1)), 0, "test1_recursion_misses");
tools/testing/selftests/bpf/prog_tests/missed.c
88
ASSERT_EQ(get_missed_count(bpf_program__fd(skel->progs.test6)), 1, "test6_recursion_misses");
tools/testing/selftests/bpf/prog_tests/modify_return.c
38
ASSERT_EQ(ret, want_ret, "test_run ret");
tools/testing/selftests/bpf/prog_tests/modify_return.c
39
ASSERT_EQ(side_effect, want_side_effect, "modify_return side_effect");
tools/testing/selftests/bpf/prog_tests/modify_return.c
40
ASSERT_EQ(skel->bss->fentry_result, 1, "modify_return fentry_result");
tools/testing/selftests/bpf/prog_tests/modify_return.c
41
ASSERT_EQ(skel->bss->fexit_result, 1, "modify_return fexit_result");
tools/testing/selftests/bpf/prog_tests/modify_return.c
42
ASSERT_EQ(skel->bss->fmod_ret_result, 1, "modify_return fmod_ret_result");
tools/testing/selftests/bpf/prog_tests/modify_return.c
44
ASSERT_EQ(skel->bss->fentry_result2, 1, "modify_return fentry_result2");
tools/testing/selftests/bpf/prog_tests/modify_return.c
45
ASSERT_EQ(skel->bss->fexit_result2, 1, "modify_return fexit_result2");
tools/testing/selftests/bpf/prog_tests/modify_return.c
46
ASSERT_EQ(skel->bss->fmod_ret_result2, 1, "modify_return fmod_ret_result2");
tools/testing/selftests/bpf/prog_tests/module_attach.c
72
ASSERT_EQ(bss->raw_tp_read_sz, READ_SZ, "raw_tp");
tools/testing/selftests/bpf/prog_tests/module_attach.c
73
ASSERT_EQ(bss->raw_tp_bare_write_sz, WRITE_SZ, "raw_tp_bare");
tools/testing/selftests/bpf/prog_tests/module_attach.c
74
ASSERT_EQ(bss->tp_btf_read_sz, READ_SZ, "tp_btf");
tools/testing/selftests/bpf/prog_tests/module_attach.c
75
ASSERT_EQ(bss->fentry_read_sz, READ_SZ, "fentry");
tools/testing/selftests/bpf/prog_tests/module_attach.c
76
ASSERT_EQ(bss->fentry_manual_read_sz, READ_SZ, "fentry_manual");
tools/testing/selftests/bpf/prog_tests/module_attach.c
77
ASSERT_EQ(bss->fentry_explicit_read_sz, READ_SZ, "fentry_explicit");
tools/testing/selftests/bpf/prog_tests/module_attach.c
78
ASSERT_EQ(bss->fentry_explicit_manual_read_sz, READ_SZ, "fentry_explicit_manual");
tools/testing/selftests/bpf/prog_tests/module_attach.c
79
ASSERT_EQ(bss->fexit_read_sz, READ_SZ, "fexit");
tools/testing/selftests/bpf/prog_tests/module_attach.c
80
ASSERT_EQ(bss->fexit_ret, -EIO, "fexit_tet");
tools/testing/selftests/bpf/prog_tests/module_attach.c
81
ASSERT_EQ(bss->fmod_ret_read_sz, READ_SZ, "fmod_ret");
tools/testing/selftests/bpf/prog_tests/module_attach.c
87
ASSERT_EQ(bss->raw_tp_writable_bare_in_val, 1024, "writable_test_in");
tools/testing/selftests/bpf/prog_tests/module_attach.c
88
ASSERT_EQ(bss->raw_tp_writable_bare_out_val, writable_val,
tools/testing/selftests/bpf/prog_tests/mptcp.c
138
if (!ASSERT_EQ(val.invoked, 1, "unexpected invoked count"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
141
if (!ASSERT_EQ(val.is_mptcp, 1, "unexpected is_mptcp"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
144
if (!ASSERT_EQ(val.token, token, "unexpected token"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
147
if (!ASSERT_EQ(val.first, val.sk, "unexpected first"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
232
ASSERT_EQ(write(fd, &b, sizeof(b)), 1, "send single byte");
tools/testing/selftests/bpf/prog_tests/mptcp.c
247
if (!ASSERT_EQ(protocol, IPPROTO_MPTCP, "protocol isn't MPTCP"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
384
ASSERT_EQ(mark, 0, "mark");
tools/testing/selftests/bpf/prog_tests/mptcp.c
473
if (!ASSERT_EQ(sent, sizeof(snd), "sockmap-fb:send(client_fd1)"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
478
if (!ASSERT_EQ(recvd, sizeof(snd), "sockmap-fb:recv(client_fd2)"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
512
if (!ASSERT_EQ(skel->bss->helper_ret, -EOPNOTSUPP, "should reject"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
518
if (!ASSERT_EQ(err, -EOPNOTSUPP, "server should be disallowed"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
524
if (!ASSERT_EQ(err, -EOPNOTSUPP, "client should be disallowed"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
94
if (!ASSERT_EQ(val.invoked, 1, "unexpected invoked count"))
tools/testing/selftests/bpf/prog_tests/mptcp.c
97
if (!ASSERT_EQ(val.is_mptcp, 0, "unexpected is_mptcp"))
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
125
ASSERT_EQ(errno, EAGAIN, "recvmsg MSG_ERRQUEUE");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
137
ASSERT_EQ(SK_TS_SCHED, 1, "SCM_TSTAMP_SCHED");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
138
ASSERT_EQ(SK_TS_TXSW, 1, "SCM_TSTAMP_SND");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
139
ASSERT_EQ(SK_TS_ACK, 1, "SCM_TSTAMP_ACK");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
207
if (!ASSERT_EQ(ret, sizeof(buf), "send to server"))
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
213
ASSERT_EQ(bss->nr_active, 1, "nr_active");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
214
ASSERT_EQ(bss->nr_snd, 2, "nr_snd");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
215
ASSERT_EQ(bss->nr_sched, 1, "nr_sched");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
216
ASSERT_EQ(bss->nr_txsw, 1, "nr_txsw");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
217
ASSERT_EQ(bss->nr_ack, 1, "nr_ack");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
33
ASSERT_EQ(expected_tskey, tskey, "tskey mismatch");
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
92
ASSERT_EQ(serr->ee_origin, SO_EE_ORIGIN_TIMESTAMPING,
tools/testing/selftests/bpf/prog_tests/netfilter_link_attach.c
59
ASSERT_EQ(info.type, BPF_LINK_TYPE_NETFILTER, "info link type");
tools/testing/selftests/bpf/prog_tests/netfilter_link_attach.c
60
ASSERT_EQ(info.netfilter.pf, nf_expected.pf, "info nf protocol family");
tools/testing/selftests/bpf/prog_tests/netfilter_link_attach.c
61
ASSERT_EQ(info.netfilter.hooknum, nf_expected.hooknum, "info nf hooknum");
tools/testing/selftests/bpf/prog_tests/netfilter_link_attach.c
62
ASSERT_EQ(info.netfilter.priority, nf_expected.priority, "info nf priority");
tools/testing/selftests/bpf/prog_tests/netfilter_link_attach.c
63
ASSERT_EQ(info.netfilter.flags, nf_expected.flags, "info nf flags");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
77
ASSERT_EQ(val, cookie_expected_value, "cookie_value_sockops");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
84
ASSERT_EQ(val, cookie_expected_value, "cookie_value_sk_msg");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
85
ASSERT_EQ(skel->bss->tcx_init_netns_cookie, cookie_expected_value, "cookie_value_init_tcx");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
86
ASSERT_EQ(skel->bss->tcx_netns_cookie, cookie_expected_value, "cookie_value_tcx");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
87
ASSERT_EQ(skel->bss->cgroup_skb_init_netns_cookie, cookie_expected_value, "cookie_value_init_cgroup_skb");
tools/testing/selftests/bpf/prog_tests/netns_cookie.c
88
ASSERT_EQ(skel->bss->cgroup_skb_netns_cookie, cookie_expected_value, "cookie_value_cgroup_skb");
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
109
if (!ASSERT_EQ(bss->user_pid, pid, "pid"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
111
if (!ASSERT_EQ(bss->user_tgid, tgid, "tgid"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
164
if (!ASSERT_EQ(err, sizeof(send_msg), "send(msg)"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
167
if (!ASSERT_EQ(bss->user_pid, pid, "pid"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
169
if (!ASSERT_EQ(bss->user_tgid, tgid, "tgid"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
67
if (!ASSERT_EQ(bss->user_pid, pid, "pid"))
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
69
if (!ASSERT_EQ(bss->user_tgid, tgid, "tgid"))
tools/testing/selftests/bpf/prog_tests/parse_tcp_hdr_opt.c
52
ASSERT_EQ(topts.retval, XDP_PASS, "ipv6 test_run retval");
tools/testing/selftests/bpf/prog_tests/parse_tcp_hdr_opt.c
53
ASSERT_EQ(skel->bss->server_id, 0xBBBBBBBB, "server id");
tools/testing/selftests/bpf/prog_tests/parse_tcp_hdr_opt.c
82
ASSERT_EQ(topts.retval, XDP_PASS, "ipv6 test_run retval");
tools/testing/selftests/bpf/prog_tests/parse_tcp_hdr_opt.c
83
ASSERT_EQ(skel->bss->server_id, 0xBBBBBBBB, "server id");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
105
ASSERT_EQ(topts.retval, 0, "test_run cgrp_local_storage 1-3");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
106
ASSERT_EQ(skel->bss->cpu0_field_d, 2, "cpu0_field_d");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
107
ASSERT_EQ(skel->bss->sum_field_c, 1, "sum_field_c");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
172
if (!ASSERT_EQ(err, -ERANGE, "bpf_map_update_elem -ERANGE"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
176
if (!ASSERT_EQ(err, -ERANGE, "bpf_map__update_elem -ERANGE"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
180
if (!ASSERT_EQ(err, -ERANGE, "bpf_map_lookup_elem_flags -ERANGE"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
184
if (!ASSERT_EQ(err, -ERANGE, "bpf_map__lookup_elem -ERANGE"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
214
if (!ASSERT_EQ(values[0], j != cpu ? 0 : value,
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
227
if (!ASSERT_EQ(err, -ERANGE, "bpf_map_update_batch -ERANGE"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
239
if (!ASSERT_EQ(count, entries, "bpf_map_update_batch count"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
251
if (!ASSERT_EQ(count, entries, "bpf_map_update_batch count"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
261
if (!ASSERT_EQ(count, entries, "bpf_map_lookup_batch count"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
265
if (!ASSERT_EQ(values[i], value,
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
278
if (!ASSERT_EQ(count, entries, "bpf_map_lookup_batch count"))
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
286
if (!ASSERT_EQ(v, j != cpu ? 0 : value,
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
37
ASSERT_EQ(topts.retval, 0, "test_run array_map 1-4");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
38
ASSERT_EQ(skel->bss->cpu0_field_d, 2, "cpu0_field_d");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
39
ASSERT_EQ(skel->bss->sum_field_c, 1, "sum_field_c");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
70
ASSERT_EQ(topts.retval, 0, "test_run array_map_10");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
71
ASSERT_EQ(skel->bss->cpu0_field_d, 2, "cpu0_field_d");
tools/testing/selftests/bpf/prog_tests/percpu_alloc.c
72
ASSERT_EQ(skel->bss->sum_field_c, 1, "sum_field_c");
tools/testing/selftests/bpf/prog_tests/perf_link.c
66
ASSERT_EQ(info.type, BPF_LINK_TYPE_PERF_EVENT, "link_type");
tools/testing/selftests/bpf/prog_tests/perf_link.c
93
ASSERT_EQ(run_cnt_before, run_cnt_after, "run_cnt_before_after");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
110
ASSERT_EQ(sigio_count, 0, "sigio_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
111
ASSERT_EQ(sigtrap_count, 0, "sigtrap_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
117
ASSERT_EQ(sigio_count, 1, "sigio_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
118
ASSERT_EQ(sigtrap_count, 1, "sigtrap_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
125
ASSERT_EQ(sigio_count, 1, "sigio_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
126
ASSERT_EQ(sigtrap_count, 1, "sigtrap_count");
tools/testing/selftests/bpf/prog_tests/perf_skip.c
25
ASSERT_EQ(info->si_code, TRAP_PERF, "si_code");
tools/testing/selftests/bpf/prog_tests/preempted_bpf_ma_op.c
83
ASSERT_EQ(ctx[i].run_err, 0, "run prog err");
tools/testing/selftests/bpf/prog_tests/prepare.c
87
ASSERT_EQ(skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/pro_epilogue.c
47
ASSERT_EQ(args.a, 10001, "args.a");
tools/testing/selftests/bpf/prog_tests/pro_epilogue.c
48
ASSERT_EQ(topts.retval, 10001 * 2, "topts.retval");
tools/testing/selftests/bpf/prog_tests/prog_array_init.c
28
ASSERT_EQ(skel->bss->value, 42, "unexpected value");
tools/testing/selftests/bpf/prog_tests/prog_run_opts.c
49
ASSERT_EQ(errno, ENOSPC, "test_run errno");
tools/testing/selftests/bpf/prog_tests/prog_run_opts.c
53
ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), "test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/prog_run_opts.c
54
ASSERT_EQ(buf[5], 0, "overflow, BPF_PROG_TEST_RUN ignored size hint");
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
25
if (!ASSERT_EQ(state->skip_cnt, 0, "skip_cnt_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
27
if (!ASSERT_EQ(state->error_cnt, 0, "error_cnt_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
29
if (!ASSERT_EQ(state->subtest_num, 1, "subtest_num_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
41
if (!ASSERT_EQ(state->skip_cnt, 2, "skip_cnt_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
43
if (!ASSERT_EQ(state->subtest_num, 3, "subtest_num_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
51
if (!ASSERT_EQ(state->error_cnt, 1, "error_cnt_check"))
tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c
53
if (!ASSERT_EQ(state->subtest_num, 4, "subtest_num_check"))
tools/testing/selftests/bpf/prog_tests/ptr_untrusted.c
32
ASSERT_EQ(err, 0, "cmp_tp_name");
tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
80
ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4),
tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
82
ASSERT_EQ(iph.daddr, val, "bpf_map_pop_elem iph.daddr");
tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
88
ASSERT_EQ(topts.retval, 2 /* TC_ACT_SHOT */,
tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
90
ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4),
tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
97
ASSERT_EQ(val, vals[i] * 5, "bpf_map_push_elem val");
tools/testing/selftests/bpf/prog_tests/raw_tp_null.c
24
ASSERT_EQ(skel->bss->i, 3, "invocations");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
43
ASSERT_EQ(skel->data->on_cpu, 0xffffffff, "check_on_cpu");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
55
ASSERT_EQ(opts.retval, expected_retval, "check_retval");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
65
ASSERT_EQ(skel->data->on_cpu, i, "check_on_cpu");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
66
ASSERT_EQ(opts.retval, expected_retval, "check_retval");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
72
ASSERT_EQ(errno, ENXIO, "test_run_opts should fail with ENXIO");
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
79
ASSERT_EQ(errno, EINVAL, "test_run_opts should fail with EINVAL");
tools/testing/selftests/bpf/prog_tests/rbtree.c
117
ASSERT_EQ(skel->data->first_data[0], 2, "rbtree_first_and_remove first rbtree_first()");
tools/testing/selftests/bpf/prog_tests/rbtree.c
118
ASSERT_EQ(skel->data->removed_key, 1, "rbtree_first_and_remove first removed key");
tools/testing/selftests/bpf/prog_tests/rbtree.c
119
ASSERT_EQ(skel->data->first_data[1], 4, "rbtree_first_and_remove second rbtree_first()");
tools/testing/selftests/bpf/prog_tests/rbtree.c
141
ASSERT_EQ(skel->data->first_data[0], 42, "rbtree_api_release_aliasing first rbtree_remove()");
tools/testing/selftests/bpf/prog_tests/rbtree.c
142
ASSERT_EQ(skel->data->first_data[1], -1, "rbtree_api_release_aliasing second rbtree_remove()");
tools/testing/selftests/bpf/prog_tests/rbtree.c
30
ASSERT_EQ(skel->data->less_callback_ran, 1, "rbtree_add_nodes less_callback_ran");
tools/testing/selftests/bpf/prog_tests/rbtree.c
52
ASSERT_EQ(skel->data->less_callback_ran, 1, "rbtree_add_nodes_nested less_callback_ran");
tools/testing/selftests/bpf/prog_tests/rbtree.c
74
ASSERT_EQ(skel->data->removed_key, 5, "rbtree_add_and_remove first removed key");
tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c
47
ASSERT_EQ(skel->bss->task_storage_val, 2, "task_storage_val");
tools/testing/selftests/bpf/prog_tests/rcu_read_lock.c
48
ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id");
tools/testing/selftests/bpf/prog_tests/read_vsyscall.c
46
if (!ASSERT_EQ(err, 0, "read_vsyscall attach"))
tools/testing/selftests/bpf/prog_tests/read_vsyscall.c
56
ASSERT_EQ(skel->bss->read_ret[i], all_read[i].ret, all_read[i].name);
tools/testing/selftests/bpf/prog_tests/recursion.c
22
ASSERT_EQ(skel->bss->pass1, 0, "pass1 == 0");
tools/testing/selftests/bpf/prog_tests/recursion.c
24
ASSERT_EQ(skel->bss->pass1, 1, "pass1 == 1");
tools/testing/selftests/bpf/prog_tests/recursion.c
26
ASSERT_EQ(skel->bss->pass1, 2, "pass1 == 2");
tools/testing/selftests/bpf/prog_tests/recursion.c
28
ASSERT_EQ(skel->bss->pass2, 0, "pass2 == 0");
tools/testing/selftests/bpf/prog_tests/recursion.c
30
ASSERT_EQ(skel->bss->pass2, 1, "pass2 == 1");
tools/testing/selftests/bpf/prog_tests/recursion.c
32
ASSERT_EQ(skel->bss->pass2, 2, "pass2 == 2");
tools/testing/selftests/bpf/prog_tests/recursion.c
38
ASSERT_EQ(prog_info.recursion_misses, 2, "recursion_misses");
tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c
87
if (!ASSERT_EQ(opts.retval, 2, "opts.retval"))
tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c
97
ASSERT_EQ(opts.retval, 1, "opts.retval");
tools/testing/selftests/bpf/prog_tests/res_spin_lock.c
91
if (!ASSERT_EQ(ret, &prog_fd, "ret == prog_fd"))
tools/testing/selftests/bpf/prog_tests/res_spin_lock.c
95
ASSERT_EQ(READ_ONCE(skel->bss->err), -EDEADLK, "timeout err");
tools/testing/selftests/bpf/prog_tests/res_spin_lock.c
97
ASSERT_EQ(topts.retval, -EDEADLK, "timeout");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
132
ASSERT_EQ(skel->bss->discarded, 2, "discarded");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
133
ASSERT_EQ(skel->bss->passed, 0, "passed");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
178
ASSERT_EQ(err, -EPERM, "wr_prod_pos_err");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
184
ASSERT_EQ(err, -EPERM, "wr_data_page_one_err");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
229
ASSERT_EQ(map_fd, skel->maps.ringbuf.map_fd, "ring_map_fd");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
249
ASSERT_EQ(avail_data, 3 * rec_sz, "ring_avail_size");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
251
ASSERT_EQ(ring_size, page_size, "ring_ring_size");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
253
ASSERT_EQ(cons_pos, 0, "ring_cons_pos");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
255
ASSERT_EQ(prod_pos, 3 * rec_sz, "ring_prod_pos");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
399
ASSERT_EQ(s->value, SAMPLE_VALUE, "sample_value");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
437
if (!ASSERT_EQ(err, N_SAMPLES, "rb_consume"))
tools/testing/selftests/bpf/prog_tests/ringbuf.c
455
ASSERT_EQ(s->value, 42, "sample_value");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
459
ASSERT_EQ(val, 1, "hash_map val");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
491
ASSERT_EQ(skel_map_key->bss->seq, 1, "skel_map_key->bss->seq");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
493
ASSERT_EQ(err, -EDONE, "ring_buffer__poll");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
539
ASSERT_EQ(skel->bss->reserve1_fail, 0, "reserve 1");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
540
ASSERT_EQ(skel->bss->reserve2_fail, 0, "reserve 2");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
541
ASSERT_EQ(skel->bss->reserve3_fail, 1, "reserve 3");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
542
ASSERT_EQ(skel->bss->reserve4_fail, 0, "reserve 4");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
543
ASSERT_EQ(skel->bss->reserve5_fail, 0, "reserve 5");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
545
ASSERT_EQ(skel->bss->ring_size, size, "check_ring_size");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
548
ASSERT_EQ(skel->bss->avail_data, expect_avail_data, "check_avail_size");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
550
ASSERT_EQ(skel->bss->cons_pos, 0, "check_cons_pos");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
553
ASSERT_EQ(skel->bss->prod_pos, expect_prod_pos, "check_prod_pos");
tools/testing/selftests/bpf/prog_tests/ringbuf.c
556
ASSERT_EQ(skel->bss->over_pos, expect_over_pos, "check_over_pos");
tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c
104
if (!ASSERT_EQ(ring, ring_old, "ring_buffer__ring_again"))
tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c
56
ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), page_size, "rb1_size_before");
tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c
58
ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), 2 * page_size, "rb1_size_after");
tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c
60
ASSERT_EQ(bpf_map__max_entries(skel->maps.ringbuf1), page_size, "rb1_size_final");
tools/testing/selftests/bpf/prog_tests/send_signal.c
152
ASSERT_EQ(read(pipe_c2p[0], buf, 1), 1, "pipe_read");
tools/testing/selftests/bpf/prog_tests/send_signal.c
166
ASSERT_EQ(write(pipe_p2c[1], buf, 1), 1, "pipe_write");
tools/testing/selftests/bpf/prog_tests/send_signal.c
194
ASSERT_EQ(buf[0], 8, "incorrect result");
tools/testing/selftests/bpf/prog_tests/send_signal.c
197
ASSERT_EQ(write(pipe_p2c[1], buf, 1), 1, "pipe_write");
tools/testing/selftests/bpf/prog_tests/send_signal.c
76
ASSERT_EQ(write(pipe_c2p[1], buf, 1), 1, "pipe_write");
tools/testing/selftests/bpf/prog_tests/send_signal.c
79
ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read");
tools/testing/selftests/bpf/prog_tests/send_signal.c
94
ASSERT_EQ(sigusr1_received, 8, "sigusr1_received");
tools/testing/selftests/bpf/prog_tests/send_signal.c
95
ASSERT_EQ(write(pipe_c2p[1], buf, 1), 1, "pipe_write");
tools/testing/selftests/bpf/prog_tests/send_signal.c
98
ASSERT_EQ(read(pipe_p2c[0], buf, 1), 1, "pipe_read");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
139
ASSERT_EQ(ret, 0, "read");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
142
ASSERT_EQ(bss->nr_listen, 1, "nr_listen");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
143
ASSERT_EQ(bss->nr_connect, 1, "nr_connect");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
144
ASSERT_EQ(bss->nr_active, 1, "nr_active");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
145
ASSERT_EQ(bss->nr_passive, 1, "nr_passive");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
146
ASSERT_EQ(bss->nr_socket_post_create, 2, "nr_socket_post_create");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
147
ASSERT_EQ(bss->nr_binddev, 2, "nr_bind");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
148
ASSERT_EQ(bss->nr_fin_wait1, 1, "nr_fin_wait1");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
191
ASSERT_EQ(flags & BPF_SOCK_OPS_STATE_CB_FLAG, BPF_SOCK_OPS_STATE_CB_FLAG,
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
62
ASSERT_EQ(bss->nr_listen, 1, "nr_listen");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
63
ASSERT_EQ(bss->nr_connect, 1, "nr_connect");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
64
ASSERT_EQ(bss->nr_active, 1, "nr_active");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
65
ASSERT_EQ(bss->nr_passive, 1, "nr_passive");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
66
ASSERT_EQ(bss->nr_socket_post_create, 2, "nr_socket_post_create");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
67
ASSERT_EQ(bss->nr_binddev, 2, "nr_bind");
tools/testing/selftests/bpf/prog_tests/setget_sockopt.c
84
ASSERT_EQ(bss->nr_binddev, 1, "nr_bind");
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
151
ASSERT_EQ(bytes, sizeof(buf), "send");
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
218
if (!ASSERT_EQ(err, 0, "make_netns"))
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
226
if (!ASSERT_EQ(err, 0, "test_bypass(false)"))
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
230
if (!ASSERT_EQ(err, 0, "write_sysctl(1)"))
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
234
if (!ASSERT_EQ(err, 0, "test_bypass(true by sysctl)"))
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
238
if (!ASSERT_EQ(err, 0, "write_sysctl(0)"))
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
246
ASSERT_EQ(err, 0, "test_bypass(true by bpf)");
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
77
ASSERT_EQ(err, 0, "connect_fd_to_fd");
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
84
ASSERT_EQ(err, 0, "setsockopt(SO_RCVBUF)");
tools/testing/selftests/bpf/prog_tests/sk_storage_omem_uncharge.c
49
ASSERT_EQ(skel->bss->cookie_found, 2, "cookie_found");
tools/testing/selftests/bpf/prog_tests/sk_storage_omem_uncharge.c
50
ASSERT_EQ(skel->bss->omem, 0, "omem");
tools/testing/selftests/bpf/prog_tests/sk_storage_tracing.c
35
if (!ASSERT_EQ(sk_stg.last_notclose_state, expected_state,
tools/testing/selftests/bpf/prog_tests/sk_storage_tracing.c
39
if (!ASSERT_EQ(sk_stg.pid, my_pid, "pid"))
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
80
ASSERT_EQ(tattr.ctx_size_out, sizeof(skb), "ctx_size_out");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
83
ASSERT_EQ(skb.cb[i], i + 2, "ctx_out_cb");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
84
ASSERT_EQ(skb.priority, 7, "ctx_out_priority");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
85
ASSERT_EQ(skb.ifindex, 1, "ctx_out_ifindex");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
86
ASSERT_EQ(skb.ingress_ifindex, 11, "ctx_out_ingress_ifindex");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
87
ASSERT_EQ(skb.tstamp, 8, "ctx_out_tstamp");
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
88
ASSERT_EQ(skb.mark, 10, "ctx_out_mark");
tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c
32
if (!ASSERT_EQ(test_result, -EFAULT, "offset -1"))
tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c
40
if (!ASSERT_EQ(test_result, 0, "offset 10"))
tools/testing/selftests/bpf/prog_tests/skc_to_unix_sock.c
48
ASSERT_EQ(strcmp(skel->bss->path, sock_path), 0, "bpf_skc_to_unix_sock failed");
tools/testing/selftests/bpf/prog_tests/skeleton.c
123
ASSERT_EQ(data_dyn->out_dynarr[i], i + 10, "out_dynarr");
tools/testing/selftests/bpf/prog_tests/skeleton.c
125
ASSERT_EQ(skel->bss->out_mostly_var, 123, "out_mostly_var");
tools/testing/selftests/bpf/prog_tests/skeleton.c
127
ASSERT_EQ(bss->huge_arr[ARRAY_SIZE(bss->huge_arr) - 1], 123, "huge_arr");
tools/testing/selftests/bpf/prog_tests/skeleton.c
131
if (!ASSERT_EQ(m, MAP_FAILED, "unexpected_mmap_success"))
tools/testing/selftests/bpf/prog_tests/skeleton.c
134
ASSERT_EQ(bpf_map__map_flags(skel->maps.data_non_mmapable), 0, "non_mmap_flags");
tools/testing/selftests/bpf/prog_tests/skeleton.c
59
ASSERT_EQ(rodata_dyn->in_dynarr_sz, 0, "in_dynarr_sz");
tools/testing/selftests/bpf/prog_tests/skeleton.c
61
ASSERT_EQ(rodata_dyn->in_dynarr[i], -(i + 1), "in_dynarr");
tools/testing/selftests/bpf/prog_tests/skeleton.c
63
ASSERT_EQ(data_dyn->out_dynarr[i], i + 1, "out_dynarr");
tools/testing/selftests/bpf/prog_tests/skeleton.c
87
ASSERT_EQ(rodata_dyn->in_dynarr_sz, 4, "in_dynarr_sz");
tools/testing/selftests/bpf/prog_tests/skeleton.c
89
ASSERT_EQ(rodata_dyn->in_dynarr[i], i + 10, "in_dynarr");
tools/testing/selftests/bpf/prog_tests/snprintf.c
55
ASSERT_EQ(skel->bss->num_ret, EXP_NUM_RET, "num_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
58
ASSERT_EQ(skel->bss->ip_ret, EXP_IP_RET, "ip_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
66
ASSERT_EQ(skel->bss->addr_ret, EXP_ADDR_RET, "addr_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
69
ASSERT_EQ(skel->bss->str_ret, EXP_STR_RET, "str_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
72
ASSERT_EQ(skel->bss->over_ret, EXP_OVER_RET, "over_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
75
ASSERT_EQ(skel->bss->pad_ret, EXP_PAD_RET, "pad_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
78
ASSERT_EQ(skel->bss->noarg_ret, EXP_NO_ARG_RET, "no_arg_ret");
tools/testing/selftests/bpf/prog_tests/snprintf.c
80
ASSERT_EQ(skel->bss->nobuf_ret, EXP_NO_BUF_RET, "no_buf_ret");
tools/testing/selftests/bpf/prog_tests/sock_addr.c
146
if (!ASSERT_EQ(cmp_addr((struct sockaddr_storage *)addr,
tools/testing/selftests/bpf/prog_tests/sock_addr.c
176
if (!ASSERT_EQ(cmp_addr((struct sockaddr_storage *)addr,
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2296
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2301
if (!ASSERT_EQ(err, 0, "cmp_local_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2335
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2347
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2353
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2359
if (!ASSERT_EQ(err, 0, "cmp_peer_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2366
if (!ASSERT_EQ(err, 0, "cmp_local_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2404
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2415
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2426
if (!ASSERT_EQ(err, sizeof(data), "sendmsg"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2432
if (!ASSERT_EQ(test->type, SOCK_ADDR_TEST_RECVMSG, "recvmsg"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2440
if (!ASSERT_EQ(err, sizeof(data), "send"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2458
if (!ASSERT_EQ(err, sizeof(data), "recvfrom"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2461
ASSERT_EQ(data, 'a', "data mismatch");
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2466
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2470
if (!ASSERT_EQ(err, 0, "cmp_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2499
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2503
if (!ASSERT_EQ(err, 0, "cmp_local_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2527
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2537
if (!ASSERT_EQ(err, 0, "make_sockaddr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2542
if (!ASSERT_EQ(err, 0, "cmp_peer_addr"))
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2646
ASSERT_EQ(err, EPERM, "socket operation returns EPERM");
tools/testing/selftests/bpf/prog_tests/sock_addr.c
2648
ASSERT_EQ(err, ENOTSUPP, "socket operation returns ENOTSUPP");
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
102
ASSERT_EQ(errno, ECONNRESET, "error code on destroyed socket");
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
126
if (!ASSERT_EQ(n, 1, "client send"))
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
167
if (!ASSERT_EQ(n, -1, "read") ||
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
168
!ASSERT_EQ(errno, ECONNABORTED, "error code on destroyed socket"))
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
171
ASSERT_EQ(i, num_listens, "server socket");
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
52
if (!ASSERT_EQ(n, 1, "client send"))
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
61
ASSERT_EQ(errno, ECONNABORTED, "error code on destroyed socket");
tools/testing/selftests/bpf/prog_tests/sock_destroy.c
93
if (!ASSERT_EQ(n, 1, "client send"))
tools/testing/selftests/bpf/prog_tests/sock_fields.c
121
ASSERT_EQ(linum, 0, "failure in read_sk_dst_port on line");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
153
ASSERT_EQ(out, cookie, "cookie matches");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
189
if (seen_cnt && ASSERT_EQ(seen_cnt, 1, "seen_cnt"))
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
193
ASSERT_EQ(seen_once, n, "seen_once");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
204
if (!ASSERT_EQ(ret, 1, "poll"))
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
430
ASSERT_EQ(read_n(iter_fd, -1, counts, counts_len), 0, "read_n");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
477
ASSERT_EQ(read_n(iter_fd, -1, counts, counts_len), 0, "read_n");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
56
if (!nread || !ASSERT_EQ(nread, sizeof(out), "nread"))
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
928
ASSERT_EQ(outputs[i].idx, first_idx, "first_idx");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
930
ASSERT_EQ(nread, onebyone ? sizeof(*outputs) : to_read, "nread");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
931
ASSERT_EQ(total_read, to_read, "total_read");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
947
ASSERT_EQ(outputs[i].idx, second_idx, "second_idx");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
949
ASSERT_EQ(nread, 0, "nread");
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
958
ASSERT_EQ(total_read, to_read, "total_read");
tools/testing/selftests/bpf/prog_tests/socket_cookie.c
66
ASSERT_EQ(val.cookie_value, cookie_expected_value, "cookie_value");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1100
if (!ASSERT_EQ(sent, sizeof(buf), "xsend"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1105
if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1)"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1113
if (!ASSERT_EQ(sent, sizeof(buf) - 1, "xsend"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1180
if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), bpf"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1186
if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1), bpf") ||
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1203
if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c1), native"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1207
if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1), native"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1212
if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), native"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1216
if (!ASSERT_EQ(recvd, sent, "recv_timeout(p0), native"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1283
if (!ASSERT_EQ(sent, 2, "xsend(2)"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1287
ASSERT_EQ(avail, 2, "ioctl(FIONREAD) partial return");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1291
if (!ASSERT_EQ(sent, sizeof(buf) - 2, "xsend(remain-data)"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1299
ASSERT_EQ(avail, expected, "ioctl(FIONREAD) full return");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
1302
if (!ASSERT_EQ(recvd, sizeof(buf), "recv_timeout(p1)") ||
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
356
if (!ASSERT_EQ(skel->bss->elems, num_elems, "elems"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
359
if (!ASSERT_EQ(skel->bss->socks, num_sockets, "socks"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
395
ASSERT_EQ(err, -EBUSY, "prog_attach_fail");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
446
!ASSERT_EQ(info_len, sizeof(info), "bpf_prog_get_info_by_fd"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
474
ASSERT_EQ(attach_flags, 0, "wrong attach_flags on query");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
475
ASSERT_EQ(prog_cnt, 0, "wrong program count on query");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
485
ASSERT_EQ(attach_flags, 0, "wrong attach_flags on query");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
486
ASSERT_EQ(prog_cnt, 1, "wrong program count on query");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
487
ASSERT_EQ(prog_ids[0], query_prog_id(verdict_fd),
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
536
if (!ASSERT_EQ(err, 1, "epoll_wait(fd)"))
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
540
ASSERT_EQ(n, 0, "recv(fin)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
593
ASSERT_EQ(sent, sizeof(buf), "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
596
ASSERT_EQ(avail, expected, "ioctl(FIONREAD)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
600
ASSERT_EQ(recvd, sizeof(buf), "recv_timeout(c0)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
645
ASSERT_EQ(sent, 2, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
647
ASSERT_EQ(recvd, 1, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
648
ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
651
ASSERT_EQ(sent, 1, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
653
ASSERT_EQ(recvd, 2, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
654
ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
657
ASSERT_EQ(sent, 1, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
659
ASSERT_EQ(recvd, 1, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
660
ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
684
ASSERT_EQ(sent, sizeof(snd), "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
686
ASSERT_EQ(recvd, sizeof(rcv), "recv(c1)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
689
ASSERT_EQ(avail, sizeof(snd), "after peek ioctl(FIONREAD)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
691
ASSERT_EQ(recvd, sizeof(rcv), "recv(p0)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
694
ASSERT_EQ(avail, 0, "after read ioctl(FIONREAD)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
748
ASSERT_EQ(pass->bss->clone_called, 1, "clone_called");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
85
ASSERT_EQ(errno, ENOENT, "map_lookup_elem(dst)");
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
95
ASSERT_EQ(dst_cookie, src_cookie, "cookie mismatch");
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
151
!ASSERT_EQ(recvd, sent, "length mismatch"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
207
if (!ASSERT_EQ(sent, off, "send(msg)"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
211
if (!ASSERT_EQ(-1, recvd, "expected no data"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
216
if (!ASSERT_EQ(sent, sizeof(msg) - off, "send remaining data"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
221
!ASSERT_EQ(recvd, sizeof(msg) + push_len, "check length mismatch"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
230
if (!ASSERT_EQ(rcv[i], msg[j], "data mismatch"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
371
if (!ASSERT_EQ(sent, sizeof(msg), "send(msg)"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
375
if (!ASSERT_EQ(recvd, sizeof(msg) - pop_policy[i].pop_len, "pop len mismatch"))
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c
391
if (!ASSERT_EQ(msg[m], rcv[r], "data mismatch"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
147
if (!ASSERT_EQ(recvd, expected, "recv_timeout()"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
203
if (!ASSERT_EQ(sent, total, "xsend(c)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
208
if (!ASSERT_EQ(recvd, total, "recv(rcv)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
254
if (!ASSERT_EQ(-1, recvd, "partial head sent, expected no data"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
260
if (!ASSERT_EQ(recvd, STRP_PKT_FULL_LEN, "expected full data"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
271
if (!ASSERT_EQ(-1, recvd, "partial body sent, expected no data"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
277
if (!ASSERT_EQ(recvd, STRP_PKT_FULL_LEN, "expected full data"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
311
if (!ASSERT_EQ(sent, pkt_size, "xsend(pre-data)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
330
if (!ASSERT_EQ(sent, pkt_size, "xsend(c)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
335
if (!ASSERT_EQ(recvd, pkt_size, "recv_timeout(p)") ||
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
343
if (!ASSERT_EQ(sent, pkt_size, "second xsend(c)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
348
!ASSERT_EQ(avail, pkt_size, "ioctl(FIONREAD)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
353
if (!ASSERT_EQ(recvd, pkt_size, "second recv_timeout(p)") ||
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
39
if (!ASSERT_EQ(recvd, STRP_PKT_FULL_LEN, "recv error or truncated data") ||
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
398
if (!ASSERT_EQ(sent, STRP_PKT_FULL_LEN, "xsend(c0)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
403
if (!ASSERT_EQ(recvd, STRP_PKT_FULL_LEN, "recv_timeout(c1)") ||
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
410
if (!ASSERT_EQ(sent, STRP_PKT_FULL_LEN, "second xsend(c0)"))
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
420
if (!ASSERT_EQ(recvd, STRP_PKT_FULL_LEN, "partial recv_timeout(c1)") ||
tools/testing/selftests/bpf/prog_tests/sockopt.c
1013
if (!ASSERT_EQ(err, 1, "Submit SQE"))
tools/testing/selftests/bpf/prog_tests/sockopt_sk.c
212
ASSERT_EQ(optlen, 8, "Unexpected NETLINK_LIST_MEMBERSHIPS value");
tools/testing/selftests/bpf/prog_tests/spin_lock.c
155
if (!ASSERT_EQ(ret, &prog_fd, "ret == prog_fd"))
tools/testing/selftests/bpf/prog_tests/stacktrace_ips.c
40
ASSERT_EQ(ksym->addr, val, "stack_cmp");
tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
58
if (!ASSERT_EQ(err, -ENOENT, "lookup deleted stack_id"))
tools/testing/selftests/bpf/prog_tests/stacktrace_map_skip.c
58
if (!ASSERT_EQ(skel->bss->failed, 0, "skip_failed"))
tools/testing/selftests/bpf/prog_tests/static_linked.c
30
ASSERT_EQ(skel->data->var1, 1 * 2 + 2 + 3, "var1");
tools/testing/selftests/bpf/prog_tests/static_linked.c
31
ASSERT_EQ(skel->data->var2, 4 * 3 + 5 + 6, "var2");
tools/testing/selftests/bpf/prog_tests/stream.c
39
ASSERT_EQ(ret, -EINVAL, "bad prog_fd");
tools/testing/selftests/bpf/prog_tests/stream.c
43
ASSERT_EQ(ret, -ENOENT, "bad stream id");
tools/testing/selftests/bpf/prog_tests/stream.c
47
ASSERT_EQ(ret, -EFAULT, "bad stream buf");
tools/testing/selftests/bpf/prog_tests/stream.c
50
ASSERT_EQ(ret, 2, "bytes");
tools/testing/selftests/bpf/prog_tests/stream.c
52
ASSERT_EQ(ret, 1, "bytes");
tools/testing/selftests/bpf/prog_tests/stream.c
54
ASSERT_EQ(ret, 0, "no bytes stdout");
tools/testing/selftests/bpf/prog_tests/stream.c
56
ASSERT_EQ(ret, 0, "no bytes stderr");
tools/testing/selftests/bpf/prog_tests/string_kfuncs.c
56
ASSERT_EQ(topts.retval, -E2BIG, "reading too long string fails with -E2BIG");
tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c
142
err = ASSERT_EQ(skel->bss->test_1_result, 42, "test_1_result");
tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c
30
ASSERT_EQ(err, -ENOTSUP, "errno should be ENOTSUP");
tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c
47
err = ASSERT_EQ(skel->bss->test_1_result, 42, "test_1_result");
tools/testing/selftests/bpf/prog_tests/struct_ops_private_stack.c
33
ASSERT_EQ(skel->bss->val_i, 3, "val_i");
tools/testing/selftests/bpf/prog_tests/struct_ops_private_stack.c
34
ASSERT_EQ(skel->bss->val_j, 8, "val_j");
tools/testing/selftests/bpf/prog_tests/struct_ops_private_stack.c
88
ASSERT_EQ(skel->bss->val_j, 3, "val_j");
tools/testing/selftests/bpf/prog_tests/subprogs.c
77
ASSERT_EQ(skel->bss->res1, 12, "res1");
tools/testing/selftests/bpf/prog_tests/subprogs.c
78
ASSERT_EQ(skel->bss->res2, 17, "res2");
tools/testing/selftests/bpf/prog_tests/subprogs.c
79
ASSERT_EQ(skel->bss->res3, 19, "res3");
tools/testing/selftests/bpf/prog_tests/subprogs.c
80
ASSERT_EQ(skel->bss->res4, 36, "res4");
tools/testing/selftests/bpf/prog_tests/subskeleton.c
138
ASSERT_EQ(bss->out1, result, "out1");
tools/testing/selftests/bpf/prog_tests/subskeleton.c
32
ASSERT_EQ(result, 1 + 2 + 3 + 4 + 5 + 6, "lib subresult");
tools/testing/selftests/bpf/prog_tests/subskeleton.c
41
ASSERT_EQ(*lib->data.var5, 5, "__weak var5");
tools/testing/selftests/bpf/prog_tests/subskeleton.c
42
ASSERT_EQ(*lib->data.var6, 6, "extern var6");
tools/testing/selftests/bpf/prog_tests/subskeleton.c
75
ASSERT_EQ(skel->bss->out1, result, "unexpected calculation");
tools/testing/selftests/bpf/prog_tests/summarization.c
62
ASSERT_EQ(err, -EINVAL, "err");
tools/testing/selftests/bpf/prog_tests/syscall.c
37
ASSERT_EQ(err, 0, "err");
tools/testing/selftests/bpf/prog_tests/syscall.c
38
ASSERT_EQ(tattr.retval, 1, "retval");
tools/testing/selftests/bpf/prog_tests/syscall.c
45
ASSERT_EQ(err, 0, "map_lookup");
tools/testing/selftests/bpf/prog_tests/syscall.c
46
ASSERT_EQ(value, 34, "map lookup value");
tools/testing/selftests/bpf/prog_tests/syscall.c
69
ASSERT_EQ(err, 0, "err");
tools/testing/selftests/bpf/prog_tests/syscall.c
70
ASSERT_EQ(opts.retval, 1, "retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1079
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1093
ASSERT_EQ(val, 34, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1108
ASSERT_EQ(val, 1, "fentry count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
124
ASSERT_EQ(topts.retval, j, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
133
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1342
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1351
ASSERT_EQ(val, 34, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1367
ASSERT_EQ(val, 68, "fentry count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1384
ASSERT_EQ(val, 68, "fexit count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1394
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1399
ASSERT_EQ(val, 35, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1405
ASSERT_EQ(val, 70, "fentry count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1412
ASSERT_EQ(val, 70, "fexit count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
142
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
1722
ASSERT_EQ(skel->bss->executed, 1, "executed");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
206
ASSERT_EQ(topts.retval, 2, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
215
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
224
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
328
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
341
ASSERT_EQ(val, 33, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
357
ASSERT_EQ(val, 33, "fentry count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
374
ASSERT_EQ(val, 33, "fexit count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
480
ASSERT_EQ(topts.retval, i, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
494
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
570
ASSERT_EQ(topts.retval, i, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
584
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
646
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
668
ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
71
ASSERT_EQ(topts.retval, i, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
726
ASSERT_EQ(topts.retval, 1, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
739
ASSERT_EQ(val, 33, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
80
ASSERT_EQ(topts.retval, 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
809
ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
818
ASSERT_EQ(topts.retval, sizeof(pkt_v4), "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
827
ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
919
ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
924
ASSERT_EQ(val.count, 31, "tailcall count");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
968
ASSERT_EQ(topts.retval, 0, "tailcall retval");
tools/testing/selftests/bpf/prog_tests/tailcalls.c
977
ASSERT_EQ(val, 1, "done flag is set");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
120
ASSERT_EQ(value, 200, "map_a value");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
121
ASSERT_EQ(skel->bss->nr_del_errs, 0, "bpf_task_storage_delete busy");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
126
ASSERT_EQ(value, 1, "map_b value");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
132
ASSERT_EQ(info.recursion_misses, 2, "on_update prog recursion");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
138
ASSERT_EQ(info.recursion_misses, 0, "on_enter prog recursion");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
228
ASSERT_EQ(info.recursion_misses, 0, "prog recursion");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
230
ASSERT_EQ(skel->bss->nr_get_errs, 0, "bpf_task_storage_get busy");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
231
ASSERT_EQ(skel->bss->nr_del_errs, 0, "bpf_task_storage_delete busy");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
252
ASSERT_EQ(udata2.result, expected, "udata2.result");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
253
ASSERT_EQ(udata2.nested_result, expected, "udata2.nested_result");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
319
ASSERT_EQ(err, child_pid, "waitpid");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
320
ASSERT_EQ(udata.result, MAGIC_VALUE + udata.a + udata.b, "udata.result");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
321
ASSERT_EQ(udata.nested_result, MAGIC_VALUE + udata.a + udata.b, "udata.nested_result");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
355
ASSERT_EQ(value.udata, NULL, "value.udata");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
356
ASSERT_EQ(value.nested.udata, NULL, "value.nested.udata");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
403
ASSERT_EQ(errno, EOPNOTSUPP, "errno");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
435
ASSERT_EQ(errno, EOPNOTSUPP, "errno");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
44
ASSERT_EQ(skel->bss->enter_cnt, 3, "enter_cnt");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
440
ASSERT_EQ(errno, ENOENT, "errno");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
45
ASSERT_EQ(skel->bss->exit_cnt, 3, "exit_cnt");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
450
ASSERT_EQ(errno, EEXIST, "errno");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
46
ASSERT_EQ(skel->bss->mismatch_cnt, 0, "mismatch_cnt");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
483
ASSERT_EQ(errno, expected_errno, "errno");
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
82
ASSERT_EQ(skel->bss->valid_ptr_count, 0, "valid_ptr_count");
tools/testing/selftests/bpf/prog_tests/task_pt_regs.c
41
if (!ASSERT_EQ(skel->bss->uprobe_res, 1, "check_uprobe_res"))
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
117
ASSERT_EQ(skel->bss->callback_success, skel->bss->callback_scheduled, "callbacks");
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
106
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex < 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
110
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex < 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
114
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook ifindex < 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
119
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook ifindex < 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
123
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook ifindex < 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
131
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
135
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
139
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
143
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
147
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
155
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
159
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
163
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
167
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
171
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
180
if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_create invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
184
if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_destroy invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
188
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
192
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
196
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook parent"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
206
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
210
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid opts = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
214
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid flags set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
218
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid prog_fd set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
222
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid prog_id set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
226
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid handle unset"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
230
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid priority unset"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
234
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid priority > UINT16_MAX"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
243
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
247
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid opts = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
251
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid flags set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
255
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid prog_fd set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
259
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid prog_id set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
263
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid handle unset"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
267
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid priority unset"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
271
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid priority > UINT16_MAX"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
276
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query valid handle, priority set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
285
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
289
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid opts = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
294
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid flags"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
298
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid prog_fd unset"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
302
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid prog_id set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
318
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid priority > UINT16_MAX"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
356
if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_create invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
364
if (!ASSERT_EQ(ret, -EOPNOTSUPP, "bpf_tc_hook_destroy invalid hook.attach_point"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
41
if (!ASSERT_EQ(opts.handle, 1, "handle set") ||
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
42
!ASSERT_EQ(opts.priority, 1, "priority set") ||
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
43
!ASSERT_EQ(opts.prog_id, info.id, "prog_id set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
57
if (!ASSERT_EQ(opts.handle, 1, "handle set") ||
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
58
!ASSERT_EQ(opts.priority, 1, "priority set") ||
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
59
!ASSERT_EQ(opts.prog_id, info.id, "prog_id set"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
77
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
82
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
86
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex == 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
90
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook ifindex == 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
95
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook ifindex == 0"))
tools/testing/selftests/bpf/prog_tests/tc_bpf.c
99
if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook ifindex == 0"))
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
35
ASSERT_EQ(ret, 2, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
37
ASSERT_EQ(ret, 2, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
38
ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
41
ASSERT_EQ(ret, 1, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
43
ASSERT_EQ(ret, 1, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
44
ASSERT_EQ(skel->data->change_tail_ret, 0, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
47
ASSERT_EQ(ret, 1, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
49
ASSERT_EQ(ret, 1, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
50
ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
53
ASSERT_EQ(ret, 1, "xsend(p1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
55
ASSERT_EQ(ret, 1, "recv(c1)");
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c
56
ASSERT_EQ(skel->data->change_tail_ret, -EINVAL, "change_tail_ret");
tools/testing/selftests/bpf/prog_tests/tc_helpers.h
31
ASSERT_EQ(count, expected, "count");
tools/testing/selftests/bpf/prog_tests/tc_helpers.h
32
ASSERT_EQ(err, 0, "prog_query");
tools/testing/selftests/bpf/prog_tests/tc_links.c
100
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
101
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
106
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
107
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1182
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1184
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1186
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1188
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1241
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1242
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1243
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1244
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1245
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1246
ASSERT_EQ(optq.link_ids[1], lid1, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1247
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1248
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1253
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1254
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1255
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1256
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1292
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1293
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1294
ASSERT_EQ(optq.prog_ids[0], pid4, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1295
ASSERT_EQ(optq.link_ids[0], lid4, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1296
ASSERT_EQ(optq.prog_ids[1], pid3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1297
ASSERT_EQ(optq.link_ids[1], lid3, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1298
ASSERT_EQ(optq.prog_ids[2], pid2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1299
ASSERT_EQ(optq.link_ids[2], lid2, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
130
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1300
ASSERT_EQ(optq.prog_ids[3], pid1, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1301
ASSERT_EQ(optq.link_ids[3], lid1, "link_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1302
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1303
ASSERT_EQ(optq.link_ids[4], 0, "link_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1308
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1309
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1310
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1311
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
132
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1338
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
134
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1340
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1342
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1344
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
136
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1397
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1398
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1399
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1400
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1401
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1402
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1403
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1404
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1409
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1410
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1411
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1412
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1448
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1449
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1450
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1451
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1452
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1453
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1454
ASSERT_EQ(optq.prog_ids[2], pid3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1455
ASSERT_EQ(optq.link_ids[2], lid3, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1456
ASSERT_EQ(optq.prog_ids[3], pid4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1457
ASSERT_EQ(optq.link_ids[3], lid4, "link_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1458
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1459
ASSERT_EQ(optq.link_ids[4], 0, "link_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1464
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1465
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1466
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1467
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1496
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1498
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1500
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1502
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1553
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1554
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1556
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc1)), 0, "tc1_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1557
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc2)), 0, "tc2_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1558
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc3)), 0, "tc3_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1559
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc4)), 0, "tc4_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1567
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1568
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1591
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1593
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc5, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1595
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc6, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1634
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1635
ASSERT_EQ(skel->bss->seen_tc5, false, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1636
ASSERT_EQ(skel->bss->seen_tc6, true, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1647
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1648
ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1649
ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1660
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1661
ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1662
ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1704
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1706
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1750
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1751
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1752
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1763
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1764
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1765
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1847
ASSERT_EQ(if_nametoindex("foo"), 0, "foo removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1848
ASSERT_EQ(if_nametoindex("bar"), 0, "bar removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
185
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
186
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1869
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
187
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1871
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1873
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
1875
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
188
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
189
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
190
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
191
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
192
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1940
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1941
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1943
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc1)), 0, "tc1_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1944
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc2)), 0, "tc2_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1945
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc3)), 0, "tc3_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1946
ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc4)), 0, "tc4_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1954
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
1955
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_links.c
197
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
198
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
199
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
200
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
238
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
239
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
240
ASSERT_EQ(optq.prog_ids[0], pid4, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
241
ASSERT_EQ(optq.link_ids[0], lid4, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
242
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
243
ASSERT_EQ(optq.link_ids[1], lid1, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
244
ASSERT_EQ(optq.prog_ids[2], pid3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
245
ASSERT_EQ(optq.link_ids[2], lid3, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
246
ASSERT_EQ(optq.prog_ids[3], pid2, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
247
ASSERT_EQ(optq.link_ids[3], lid2, "link_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
248
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
249
ASSERT_EQ(optq.link_ids[4], 0, "link_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
254
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
255
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
256
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
257
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
284
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
286
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
288
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
290
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
339
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
340
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
341
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
342
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
343
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
344
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
345
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
346
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
351
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
352
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
353
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
354
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
38
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
39
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
392
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
393
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
394
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
395
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
396
ASSERT_EQ(optq.prog_ids[1], pid3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
397
ASSERT_EQ(optq.link_ids[1], lid3, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
398
ASSERT_EQ(optq.prog_ids[2], pid2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
399
ASSERT_EQ(optq.link_ids[2], lid2, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
400
ASSERT_EQ(optq.prog_ids[3], pid4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
401
ASSERT_EQ(optq.link_ids[3], lid4, "link_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
402
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
403
ASSERT_EQ(optq.link_ids[4], 0, "link_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
408
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
409
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
410
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
411
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_links.c
437
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
439
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
498
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
499
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
500
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
501
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
502
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
503
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
504
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
505
ASSERT_EQ(optq.link_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
510
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
511
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
538
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
540
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
590
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
591
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
592
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
603
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
604
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
605
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
63
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
64
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
643
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
645
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
647
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
65
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
66
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
67
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
68
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
702
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
703
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
704
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
705
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
706
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
707
ASSERT_EQ(optq.link_ids[1], lid1, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
708
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
709
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
714
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
715
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
716
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
73
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
74
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
773
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
774
ASSERT_EQ(optq.revision, 4, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
775
ASSERT_EQ(optq.prog_ids[0], pid3, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
776
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
777
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
778
ASSERT_EQ(optq.link_ids[1], lid1, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
779
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
780
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
785
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
786
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
787
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
803
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
804
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
805
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
806
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
807
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
808
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
813
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
814
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
815
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
831
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
832
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
833
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
834
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
835
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
836
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
841
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_links.c
842
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_links.c
843
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_links.c
868
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
870
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_links.c
96
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_links.c
97
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_links.c
98
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_links.c
99
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
130
ASSERT_EQ(if_nametoindex(netkit_name), 0, netkit_name "_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
206
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
208
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
223
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
224
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
248
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
249
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
250
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
251
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
252
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
253
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
256
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
258
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
259
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
281
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
282
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
283
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
284
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
285
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
286
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
289
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
291
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
292
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
321
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
323
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
337
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
338
ASSERT_EQ(skel->bss->seen_eth, false, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
339
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
362
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
363
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
364
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
365
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
366
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
367
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
370
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
372
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
373
ASSERT_EQ(skel->bss->seen_eth, true, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
374
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
400
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
401
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
402
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
403
ASSERT_EQ(optq.link_ids[0], lid2, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
404
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
405
ASSERT_EQ(optq.link_ids[1], lid1, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
406
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
407
ASSERT_EQ(optq.link_ids[2], 0, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
410
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
412
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
413
ASSERT_EQ(skel->bss->seen_eth, true, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
414
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
460
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
461
ASSERT_EQ(skel->bss->seen_eth, false, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
462
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
465
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
479
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
480
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
481
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
482
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
485
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
487
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
488
ASSERT_EQ(skel->bss->seen_eth, true, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
489
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
497
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
509
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
510
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
511
ASSERT_EQ(optq.prog_ids[0], pid2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
512
ASSERT_EQ(optq.prog_ids[1], pid1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
513
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
516
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
518
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
519
ASSERT_EQ(skel->bss->seen_eth, true, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
520
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
568
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
570
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
572
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
587
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
588
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
612
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
613
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
614
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
615
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
616
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
617
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
620
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
622
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
623
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
630
ASSERT_EQ(err, -EACCES, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
633
ASSERT_EQ(err, -EACCES, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
677
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
688
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
689
ASSERT_EQ(skel->bss->seen_eth, false, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
712
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
713
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
714
ASSERT_EQ(optq.prog_ids[0], pid1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
715
ASSERT_EQ(optq.link_ids[0], lid1, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
716
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
717
ASSERT_EQ(optq.link_ids[1], 0, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
720
ASSERT_EQ(__send_icmp(ping_addr_noneigh), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
722
ASSERT_EQ(skel->bss->seen_tc1, true /* L2: ARP */, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
723
ASSERT_EQ(skel->bss->seen_eth, mode == NETKIT_L3, "seen_eth");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
758
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
760
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc7,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
792
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
794
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
795
ASSERT_EQ(skel->bss->seen_tc7, true, "seen_tc7");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
797
ASSERT_EQ(skel->bss->seen_host, true, "seen_host");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
798
ASSERT_EQ(skel->bss->seen_mcast, true, "seen_mcast");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
829
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc8,
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
839
ASSERT_EQ(skel->bss->seen_tc8, false, "seen_tc8");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
851
ASSERT_EQ(send_icmp(), 0, "icmp_pkt");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
853
ASSERT_EQ(skel->bss->seen_tc8, true, "seen_tc8");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
854
ASSERT_EQ(skel->bss->mark, scrub == NETKIT_SCRUB_NONE ? MARK : 0, "mark");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
855
ASSERT_EQ(skel->bss->prio, scrub == NETKIT_SCRUB_NONE ? PRIO : 0, "prio");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
856
ASSERT_EQ(skel->bss->headroom, room ? NETKIT_HEADROOM : 0, "headroom");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
857
ASSERT_EQ(skel->bss->tailroom, room ? NETKIT_TAILROOM : 0, "tailroom");
tools/testing/selftests/bpf/prog_tests/tc_netkit.c
92
ASSERT_EQ(system("ip link set dev " netkit_name
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1001
ASSERT_EQ(err, -EINVAL, "prog_attach_x1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1010
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1057
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1067
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1081
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1082
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1083
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1084
ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1085
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1090
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1091
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1092
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1093
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1100
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1108
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1120
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1121
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1122
ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1123
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1124
ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1125
ASSERT_EQ(optq.prog_ids[3], id1, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1126
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1131
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1132
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1133
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1134
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1197
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1207
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1221
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1222
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1223
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1224
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1225
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1230
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1231
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1232
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1233
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1240
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1248
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1260
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1261
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1262
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1263
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1264
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1265
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1266
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1271
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1272
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1273
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1274
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1340
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1346
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1352
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1358
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1384
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1385
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1411
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1413
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1415
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1417
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
142
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1437
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1460
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1471
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
148
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1482
ASSERT_EQ(err, -EBUSY, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1493
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1516
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1533
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1534
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1535
ASSERT_EQ(optq.prog_ids[0], pid3, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1536
ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1537
ASSERT_EQ(optq.link_ids[0], 0, "link_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1538
ASSERT_EQ(optq.link_attach_flags[0], 0, "link_flags[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1539
ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1540
ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1541
ASSERT_EQ(optq.link_ids[1], lid2, "link_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1542
ASSERT_EQ(optq.link_attach_flags[1], 0, "link_flags[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1543
ASSERT_EQ(optq.prog_ids[2], pid4, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1544
ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1545
ASSERT_EQ(optq.link_ids[2], lid4, "link_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1546
ASSERT_EQ(optq.link_attach_flags[2], 0, "link_flags[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1547
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1548
ASSERT_EQ(optq.prog_attach_flags[3], 0, "prog_flags[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1549
ASSERT_EQ(optq.link_ids[3], 0, "link_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1550
ASSERT_EQ(optq.link_attach_flags[3], 0, "link_flags[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1584
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1586
ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target),
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1601
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1618
ASSERT_EQ(err, -EBUSY, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
162
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
163
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
164
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
165
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
166
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1680
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1686
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1692
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1698
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
171
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1712
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1713
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1714
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1715
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1716
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1717
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1718
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
172
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
173
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1736
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1737
ASSERT_EQ(optq.revision, 6, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1738
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1739
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
174
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1740
ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1741
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1759
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1760
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1761
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1762
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1763
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1780
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1787
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
182
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1851
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1857
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1863
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1869
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1883
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1884
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1885
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1886
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1887
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1888
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1889
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1908
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1909
ASSERT_EQ(optq.revision, 6, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1910
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1911
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1912
ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1913
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
192
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1921
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
193
ASSERT_EQ(optq.revision, 4, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1930
ASSERT_EQ(err, -ERANGE, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1939
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
194
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
195
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1959
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
196
ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1960
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1961
ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1962
ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1963
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
197
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1982
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1983
ASSERT_EQ(optq.revision, 8, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1984
ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
1985
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
205
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2058
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2064
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2070
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2076
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2090
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2091
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2092
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2093
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2094
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2095
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2096
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2115
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2116
ASSERT_EQ(optq.revision, 6, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2117
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2118
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2119
ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2120
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2128
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2137
ASSERT_EQ(err, -ERANGE, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2146
ASSERT_EQ(err, -ERANGE, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2155
ASSERT_EQ(err, -ERANGE, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
217
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2175
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2176
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2177
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2178
ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2179
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
218
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
219
ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2198
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2199
ASSERT_EQ(optq.revision, 8, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
220
ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2200
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2201
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
221
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
222
ASSERT_EQ(optq.prog_ids[3], id2, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
223
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2258
ASSERT_EQ(err, -ENOENT, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
228
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
229
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
230
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
231
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2314
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2324
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2325
ASSERT_EQ(skel->bss->seen_tc5, false, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2326
ASSERT_EQ(skel->bss->seen_tc6, true, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2334
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2344
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2345
ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2346
ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2356
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2357
ASSERT_EQ(skel->bss->seen_tc5, true, "seen_tc5");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2358
ASSERT_EQ(skel->bss->seen_tc6, false, "seen_tc6");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2420
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2436
ASSERT_EQ(err, -ERANGE, "prog_64_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2443
ASSERT_EQ(if_nametoindex("tcx_opts1"), 0, "dev1_removed");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2444
ASSERT_EQ(if_nametoindex("tcx_opts2"), 0, "dev2_removed");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2492
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2502
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2512
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2522
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2532
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2533
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2534
ASSERT_EQ(optq.prog_ids, NULL, "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2535
ASSERT_EQ(optq.link_ids, NULL, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2544
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2545
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2546
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2547
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2548
ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2549
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2550
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2551
ASSERT_EQ(optq.link_ids, NULL, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2562
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2563
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2564
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2565
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2566
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2567
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2568
ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2569
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2570
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2571
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2580
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2581
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2582
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2583
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2584
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2585
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2586
ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2587
ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2588
ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2589
ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2590
ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2591
ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2592
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2593
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2594
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2606
ASSERT_EQ(err, -1, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2607
ASSERT_EQ(errno, ENOSPC, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2609
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2610
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2611
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2612
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2613
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2614
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2615
ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2616
ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2617
ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2618
ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2619
ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2620
ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2621
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2622
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2623
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2638
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2639
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2640
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2641
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2642
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2643
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2644
ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2645
ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2646
ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2647
ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2648
ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2649
ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2650
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2651
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2652
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2666
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2667
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2668
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2669
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2670
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2671
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2672
ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2673
ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2674
ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2675
ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2676
ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2677
ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2678
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2679
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2680
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2694
ASSERT_EQ(attr.query.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2695
ASSERT_EQ(attr.query.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2696
ASSERT_EQ(attr.query.query_flags, 0, "query_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2697
ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2698
ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2699
ASSERT_EQ(attr.query.attach_type, target, "attach_type");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2700
ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2701
ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2702
ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2703
ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2704
ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2705
ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2706
ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2707
ASSERT_EQ(attr.query.link_ids, 0, "link_ids");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2708
ASSERT_EQ(attr.query.link_attach_flags, 0, "link_attach_flags");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2715
ASSERT_EQ(err, -1, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2716
ASSERT_EQ(errno, EINVAL, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2722
ASSERT_EQ(err, -1, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2723
ASSERT_EQ(errno, EINVAL, "prog_query_should_fail");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2776
ASSERT_EQ(optq.count, 0, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2777
ASSERT_EQ(optq.revision, 1, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2784
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2795
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2796
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2797
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2798
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
294
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
300
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
314
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
315
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
316
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
317
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
318
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
323
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
324
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
325
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
326
ASSERT_EQ(skel->bss->seen_tc4, false, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
334
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
344
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
345
ASSERT_EQ(optq.revision, 4, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
346
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
347
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
348
ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
349
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
357
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
369
ASSERT_EQ(optq.count, 4, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
370
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
371
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
372
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
373
ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
374
ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
375
ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
38
ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
380
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
381
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
382
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
383
ASSERT_EQ(skel->bss->seen_tc4, true, "seen_tc4");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
39
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
397
ASSERT_EQ(optq.count, 3, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
398
ASSERT_EQ(optq.revision, 6, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
399
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
400
ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
401
ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
402
ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
416
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
417
ASSERT_EQ(optq.revision, 7, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
418
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
419
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
42
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
420
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
434
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
435
ASSERT_EQ(optq.revision, 8, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
436
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
437
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
483
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
493
if (!ASSERT_EQ(err, -ESTALE, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
503
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
517
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
518
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
519
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
520
ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
521
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
526
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
527
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
534
ASSERT_EQ(err, -ESTALE, "prog_detach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
57
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
58
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
59
ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
60
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
609
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
613
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
621
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
622
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
623
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
634
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
635
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
636
ASSERT_EQ(skel->bss->seen_tc3, chain_tc_old, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
65
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
66
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
69
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
698
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
710
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
728
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
729
ASSERT_EQ(optq.revision, 3, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
730
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
731
ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
732
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
734
ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
735
ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
736
ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
741
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
742
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
743
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
752
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
766
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
767
ASSERT_EQ(optq.revision, 4, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
768
ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
769
ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
770
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
775
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
776
ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
777
ASSERT_EQ(skel->bss->seen_tc3, true, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
787
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
801
ASSERT_EQ(optq.count, 2, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
802
ASSERT_EQ(optq.revision, 5, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
803
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
804
ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
805
ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
810
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
811
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
812
ASSERT_EQ(skel->bss->seen_tc3, false, "seen_tc3");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
82
ASSERT_EQ(optq.count, 1, "count");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
820
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
83
ASSERT_EQ(optq.revision, 2, "revision");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
831
ASSERT_EQ(err, -ERANGE, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
84
ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
842
ASSERT_EQ(err, -ERANGE, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
85
ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
90
ASSERT_EQ(skel->bss->seen_tc1, true, "seen_tc1");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
900
ASSERT_EQ(err, -ERANGE, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
908
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
91
ASSERT_EQ(skel->bss->seen_tc2, true, "seen_tc2");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
916
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
924
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
933
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
942
ASSERT_EQ(err, -EINVAL, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
951
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
960
ASSERT_EQ(err, -ENOENT, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
966
if (!ASSERT_EQ(err, 0, "prog_attach"))
tools/testing/selftests/bpf/prog_tests/tc_opts.c
974
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
983
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_opts.c
992
ASSERT_EQ(err, -EEXIST, "prog_attach");
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
156
if (!ASSERT_EQ(ret, IFADDR_STR_LEN, "fread ifaddr")) {
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
440
if (!ASSERT_EQ(n, sizeof(buf), "send to server"))
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
444
ASSERT_EQ(n, sizeof(buf), "recv from server");
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
508
if (!ASSERT_EQ(ret, s, "recvmsg"))
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
567
if (!ASSERT_EQ(n, sizeof(buf), "send to server"))
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
621
ASSERT_EQ(ret, s, "sendmsg");
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
672
if (!ASSERT_EQ(n, sizeof(buf), "send to server"))
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
838
ASSERT_EQ(dtimes[INGRESS_FWDNS_P100], 0,
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
840
ASSERT_EQ(dtimes[INGRESS_FWDNS_P101], 0,
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
844
ASSERT_EQ(dtimes[EGRESS_FWDNS_P101], 0,
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
852
ASSERT_EQ(errs[i], 0, dtime_err_str(t, i));
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
878
ASSERT_EQ(dtimes[INGRESS_FWDNS_P100], 0,
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
884
ASSERT_EQ(errs[i], 0, dtime_err_str(t, i));
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
907
ASSERT_EQ(dtimes[INGRESS_FWDNS_P100], 0,
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
913
ASSERT_EQ(errs[i], 0, dtime_err_str(t, i));
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
142
ASSERT_EQ(skel->bss->handled_syn, true, "SYN is not handled at tc.");
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
143
ASSERT_EQ(skel->bss->handled_ack, true, "ACK is not handled at tc");
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
78
if (!ASSERT_EQ(ret, msglen, "send"))
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
84
if (!ASSERT_EQ(ret, msglen, "recv"))
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
88
if (!ASSERT_EQ(ret, 0, "strncmp"))
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
133
if (!ASSERT_EQ(ret, sizeof(fast), "read fastopen syn data")) {
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
154
if (!ASSERT_EQ(memcmp(exp, act, sizeof(*exp)), 0, hdr_desc)) {
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
172
if (!ASSERT_EQ(memcmp(exp, &act, sizeof(*exp)), 0, stg_desc)) {
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
216
if (!ASSERT_EQ(expected_inherit_cb_flags, skel->bss->inherit_cb_flags,
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
484
if (!ASSERT_EQ(ret, sizeof(send_msg), "send(msg)"))
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
488
if (!ASSERT_EQ(ret, sizeof(send_msg), "read(msg)"))
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
495
ASSERT_EQ(misc_skel->bss->nr_syn, 1, "unexpected nr_syn");
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
497
ASSERT_EQ(misc_skel->bss->nr_data, nr_data, "unexpected nr_data");
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
506
ASSERT_EQ(misc_skel->bss->nr_fin, 1, "unexpected nr_fin");
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
508
ASSERT_EQ(misc_skel->bss->nr_hwtstamp, 0, "nr_hwtstamp");
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
80
if (!ASSERT_EQ(ret, 0, "read-after-shutdown(passive_fd):"))
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
85
if (!ASSERT_EQ(ret, 0, "read-after-shutdown(active_fd):"))
tools/testing/selftests/bpf/prog_tests/tcp_rtt.c
23
ASSERT_EQ(write(fd, &b, sizeof(b)), 1, "send single byte");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
23
ASSERT_EQ(expected_events, result->event_map, "event_map");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
25
ASSERT_EQ(result->bytes_received, 501, "bytes_received");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
26
ASSERT_EQ(result->bytes_acked, 1002, "bytes_acked");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
27
ASSERT_EQ(result->data_segs_in, 1, "data_segs_in");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
28
ASSERT_EQ(result->data_segs_out, 1, "data_segs_out");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
29
ASSERT_EQ(result->bad_cb_test_rv, 0x80, "bad_cb_test_rv");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
30
ASSERT_EQ(result->good_cb_test_rv, 0, "good_cb_test_rv");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
31
ASSERT_EQ(result->num_listen, 1, "num_listen");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
34
ASSERT_EQ(result->num_close_events, 3, "num_close_events");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
37
ASSERT_EQ(result->tcp_save_syn, 0, "tcp_save_syn");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
40
ASSERT_EQ(result->tcp_saved_syn, 1, "tcp_saved_syn");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
43
ASSERT_EQ(result->window_clamp_client, 9216, "window_clamp_client");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
44
ASSERT_EQ(result->window_clamp_server, 9216, "window_clamp_server");
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
71
if (!ASSERT_EQ(rv, 1000, "send(cli_fd)"))
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
75
if (!ASSERT_EQ(rv, 1000, "recv(accept_fd)"))
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
83
if (!ASSERT_EQ(rv, 500, "send(accept_fd)"))
tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
87
if (!ASSERT_EQ(rv, 500, "recv(cli_fd)"))
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
140
if (!ASSERT_EQ(nl->nla_type, CTRL_ATTR_FAMILY_ID, "nl_family nla type"))
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
358
ASSERT_EQ(skel->bss->smc_cnt, 2, "smc count");
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
359
ASSERT_EQ(skel->bss->fallback_cnt, 1, "fallback count");
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
364
ASSERT_EQ(skel->bss->smc_cnt, 3, "smc count");
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
365
ASSERT_EQ(skel->bss->fallback_cnt, 1, "fallback count");
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
370
ASSERT_EQ(skel->bss->smc_cnt, 4, "smc count");
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
371
ASSERT_EQ(skel->bss->fallback_cnt, 2, "fallback count");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
41
ASSERT_EQ(skel->bss->arg1, exp_arg1, "syscall_arg1");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
42
ASSERT_EQ(skel->bss->arg2, exp_arg2, "syscall_arg2");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
43
ASSERT_EQ(skel->bss->arg3, exp_arg3, "syscall_arg3");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
48
ASSERT_EQ(skel->bss->arg4_cx, exp_arg4, "syscall_arg4_from_cx");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
50
ASSERT_EQ(skel->bss->arg4, exp_arg4, "syscall_arg4");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
51
ASSERT_EQ(skel->bss->arg5, exp_arg5, "syscall_arg5");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
54
ASSERT_EQ(skel->bss->arg1_core, exp_arg1, "syscall_arg1_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
55
ASSERT_EQ(skel->bss->arg2_core, exp_arg2, "syscall_arg2_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
56
ASSERT_EQ(skel->bss->arg3_core, exp_arg3, "syscall_arg3_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
61
ASSERT_EQ(skel->bss->arg4_core_cx, exp_arg4, "syscall_arg4_from_cx_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
63
ASSERT_EQ(skel->bss->arg4_core, exp_arg4, "syscall_arg4_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
64
ASSERT_EQ(skel->bss->arg5_core, exp_arg5, "syscall_arg5_core_variant");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
66
ASSERT_EQ(skel->bss->option_syscall, exp_arg1, "BPF_KPROBE_SYSCALL_option");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
67
ASSERT_EQ(skel->bss->arg2_syscall, exp_arg2, "BPF_KPROBE_SYSCALL_arg2");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
68
ASSERT_EQ(skel->bss->arg3_syscall, exp_arg3, "BPF_KPROBE_SYSCALL_arg3");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
69
ASSERT_EQ(skel->bss->arg4_syscall, exp_arg4, "BPF_KPROBE_SYSCALL_arg4");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
70
ASSERT_EQ(skel->bss->arg5_syscall, exp_arg5, "BPF_KPROBE_SYSCALL_arg5");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
74
ASSERT_EQ(r, -1, "splice_res");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
75
ASSERT_EQ(err, -EBADF, "splice_err");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
77
ASSERT_EQ(skel->bss->splice_fd_in, -42, "splice_arg1");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
78
ASSERT_EQ(skel->bss->splice_off_in, (__u64)&off_in, "splice_arg2");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
79
ASSERT_EQ(skel->bss->splice_fd_out, 42, "splice_arg3");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
80
ASSERT_EQ(skel->bss->splice_off_out, (__u64)&off_out, "splice_arg4");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
81
ASSERT_EQ(skel->bss->splice_len, 0x12340000, "splice_arg5");
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
82
ASSERT_EQ(skel->bss->splice_flags, SPLICE_F_NONBLOCK, "splice_arg6");
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
107
if (!ASSERT_EQ(a.st_ino, b.st_ino, "b should have a's inode"))
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
123
if (!ASSERT_EQ(c.st_ino, b.st_ino, "b should have c's inode"))
tools/testing/selftests/bpf/prog_tests/test_btf_ext.c
46
if (!ASSERT_EQ(libbbpf_line_info_cnt, info.nr_line_info, "line_info_cnt"))
tools/testing/selftests/bpf/prog_tests/test_btf_ext.c
50
if (!ASSERT_EQ(libbbpf_func_info_cnt, info.nr_func_info, "func_info_cnt"))
tools/testing/selftests/bpf/prog_tests/test_csum_diff.c
380
if (!ASSERT_EQ(err, 0, "csum_diff_test load"))
tools/testing/selftests/bpf/prog_tests/test_csum_diff.c
388
ASSERT_EQ(got, tests[i].result, "csum_diff result");
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
102
if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind"))
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
111
if (!ASSERT_EQ(btf_vlen(proto_t), 1, "arg_cnt"))
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
121
if (!ASSERT_EQ(btf_vlen(proto_t), 3, "arg_cnt"))
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
32
if (!ASSERT_EQ(btf_kind(t), BTF_KIND_PTR, "ptr_t"))
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
84
if (!ASSERT_EQ(info.nr_func_info, 3, "nr_func_info"))
tools/testing/selftests/bpf/prog_tests/test_ima.c
109
ASSERT_EQ(err, 1, "num_samples_or_err");
tools/testing/selftests/bpf/prog_tests/test_ima.c
124
ASSERT_EQ(err, 2, "num_samples_or_err");
tools/testing/selftests/bpf/prog_tests/test_ima.c
158
ASSERT_EQ(ima_hash_from_bpf[0], bin_true_sample,
tools/testing/selftests/bpf/prog_tests/test_ima.c
182
ASSERT_EQ(err, 4, "num_samples_or_err");
tools/testing/selftests/bpf/prog_tests/test_ima.c
189
ASSERT_EQ(ima_hash_from_bpf[3], ima_hash_from_bpf[2],
tools/testing/selftests/bpf/prog_tests/test_ima.c
213
ASSERT_EQ(err, 2, "num_samples_or_err");
tools/testing/selftests/bpf/prog_tests/test_ima.c
231
ASSERT_EQ(err, 0, "num_samples_or_err");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
125
ASSERT_EQ(skel->bss->set_mark, -2, "set_mark");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
36
ASSERT_EQ(skel->bss->done1, 1, "done1");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
37
ASSERT_EQ(skel->bss->ret1, 1, "ret1");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
38
ASSERT_EQ(skel->bss->done2, 1, "done2");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
39
ASSERT_EQ(skel->bss->ret2, 1, "ret2");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
40
ASSERT_EQ(skel->bss->int_member, -1, "int_member");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
84
ASSERT_EQ(skel->bss->set_optlen, -1, "optlen");
tools/testing/selftests/bpf/prog_tests/test_ldsx_insn.c
85
ASSERT_EQ(skel->bss->set_retval, -1, "retval");
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
138
if (!ASSERT_EQ(err, EPERM, "run_self_unlink"))
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
152
ASSERT_EQ(skel->data->inode_storage_result, 0, "inode_storage_result");
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
158
ASSERT_EQ(skel->data->sk_storage_result, 0, "sk_storage_result");
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
47
ASSERT_EQ(skel->data->task_storage_result, 0, "task_storage_result");
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
62
if (!ASSERT_EQ(err, -ENOENT, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
76
if (!ASSERT_EQ(lookup_val.value, val.value, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
85
if (!ASSERT_EQ(err, -ENOENT, "bpf_map_lookup_elem"))
tools/testing/selftests/bpf/prog_tests/test_lsm.c
74
ASSERT_EQ(skel->bss->bprm_count, 1, "bprm_count");
tools/testing/selftests/bpf/prog_tests/test_lsm.c
79
if (!ASSERT_EQ(err, -1, "stack_mprotect") ||
tools/testing/selftests/bpf/prog_tests/test_lsm.c
80
!ASSERT_EQ(errno, EPERM, "stack_mprotect"))
tools/testing/selftests/bpf/prog_tests/test_lsm.c
83
ASSERT_EQ(skel->bss->mprotect_count, 1, "mprotect_count");
tools/testing/selftests/bpf/prog_tests/test_lsm.c
89
ASSERT_EQ(skel->bss->copy_test, 3, "copy_test");
tools/testing/selftests/bpf/prog_tests/test_mmap_inner_array.c
37
ASSERT_EQ(*val, 0, "value match 1");
tools/testing/selftests/bpf/prog_tests/test_mmap_inner_array.c
51
ASSERT_EQ(*val, skel->data->match_value, "value match 2");
tools/testing/selftests/bpf/prog_tests/test_skb_pkt_end.c
21
if (!ASSERT_EQ(topts.retval, 123, "test_run retval"))
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
38
ASSERT_EQ(got, exp, name);
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
56
if (!ASSERT_EQ(err, 0, "strncmp_test load"))
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
60
if (!ASSERT_EQ(err, 0, "strncmp_test attach"))
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
68
ASSERT_EQ(got, -1, "strncmp: empty str");
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
73
ASSERT_EQ(got, 0, "strncmp: same str");
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
79
ASSERT_EQ(got, 1, "strncmp: not-null-term str");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
133
ASSERT_EQ(skel->bss->timer_test_1_ret, 1234, "skel->bss->timer_test_1_ret");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
134
ASSERT_EQ(skel->bss->test_err, 0, "skel->bss->test_err_a");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
175
ASSERT_EQ(skel->bss->timer_test_1_ret, -1, "skel->bss->timer_test_1_ret");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
176
ASSERT_EQ(skel->bss->test_err, 0, "skel->bss->test_err_a");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
53
ASSERT_EQ(skel->bss->test_err_a, 0, "skel->bss->test_err_a");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
54
ASSERT_EQ(skel->bss->test_err_b, 0, "skel->bss->test_err_b");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
63
ASSERT_EQ(skel->bss->test_err_a, 0, "skel->bss->test_err_a");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
64
ASSERT_EQ(skel->bss->test_err_b, 0, "skel->bss->test_err_b");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
98
ASSERT_EQ(skel->bss->test_err_a, 0, "skel->bss->test_err_a");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_assoc.c
99
ASSERT_EQ(skel->bss->test_err_b, 0, "skel->bss->test_err_b");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_id_ops_mapping.c
62
ASSERT_EQ(skel1->bss->test_err, 0, "skel1->bss->test_err");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_id_ops_mapping.c
63
ASSERT_EQ(skel2->bss->test_err, 0, "skel2->bss->test_err");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
286
if (!ASSERT_EQ(nfds, 1, "epoll_wait"))
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
289
if (!ASSERT_EQ(events[0].data.fd, fd, "epoll_wait_fd"))
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
32
if (!ASSERT_EQ(strcmp(btf_name, "bpf_testmod"), 0, "get_value_type_btf_obj_name"))
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
51
ASSERT_EQ(skel->bss->test_1_result, 0xdeadbeef, "test_1_result");
tools/testing/selftests/bpf/prog_tests/test_struct_ops_module.c
52
ASSERT_EQ(skel->bss->test_2_result, expected_test_2_result, "test_2_result");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
110
ASSERT_EQ(skel->bss->test_value0, tid + 5, "tld_get_data value0");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
111
ASSERT_EQ(skel->bss->test_value1, tid + 4, "tld_get_data value1");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
112
ASSERT_EQ(skel->bss->test_value2.a, tid + 3, "tld_get_data value2.a");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
113
ASSERT_EQ(skel->bss->test_value2.b, tid + 2, "tld_get_data value2.b");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
114
ASSERT_EQ(skel->bss->test_value2.c, tid + 1, "tld_get_data value2.c");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
115
ASSERT_EQ(skel->bss->test_value2.d, tid + 0, "tld_get_data value2.d");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
155
ASSERT_EQ(tld_key_err_or_zero(key), -E2BIG, "tld_create_key");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
158
ASSERT_EQ(tld_key_err_or_zero(key), -EEXIST, "tld_create_key");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
167
ASSERT_EQ(tld_key_err_or_zero(key), -ENOSPC, "tld_create_key");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
81
ASSERT_EQ(skel->bss->test_value0, tid + 0, "tld_get_data value0");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
82
ASSERT_EQ(skel->bss->test_value1, tid + 1, "tld_get_data value1");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
83
ASSERT_EQ(skel->bss->test_value2.a, tid + 2, "tld_get_data value2.a");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
84
ASSERT_EQ(skel->bss->test_value2.b, tid + 3, "tld_get_data value2.b");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
85
ASSERT_EQ(skel->bss->test_value2.c, tid + 4, "tld_get_data value2.c");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
86
ASSERT_EQ(skel->bss->test_value2.d, tid + 5, "tld_get_data value2.d");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
90
ASSERT_EQ(*value0, tid + 0, "value0");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
91
ASSERT_EQ(*value1, tid + 1, "value1");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
92
ASSERT_EQ(value2->a, tid + 2, "value2.a");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
93
ASSERT_EQ(value2->b, tid + 3, "value2.b");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
94
ASSERT_EQ(value2->c, tid + 4, "value2.c");
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c
95
ASSERT_EQ(value2->d, tid + 5, "value2.d");
tools/testing/selftests/bpf/prog_tests/test_task_work.c
42
if (!ASSERT_EQ(strcmp(expected_data, value.data), 0, "map data")) {
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
162
if (!ASSERT_EQ(err, len, "check rx data len"))
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
224
if (!ASSERT_EQ(err, DEFAULT_TEST_DATA_SIZE, "send data from client"))
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
235
if (!ASSERT_EQ(err, GSO_TEST_DATA_SIZE, "send (large) data from client"))
tools/testing/selftests/bpf/prog_tests/test_tc_tunnel.c
432
if (!ASSERT_EQ(err, BUFFER_LEN, "read random bytes"))
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
737
if (!ASSERT_EQ(skel->bss->xfrm_reqid, 1, "req_id"))
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
739
if (!ASSERT_EQ(skel->bss->xfrm_spi, XFRM_SPI_IN_TO_OUT, "spi"))
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
741
if (!ASSERT_EQ(skel->bss->xfrm_remote_ip, 0xac100164, "remote_ip"))
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
743
if (!ASSERT_EQ(skel->bss->xfrm_replay_window, 42, "replay_window"))
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c
421
ASSERT_EQ(cnt, i ? 4 : 0, "compare IP cnt");
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c
424
ASSERT_EQ(cnt, 4, "compare IP cnt");
tools/testing/selftests/bpf/prog_tests/time_tai.c
63
ASSERT_EQ(ret, 0, "tai_gettime");
tools/testing/selftests/bpf/prog_tests/timer.c
212
ASSERT_EQ(timer_skel->data->callback_check, 52, "callback_check1");
tools/testing/selftests/bpf/prog_tests/timer.c
213
ASSERT_EQ(timer_skel->data->callback2_check, 52, "callback2_check1");
tools/testing/selftests/bpf/prog_tests/timer.c
214
ASSERT_EQ(timer_skel->bss->pinned_callback_check, 0, "pinned_callback_check1");
tools/testing/selftests/bpf/prog_tests/timer.c
219
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/timer.c
224
ASSERT_EQ(timer_skel->data->callback_check, 42, "callback_check2");
tools/testing/selftests/bpf/prog_tests/timer.c
225
ASSERT_EQ(timer_skel->data->callback2_check, 42, "callback2_check2");
tools/testing/selftests/bpf/prog_tests/timer.c
228
ASSERT_EQ(timer_skel->bss->bss_data, 10, "bss_data");
tools/testing/selftests/bpf/prog_tests/timer.c
231
ASSERT_EQ(timer_skel->bss->abs_data, 12, "abs_data");
tools/testing/selftests/bpf/prog_tests/timer.c
234
ASSERT_EQ(timer_skel->bss->pinned_callback_check, 2, "pinned_callback_check");
tools/testing/selftests/bpf/prog_tests/timer.c
237
ASSERT_EQ(timer_skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/timer.c
240
ASSERT_EQ(timer_skel->bss->ok, 1 | 2 | 4, "ok");
tools/testing/selftests/bpf/prog_tests/timer.c
253
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/timer.c
257
ASSERT_EQ(timer_skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/timer.c
260
ASSERT_EQ(timer_skel->bss->ok, 1 | 2 | 4, "ok");
tools/testing/selftests/bpf/prog_tests/timer.c
345
ASSERT_EQ(skel->bss->in_interrupt, 0, "in_interrupt");
tools/testing/selftests/bpf/prog_tests/timer.c
60
ASSERT_EQ(ret, (void *)&prog_fd, "pthread_join");
tools/testing/selftests/bpf/prog_tests/timer_mim.c
20
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/timer_mim.c
33
ASSERT_EQ(timer_skel->bss->err, 0, "err");
tools/testing/selftests/bpf/prog_tests/timer_mim.c
35
ASSERT_EQ(timer_skel->bss->ok, 1 | 2, "ok");
tools/testing/selftests/bpf/prog_tests/timer_mim.c
39
ASSERT_EQ(err, 0, "delete inner map");
tools/testing/selftests/bpf/prog_tests/timer_mim.c
49
ASSERT_EQ(cnt2, cnt1, "cnt");
tools/testing/selftests/bpf/prog_tests/timer_start_deadlock.c
28
ASSERT_EQ(opts.retval, 0, "prog_retval");
tools/testing/selftests/bpf/prog_tests/timer_start_deadlock.c
30
ASSERT_EQ(skel->bss->tp_called, 1, "tp_called");
tools/testing/selftests/bpf/prog_tests/timer_start_delete_race.c
132
ASSERT_EQ(ctx.errors, 0, "thread_errors");
tools/testing/selftests/bpf/prog_tests/token.c
1067
if (!ASSERT_EQ(info.allowed_cmds, bit(BPF_MAP_CREATE), "token_info_cmds_map_create")) {
tools/testing/selftests/bpf/prog_tests/token.c
1071
if (!ASSERT_EQ(info.allowed_progs, bit(BPF_PROG_TYPE_XDP), "token_info_progs_xdp")) {
tools/testing/selftests/bpf/prog_tests/token.c
1077
if (ASSERT_EQ(info.allowed_progs, bit(BPF_PROG_TYPE_EXT), "token_info_progs_ext"))
tools/testing/selftests/bpf/prog_tests/token.c
171
if (!ASSERT_EQ(err, 1, "sendmsg"))
tools/testing/selftests/bpf/prog_tests/token.c
201
if (!ASSERT_EQ(err, 1, "recvmsg"))
tools/testing/selftests/bpf/prog_tests/token.c
206
!ASSERT_EQ(cmsg->cmsg_len, CMSG_LEN(sizeof(fds)), "cmsg_len") ||
tools/testing/selftests/bpf/prog_tests/token.c
207
!ASSERT_EQ(cmsg->cmsg_level, SOL_SOCKET, "cmsg_level") ||
tools/testing/selftests/bpf/prog_tests/token.c
208
!ASSERT_EQ(cmsg->cmsg_type, SCM_RIGHTS, "cmsg_type"))
tools/testing/selftests/bpf/prog_tests/token.c
320
ASSERT_EQ(err, -EPERM, "delegate_cmd_eperm");
tools/testing/selftests/bpf/prog_tests/token.c
322
ASSERT_EQ(err, -EPERM, "delegate_maps_eperm");
tools/testing/selftests/bpf/prog_tests/token.c
324
ASSERT_EQ(err, -EPERM, "delegate_progs_eperm");
tools/testing/selftests/bpf/prog_tests/token.c
326
ASSERT_EQ(err, -EPERM, "delegate_attachs_eperm");
tools/testing/selftests/bpf/prog_tests/token.c
356
if (!ASSERT_EQ(err, -EPERM, "delegate_cmd_eperm_reconfig")) {
tools/testing/selftests/bpf/prog_tests/token.c
361
if (!ASSERT_EQ(err, -EPERM, "delegate_maps_eperm_reconfig")) {
tools/testing/selftests/bpf/prog_tests/token.c
366
if (!ASSERT_EQ(err, -EPERM, "delegate_progs_eperm_reconfig")) {
tools/testing/selftests/bpf/prog_tests/token.c
371
if (!ASSERT_EQ(err, -EPERM, "delegate_attachs_eperm_reconfig")) {
tools/testing/selftests/bpf/prog_tests/token.c
449
if (!ASSERT_EQ(err, sizeof(one), "send_one"))
tools/testing/selftests/bpf/prog_tests/token.c
680
if (!ASSERT_EQ(prog_fd, -EPERM, "prog_fd_eperm")) {
tools/testing/selftests/bpf/prog_tests/token.c
694
if (!ASSERT_EQ(prog_fd, -EPERM, "prog_fd_eperm")) {
tools/testing/selftests/bpf/prog_tests/token.c
704
if (!ASSERT_EQ(prog_fd, -EPERM, "prog_fd_eperm")) {
tools/testing/selftests/bpf/prog_tests/trace_ext.c
106
ASSERT_EQ(bss_trace->fentry_called, len,
tools/testing/selftests/bpf/prog_tests/trace_ext.c
108
ASSERT_EQ(bss_trace->fexit_called, len,
tools/testing/selftests/bpf/prog_tests/trace_printk.c
26
ASSERT_EQ(skel->rodata->fmt[0], 'T', "skel->rodata->fmt[0]");
tools/testing/selftests/bpf/prog_tests/trace_printk.c
53
if (!ASSERT_EQ(found, bss->trace_printk_ran, "found"))
tools/testing/selftests/bpf/prog_tests/trace_vprintk.c
46
if (!ASSERT_EQ(found, bss->trace_vprintk_ran, "found"))
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
100
ASSERT_EQ(skel->bss->t9_d, 19, "t9:d");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
101
ASSERT_EQ(skel->bss->t9_e, 20, "t9:e");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
102
ASSERT_EQ(skel->bss->t9_f, 21, "t9:f");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
103
ASSERT_EQ(skel->bss->t9_g, 22, "t9:f");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
104
ASSERT_EQ(skel->bss->t9_h_a, 23, "t9:h.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
105
ASSERT_EQ(skel->bss->t9_h_b, 24, "t9:h.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
106
ASSERT_EQ(skel->bss->t9_h_c, 25, "t9:h.c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
107
ASSERT_EQ(skel->bss->t9_h_d, 26, "t9:h.d");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
108
ASSERT_EQ(skel->bss->t9_i, 27, "t9:i");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
109
ASSERT_EQ(skel->bss->t9_ret, 258, "t9 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
130
ASSERT_EQ(skel->bss->ut1_a_a, 1, "ut1:a.arg.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
131
ASSERT_EQ(skel->bss->ut1_b, 4, "ut1:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
132
ASSERT_EQ(skel->bss->ut1_c, 5, "ut1:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
134
ASSERT_EQ(skel->bss->ut2_a, 6, "ut2:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
135
ASSERT_EQ(skel->bss->ut2_b_a, 2, "ut2:b.arg.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
136
ASSERT_EQ(skel->bss->ut2_b_b, 3, "ut2:b.arg.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
23
ASSERT_EQ(skel->bss->t1_a_a, 2, "t1:a.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
24
ASSERT_EQ(skel->bss->t1_a_b, 3, "t1:a.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
25
ASSERT_EQ(skel->bss->t1_b, 1, "t1:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
26
ASSERT_EQ(skel->bss->t1_c, 4, "t1:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
28
ASSERT_EQ(skel->bss->t1_nregs, 4, "t1 nregs");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
29
ASSERT_EQ(skel->bss->t1_reg0, 2, "t1 reg0");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
30
ASSERT_EQ(skel->bss->t1_reg1, 3, "t1 reg1");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
31
ASSERT_EQ(skel->bss->t1_reg2, 1, "t1 reg2");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
32
ASSERT_EQ(skel->bss->t1_reg3, 4, "t1 reg3");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
33
ASSERT_EQ(skel->bss->t1_ret, 10, "t1 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
35
ASSERT_EQ(skel->bss->t2_a, 1, "t2:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
36
ASSERT_EQ(skel->bss->t2_b_a, 2, "t2:b.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
37
ASSERT_EQ(skel->bss->t2_b_b, 3, "t2:b.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
38
ASSERT_EQ(skel->bss->t2_c, 4, "t2:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
39
ASSERT_EQ(skel->bss->t2_ret, 10, "t2 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
41
ASSERT_EQ(skel->bss->t3_a, 1, "t3:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
42
ASSERT_EQ(skel->bss->t3_b, 4, "t3:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
43
ASSERT_EQ(skel->bss->t3_c_a, 2, "t3:c.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
44
ASSERT_EQ(skel->bss->t3_c_b, 3, "t3:c.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
45
ASSERT_EQ(skel->bss->t3_ret, 10, "t3 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
47
ASSERT_EQ(skel->bss->t4_a_a, 10, "t4:a.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
48
ASSERT_EQ(skel->bss->t4_b, 1, "t4:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
49
ASSERT_EQ(skel->bss->t4_c, 2, "t4:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
50
ASSERT_EQ(skel->bss->t4_d, 3, "t4:d");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
51
ASSERT_EQ(skel->bss->t4_e_a, 2, "t4:e.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
52
ASSERT_EQ(skel->bss->t4_e_b, 3, "t4:e.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
53
ASSERT_EQ(skel->bss->t4_ret, 21, "t4 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
55
ASSERT_EQ(skel->bss->t5_ret, 1, "t5 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
57
ASSERT_EQ(skel->bss->t6, 1, "t6 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
78
ASSERT_EQ(skel->bss->t7_a, 16, "t7:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
79
ASSERT_EQ(skel->bss->t7_b, 17, "t7:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
80
ASSERT_EQ(skel->bss->t7_c, 18, "t7:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
81
ASSERT_EQ(skel->bss->t7_d, 19, "t7:d");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
82
ASSERT_EQ(skel->bss->t7_e, 20, "t7:e");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
83
ASSERT_EQ(skel->bss->t7_f_a, 21, "t7:f.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
84
ASSERT_EQ(skel->bss->t7_f_b, 22, "t7:f.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
85
ASSERT_EQ(skel->bss->t7_ret, 133, "t7 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
87
ASSERT_EQ(skel->bss->t8_a, 16, "t8:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
88
ASSERT_EQ(skel->bss->t8_b, 17, "t8:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
89
ASSERT_EQ(skel->bss->t8_c, 18, "t8:c");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
90
ASSERT_EQ(skel->bss->t8_d, 19, "t8:d");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
91
ASSERT_EQ(skel->bss->t8_e, 20, "t8:e");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
92
ASSERT_EQ(skel->bss->t8_f_a, 21, "t8:f.a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
93
ASSERT_EQ(skel->bss->t8_f_b, 22, "t8:f.b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
94
ASSERT_EQ(skel->bss->t8_g, 23, "t8:g");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
95
ASSERT_EQ(skel->bss->t8_ret, 156, "t8 ret");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
97
ASSERT_EQ(skel->bss->t9_a, 16, "t9:a");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
98
ASSERT_EQ(skel->bss->t9_b, 17, "t9:b");
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
99
ASSERT_EQ(skel->bss->t9_c, 18, "t9:c");
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
77
if (!ASSERT_EQ(libbpf_get_error(link), -E2BIG, "E2BIG"))
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
79
if (!ASSERT_EQ(link, NULL, "ptr_is_null"))
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
91
ASSERT_EQ(opts.retval & 0xffff, 33, "bpf_modify_return_test.result");
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
92
ASSERT_EQ(opts.retval >> 16, 2, "bpf_modify_return_test.side_effect");
tools/testing/selftests/bpf/prog_tests/type_cast.c
33
ASSERT_EQ(topts.retval, XDP_PASS, "xdp test_run retval");
tools/testing/selftests/bpf/prog_tests/type_cast.c
35
ASSERT_EQ(skel->bss->ifindex, 1, "xdp_md ifindex");
tools/testing/selftests/bpf/prog_tests/type_cast.c
36
ASSERT_EQ(skel->bss->ifindex, skel->bss->ingress_ifindex, "xdp_md ingress_ifindex");
tools/testing/selftests/bpf/prog_tests/type_cast.c
67
ASSERT_EQ(topts.retval, 0, "tc test_run retval");
tools/testing/selftests/bpf/prog_tests/type_cast.c
69
ASSERT_EQ(skel->bss->meta_len, 0, "skb meta_len");
tools/testing/selftests/bpf/prog_tests/type_cast.c
70
ASSERT_EQ(skel->bss->frag0_len, 0, "skb frag0_len");
tools/testing/selftests/bpf/prog_tests/type_cast.c
73
ASSERT_EQ(skel->bss->kskb_len, skel->bss->kskb2_len, "skb len compare");
tools/testing/selftests/bpf/prog_tests/udp_limit.c
55
if (!ASSERT_EQ(skel->bss->invocations, 4, "bss-invocations"))
tools/testing/selftests/bpf/prog_tests/udp_limit.c
59
if (!ASSERT_EQ(skel->bss->in_use, 1, "bss-in_use"))
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
124
ASSERT_EQ(lookup_vals[0], expected_val, "map_lookup_elem_values");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
171
ASSERT_EQ(bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "simple_prog", "GPL",
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
180
ASSERT_EQ(bpf_map_create(i, NULL, sizeof(int), sizeof(int), 1, NULL),
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
183
ASSERT_EQ(bpf_prog_get_fd_by_id(prog_id), -EPERM, "prog_get_fd_by_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
184
ASSERT_EQ(bpf_prog_get_next_id(prog_id, &next), -EPERM, "prog_get_next_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
185
ASSERT_EQ(bpf_prog_get_next_id(0, &next), -EPERM, "prog_get_next_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
189
ASSERT_EQ(bpf_map_get_fd_by_id(map_info.id), -EPERM, "map_get_fd_by_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
190
ASSERT_EQ(bpf_map_get_next_id(map_info.id, &next), -EPERM,
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
193
ASSERT_EQ(bpf_map_get_next_id(0, &next), -EPERM, "map_get_next_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
198
ASSERT_EQ(bpf_link_get_fd_by_id(link_info.id), -EPERM, "link_get_fd_by_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
199
ASSERT_EQ(bpf_link_get_next_id(link_info.id, &next), -EPERM,
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
202
ASSERT_EQ(bpf_link_get_next_id(0, &next), -EPERM, "link_get_next_id_fails");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
204
ASSERT_EQ(bpf_prog_query(prog_fd, BPF_TRACE_FENTRY, 0, &attach_flags, prog_ids,
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
215
ASSERT_EQ(bpf_btf_load(raw_btf_data, raw_btf_size, NULL), -EPERM,
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
28
if (ASSERT_EQ(len, sizeof(__u32), "ringbuf_size_valid"))
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
35
if (ASSERT_EQ(len, sizeof(__u32), "perfbuf_size_valid"))
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
91
ASSERT_EQ(got_perfbuf_val, skel->bss->perfbuf_val, "check_perfbuf_val");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
92
ASSERT_EQ(ring_buffer__consume(ringbuf), 1, "ring_buffer__consume");
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
93
ASSERT_EQ(got_ringbuf_val, skel->bss->ringbuf_val, "check_ringbuf_val");
tools/testing/selftests/bpf/prog_tests/uprobe.c
179
ASSERT_EQ(after.rax, expected.rax, "ax");
tools/testing/selftests/bpf/prog_tests/uprobe.c
180
ASSERT_EQ(after.rcx, expected.rcx, "cx");
tools/testing/selftests/bpf/prog_tests/uprobe.c
181
ASSERT_EQ(after.rdx, expected.rdx, "dx");
tools/testing/selftests/bpf/prog_tests/uprobe.c
182
ASSERT_EQ(after.r8, expected.r8, "r8");
tools/testing/selftests/bpf/prog_tests/uprobe.c
183
ASSERT_EQ(after.r9, expected.r9, "r9");
tools/testing/selftests/bpf/prog_tests/uprobe.c
184
ASSERT_EQ(after.r10, expected.r10, "r10");
tools/testing/selftests/bpf/prog_tests/uprobe.c
185
ASSERT_EQ(after.r11, expected.r11, "r11");
tools/testing/selftests/bpf/prog_tests/uprobe.c
186
ASSERT_EQ(after.rdi, expected.rdi, "rdi");
tools/testing/selftests/bpf/prog_tests/uprobe.c
187
ASSERT_EQ(after.rsi, expected.rsi, "rsi");
tools/testing/selftests/bpf/prog_tests/uprobe.c
227
ASSERT_EQ(ret, 0xdeadbeef, "ret");
tools/testing/selftests/bpf/prog_tests/uprobe.c
87
ASSERT_EQ(skel->bss->test1_result, 1, "urandlib_api_sameoffset");
tools/testing/selftests/bpf/prog_tests/uprobe.c
88
ASSERT_EQ(skel->bss->test2_result, 1, "urandlib_api_sameoffset@v1");
tools/testing/selftests/bpf/prog_tests/uprobe.c
89
ASSERT_EQ(skel->bss->test3_result, 3, "urandlib_api_sameoffset@@v2");
tools/testing/selftests/bpf/prog_tests/uprobe.c
90
ASSERT_EQ(skel->bss->test4_result, 1, "urandlib_api");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
40
ASSERT_EQ(skel->bss->uprobe_byname_parm1, 1, "check_uprobe_byname_parm1");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
41
ASSERT_EQ(skel->bss->uprobe_byname_ran, 1, "check_uprobe_byname_ran");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
42
ASSERT_EQ(skel->bss->uretprobe_byname_rc, trigger_ret, "check_uretprobe_byname_rc");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
43
ASSERT_EQ(skel->bss->uretprobe_byname_ret, trigger_ret, "check_uretprobe_byname_ret");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
44
ASSERT_EQ(skel->bss->uretprobe_byname_ran, 2, "check_uretprobe_byname_ran");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
45
ASSERT_EQ(skel->bss->uprobe_byname2_parm1, (__u64)(long)devnull_str,
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
47
ASSERT_EQ(skel->bss->uprobe_byname2_ran, 3, "check_uprobe_byname2_ran");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
48
ASSERT_EQ(skel->bss->uretprobe_byname2_rc, (__u64)(long)devnull,
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
50
ASSERT_EQ(skel->bss->uretprobe_byname2_ran, 4, "check_uretprobe_byname2_ran");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
52
ASSERT_EQ(skel->bss->a[0], 1, "arg1");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
53
ASSERT_EQ(skel->bss->a[1], 2, "arg2");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
54
ASSERT_EQ(skel->bss->a[2], 3, "arg3");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
56
ASSERT_EQ(skel->bss->a[3], 4, "arg4");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
59
ASSERT_EQ(skel->bss->a[4], 5, "arg5");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
62
ASSERT_EQ(skel->bss->a[5], 6, "arg6");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
65
ASSERT_EQ(skel->bss->a[6], 7, "arg7");
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
68
ASSERT_EQ(skel->bss->a[7], 8, "arg8");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1100
ASSERT_EQ(skel->bss->test[i][0], 1, "pid");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1101
ASSERT_EQ(skel->bss->test[i][1], 0, "unknown");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1157
ASSERT_EQ(skel->bss->uprobe_session_result[0], 2, "uprobe_multi_func_1_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1158
ASSERT_EQ(skel->bss->uprobe_session_result[1], 4, "uprobe_multi_func_2_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1159
ASSERT_EQ(skel->bss->uprobe_session_result[2], 2, "uprobe_multi_func_3_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1162
ASSERT_EQ(skel->bss->uprobe_multi_sleep_result, 4, "uprobe_multi_sleep_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1191
ASSERT_EQ(skel->bss->uprobe_session_result[0], 1, "uprobe_session_result_0");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1192
ASSERT_EQ(skel->bss->uprobe_session_result[1], 2, "uprobe_session_result_1");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1193
ASSERT_EQ(skel->bss->uprobe_session_result[2], 1, "uprobe_session_result_2");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1219
ASSERT_EQ(skel->bss->test_uprobe_1_result, 1, "test_uprobe_1_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1220
ASSERT_EQ(skel->bss->test_uprobe_2_result, 2, "test_uprobe_2_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1221
ASSERT_EQ(skel->bss->test_uprobe_3_result, 3, "test_uprobe_3_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1264
ASSERT_EQ(skel->bss->idx_entry, 6, "idx_entry");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1265
ASSERT_EQ(skel->bss->idx_return, 3, "idx_return");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1267
ASSERT_EQ(skel->bss->test_uprobe_cookie_return[0], 5, "test_uprobe_cookie_return[0]");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1268
ASSERT_EQ(skel->bss->test_uprobe_cookie_return[1], 3, "test_uprobe_cookie_return[1]");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1269
ASSERT_EQ(skel->bss->test_uprobe_cookie_return[2], 1, "test_uprobe_cookie_return[2]");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1297
ASSERT_EQ(skel->bss->count, 50000, "uprobes_count");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1333
ASSERT_EQ(skel->bss->count, 50000, "usdt_count");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
190
if (!ASSERT_EQ(err, 1, "child_thread_ready"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
231
ASSERT_EQ(skel->bss->uprobe_multi_func_1_result, 2, "uprobe_multi_func_1_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
232
ASSERT_EQ(skel->bss->uprobe_multi_func_2_result, 2, "uprobe_multi_func_2_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
233
ASSERT_EQ(skel->bss->uprobe_multi_func_3_result, 2, "uprobe_multi_func_3_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
235
ASSERT_EQ(skel->bss->uretprobe_multi_func_1_result, 2, "uretprobe_multi_func_1_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
236
ASSERT_EQ(skel->bss->uretprobe_multi_func_2_result, 2, "uretprobe_multi_func_2_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
237
ASSERT_EQ(skel->bss->uretprobe_multi_func_3_result, 2, "uretprobe_multi_func_3_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
239
ASSERT_EQ(skel->bss->uprobe_multi_sleep_result, 6, "uprobe_multi_sleep_result");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
244
ASSERT_EQ(skel->bss->child_pid, child->pid, "uprobe_multi_child_pid");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
245
ASSERT_EQ(skel->bss->child_tid, child->tid, "uprobe_multi_child_tid");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
324
ASSERT_EQ(skel->bss->child_pid_usdt, child->pid, "usdt_multi_child_pid");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
325
ASSERT_EQ(skel->bss->child_tid_usdt, child->tid, "usdt_multi_child_tid");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
397
if (!ASSERT_EQ(link_fd, -E2BIG, "big cnt"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
409
if (!ASSERT_EQ(link_fd, -EINVAL, "cnt_is_zero"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
421
if (!ASSERT_EQ(link_fd, -EINVAL, "offset_is_negative"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
433
if (!ASSERT_EQ(link_fd, -EINVAL, "offsets_is_null"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
446
if (!ASSERT_EQ(link_fd, -EFAULT, "offsets_is_wrong"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
459
if (!ASSERT_EQ(link_fd, -EINVAL, "path_is_null"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
472
if (!ASSERT_EQ(link_fd, -EFAULT, "path_is_wrong"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
485
if (!ASSERT_EQ(link_fd, -EBADF, "path_is_wrong_type"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
499
if (!ASSERT_EQ(link_fd, -EFAULT, "cookies_is_wrong"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
514
if (!ASSERT_EQ(link_fd, -EFAULT, "ref_ctr_offsets_is_wrong"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
525
if (!ASSERT_EQ(link_fd, -EINVAL, "wrong_flags"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
539
ASSERT_EQ(link_fd, -EINVAL, "pid_is_wrong");
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
903
if (!ASSERT_EQ(err, 0, "uprobe_consumer_test"))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
958
if (!ASSERT_EQ(skel->bss->uprobe_result[idx], val, fmt))
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
150
ASSERT_EQ(pa[i], 0xdeadbeef, "return value");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
153
if (!ASSERT_EQ(pb[i], pa[i], "register before-after value check"))
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
178
ASSERT_EQ(pp[i], pb[i], "uprobe rax prog-before value check");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
182
if (!ASSERT_EQ(pp[i], pa[i], "register prog-after value check"))
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
238
ASSERT_EQ(pa[i], 0x12345678deadbeef, "rax");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
241
ASSERT_EQ(pa[i], 0x87654321feebdaed, "rcx");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
244
ASSERT_EQ(pa[i], (__u64) -1, "r11");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
247
if (!ASSERT_EQ(pa[i], pb[i], "register before-after value check"))
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
328
ASSERT_EQ(err, pid, "waitpid");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
331
ASSERT_EQ(WIFSIGNALED(status), 1, "WIFSIGNALED");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
332
ASSERT_EQ(WTERMSIG(status), SIGILL, "WTERMSIG");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
335
ASSERT_EQ(skel->bss->executed, 0, "executed");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
420
ASSERT_EQ(skel->bss->executed, executed, "executed");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
425
ASSERT_EQ(call->op, 0xe8, "call");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
764
ASSERT_EQ(err, -1, "error");
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
765
ASSERT_EQ(errno, ENXIO, "errno");
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
141
ASSERT_EQ(target_1(0), 42 + 1, "trigger_return");
tools/testing/selftests/bpf/prog_tests/usdt.c
147
ASSERT_EQ(bss->usdt0_called, called, "usdt0_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
148
ASSERT_EQ(bss->usdt3_called, called, "usdt3_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
149
ASSERT_EQ(bss->usdt12_called, called, "usdt12_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
151
ASSERT_EQ(bss->usdt0_cookie, expected_cookie, "usdt0_cookie");
tools/testing/selftests/bpf/prog_tests/usdt.c
152
ASSERT_EQ(bss->usdt0_arg_cnt, 0, "usdt0_arg_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
153
ASSERT_EQ(bss->usdt0_arg_ret, -ENOENT, "usdt0_arg_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
154
ASSERT_EQ(bss->usdt0_arg_size, -ENOENT, "usdt0_arg_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
157
ASSERT_EQ(bss->usdt3_cookie, 0, "usdt3_cookie");
tools/testing/selftests/bpf/prog_tests/usdt.c
158
ASSERT_EQ(bss->usdt3_arg_cnt, 3, "usdt3_arg_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
160
ASSERT_EQ(bss->usdt3_arg_rets[0], 0, "usdt3_arg1_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
161
ASSERT_EQ(bss->usdt3_arg_rets[1], 0, "usdt3_arg2_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
162
ASSERT_EQ(bss->usdt3_arg_rets[2], 0, "usdt3_arg3_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
163
ASSERT_EQ(bss->usdt3_args[0], 1, "usdt3_arg1");
tools/testing/selftests/bpf/prog_tests/usdt.c
164
ASSERT_EQ(bss->usdt3_args[1], 42, "usdt3_arg2");
tools/testing/selftests/bpf/prog_tests/usdt.c
165
ASSERT_EQ(bss->usdt3_args[2], (uintptr_t)&bla, "usdt3_arg3");
tools/testing/selftests/bpf/prog_tests/usdt.c
166
ASSERT_EQ(bss->usdt3_arg_sizes[0], 4, "usdt3_arg1_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
167
ASSERT_EQ(bss->usdt3_arg_sizes[1], 8, "usdt3_arg2_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
168
ASSERT_EQ(bss->usdt3_arg_sizes[2], 8, "usdt3_arg3_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
171
ASSERT_EQ(bss->usdt12_cookie, 0, "usdt12_cookie");
tools/testing/selftests/bpf/prog_tests/usdt.c
172
ASSERT_EQ(bss->usdt12_arg_cnt, 12, "usdt12_arg_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
174
ASSERT_EQ(bss->usdt12_args[0], 1, "usdt12_arg1");
tools/testing/selftests/bpf/prog_tests/usdt.c
175
ASSERT_EQ(bss->usdt12_args[1], 1 + 1, "usdt12_arg2");
tools/testing/selftests/bpf/prog_tests/usdt.c
176
ASSERT_EQ(bss->usdt12_args[2], 42, "usdt12_arg3");
tools/testing/selftests/bpf/prog_tests/usdt.c
177
ASSERT_EQ(bss->usdt12_args[3], 42 + 1, "usdt12_arg4");
tools/testing/selftests/bpf/prog_tests/usdt.c
178
ASSERT_EQ(bss->usdt12_args[4], 5, "usdt12_arg5");
tools/testing/selftests/bpf/prog_tests/usdt.c
179
ASSERT_EQ(bss->usdt12_args[5], 42 / 7, "usdt12_arg6");
tools/testing/selftests/bpf/prog_tests/usdt.c
180
ASSERT_EQ(bss->usdt12_args[6], bla, "usdt12_arg7");
tools/testing/selftests/bpf/prog_tests/usdt.c
181
ASSERT_EQ(bss->usdt12_args[7], (uintptr_t)&bla, "usdt12_arg8");
tools/testing/selftests/bpf/prog_tests/usdt.c
182
ASSERT_EQ(bss->usdt12_args[8], -9, "usdt12_arg9");
tools/testing/selftests/bpf/prog_tests/usdt.c
183
ASSERT_EQ(bss->usdt12_args[9], nums[1], "usdt12_arg10");
tools/testing/selftests/bpf/prog_tests/usdt.c
184
ASSERT_EQ(bss->usdt12_args[10], nums[idx], "usdt12_arg11");
tools/testing/selftests/bpf/prog_tests/usdt.c
185
ASSERT_EQ(bss->usdt12_args[11], t1.y, "usdt12_arg12");
tools/testing/selftests/bpf/prog_tests/usdt.c
190
ASSERT_EQ(bss->usdt12_arg_sizes[i], usdt12_expected_arg_sizes[i], "usdt12_arg_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
200
ASSERT_EQ(bss->usdt0_called, called, "usdt0_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
201
ASSERT_EQ(bss->usdt3_called, called, "usdt3_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
202
ASSERT_EQ(bss->usdt12_called, called, "usdt12_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
205
ASSERT_EQ(bss->usdt3_args[0], 2, "usdt3_arg1");
tools/testing/selftests/bpf/prog_tests/usdt.c
207
ASSERT_EQ(bss->usdt12_args[0], 2, "usdt12_arg1");
tools/testing/selftests/bpf/prog_tests/usdt.c
208
ASSERT_EQ(bss->usdt12_args[1], 2 + 1, "usdt12_arg2");
tools/testing/selftests/bpf/prog_tests/usdt.c
209
ASSERT_EQ(bss->usdt12_args[3], 42 + 2, "usdt12_arg4");
tools/testing/selftests/bpf/prog_tests/usdt.c
210
ASSERT_EQ(bss->usdt12_args[9], nums[2], "usdt12_arg10");
tools/testing/selftests/bpf/prog_tests/usdt.c
223
ASSERT_EQ(bss->usdt3_called, called, "usdt3_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
225
ASSERT_EQ(bss->usdt3_cookie, 0xBADC00C51E, "usdt3_cookie");
tools/testing/selftests/bpf/prog_tests/usdt.c
226
ASSERT_EQ(bss->usdt3_arg_cnt, 3, "usdt3_arg_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
228
ASSERT_EQ(bss->usdt3_arg_rets[0], 0, "usdt3_arg1_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
229
ASSERT_EQ(bss->usdt3_arg_rets[1], 0, "usdt3_arg2_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
230
ASSERT_EQ(bss->usdt3_arg_rets[2], 0, "usdt3_arg3_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
231
ASSERT_EQ(bss->usdt3_args[0], 3, "usdt3_arg1");
tools/testing/selftests/bpf/prog_tests/usdt.c
232
ASSERT_EQ(bss->usdt3_args[1], 42, "usdt3_arg2");
tools/testing/selftests/bpf/prog_tests/usdt.c
233
ASSERT_EQ(bss->usdt3_args[2], (uintptr_t)&bla, "usdt3_arg3");
tools/testing/selftests/bpf/prog_tests/usdt.c
237
ASSERT_EQ(bss->usdt_sib_called, 1, "usdt_sib_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
238
ASSERT_EQ(bss->usdt_sib_cookie, expected_cookie, "usdt_sib_cookie");
tools/testing/selftests/bpf/prog_tests/usdt.c
239
ASSERT_EQ(bss->usdt_sib_arg_cnt, 1, "usdt_sib_arg_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
240
ASSERT_EQ(bss->usdt_sib_arg, nums[0], "usdt_sib_arg");
tools/testing/selftests/bpf/prog_tests/usdt.c
241
ASSERT_EQ(bss->usdt_sib_arg_ret, 0, "usdt_sib_arg_ret");
tools/testing/selftests/bpf/prog_tests/usdt.c
242
ASSERT_EQ(bss->usdt_sib_arg_size, sizeof(nums[0]), "usdt_sib_arg_size");
tools/testing/selftests/bpf/prog_tests/usdt.c
329
ASSERT_EQ(bss->usdt_100_called, 100, "usdt_100_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
330
ASSERT_EQ(bss->usdt_100_sum, 99 * 100 / 2, "usdt_100_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
349
ASSERT_EQ(bss->usdt_100_called, (i + 1) * 100 + 100, "usdt_100_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
350
ASSERT_EQ(bss->usdt_100_sum, 99 * 100 / 2, "usdt_100_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
375
ASSERT_EQ(err, -E2BIG, "usdt_300_attach_err");
tools/testing/selftests/bpf/prog_tests/usdt.c
382
ASSERT_EQ(bss->usdt_100_called, 0, "usdt_301_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
383
ASSERT_EQ(bss->usdt_100_sum, 0, "usdt_301_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
401
ASSERT_EQ(bss->usdt_100_called, 400, "usdt_400_called");
tools/testing/selftests/bpf/prog_tests/usdt.c
402
ASSERT_EQ(bss->usdt_100_sum, 400 * 400, "usdt_400_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
494
ASSERT_EQ(bss->urand_read_without_sema_call_cnt, 1, "urand_wo_sema_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
495
ASSERT_EQ(bss->urand_read_without_sema_buf_sz_sum, 256, "urand_wo_sema_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
497
ASSERT_EQ(bss->urand_read_with_sema_call_cnt, 1, "urand_w_sema_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
498
ASSERT_EQ(bss->urand_read_with_sema_buf_sz_sum, 256, "urand_w_sema_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
500
ASSERT_EQ(bss->urandlib_read_without_sema_call_cnt, 1, "urandlib_wo_sema_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
501
ASSERT_EQ(bss->urandlib_read_without_sema_buf_sz_sum, 256, "urandlib_wo_sema_sum");
tools/testing/selftests/bpf/prog_tests/usdt.c
503
ASSERT_EQ(bss->urandlib_read_with_sema_call_cnt, 1, "urandlib_w_sema_cnt");
tools/testing/selftests/bpf/prog_tests/usdt.c
504
ASSERT_EQ(bss->urandlib_read_with_sema_buf_sz_sum, 256, "urandlib_w_sema_sum");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
174
ASSERT_EQ(skel->bss->read, 0, "no_reads_after_load");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
210
ASSERT_EQ(skel->bss->read, 0, "num_samples_before_bad_sample");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
228
ASSERT_EQ(skel->bss->read, 0, "num_samples_after_bad_sample");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
229
ASSERT_EQ(skel->bss->err, err, "err_after_bad_sample");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
293
ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
299
ASSERT_EQ(skel->bss->read, 2, "num_samples_read_after");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
322
ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
324
ASSERT_EQ(skel->bss->read, 1, "num_samples_read_after");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
347
ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
349
ASSERT_EQ(skel->bss->read, 1, "num_samples_read_after");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
367
ASSERT_EQ(skel->bss->read, c_max_entries, "max_entries");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
384
ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
400
ASSERT_EQ(skel->bss->read, 0, "num_pre_kick");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
402
ASSERT_EQ(skel->bss->read, 0, "num_post_kick");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
448
ASSERT_EQ(skel->bss->read, total_samples - remaining_samples,
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
451
ASSERT_EQ(skel->bss->read, total_samples, "total_batched_entries");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
530
ASSERT_EQ(cnt, 8, "consume_kern_ringbuf");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
578
ASSERT_EQ(skel->bss->kern_mutated, expected_kern, "expected_kern");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
579
ASSERT_EQ(skel->bss->err, 0, "bpf_prog_err");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
618
ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
636
ASSERT_EQ(skel->bss->read, 0, "num_pre_kick");
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
640
if (!ASSERT_EQ(token, NULL, "pre_kick_timeout_token"))
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
644
if (!ASSERT_EQ(err, 0, "deferred_kick_thread\n"))
tools/testing/selftests/bpf/prog_tests/user_ringbuf.c
658
ASSERT_EQ(skel->bss->err, 0, "err_post_poll");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
106
if (!ASSERT_EQ(prog_fd, -ENOSPC, "unexpected_log_fixed_prog_load_result")) {
tools/testing/selftests/bpf/prog_tests/verifier_log.c
111
if (!ASSERT_EQ(strlen(logs.buf), 24, "log_fixed_25"))
tools/testing/selftests/bpf/prog_tests/verifier_log.c
141
if (!ASSERT_EQ(prog_fd, -ENOSPC, op_name)) {
tools/testing/selftests/bpf/prog_tests/verifier_log.c
149
ASSERT_EQ(strlen(logs.buf), i - 1, op_name);
tools/testing/selftests/bpf/prog_tests/verifier_log.c
195
ASSERT_EQ(opts.log_true_size, log_true_sz_fixed, "log_sz_fixed_null_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
206
ASSERT_EQ(log_true_sz_rolling, log_true_sz_fixed, "log_true_sz_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
215
ASSERT_EQ(opts.log_true_size, log_true_sz_rolling, "log_true_sz_null_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
223
ASSERT_EQ(res, -ENOSPC, "prog_load_res_too_short_fixed");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
238
ASSERT_EQ(res, -ENOSPC, "prog_load_res_too_short_rolling");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
318
ASSERT_EQ(res, -ENOSPC, "half_log_fd");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
319
ASSERT_EQ(strlen(logs.buf), 24, "log_fixed_25");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
339
if (!ASSERT_EQ(res, -ENOSPC, op_name))
tools/testing/selftests/bpf/prog_tests/verifier_log.c
379
ASSERT_EQ(opts.log_true_size, log_true_sz_fixed, "log_sz_fixed_null_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
390
ASSERT_EQ(log_true_sz_rolling, log_true_sz_fixed, "log_true_sz_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
399
ASSERT_EQ(opts.log_true_size, log_true_sz_rolling, "log_true_sz_null_eq");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
407
ASSERT_EQ(res, -ENOSPC, "btf_load_res_too_short_fixed");
tools/testing/selftests/bpf/prog_tests/verifier_log.c
422
ASSERT_EQ(res, -ENOSPC, "btf_load_res_too_short_rolling");
tools/testing/selftests/bpf/prog_tests/vrf_socket_lookup.c
223
if (!ASSERT_EQ(skel->bss->lookup_status, lookup_status_exp,
tools/testing/selftests/bpf/prog_tests/wq.c
29
ASSERT_EQ(topts.retval, 0, "test_run");
tools/testing/selftests/bpf/prog_tests/wq.c
33
ASSERT_EQ(wq_skel->bss->ok_sleepable, (1 << 1), "ok_sleepable");
tools/testing/selftests/bpf/prog_tests/xdp.c
38
ASSERT_EQ(topts.retval, XDP_TX, "ipv4 test_run retval");
tools/testing/selftests/bpf/prog_tests/xdp.c
39
ASSERT_EQ(topts.data_size_out, 74, "ipv4 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/xdp.c
40
ASSERT_EQ(iph.protocol, IPPROTO_IPIP, "ipv4 test_run iph.protocol");
tools/testing/selftests/bpf/prog_tests/xdp.c
49
ASSERT_EQ(topts.retval, XDP_TX, "ipv6 test_run retval");
tools/testing/selftests/bpf/prog_tests/xdp.c
50
ASSERT_EQ(topts.data_size_out, 114, "ipv6 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/xdp.c
51
ASSERT_EQ(iph6.nexthdr, IPPROTO_IPV6, "ipv6 test_run iph6.nexthdr");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
100
ASSERT_EQ(buf[7621], 0xbb, "xdp_update_frag buf[7621]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
112
if (!ASSERT_EQ(num, 1, "max_skb_frags read failed"))
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
135
ASSERT_EQ(err, -ENOMEM,
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
45
ASSERT_EQ(topts.retval, XDP_PASS, "xdp_update_frag retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
46
ASSERT_EQ(buf[16], 0xbb, "xdp_update_frag buf[16]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
47
ASSERT_EQ(buf[31], 0xbb, "xdp_update_frag buf[31]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
70
ASSERT_EQ(topts.retval, XDP_PASS, "xdp_update_frag retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
71
ASSERT_EQ(buf[5000], 0xbb, "xdp_update_frag buf[5000]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
72
ASSERT_EQ(buf[5015], 0xbb, "xdp_update_frag buf[5015]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
84
ASSERT_EQ(topts.retval, XDP_PASS, "xdp_update_frag retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
85
ASSERT_EQ(buf[3510], 0xbb, "xdp_update_frag buf[3510]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
86
ASSERT_EQ(buf[3525], 0xbb, "xdp_update_frag buf[3525]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
98
ASSERT_EQ(topts.retval, XDP_PASS, "xdp_update_frag retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c
99
ASSERT_EQ(buf[7606], 0xbb, "xdp_update_frag buf[7606]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
115
ASSERT_EQ(errno, ENOSPC, "case-64 errno"); /* Due limit copy_size in bpf_test_finish */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
116
ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
117
ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
120
ASSERT_EQ(buf[0], 1, "case-64-data buf[0]"); /* 0-63 memset to 1 */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
121
ASSERT_EQ(buf[63], 1, "case-64-data buf[63]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
122
ASSERT_EQ(buf[64], 0, "case-64-data buf[64]"); /* 64-127 memset to 0 */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
123
ASSERT_EQ(buf[127], 0, "case-64-data buf[127]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
124
ASSERT_EQ(buf[128], 1, "case-64-data buf[128]"); /* 128-191 memset to 1 */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
125
ASSERT_EQ(buf[191], 1, "case-64-data buf[191]");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
135
ASSERT_EQ(tattr.retval, XDP_TX, "case-128 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
136
ASSERT_EQ(tattr.data_size_out, max_grow, "case-128 data_size_out"); /* Expect max grow */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
143
ASSERT_EQ(cnt, max_grow - tattr.data_size_in, "case-128-data cnt"); /* Grow increase */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
144
ASSERT_EQ(tattr.data_size_out, max_grow, "case-128-data data_size_out"); /* Total grow */
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
187
ASSERT_EQ(topts.retval, XDP_TX, "9Kb-10b retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
188
ASSERT_EQ(topts.data_size_out, exp_size, "9Kb-10b size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
198
ASSERT_EQ(topts.retval, XDP_TX, "9Kb-4Kb retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
199
ASSERT_EQ(topts.data_size_out, exp_size, "9Kb-4Kb size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
208
ASSERT_EQ(topts.retval, XDP_TX, "9Kb-9Kb retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
209
ASSERT_EQ(topts.data_size_out, exp_size, "9Kb-9Kb size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
251
ASSERT_EQ(topts.retval, XDP_TX, "9Kb+10b retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
252
ASSERT_EQ(topts.data_size_out, exp_size, "9Kb+10b size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
256
ASSERT_EQ(buf[i], 1, "9Kb+10b-old");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
26
ASSERT_EQ(topts.retval, XDP_DROP, "ipv4 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
261
ASSERT_EQ(buf[i], 0, "9Kb+10b-new");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
266
ASSERT_EQ(buf[i], 1, "9Kb+10b-untouched");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
279
ASSERT_EQ(topts.retval, XDP_DROP, "9Kb+10b retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
280
ASSERT_EQ(topts.data_size_out, exp_size, "9Kb+10b size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
322
ASSERT_EQ(topts.retval, XDP_TX, "90Kb+10b retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
323
ASSERT_EQ(topts.data_size_out, exp_size, "90Kb+10b size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
327
ASSERT_EQ(buf[i], 1, "90Kb+10b-old");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
332
ASSERT_EQ(buf[i], 0, "90Kb+10b-new");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
337
ASSERT_EQ(buf[i], 1, "90Kb+10b-untouched");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
34
ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
35
ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
350
ASSERT_EQ(topts.retval, XDP_DROP, "90Kb+10b retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
351
ASSERT_EQ(topts.data_size_out, exp_size, "90Kb+10b size");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
66
ASSERT_EQ(topts.retval, XDP_DROP, "ipv4 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
74
ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval");
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c
75
ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size");
tools/testing/selftests/bpf/prog_tests/xdp_attach.c
119
if (!ASSERT_EQ(err, 0, "test_xdp_attach_fail__attach"))
tools/testing/selftests/bpf/prog_tests/xdp_attach.c
129
if (!ASSERT_EQ(err, 0, "bpf_prog_test_load"))
tools/testing/selftests/bpf/prog_tests/xdp_attach.c
134
if (!ASSERT_EQ(err, -EINVAL, "bpf_link_create"))
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
259
if (!ASSERT_EQ(n, sizeof(buf), "sendto"))
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
282
ASSERT_EQ(bond1_rx, NPACKETS, "expected more received packets");
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
371
ASSERT_EQ(veth1_1_rx, 0, "expected no packets on veth1_1");
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
514
if (!ASSERT_EQ(query_opts.feature_flags, 0,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
537
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
557
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
575
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
589
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
604
ASSERT_EQ(query_opts.feature_flags, 0,
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
28
ASSERT_EQ(meta->ifindex, if_nametoindex("lo"), "check_meta_ifindex");
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
29
ASSERT_EQ(meta->pkt_len, tst_ctx->pkt_size, "check_meta_pkt_len");
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
30
ASSERT_EQ(memcmp(trace_pkt_v4, &pkt_v4, sizeof(pkt_v4)), 0,
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
35
ASSERT_EQ(raw_pkt[i + sizeof(pkt_v4)], (unsigned char)i,
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
84
ASSERT_EQ(topts.retval, XDP_PASS, "ipv4 retval");
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
85
ASSERT_EQ(topts.data_size_out, pkt_size, "ipv4 size");
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
95
ASSERT_EQ(ftrace_skel->bss->test_result_fentry, if_nametoindex("lo"),
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c
97
ASSERT_EQ(ftrace_skel->bss->test_result_fexit, XDP_PASS, "fexit result");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
154
if (!ASSERT_EQ(n, sizeof(packet), "sendto"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
184
if (!ASSERT_EQ(n, sizeof(packet), "write packet"))
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
41
ASSERT_EQ(errno, EINVAL, "errno-EINVAL");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
71
ASSERT_EQ(errno, E2BIG, "extradata-errno");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
84
ASSERT_EQ(opts.retval, XDP_PASS, "valid-retval");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
85
ASSERT_EQ(opts.data_size_out, sizeof(pkt_v4), "valid-datasize");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
86
ASSERT_EQ(opts.ctx_size_out, opts.ctx_size_in, "valid-ctxsize");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
87
ASSERT_EQ(ctx_out.data_meta, 0, "valid-datameta");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
88
ASSERT_EQ(ctx_out.data, 0, "valid-data");
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
89
ASSERT_EQ(ctx_out.data_end, sizeof(pkt_v4), "valid-dataend");
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
141
ASSERT_EQ(info.id, val.bpf_prog.id,
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
52
ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to cpumap entry prog_id");
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
82
ASSERT_EQ(err, -EINVAL, "Add non-BPF_XDP_CPUMAP program to cpumap entry");
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
90
ASSERT_EQ(err, -EINVAL, "Add non-BPF fd to cpumap entry");
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
94
ASSERT_EQ(err, 0, "Close non-BPF fd for nonexistent fd");
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
97
ASSERT_EQ(err, -EBADF, "Add nonexistent fd to cpumap entry");
tools/testing/selftests/bpf/prog_tests/xdp_dev_bound_only.c
51
ASSERT_EQ(fd2, -EINVAL, "load_dummy_prog #2 (offloaded)");
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c
105
if (!ASSERT_EQ(skel, NULL,
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c
161
ASSERT_EQ(info.id, val.bpf_prog.id,
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c
224
ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to devmap entry prog_id");
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c
57
ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to devmap entry prog_id");
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
171
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
181
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
195
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
206
if (!ASSERT_EQ(query_opts.feature_flags,
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
245
ASSERT_EQ(skel->bss->pkts_seen_xdp, 2, "pkt_count_xdp");
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
246
ASSERT_EQ(skel->bss->pkts_seen_zero, 2, "pkt_count_zero");
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
247
ASSERT_EQ(skel->bss->pkts_seen_tc, NUM_PKTS - 2, "pkt_count_tc");
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
93
ASSERT_EQ(err, -EINVAL, "prog_run_too_big");
tools/testing/selftests/bpf/prog_tests/xdp_info.c
71
ASSERT_EQ(opts.feature_flags, 0, "opts.feature_flags");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
113
if (!ASSERT_OK(err, "id2_check_err") || !ASSERT_EQ(id0, id2, "id2_check_val"))
tools/testing/selftests/bpf/prog_tests/xdp_link.c
127
ASSERT_EQ(link_info.type, BPF_LINK_TYPE_XDP, "link_type");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
128
ASSERT_EQ(link_info.prog_id, id1, "link_prog_id");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
129
ASSERT_EQ(link_info.xdp.ifindex, IFINDEX_LO, "link_ifindex");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
145
ASSERT_EQ(link_info.prog_id, id1, "link_prog_id");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
147
ASSERT_EQ(link_info.xdp.ifindex, 0, "link_ifindex");
tools/testing/selftests/bpf/prog_tests/xdp_link.c
50
if (!ASSERT_OK(err, "id1_check_err") || !ASSERT_EQ(id0, id1, "id1_check_val"))
tools/testing/selftests/bpf/prog_tests/xdp_link.c
77
if (!ASSERT_OK(err, "id1_check_err") || !ASSERT_EQ(id0, id1, "id1_check_val"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
112
if (!ASSERT_EQ(UMEM_NUM / 2, ret, "xsk_ring_prod__reserve"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
114
if (!ASSERT_EQ(idx, 0, "fill idx != 0"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
148
if (!ASSERT_EQ(ret, 1, "xsk_ring_prod__reserve"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
176
ASSERT_EQ(inet_pton(FAMILY, TX_ADDR, &iph->saddr), 1, "inet_pton(TX_ADDR)");
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
177
ASSERT_EQ(inet_pton(FAMILY, RX_ADDR, &iph->daddr), 1, "inet_pton(RX_ADDR)");
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
234
if (ASSERT_EQ(xsk_ring_cons__peek(&xsk->comp, 1, &idx), 1, "xsk_ring_cons__peek")) {
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
252
if (ASSERT_EQ(xsk_ring_prod__reserve(&xsk->fill, 1, &idx), 1, "xsk_ring_prod__reserve")) {
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
274
if (!ASSERT_EQ(ret, 0, "recvfrom"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
285
if (!ASSERT_EQ(ret, 1, "xsk_ring_cons__peek"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
298
ASSERT_EQ(eth->h_proto, htons(ETH_P_IP), "eth->h_proto");
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
300
ASSERT_EQ((int)iph->version, 4, "iph->version");
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
317
if (!ASSERT_EQ(meta->rx_vlan_tci & VLAN_VID_MASK, VLAN_ID, "rx_vlan_tci"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
320
if (!ASSERT_EQ(meta->rx_vlan_proto, VLAN_PID, "rx_vlan_proto"))
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
325
ASSERT_EQ(meta->rx_hash_type, 0, "rx_hash_type");
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
328
ASSERT_EQ(udph->check, htons(0x721c), "csum");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
50
ASSERT_EQ(topts.retval, 1, "ipv4 test_run retval");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
51
ASSERT_EQ(topts.data_size_out, 54, "ipv4 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
52
ASSERT_EQ(*magic, MAGIC_VAL, "ipv4 test_run magic");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
61
ASSERT_EQ(topts.retval, 1, "ipv6 test_run retval");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
62
ASSERT_EQ(topts.data_size_out, 74, "ipv6 test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
63
ASSERT_EQ(*magic, MAGIC_VAL, "ipv6 test_run magic");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
70
ASSERT_EQ(bytes, MAGIC_BYTES * NUM_ITER * 2, "stats bytes");
tools/testing/selftests/bpf/prog_tests/xdp_noinline.c
71
ASSERT_EQ(pkts, NUM_ITER * 2, "stats pkts");
tools/testing/selftests/bpf/prog_tests/xdp_perf.c
24
ASSERT_EQ(topts.retval, XDP_PASS, "test_run retval");
tools/testing/selftests/bpf/prog_tests/xdp_perf.c
25
ASSERT_EQ(topts.data_size_out, 128, "test_run data_size_out");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
101
ASSERT_EQ(ctx.data_end, meta_len + pull_len, "linear data size");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
102
ASSERT_EQ(topts.data_size_out, buff_len, "linear + non-linear data size");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
106
ASSERT_EQ(buf[meta_len + 1023], 0xaa, "data[1023]");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
107
ASSERT_EQ(buf[meta_len + 1024], 0xbb, "data[1024]");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
108
ASSERT_EQ(buf[meta_len + 1025], 0xcc, "data[1025]");
tools/testing/selftests/bpf/prog_tests/xdp_pull_data.c
96
ASSERT_EQ(topts.retval, retval, "xdp_pull_data_prog retval");
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
237
if (!ASSERT_EQ(ret, nh->nlmsg_len, "netlink send length"))
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
284
if (!ASSERT_EQ(skel->bss->resp_if_id, if_id, "if_id"))
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
322
if (!ASSERT_EQ(test_xfrm_ping(skel, IF_ID_0_TO_1), 0, "ping " NS1))
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
324
if (!ASSERT_EQ(test_xfrm_ping(skel, IF_ID_0_TO_2), 0, "ping " NS2))
tools/testing/selftests/bpf/test_loader.c
1260
if (!ASSERT_EQ(err, 0, "get_jited_program_text"))
tools/testing/selftests/bpf/test_progs.c
1221
if (!ASSERT_EQ(err, len, "write sysctl"))
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
160
ASSERT_EQ(set_capability(), 0)
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
163
ASSERT_EQ(prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0), 0);
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
167
ASSERT_EQ(setuid(65534), 0);
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
171
ASSERT_EQ(test_clone3_set_tid(_metadata, set_tid, 1), -EPERM);
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
172
ASSERT_EQ(set_capability(), 0)
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
175
ASSERT_EQ(test_clone3_set_tid(_metadata, set_tid, 1), 0);
tools/testing/selftests/core/close_range_test.c
266
ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit));
tools/testing/selftests/core/close_range_test.c
268
ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit));
tools/testing/selftests/core/close_range_test.c
272
ASSERT_EQ(0, ret);
tools/testing/selftests/core/close_range_test.c
274
ASSERT_EQ(0, ret);
tools/testing/selftests/core/close_range_test.c
334
ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit));
tools/testing/selftests/core/close_range_test.c
336
ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit));
tools/testing/selftests/core/close_range_test.c
341
ASSERT_EQ(0, ret);
tools/testing/selftests/core/close_range_test.c
344
ASSERT_EQ(0, ret);
tools/testing/selftests/core/close_range_test.c
618
ASSERT_EQ(fcntl(64, F_GETFD), -1);
tools/testing/selftests/core/unshare_test.c
39
ASSERT_EQ(buf[n - 1], '\n');
tools/testing/selftests/core/unshare_test.c
41
ASSERT_EQ(sscanf(buf, "%d", &nr_open), 1);
tools/testing/selftests/core/unshare_test.c
43
ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit));
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1019
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1112
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1125
ASSERT_EQ(WTERMSIG(status), SIGSEGV);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1130
ASSERT_EQ(info.coredump_signal, SIGSEGV);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1152
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1245
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1258
ASSERT_EQ(WTERMSIG(status), SIGABRT);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1263
ASSERT_EQ(info.coredump_signal, SIGABRT);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1278
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1400
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1420
ASSERT_EQ(ioctl(pidfd[i], PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1437
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1540
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1560
ASSERT_EQ(ioctl(pidfd[i], PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
211
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
232
ASSERT_EQ(stat("/tmp/coredump.file", &st), 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
248
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
31
ASSERT_EQ(0, ret);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
355
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
388
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
495
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
528
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
616
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
649
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
736
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
769
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
858
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
891
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
92
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
980
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
184
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
205
ASSERT_EQ(stat("/tmp/coredump.file", &st), 0);
tools/testing/selftests/coredump/coredump_socket_test.c
223
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_test.c
287
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
29
ASSERT_EQ(0, ret);
tools/testing/selftests/coredump/coredump_socket_test.c
326
ASSERT_EQ((info.coredump_mask & PIDFD_COREDUMPED), 0);
tools/testing/selftests/coredump/coredump_socket_test.c
330
ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGKILL, NULL, 0), 0);
tools/testing/selftests/coredump/coredump_socket_test.c
331
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/coredump/coredump_socket_test.c
335
ASSERT_EQ(WTERMSIG(status), SIGKILL);
tools/testing/selftests/coredump/coredump_socket_test.c
338
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/coredump/coredump_socket_test.c
377
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_test.c
415
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
450
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_test.c
555
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
568
ASSERT_EQ(WTERMSIG(status), SIGSEGV);
tools/testing/selftests/coredump/coredump_socket_test.c
574
ASSERT_EQ(info.coredump_signal, SIGSEGV);
tools/testing/selftests/coredump/coredump_socket_test.c
596
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_socket_test.c
701
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/coredump/coredump_socket_test.c
714
ASSERT_EQ(WTERMSIG(status), SIGABRT);
tools/testing/selftests/coredump/coredump_socket_test.c
720
ASSERT_EQ(info.coredump_signal, SIGABRT);
tools/testing/selftests/coredump/coredump_socket_test.c
90
ASSERT_EQ(ret, 0);
tools/testing/selftests/coredump/coredump_test.h
45
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/coredump/stackdump_test.c
133
ASSERT_EQ(0, ret);
tools/testing/selftests/coredump/stackdump_test.c
164
ASSERT_EQ(i, 1 + NUM_THREAD_SPAWN);
tools/testing/selftests/coredump/stackdump_test.c
54
ASSERT_EQ(0, ret);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
104
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
105
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
111
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
112
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
118
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
119
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
123
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
141
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
142
ASSERT_EQ(errno_cache, ENOTTY);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
197
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
198
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
203
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
204
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
226
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
227
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
231
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
243
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
244
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
248
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
249
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
61
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
62
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
66
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
67
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
77
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
78
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
83
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
84
ASSERT_EQ(errno_cache, EFAULT);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
98
ASSERT_EQ(rc, -1);
tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
99
ASSERT_EQ(errno_cache, EINVAL);
tools/testing/selftests/exec/check-exec.c
136
ASSERT_EQ(0, mkdir(workdir_path, 00700));
tools/testing/selftests/exec/check-exec.c
137
ASSERT_EQ(0, mount("test", workdir_path, "tmpfs",
tools/testing/selftests/exec/check-exec.c
142
ASSERT_EQ(0, mknod(reg_file_path,
tools/testing/selftests/exec/check-exec.c
145
ASSERT_EQ(0, mkdir(dir_path, variant->file_exec ? 0700 : 0600));
tools/testing/selftests/exec/check-exec.c
147
ASSERT_EQ(0, mknod(char_dev_path, S_IFCHR | 0400, makedev(1, 3)));
tools/testing/selftests/exec/check-exec.c
149
ASSERT_EQ(0, mknod(block_dev_path, S_IFBLK | 0400, makedev(7, 0)));
tools/testing/selftests/exec/check-exec.c
151
ASSERT_EQ(0, mknod(fifo_path, S_IFIFO | 0600, 0));
tools/testing/selftests/exec/check-exec.c
157
ASSERT_EQ(0, fchmod(self->memfd, variant->file_exec ? 0700 : 0600));
tools/testing/selftests/exec/check-exec.c
160
ASSERT_EQ(0, pipe(self->pipe_fds));
tools/testing/selftests/exec/check-exec.c
166
ASSERT_EQ(0, fchmod(self->pipefd, variant->file_exec ? 0700 : 0600));
tools/testing/selftests/exec/check-exec.c
169
ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0,
tools/testing/selftests/exec/non-regular.c
104
ASSERT_EQ(rc, 0) {
tools/testing/selftests/exec/non-regular.c
137
ASSERT_EQ(mkfifo(self->pathname, 0755), 0);
tools/testing/selftests/exec/non-regular.c
184
ASSERT_EQ(close(self->fd), 0);
tools/testing/selftests/exec/non-regular.c
26
ASSERT_EQ(errno, ENOENT) {
tools/testing/selftests/exec/non-regular.c
30
ASSERT_EQ(rc, 0) {
tools/testing/selftests/exec/non-regular.c
64
ASSERT_EQ(symlink(paths[i], self->pathname), 0);
tools/testing/selftests/exec/non-regular.c
68
ASSERT_EQ(1, 0) {
tools/testing/selftests/exec/non-regular.c
84
ASSERT_EQ(mkdir(self->pathname, 0755), 0);
tools/testing/selftests/filesystems/anon_inode_test.c
20
ASSERT_EQ(errno, EOPNOTSUPP);
tools/testing/selftests/filesystems/anon_inode_test.c
33
ASSERT_EQ(errno, EOPNOTSUPP);
tools/testing/selftests/filesystems/anon_inode_test.c
49
ASSERT_EQ(errno, EACCES);
tools/testing/selftests/filesystems/anon_inode_test.c
62
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/anon_inode_test.c
66
ASSERT_EQ(errno, ENXIO);
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
303
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
309
ASSERT_EQ(ret, 1) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
314
ASSERT_EQ(ret, 1) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
320
ASSERT_EQ(setid_userns_root(), 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
334
ASSERT_EQ(ret, 1) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
340
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
346
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
351
ASSERT_EQ(ret, 1) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
392
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
416
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
435
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
44
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
449
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
490
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
50
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
511
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
535
ASSERT_EQ(ret, 0) {
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1009
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1018
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1021
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1023
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1057
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1066
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1069
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1071
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1105
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1114
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1117
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1119
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1153
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1162
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1165
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1167
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1202
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1211
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1214
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1217
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1218
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1223
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1254
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1263
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1266
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1269
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1270
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1275
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1306
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1315
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1318
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1321
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1322
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1327
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1358
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1367
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1370
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1373
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1374
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1379
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1410
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1419
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1422
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1425
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1426
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1431
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1461
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1470
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1473
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1476
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1477
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1482
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1512
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1521
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1524
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1527
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1528
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1533
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1563
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1572
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1575
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1578
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1579
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1584
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1614
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1623
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1626
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1629
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1630
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1635
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1666
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1675
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1678
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1681
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1o, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1682
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1687
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
169
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1718
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1727
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1730
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1733
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1734
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1739
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
175
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
177
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1770
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1779
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1782
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1785
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1o, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1786
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1791
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1823
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1832
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1835
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1838
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1839
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1848
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1880
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1889
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1892
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1895
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1o, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1896
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1905
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1937
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1946
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1949
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1952
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1953
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1962
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1994
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
200
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2003
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2006
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2009
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1o, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2010
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2019
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2050
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2059
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
206
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2062
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2065
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2066
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2071
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
208
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2102
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2111
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2114
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2117
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1op, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2118
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2123
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2154
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2163
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2166
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2169
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2170
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2175
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2206
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2215
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2218
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2221
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1op, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2222
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2227
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2259
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2268
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2271
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2274
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2275
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2284
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
231
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2315
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
232
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2324
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2327
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2330
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1op, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2331
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2336
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2368
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2377
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
238
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2380
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2383
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2384
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2393
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
241
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2424
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
243
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2433
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2436
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2439
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1op, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
244
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2440
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2445
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2474
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2475
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2487
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2490
ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2493
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2496
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2498
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2499
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2528
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2529
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2541
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2544
ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2547
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2550
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2552
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2553
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2583
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2584
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2596
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2599
ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2602
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2605
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2607
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2608
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2645
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2646
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2658
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2661
ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2664
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2667
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2669
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2670
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
269
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
270
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2708
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2709
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2721
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2724
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2727
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2730
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2733
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2734
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2739
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
276
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2773
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2774
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2786
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2789
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
279
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2792
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2795
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2798
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2799
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2804
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
281
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
282
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2838
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2839
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2851
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2854
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2857
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2860
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2863
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2864
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2869
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2903
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2904
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2916
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2919
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2922
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2925
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2928
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2929
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2934
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2969
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2970
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2982
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2985
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2988
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2991
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2994
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2995
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3004
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3039
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3040
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3052
ASSERT_EQ(epoll_ctl(ctx.efd[1], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3055
ASSERT_EQ(epoll_ctl(ctx.efd[2], EPOLL_CTL_ADD, ctx.sfd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3058
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3061
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.efd[2], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3064
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3065
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3074
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
308
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3135
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3137
ASSERT_EQ(pthread_create(&emitter, NULL, epoll59_thread, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
314
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
316
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
320
ASSERT_EQ(poll(&pfd, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
321
ASSERT_EQ(epoll_wait(efd, &e, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3248
ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
325
ASSERT_EQ(poll(&pfd, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3253
ASSERT_EQ(pthread_create(&waiters[i], NULL,
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
326
ASSERT_EQ(epoll_wait(efd, &e, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3278
ASSERT_EQ(ret, sizeof(v));
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3286
ASSERT_EQ(count_waiters(&ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3357
ASSERT_EQ(r, 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3380
ASSERT_EQ(pthread_create(&threads[0], NULL,
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3382
ASSERT_EQ(pthread_create(&threads[1], NULL,
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3384
ASSERT_EQ(pthread_create(&threads[2], NULL,
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3388
ASSERT_EQ(pthread_join(threads[n], NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3402
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3408
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3410
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3430
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3436
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3467
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
347
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3473
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3480
ASSERT_EQ(pthread_create(&waiter[0], NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3481
ASSERT_EQ(pthread_create(&waiter[1], NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3484
ASSERT_EQ(write(ctx.sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3486
ASSERT_EQ(pthread_join(waiter[0], NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3487
ASSERT_EQ(pthread_join(waiter[1], NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
353
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
355
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
359
ASSERT_EQ(poll(&pfd, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
360
ASSERT_EQ(epoll_wait(efd, &e, 1, 0), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
364
ASSERT_EQ(poll(&pfd, 1, 0), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
365
ASSERT_EQ(epoll_wait(efd, &e, 1, 0), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
387
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
388
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
394
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
397
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
399
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
400
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
433
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
434
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
440
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
443
ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
445
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
446
ASSERT_EQ(write(sfd[3], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
480
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
486
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
489
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
490
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
495
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
523
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
529
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
532
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
533
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
538
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
566
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
567
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
573
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
576
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
579
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry2a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
580
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
585
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
615
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
616
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
622
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
625
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
628
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1a, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
629
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
634
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
664
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
670
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
673
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
674
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
679
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
707
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, ctx.sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
713
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
716
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
717
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry1, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
722
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
750
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
751
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
757
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
760
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
763
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry2ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
764
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
769
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
799
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[0]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
800
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &ctx.sfd[2]), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
806
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
809
ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
812
ASSERT_EQ(pthread_create(&ctx.waiter, NULL, waiter_entry1ap, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
813
ASSERT_EQ(pthread_create(&emitter, NULL, emitter_entry2, &ctx), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
818
ASSERT_EQ(pthread_join(ctx.waiter, NULL), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
848
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
857
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
860
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
862
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
888
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
897
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
900
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
902
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
928
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
937
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
940
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
942
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
968
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
977
ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
980
ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], &e), 0);
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
982
ASSERT_EQ(write(sfd[1], "w", 1), 1);
tools/testing/selftests/filesystems/file_stressor.c
103
ASSERT_EQ(close(self->fd_tmpfs), 0);
tools/testing/selftests/filesystems/file_stressor.c
106
ASSERT_EQ(rmdir("/slab_typesafe_by_rcu"), 0);
tools/testing/selftests/filesystems/file_stressor.c
186
ASSERT_EQ(clock_nanosleep(CLOCK_MONOTONIC, 0, &(struct timespec){ .tv_sec = 900 /* 15 min */ }, NULL), 0);
tools/testing/selftests/filesystems/file_stressor.c
63
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/file_stressor.c
64
ASSERT_EQ(mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/file_stressor.c
65
ASSERT_EQ(mkdir("/slab_typesafe_by_rcu", 0755), 0);
tools/testing/selftests/filesystems/file_stressor.c
70
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/file_stressor.c
73
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/file_stressor.c
75
ASSERT_EQ(sys_move_mount(self->fd_tmpfs, "", -EBADF, "/slab_typesafe_by_rcu", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/file_stressor.c
94
ASSERT_EQ(pid, self->pids_openers[i]);
tools/testing/selftests/filesystems/file_stressor.c
98
ASSERT_EQ(pid, self->pids_getdents[i]);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
111
ASSERT_EQ(0, access(path_buf, F_OK));
tools/testing/selftests/filesystems/fuse/fusectl_test.c
122
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
125
ASSERT_EQ(ret, sizeof("test"));
tools/testing/selftests/filesystems/fuse/fusectl_test.c
136
ASSERT_EQ(ret, -1);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
137
ASSERT_EQ(errno, ENOTCONN);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
34
ASSERT_EQ(write(fd, val, len), len);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
35
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
53
ASSERT_EQ(unshare(CLONE_NEWNS|CLONE_NEWUSER), 0);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
59
ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/kernfs_test.c
20
ASSERT_EQ(flistxattr(fd, NULL, 0), 0);
tools/testing/selftests/filesystems/kernfs_test.c
33
ASSERT_EQ(errno, ENODATA);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
102
ASSERT_EQ(self->rem, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
106
ASSERT_EQ(fchdir(self->orig_root), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
108
ASSERT_EQ(chroot("."), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
133
ASSERT_EQ(len, -1);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
134
ASSERT_EQ(errno, EAGAIN);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
157
ASSERT_EQ(thislen, sizeof(*mnt));
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
179
ASSERT_EQ(expect_mask, mask);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
231
ASSERT_EQ(ret, num);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
244
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
248
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
258
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
268
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
271
ASSERT_EQ(detach_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
283
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
291
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
294
ASSERT_EQ(move_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
298
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
320
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
323
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
341
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
349
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
361
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
364
ASSERT_EQ(detach_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
379
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
382
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
385
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
388
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
396
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
404
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
413
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
420
ASSERT_EQ(masks[i], FAN_MNT_ATTACH | FAN_MNT_DETACH);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
422
ASSERT_EQ(masks[i], FAN_MNT_DETACH);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
431
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
434
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
437
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
451
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
454
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
461
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
482
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
492
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
497
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
500
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
503
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
509
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
51
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
517
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
520
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
523
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
56
ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
64
ASSERT_EQ(mount("tmpfs", self->root_mntpoint, "tmpfs", 0, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
66
ASSERT_EQ(chroot(self->root_mntpoint), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
68
ASSERT_EQ(chdir("/"), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
70
ASSERT_EQ(mkdir("a", 0700), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
72
ASSERT_EQ(mkdir("b", 0700), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
85
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
92
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
106
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
119
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
129
ASSERT_EQ(self->rem, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
133
ASSERT_EQ(fchdir(self->orig_root), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
135
ASSERT_EQ(chroot("."), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
160
ASSERT_EQ(len, -1);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
161
ASSERT_EQ(errno, EAGAIN);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
184
ASSERT_EQ(thislen, sizeof(*mnt));
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
206
ASSERT_EQ(expect_mask, mask);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
258
ASSERT_EQ(ret, num);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
271
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
275
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
285
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
295
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
298
ASSERT_EQ(detach_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
310
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
318
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
321
ASSERT_EQ(move_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
325
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
347
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
350
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
368
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
376
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
388
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
391
ASSERT_EQ(detach_id, mnts[1]);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
406
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
409
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
412
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
415
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
423
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
431
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
440
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
447
ASSERT_EQ(masks[i], FAN_MNT_ATTACH | FAN_MNT_DETACH);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
449
ASSERT_EQ(masks[i], FAN_MNT_DETACH);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
458
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
461
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
464
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
478
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
481
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
488
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
509
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
519
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
524
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
527
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
530
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
536
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
544
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
547
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
550
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
62
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
73
ASSERT_EQ(mount("tmpfs", self->root_mntpoint, "tmpfs", 0, NULL), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
75
ASSERT_EQ(chroot(self->root_mntpoint), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
77
ASSERT_EQ(chdir("/"), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
79
ASSERT_EQ(mkdir("a", 0700), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
81
ASSERT_EQ(mkdir("b", 0700), 0);
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
91
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
114
ASSERT_EQ(close(fd_mnt_ns_cur), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
117
ASSERT_EQ(count, MNT_NS_LAST_INDEX);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
124
ASSERT_EQ(setns(self->fd_mnt_ns[0], CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
133
ASSERT_EQ(close(fd_mnt_ns_cur), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
142
ASSERT_EQ(setns(self->fd_mnt_ns[MNT_NS_LAST_INDEX], CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
151
ASSERT_EQ(close(fd_mnt_ns_cur), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
159
ASSERT_EQ(errno, ENOTTY);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
162
ASSERT_EQ(errno, ENOTTY);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
165
ASSERT_EQ(errno, ENOTTY);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
57
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
60
ASSERT_EQ(ioctl(self->fd_mnt_ns[i], NS_MNT_GET_INFO, &info), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
70
ASSERT_EQ(close(self->fd_mnt_ns[i]), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
91
ASSERT_EQ(close(fd_mnt_ns_cur), 0);
tools/testing/selftests/filesystems/nsfs/iterate_mntns.c
94
ASSERT_EQ(count, MNT_NS_LAST_INDEX);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
251
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
262
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
298
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
312
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
314
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
337
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
344
ASSERT_EQ(ret, 0);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
412
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
510
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
593
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
670
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
774
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
885
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
991
ASSERT_EQ(get_mnt_ns_id(fd, &new_ns_id), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
102
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
103
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
110
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, layer_fds[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
111
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, layer_fds[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
112
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[2]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
113
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[3]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
114
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[4]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
115
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[5]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
116
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[6]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
117
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[7]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
118
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[8]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
120
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_STRING, "metacopy", "on", 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
122
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
127
ASSERT_EQ(sys_move_mount(fd_overlay, "", -EBADF, "/set_layers_via_fds", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
157
ASSERT_EQ(layers_found[i], true);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
158
ASSERT_EQ(close(layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
161
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
162
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
163
ASSERT_EQ(fclose(f_mountinfo), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
171
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
172
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
177
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
180
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
186
ASSERT_EQ(mkdirat(fd_tmpfs, path, 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
191
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
195
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
199
ASSERT_EQ(mkdirat(fd_tmpfs, "l501", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
203
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
204
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
209
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, fd_work), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
210
ASSERT_EQ(close(fd_work), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
212
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, fd_upper), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
213
ASSERT_EQ(close(fd_upper), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
216
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
217
ASSERT_EQ(close(layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
221
ASSERT_EQ(close(fd_lower), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
223
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
227
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
228
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
238
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
239
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
244
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
247
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
249
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
250
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
251
ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
252
ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
266
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
267
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
274
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, layer_fds[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
275
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, layer_fds[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
276
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[2]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
277
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[3]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
279
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_STRING, "metacopy", "on", 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
320
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
325
ASSERT_EQ(sys_move_mount(fd_overlay, "", -EBADF, "/set_layers_via_fds", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
327
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
328
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
381
ASSERT_EQ(close(ipc_sockets[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
382
ASSERT_EQ(switch_userns(fd_userns1, 0, 0, false), true);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
383
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
384
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
389
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
392
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
394
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
395
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
396
ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
397
ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
411
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
412
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
416
ASSERT_EQ(dup3(fd_context, predictable_fd_context_nr, 0), predictable_fd_context_nr);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
417
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
419
ASSERT_EQ(write_nointr(ipc_sockets[0], "1", 1), 1);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
420
ASSERT_EQ(close(ipc_sockets[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
422
ASSERT_EQ(wait_for_pid(pid), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
423
ASSERT_EQ(close(self->pidfd), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
427
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, layer_fds[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
428
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, layer_fds[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
429
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[2]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
430
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[3]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
433
ASSERT_EQ(close(layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
435
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FLAG, "userxattr", NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
437
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
442
ASSERT_EQ(sys_move_mount(fd_overlay, "", -EBADF, "/set_layers_via_fds", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
444
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
445
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
446
ASSERT_EQ(close(fd_userns1), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
447
ASSERT_EQ(close(fd_userns2), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
457
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
458
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
463
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
466
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
468
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
469
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
470
ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
471
ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
485
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
486
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
493
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, layer_fds[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
494
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, layer_fds[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
495
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[2]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
496
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[3]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
497
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FLAG, "userxattr", NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
513
ASSERT_EQ(sys_waitid(P_PID, pid, NULL, WEXITED), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
516
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
521
ASSERT_EQ(sys_move_mount(fd_overlay, "", -EBADF, "/set_layers_via_fds", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
522
ASSERT_EQ(mknodat(fd_overlay, "dev-zero", S_IFCHR | 0644, makedev(1, 5)), -1);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
523
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
525
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
526
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
534
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
535
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
54
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
540
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
543
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
549
ASSERT_EQ(mkdirat(fd_tmpfs, path, 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
55
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
554
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
558
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
562
ASSERT_EQ(mkdirat(fd_tmpfs, "l501", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
566
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/tmp", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
567
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
572
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, fd_work), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
573
ASSERT_EQ(close(fd_work), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
575
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, fd_upper), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
576
ASSERT_EQ(close(fd_upper), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
579
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
580
ASSERT_EQ(close(layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
584
ASSERT_EQ(close(fd_lower), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
586
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
590
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
591
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
60
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
603
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
604
ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
609
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
612
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
614
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
615
ASSERT_EQ(mkdirat(fd_tmpfs, "u/upper", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
616
ASSERT_EQ(mkdirat(fd_tmpfs, "u/work", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
617
ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
618
ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
619
ASSERT_EQ(mkdirat(fd_tmpfs, "l3", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
620
ASSERT_EQ(mkdirat(fd_tmpfs, "l4", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
621
ASSERT_EQ(mkdirat(fd_tmpfs, "d1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
622
ASSERT_EQ(mkdirat(fd_tmpfs, "d2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
623
ASSERT_EQ(mkdirat(fd_tmpfs, "d3", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
625
ASSERT_EQ(sys_move_mount(fd_tmpfs, "", -EBADF, "/set_layers_via_fds_tmpfs", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
63
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
65
ASSERT_EQ(mkdirat(fd_tmpfs, "w", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
657
ASSERT_EQ(close(fd_tmpfs), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
66
ASSERT_EQ(mkdirat(fd_tmpfs, "u", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
664
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "upperdir", NULL, layer_fds[0]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
665
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "workdir", NULL, layer_fds[1]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
666
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[2]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
667
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[3]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
668
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[4]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
669
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "lowerdir+", NULL, layer_fds[5]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
67
ASSERT_EQ(mkdirat(fd_tmpfs, "l1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
670
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[6]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
671
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[7]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
672
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_FD, "datadir+", NULL, layer_fds[8]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
674
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_SET_STRING, "metacopy", "on", 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
676
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
68
ASSERT_EQ(mkdirat(fd_tmpfs, "l2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
681
ASSERT_EQ(sys_move_mount(fd_overlay, "", -EBADF, "/set_layers_via_fds", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
69
ASSERT_EQ(mkdirat(fd_tmpfs, "l3", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
70
ASSERT_EQ(mkdirat(fd_tmpfs, "l4", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
71
ASSERT_EQ(mkdirat(fd_tmpfs, "d1", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
711
ASSERT_EQ(layers_found[i], true);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
712
ASSERT_EQ(close(layer_fds[i]), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
715
ASSERT_EQ(close(fd_context), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
716
ASSERT_EQ(close(fd_overlay), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
717
ASSERT_EQ(fclose(f_mountinfo), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
72
ASSERT_EQ(mkdirat(fd_tmpfs, "d2", 0755), 0);
tools/testing/selftests/filesystems/overlayfs/set_layers_via_fds.c
73
ASSERT_EQ(mkdirat(fd_tmpfs, "d3", 0755), 0);
tools/testing/selftests/futex/functional/robust_list.c
215
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
222
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
234
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
256
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
259
ASSERT_EQ(ret, -1);
tools/testing/selftests/futex/functional/robust_list.c
260
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/futex/functional/robust_list.c
263
ASSERT_EQ(ret, -1);
tools/testing/selftests/futex/functional/robust_list.c
264
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/futex/functional/robust_list.c
267
ASSERT_EQ(ret, -1);
tools/testing/selftests/futex/functional/robust_list.c
268
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/futex/functional/robust_list.c
283
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
286
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
287
ASSERT_EQ(get_head, &head);
tools/testing/selftests/futex/functional/robust_list.c
288
ASSERT_EQ(head_size, len_ptr);
tools/testing/selftests/futex/functional/robust_list.c
291
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
294
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
295
ASSERT_EQ(get_head, &head2);
tools/testing/selftests/futex/functional/robust_list.c
296
ASSERT_EQ(head_size, len_ptr);
tools/testing/selftests/futex/functional/robust_list.c
338
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
346
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
347
ASSERT_EQ(&head, get_head);
tools/testing/selftests/futex/functional/robust_list.c
399
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
402
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
410
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
481
ASSERT_EQ(ret, 0);
tools/testing/selftests/futex/functional/robust_list.c
483
ASSERT_EQ(ret, 0);
tools/testing/selftests/hid/hid_bpf.c
166
ASSERT_EQ(self->skel->data->callback_check, 52) TH_LOG("callback_check1");
tools/testing/selftests/hid/hid_bpf.c
167
ASSERT_EQ(self->skel->data->callback2_check, 52) TH_LOG("callback2_check1");
tools/testing/selftests/hid/hid_bpf.c
175
ASSERT_EQ(self->skel->data->callback_check, 42) TH_LOG("callback_check1");
tools/testing/selftests/hid/hid_bpf.c
180
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
181
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
182
ASSERT_EQ(buf[2], 47);
tools/testing/selftests/hid/hid_bpf.c
191
ASSERT_EQ(self->skel->data->callback_check, 47) TH_LOG("callback_check1");
tools/testing/selftests/hid/hid_bpf.c
196
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
197
ASSERT_EQ(buf[2], 52);
tools/testing/selftests/hid/hid_bpf.c
224
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
225
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
226
ASSERT_EQ(buf[2], 47);
tools/testing/selftests/hid/hid_bpf.c
237
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
238
ASSERT_EQ(buf[2], 52);
tools/testing/selftests/hid/hid_bpf.c
288
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
289
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
290
ASSERT_EQ(buf[2], 47);
tools/testing/selftests/hid/hid_bpf.c
293
ASSERT_EQ(buf[3], 52);
tools/testing/selftests/hid/hid_bpf.c
318
ASSERT_EQ(err, 6) TH_LOG("read_hidraw_no_bpf");
tools/testing/selftests/hid/hid_bpf.c
319
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
320
ASSERT_EQ(buf[1], 47);
tools/testing/selftests/hid/hid_bpf.c
321
ASSERT_EQ(buf[2], 0);
tools/testing/selftests/hid/hid_bpf.c
322
ASSERT_EQ(buf[3], 0);
tools/testing/selftests/hid/hid_bpf.c
337
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
338
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
339
ASSERT_EQ(buf[2], 47);
tools/testing/selftests/hid/hid_bpf.c
340
ASSERT_EQ(buf[3], 52);
tools/testing/selftests/hid/hid_bpf.c
367
ASSERT_EQ(err, 9) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
368
ASSERT_EQ(buf[0], 2);
tools/testing/selftests/hid/hid_bpf.c
369
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/hid/hid_bpf.c
370
ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test");
tools/testing/selftests/hid/hid_bpf.c
402
ASSERT_EQ(err, -1) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
408
ASSERT_EQ(args.retval, 0);
tools/testing/selftests/hid/hid_bpf.c
413
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
414
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
415
ASSERT_EQ(buf[1], 2);
tools/testing/selftests/hid/hid_bpf.c
416
ASSERT_EQ(buf[2], 42);
tools/testing/selftests/hid/hid_bpf.c
457
ASSERT_EQ(args.retval, 3);
tools/testing/selftests/hid/hid_bpf.c
459
ASSERT_EQ(output_report[0], 1);
tools/testing/selftests/hid/hid_bpf.c
460
ASSERT_EQ(output_report[1], 2);
tools/testing/selftests/hid/hid_bpf.c
461
ASSERT_EQ(output_report[2], 42);
tools/testing/selftests/hid/hid_bpf.c
494
ASSERT_EQ(args.retval, 2);
tools/testing/selftests/hid/hid_bpf.c
496
ASSERT_EQ(args.data[1], 2);
tools/testing/selftests/hid/hid_bpf.c
524
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
525
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
526
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/hid/hid_bpf.c
527
ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test");
tools/testing/selftests/hid/hid_bpf.c
537
ASSERT_EQ(errno, 20) TH_LOG("unexpected error code while reading HIDIOCGFEATURE: %d",
tools/testing/selftests/hid/hid_bpf.c
572
ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err);
tools/testing/selftests/hid/hid_bpf.c
574
ASSERT_EQ(buf[0], 2);
tools/testing/selftests/hid/hid_bpf.c
575
ASSERT_EQ(buf[1], 3);
tools/testing/selftests/hid/hid_bpf.c
576
ASSERT_EQ(buf[2], 4);
tools/testing/selftests/hid/hid_bpf.c
598
ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err);
tools/testing/selftests/hid/hid_bpf.c
626
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
627
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
628
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/hid/hid_bpf.c
629
ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test");
tools/testing/selftests/hid/hid_bpf.c
639
ASSERT_EQ(errno, 25) TH_LOG("unexpected error code while sending hid_hw_output_report: %d",
tools/testing/selftests/hid/hid_bpf.c
675
ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d",
tools/testing/selftests/hid/hid_bpf.c
699
ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d",
tools/testing/selftests/hid/hid_bpf.c
727
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
728
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
729
ASSERT_EQ(buf[1], 47);
tools/testing/selftests/hid/hid_bpf.c
736
ASSERT_EQ(err, 9) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
737
ASSERT_EQ(buf[0], 2);
tools/testing/selftests/hid/hid_bpf.c
738
ASSERT_EQ(buf[1], 3);
tools/testing/selftests/hid/hid_bpf.c
765
ASSERT_EQ(err, 9) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
766
ASSERT_EQ(buf[0], 2);
tools/testing/selftests/hid/hid_bpf.c
767
ASSERT_EQ(buf[1], 47);
tools/testing/selftests/hid/hid_bpf.c
772
ASSERT_EQ(err, 9) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
773
ASSERT_EQ(buf[0], 2);
tools/testing/selftests/hid/hid_bpf.c
774
ASSERT_EQ(buf[1], 52);
tools/testing/selftests/hid/hid_bpf.c
801
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
802
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
803
ASSERT_EQ(buf[1], 3);
tools/testing/selftests/hid/hid_bpf.c
808
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
809
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hid_bpf.c
810
ASSERT_EQ(buf[1], 4);
tools/testing/selftests/hid/hid_bpf.c
815
ASSERT_EQ(err, -1) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
852
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hid_bpf.c
853
ASSERT_EQ(buf[1], 1);
tools/testing/selftests/hid/hid_bpf.c
854
ASSERT_EQ(buf[2], 2);
tools/testing/selftests/hid/hid_bpf.c
855
ASSERT_EQ(buf[3], 3);
tools/testing/selftests/hid/hid_bpf.c
874
ASSERT_EQ(self->skel->data->callback2_check, 0x21);
tools/testing/selftests/hid/hid_bpf.c
887
ASSERT_EQ(rpt_desc.value[4], 0x42);
tools/testing/selftests/hid/hid_common.h
290
ASSERT_EQ(0, err) {
tools/testing/selftests/hid/hid_common.h
461
ASSERT_EQ(0, ret) {
tools/testing/selftests/hid/hid_common.h
473
ASSERT_EQ(0, ret) {
tools/testing/selftests/hid/hidraw.c
112
ASSERT_EQ(err, -1) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hidraw.c
113
ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while reading the hidraw node: %d",
tools/testing/selftests/hid/hidraw.c
130
ASSERT_EQ(err, -1) TH_LOG("ioctl_hidraw");
tools/testing/selftests/hid/hidraw.c
131
ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while doing an ioctl: %d",
tools/testing/selftests/hid/hidraw.c
155
ASSERT_EQ(ready, 1) TH_LOG("poll return value");
tools/testing/selftests/hid/hidraw.c
160
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hidraw.c
161
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hidraw.c
162
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/hid/hidraw.c
197
ASSERT_EQ(err, 3) TH_LOG("unexpected error while writing to hidraw node: %d", err);
tools/testing/selftests/hid/hidraw.c
202
ASSERT_EQ(output_report[0], 1);
tools/testing/selftests/hid/hidraw.c
203
ASSERT_EQ(output_report[1], 2);
tools/testing/selftests/hid/hidraw.c
204
ASSERT_EQ(output_report[2], 42);
tools/testing/selftests/hid/hidraw.c
215
ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while writing to hidraw node: %d",
tools/testing/selftests/hid/hidraw.c
231
ASSERT_EQ(err, 0) TH_LOG("HIDIOCGRDESCSIZE ioctl failed");
tools/testing/selftests/hid/hidraw.c
234
ASSERT_EQ(desc_size, sizeof(rdesc))
tools/testing/selftests/hid/hidraw.c
249
ASSERT_EQ(err, 0) TH_LOG("HIDIOCGRDESC ioctl failed");
tools/testing/selftests/hid/hidraw.c
252
ASSERT_EQ(memcmp(desc.value, rdesc, sizeof(rdesc)), 0)
tools/testing/selftests/hid/hidraw.c
268
ASSERT_EQ(err, 0) TH_LOG("HIDIOCGRDESC ioctl failed with small buffer");
tools/testing/selftests/hid/hidraw.c
271
ASSERT_EQ(memcmp(desc.value, rdesc, small_size), 0)
tools/testing/selftests/hid/hidraw.c
285
ASSERT_EQ(err, 0) TH_LOG("HIDIOCGRAWINFO ioctl failed");
tools/testing/selftests/hid/hidraw.c
288
ASSERT_EQ(devinfo.bustype, BUS_USB)
tools/testing/selftests/hid/hidraw.c
290
ASSERT_EQ(devinfo.vendor, 0x0001)
tools/testing/selftests/hid/hidraw.c
292
ASSERT_EQ(devinfo.product, 0x0a37)
tools/testing/selftests/hid/hidraw.c
309
ASSERT_EQ(err, sizeof(feature_data)) TH_LOG("HIDIOCGFEATURE ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
312
ASSERT_EQ(buf[0], feature_data[0])
tools/testing/selftests/hid/hidraw.c
314
ASSERT_EQ(buf[1], feature_data[1])
tools/testing/selftests/hid/hidraw.c
332
ASSERT_EQ(errno, EIO) TH_LOG("expected EIO, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
352
ASSERT_EQ(errno, ENOTTY)
tools/testing/selftests/hid/hidraw.c
363
ASSERT_EQ(errno, ENOTTY)
tools/testing/selftests/hid/hidraw.c
371
ASSERT_EQ(errno, ENOTTY)
tools/testing/selftests/hid/hidraw.c
379
ASSERT_EQ(errno, ENOTTY)
tools/testing/selftests/hid/hidraw.c
400
ASSERT_EQ(errno, EINVAL) TH_LOG("expected EINVAL for wrong _IOC_NR, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
424
ASSERT_EQ(errno, EINVAL) TH_LOG("expected EINVAL for wrong _IOC_DIR, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
431
ASSERT_EQ(errno, EINVAL) TH_LOG("expected EINVAL for wrong _IOC_DIR, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
452
ASSERT_EQ(errno, EINVAL) TH_LOG("expected EINVAL for wrong _IOC_DIR, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
459
ASSERT_EQ(errno, EINVAL) TH_LOG("expected EINVAL for wrong _IOC_DIR, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
477
ASSERT_EQ(err, 3) TH_LOG("HIDIOCSFEATURE ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
498
ASSERT_EQ(err, sizeof(feature_data)) TH_LOG("HIDIOCGINPUT ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
501
ASSERT_EQ(buf[0], feature_data[0])
tools/testing/selftests/hid/hidraw.c
503
ASSERT_EQ(buf[1], feature_data[1])
tools/testing/selftests/hid/hidraw.c
521
ASSERT_EQ(errno, EIO) TH_LOG("expected EIO, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
539
ASSERT_EQ(err, 3) TH_LOG("HIDIOCSINPUT ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
560
ASSERT_EQ(err, sizeof(feature_data)) TH_LOG("HIDIOCGOUTPUT ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
563
ASSERT_EQ(buf[0], feature_data[0])
tools/testing/selftests/hid/hidraw.c
565
ASSERT_EQ(buf[1], feature_data[1])
tools/testing/selftests/hid/hidraw.c
583
ASSERT_EQ(errno, EIO) TH_LOG("expected EIO, got errno %d", errno);
tools/testing/selftests/hid/hidraw.c
601
ASSERT_EQ(err, 3) TH_LOG("HIDIOCSOUTPUT ioctl failed, got %d", err);
tools/testing/selftests/hid/hidraw.c
626
ASSERT_EQ(strcmp(name, expected_name), 0)
tools/testing/selftests/hid/hidraw.c
647
ASSERT_EQ(strcmp(phys, expected_phys), 0)
tools/testing/selftests/hid/hidraw.c
664
ASSERT_EQ(strlen(uniq), 0) TH_LOG("expected empty uniq, got '%s'", uniq);
tools/testing/selftests/hid/hidraw.c
678
ASSERT_EQ(err, sizeof(small_buf))
tools/testing/selftests/hid/hidraw.c
685
ASSERT_EQ(strncmp(small_buf, expected_name, sizeof(small_buf)), 0)
tools/testing/selftests/hid/hidraw.c
74
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hidraw.c
75
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hidraw.c
76
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/hid/hidraw.c
96
ASSERT_EQ(err, 6) TH_LOG("read_hidraw");
tools/testing/selftests/hid/hidraw.c
97
ASSERT_EQ(buf[0], 1);
tools/testing/selftests/hid/hidraw.c
98
ASSERT_EQ(buf[1], 42);
tools/testing/selftests/iommu/iommufd.c
1016
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
1024
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
1027
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1052
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
1058
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
1078
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
1100
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1104
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_IOVA_RANGES, &ranges_cmd));
tools/testing/selftests/iommu/iommufd.c
1127
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1157
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1168
ASSERT_EQ(0, munmap(buf, buf_size));
tools/testing/selftests/iommu/iommufd.c
117
ASSERT_EQ(0, ioctl(self->fd, _ioctl, &cmd)); \
tools/testing/selftests/iommu/iommufd.c
1202
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1210
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1214
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1223
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1229
ASSERT_EQ(0, ioctl(self->fd,
tools/testing/selftests/iommu/iommufd.c
1256
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1294
ASSERT_EQ(0, ioctl(fd,
tools/testing/selftests/iommu/iommufd.c
1298
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1307
ASSERT_EQ(0, ioctl(fd,
tools/testing/selftests/iommu/iommufd.c
1311
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1325
ASSERT_EQ(0, ioctl(fd, _IOMMU_TEST_CMD(IOMMU_TEST_OP_ACCESS_RW),
tools/testing/selftests/iommu/iommufd.c
1327
ASSERT_EQ(0, memcmp(buffer, tmp2, access_cmd.access_rw.length));
tools/testing/selftests/iommu/iommufd.c
1375
ASSERT_EQ(child, waitpid(child, NULL, 0));
tools/testing/selftests/iommu/iommufd.c
1407
ASSERT_EQ(0, pipe2(pipefds, O_CLOEXEC));
tools/testing/selftests/iommu/iommufd.c
1428
ASSERT_EQ(8, read(efd, &tmp, sizeof(tmp)));
tools/testing/selftests/iommu/iommufd.c
1434
ASSERT_EQ(0, close(pipefds[1]));
tools/testing/selftests/iommu/iommufd.c
1435
ASSERT_EQ(child, waitpid(child, NULL, 0));
tools/testing/selftests/iommu/iommufd.c
1450
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1451
ASSERT_EQ(1, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
1455
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1459
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1460
ASSERT_EQ(0, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
1468
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1508
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1514
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1518
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1562
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1723
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd.c
1729
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd.c
173
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
174
ASSERT_EQ(0, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
1755
ASSERT_EQ(0, munmap(buf + buf_size / 2, buf_size / 2));
tools/testing/selftests/iommu/iommufd.c
1759
ASSERT_EQ(0, munmap(buf, buf_size / 2));
tools/testing/selftests/iommu/iommufd.c
1783
ASSERT_EQ(0, ftruncate(mfd_tmp, 0));
tools/testing/selftests/iommu/iommufd.c
179
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1815
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1821
ASSERT_EQ(0, munmap(buf, PAGE_SIZE));
tools/testing/selftests/iommu/iommufd.c
184
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
185
ASSERT_EQ(1, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
1873
ASSERT_EQ(0, munmap(buf, buf_size));
tools/testing/selftests/iommu/iommufd.c
189
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
1938
ASSERT_EQ(0, munmap(buf, buf_size));
tools/testing/selftests/iommu/iommufd.c
1980
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
1984
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
1999
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_UNMAP, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2004
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
2008
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_COPY, ©_cmd));
tools/testing/selftests/iommu/iommufd.c
2169
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
2287
ASSERT_EQ(IOMMU_HW_CAP_DIRTY_TRACKING,
tools/testing/selftests/iommu/iommufd.c
2388
ASSERT_EQ(VFIO_API_VERSION, ioctl(self->fd, VFIO_GET_API_VERSION));
tools/testing/selftests/iommu/iommufd.c
2389
ASSERT_EQ(1, ioctl(self->fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1v2_IOMMU));
tools/testing/selftests/iommu/iommufd.c
2468
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2472
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2473
ASSERT_EQ(ioas_id, vfio_ioas_cmd.ioas_id);
tools/testing/selftests/iommu/iommufd.c
2477
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2509
ASSERT_EQ(0, ioctl(self->fd, IOMMU_VFIO_IOAS, &vfio_ioas_cmd));
tools/testing/selftests/iommu/iommufd.c
2510
ASSERT_EQ(0, ioctl(self->fd, VFIO_SET_IOMMU, variant->version));
tools/testing/selftests/iommu/iommufd.c
2542
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd));
tools/testing/selftests/iommu/iommufd.c
2544
ASSERT_EQ(0, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
2546
ASSERT_EQ(1, cmd.val64);
tools/testing/selftests/iommu/iommufd.c
2569
ASSERT_EQ(0, ioctl(fd, cmd, buffer)); \
tools/testing/selftests/iommu/iommufd.c
2570
ASSERT_EQ(true, is_filled(buffer + _cmd_len, 0xAA, \
tools/testing/selftests/iommu/iommufd.c
2594
ASSERT_EQ(1, data->header.version);
tools/testing/selftests/iommu/iommufd.c
2595
ASSERT_EQ(1, data->nr_iovas);
tools/testing/selftests/iommu/iommufd.c
2605
ASSERT_EQ(1, data->header.version);
tools/testing/selftests/iommu/iommufd.c
2606
ASSERT_EQ(sizeof(*data), cap_size);
tools/testing/selftests/iommu/iommufd.c
2610
ASSERT_EQ(false, true);
tools/testing/selftests/iommu/iommufd.c
2634
ASSERT_EQ(VFIO_IOMMU_INFO_PGSIZES | VFIO_IOMMU_INFO_CAPS,
tools/testing/selftests/iommu/iommufd.c
264
ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &set_limit_cmd));
tools/testing/selftests/iommu/iommufd.c
2643
ASSERT_EQ(VFIO_IOMMU_INFO_PGSIZES | VFIO_IOMMU_INFO_CAPS,
tools/testing/selftests/iommu/iommufd.c
2645
ASSERT_EQ(0, info_cmd->cap_offset);
tools/testing/selftests/iommu/iommufd.c
2655
ASSERT_EQ(VFIO_IOMMU_INFO_PGSIZES | VFIO_IOMMU_INFO_CAPS,
tools/testing/selftests/iommu/iommufd.c
2695
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2696
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2697
ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size);
tools/testing/selftests/iommu/iommufd.c
2699
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2702
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2708
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2709
ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size);
tools/testing/selftests/iommu/iommufd.c
2717
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2725
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
tools/testing/selftests/iommu/iommufd.c
2751
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
tools/testing/selftests/iommu/iommufd.c
2763
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA,
tools/testing/selftests/iommu/iommufd.c
2927
ASSERT_EQ(data.out_data, data.in_data);
tools/testing/selftests/iommu/iommufd.c
2941
ASSERT_EQ(data.in_data, *test);
tools/testing/selftests/iommu/iommufd.c
307
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_CHANGE_PROCESS, &cmd));
tools/testing/selftests/iommu/iommufd.c
315
ASSERT_EQ(nlock, get_vm_pinned(parent));
tools/testing/selftests/iommu/iommufd.c
317
ASSERT_EQ(nlock, get_vm_locked(parent));
tools/testing/selftests/iommu/iommufd.c
318
ASSERT_EQ(0, get_vm_pinned(getpid()));
tools/testing/selftests/iommu/iommufd.c
319
ASSERT_EQ(0, get_vm_locked(getpid()));
tools/testing/selftests/iommu/iommufd.c
321
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_CHANGE_PROCESS, &cmd));
tools/testing/selftests/iommu/iommufd.c
324
ASSERT_EQ(0, get_vm_pinned(parent));
tools/testing/selftests/iommu/iommufd.c
325
ASSERT_EQ(0, get_vm_locked(parent));
tools/testing/selftests/iommu/iommufd.c
326
ASSERT_EQ(nlock, get_vm_pinned(getpid()));
tools/testing/selftests/iommu/iommufd.c
328
ASSERT_EQ(nlock, get_vm_locked(getpid()));
tools/testing/selftests/iommu/iommufd.c
333
ASSERT_EQ(child, waitpid(child, NULL, 0));
tools/testing/selftests/iommu/iommufd.c
3354
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3383
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3392
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3401
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3416
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3425
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3449
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3458
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3467
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3476
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3491
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3501
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3516
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
3527
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
793
ASSERT_EQ(0, max_pasid);
tools/testing/selftests/iommu/iommufd.c
797
ASSERT_EQ(MOCK_PASID_WIDTH, max_pasid);
tools/testing/selftests/iommu/iommufd.c
873
ASSERT_EQ(0, _test_ioctl_ioas_unmap(self->fd, self->ioas_id,
tools/testing/selftests/iommu/iommufd.c
878
ASSERT_EQ(32 * PAGE_SIZE, unmap_len);
tools/testing/selftests/iommu/iommufd.c
922
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd.c
953
ASSERT_EQ(0, ioctl(self->fd, IOMMU_IOAS_ALLOW_IOVAS, &allow_cmd));
tools/testing/selftests/iommu/iommufd.c
989
ASSERT_EQ(0,
tools/testing/selftests/iommu/iommufd_fail_nth.c
141
ASSERT_EQ(ARRAY_SIZE(disable_nth) - 1, res2);
tools/testing/selftests/iommu/iommufd_fail_nth.c
172
ASSERT_EQ(len, pwrite(nth_state->proc_fd, buf, len, 0));
tools/testing/selftests/iommu/iommufd_fail_nth.c
191
ASSERT_EQ(0, test_nth_##name(_metadata, self, variant, \
tools/testing/selftests/iommu/iommufd_fail_nth.c
199
ASSERT_EQ(0, test_result); \
tools/testing/selftests/iommu/iommufd_utils.h
1024
ASSERT_EQ(0, _test_cmd_vdevice_alloc(self->fd, viommu_id, idev_id, \
tools/testing/selftests/iommu/iommufd_utils.h
1054
ASSERT_EQ(0, _test_cmd_hw_queue_alloc(self->fd, viommu_id, type, idx, \
tools/testing/selftests/iommu/iommufd_utils.h
1084
ASSERT_EQ(0, _test_cmd_veventq_alloc(self->fd, viommu_id, type, \
tools/testing/selftests/iommu/iommufd_utils.h
1111
ASSERT_EQ(0, _test_cmd_trigger_vevents(self->fd, dev_id, nvevents))
tools/testing/selftests/iommu/iommufd_utils.h
1167
ASSERT_EQ(0, _test_cmd_read_vevents(self->fd, event_fd, nvevents, \
tools/testing/selftests/iommu/iommufd_utils.h
1192
ASSERT_EQ(0, _test_cmd_pasid_attach(self->fd, self->stdev_id, \
tools/testing/selftests/iommu/iommufd_utils.h
1218
ASSERT_EQ(0, _test_cmd_pasid_replace(self->fd, self->stdev_id, \
tools/testing/selftests/iommu/iommufd_utils.h
124
ASSERT_EQ(0, _test_cmd_mock_domain(self->fd, ioas_id, stdev_id, \
tools/testing/selftests/iommu/iommufd_utils.h
1242
ASSERT_EQ(0, _test_cmd_pasid_detach(self->fd, self->stdev_id, pasid))
tools/testing/selftests/iommu/iommufd_utils.h
155
ASSERT_EQ(0, _test_cmd_mock_domain_flags(self->fd, ioas_id, flags, \
tools/testing/selftests/iommu/iommufd_utils.h
184
ASSERT_EQ(0, _test_cmd_mock_domain_replace(self->fd, stdev_id, pt_id, \
tools/testing/selftests/iommu/iommufd_utils.h
215
ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
tools/testing/selftests/iommu/iommufd_utils.h
225
ASSERT_EQ(0, _test_cmd_hwpt_alloc( \
tools/testing/selftests/iommu/iommufd_utils.h
237
ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
tools/testing/selftests/iommu/iommufd_utils.h
247
ASSERT_EQ(0, _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, fault_id, \
tools/testing/selftests/iommu/iommufd_utils.h
268
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
292
ASSERT_EQ(0, ioctl(self->fd, \
tools/testing/selftests/iommu/iommufd_utils.h
324
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
355
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
385
ASSERT_EQ(0, _test_cmd_access_replace_ioas(self->fd, access_id, ioas_id))
tools/testing/selftests/iommu/iommufd_utils.h
402
ASSERT_EQ(0, _test_cmd_set_dirty_tracking(self->fd, hwpt_id, enabled))
tools/testing/selftests/iommu/iommufd_utils.h
427
ASSERT_EQ(0, _test_cmd_get_dirty_bitmap(fd, hwpt_id, length, iova, \
tools/testing/selftests/iommu/iommufd_utils.h
457
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
479
ASSERT_EQ(nr, out_dirty);
tools/testing/selftests/iommu/iommufd_utils.h
488
ASSERT_EQ(j < npte,
tools/testing/selftests/iommu/iommufd_utils.h
491
ASSERT_EQ(!(i % pteset), test_bit(i, (unsigned long *)bitmap));
tools/testing/selftests/iommu/iommufd_utils.h
501
ASSERT_EQ(
tools/testing/selftests/iommu/iommufd_utils.h
513
ASSERT_EQ(0, _test_mock_dirty_bitmaps(self->fd, hwpt_id, length, iova, \
tools/testing/selftests/iommu/iommufd_utils.h
535
ASSERT_EQ(0, _test_cmd_create_access(self->fd, ioas_id, access_id, \
tools/testing/selftests/iommu/iommufd_utils.h
543
ASSERT_EQ(0, _test_cmd_destroy_access(access_id))
tools/testing/selftests/iommu/iommufd_utils.h
557
ASSERT_EQ(0, _test_cmd_destroy_access_pages(self->fd, access_id, \
tools/testing/selftests/iommu/iommufd_utils.h
577
ASSERT_EQ(0, _test_cmd_get_dmabuf(self->fd, len, out_fd))
tools/testing/selftests/iommu/iommufd_utils.h
594
ASSERT_EQ(0, _test_cmd_revoke_dmabuf(self->fd, dmabuf_fd, revoke))
tools/testing/selftests/iommu/iommufd_utils.h
604
#define test_ioctl_destroy(id) ASSERT_EQ(0, _test_ioctl_destroy(self->fd, id))
tools/testing/selftests/iommu/iommufd_utils.h
621
ASSERT_EQ(0, _test_ioctl_ioas_alloc(self->fd, id)); \
tools/testing/selftests/iommu/iommufd_utils.h
645
ASSERT_EQ(0, _test_ioctl_ioas_map(self->fd, self->ioas_id, buffer, \
tools/testing/selftests/iommu/iommufd_utils.h
658
ASSERT_EQ(0, _test_ioctl_ioas_map(self->fd, ioas_id, buffer, length, \
tools/testing/selftests/iommu/iommufd_utils.h
666
ASSERT_EQ(0, _test_ioctl_ioas_map( \
tools/testing/selftests/iommu/iommufd_utils.h
677
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
714
ASSERT_EQ(0, _test_ioctl_ioas_unmap(self->fd, self->ioas_id, iova, \
tools/testing/selftests/iommu/iommufd_utils.h
718
ASSERT_EQ(0, _test_ioctl_ioas_unmap(self->fd, ioas_id, iova, length, \
tools/testing/selftests/iommu/iommufd_utils.h
748
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
761
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
769
ASSERT_EQ(0, _test_ioctl_ioas_map_file( \
tools/testing/selftests/iommu/iommufd_utils.h
790
ASSERT_EQ(0, _test_ioctl_set_temp_memory_limit(self->fd, limit))
tools/testing/selftests/iommu/iommufd_utils.h
818
ASSERT_EQ(-1, cmd); \
tools/testing/selftests/iommu/iommufd_utils.h
886
ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, data_type, \
tools/testing/selftests/iommu/iommufd_utils.h
895
ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, \
tools/testing/selftests/iommu/iommufd_utils.h
900
ASSERT_EQ(0, _test_cmd_get_hw_info(self->fd, device_id, \
tools/testing/selftests/iommu/iommufd_utils.h
921
ASSERT_EQ(0, _test_ioctl_fault_alloc(self->fd, fault_id, \
tools/testing/selftests/iommu/iommufd_utils.h
94
ASSERT_EQ(0, \
tools/testing/selftests/iommu/iommufd_utils.h
966
ASSERT_EQ(0, _test_cmd_trigger_iopf(self->fd, device_id, 0x1, fault_fd))
tools/testing/selftests/iommu/iommufd_utils.h
968
ASSERT_EQ(0, _test_cmd_trigger_iopf(self->fd, device_id, \
tools/testing/selftests/iommu/iommufd_utils.h
996
ASSERT_EQ(0, _test_cmd_viommu_alloc(self->fd, device_id, hwpt_id, 0, \
tools/testing/selftests/kselftest_harness/harness-selftest.c
108
ASSERT_EQ(0, 1);
tools/testing/selftests/kselftest_harness/harness-selftest.c
117
ASSERT_EQ(0, 0);
tools/testing/selftests/kselftest_harness/harness-selftest.c
15
ASSERT_EQ(0, 0);
tools/testing/selftests/kselftest_harness/harness-selftest.c
20
ASSERT_EQ(0, 0);
tools/testing/selftests/kselftest_harness/harness-selftest.c
30
ASSERT_EQ(0, 1);
tools/testing/selftests/kselftest_harness/harness-selftest.c
36
ASSERT_EQ(0, 0);
tools/testing/selftests/kselftest_harness/harness-selftest.c
43
ASSERT_EQ(0, 1);
tools/testing/selftests/kselftest_harness/harness-selftest.c
63
ASSERT_EQ(0, 0);
tools/testing/selftests/kselftest_harness/harness-selftest.c
71
ASSERT_EQ(0, 1);
tools/testing/selftests/kselftest_harness/harness-selftest.c
97
ASSERT_EQ(0, 0);
tools/testing/selftests/kvm/s390/ucontrol_test.c
174
ASSERT_EQ(0, rc) TH_LOG("ucas map result %d not expected, %s",
tools/testing/selftests/kvm/s390/ucontrol_test.c
179
ASSERT_EQ(0, rc) TH_LOG("vcpu fault (%p) result %d not expected, %s",
tools/testing/selftests/kvm/s390/ucontrol_test.c
455
ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION, ®ion));
tools/testing/selftests/kvm/s390/ucontrol_test.c
460
ASSERT_EQ(-1, ioctl(self->vm_fd, KVM_SET_USER_MEMORY_REGION2, ®ion2));
tools/testing/selftests/kvm/s390/ucontrol_test.c
489
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
490
ASSERT_EQ(1, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
491
ASSERT_EQ(KVM_EXIT_S390_UCONTROL, run->exit_reason);
tools/testing/selftests/kvm/s390/ucontrol_test.c
493
ASSERT_EQ(PGM_SEGMENT_TRANSLATION, run->s390_ucontrol.pgm_code);
tools/testing/selftests/kvm/s390/ucontrol_test.c
494
ASSERT_EQ(self->base_gpa + VM_MEM_SIZE, run->s390_ucontrol.trans_exc_code);
tools/testing/selftests/kvm/s390/ucontrol_test.c
504
ASSERT_EQ(0, rc)
tools/testing/selftests/kvm/s390/ucontrol_test.c
506
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
507
ASSERT_EQ(false, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
511
ASSERT_EQ(2, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
512
ASSERT_EQ(0x55, sync_regs->gprs[1]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
513
ASSERT_EQ(0x55, *(u32 *)gpa2hva(self, self->base_gpa + VM_MEM_SIZE + disp));
tools/testing/selftests/kvm/s390/ucontrol_test.c
517
ASSERT_EQ(0, rc)
tools/testing/selftests/kvm/s390/ucontrol_test.c
519
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
520
ASSERT_EQ(3, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
521
ASSERT_EQ(KVM_EXIT_S390_UCONTROL, run->exit_reason);
tools/testing/selftests/kvm/s390/ucontrol_test.c
522
ASSERT_EQ(PGM_SEGMENT_TRANSLATION, run->s390_ucontrol.pgm_code);
tools/testing/selftests/kvm/s390/ucontrol_test.c
524
ASSERT_EQ(true, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
548
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
549
ASSERT_EQ(false, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
553
ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s));
tools/testing/selftests/kvm/s390/ucontrol_test.c
555
ASSERT_EQ(i, regs.gprs[i]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
556
ASSERT_EQ(i, sync_regs->gprs[i]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
560
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
561
ASSERT_EQ(false, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
565
ASSERT_EQ(0, ioctl(self->vcpu_fd, KVM_GET_REGS, ®s));
tools/testing/selftests/kvm/s390/ucontrol_test.c
566
ASSERT_EQ(1, regs.gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
567
ASSERT_EQ(1, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
593
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
594
ASSERT_EQ(true, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
595
ASSERT_EQ(1, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
600
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
614
ASSERT_EQ(false, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
615
ASSERT_EQ(2, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
616
ASSERT_EQ(skeyvalue, sync_regs->gprs[1]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
622
ASSERT_EQ(0, uc_run_once(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
623
ASSERT_EQ(false, uc_handle_exit(self));
tools/testing/selftests/kvm/s390/ucontrol_test.c
624
ASSERT_EQ(3, sync_regs->gprs[0]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
626
ASSERT_EQ(skeyvalue & 0xfa, sync_regs->gprs[1]);
tools/testing/selftests/kvm/s390/ucontrol_test.c
627
ASSERT_EQ(0, sync_regs->gprs[1] & 0x04);
tools/testing/selftests/kvm/s390/ucontrol_test.c
735
ASSERT_EQ(0, rc) TH_LOG("create device failed with err %s (%i)",
tools/testing/selftests/kvm/s390/ucontrol_test.c
794
ASSERT_EQ(-1, rc) TH_LOG("err %s (%i)", strerror(errno), errno);
tools/testing/selftests/kvm/s390/ucontrol_test.c
795
ASSERT_EQ(EINVAL, errno) TH_LOG("err %s (%i)", strerror(errno), errno);
tools/testing/selftests/landlock/audit_test.c
137
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/audit_test.c
233
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/audit_test.c
235
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/audit_test.c
244
ASSERT_EQ(0, pthread_create(&thread, NULL, thread_audit_test,
tools/testing/selftests/landlock/audit_test.c
248
ASSERT_EQ(1, read(pipe_child[0], &buffer, 1));
tools/testing/selftests/landlock/audit_test.c
269
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/audit_test.c
271
ASSERT_EQ(0, pthread_join(thread, NULL));
tools/testing/selftests/landlock/audit_test.c
373
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd,
tools/testing/selftests/landlock/audit_test.c
429
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/audit_test.c
550
ASSERT_EQ(0, pipe2(pipe_child, 0));
tools/testing/selftests/landlock/audit_test.c
551
ASSERT_EQ(0, pipe2(pipe_parent, 0));
tools/testing/selftests/landlock/audit_test.c
586
ASSERT_EQ(0, execve(argv[0], argv, NULL))
tools/testing/selftests/landlock/audit_test.c
650
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/audit_test.c
651
ASSERT_EQ(1, WIFEXITED(status));
tools/testing/selftests/landlock/audit_test.c
652
ASSERT_EQ(0, WEXITSTATUS(status));
tools/testing/selftests/landlock/base_test.c
122
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, 0,
tools/testing/selftests/landlock/base_test.c
124
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
126
ASSERT_EQ(-1, landlock_create_ruleset(NULL, sizeof(ruleset_attr),
tools/testing/selftests/landlock/base_test.c
128
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
130
ASSERT_EQ(-1,
tools/testing/selftests/landlock/base_test.c
133
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
135
ASSERT_EQ(-1, landlock_create_ruleset(
tools/testing/selftests/landlock/base_test.c
139
ASSERT_EQ(-1, landlock_create_ruleset(NULL, 0,
tools/testing/selftests/landlock/base_test.c
142
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
156
ASSERT_EQ(-1, landlock_create_ruleset(NULL, 0, invalid_flag));
tools/testing/selftests/landlock/base_test.c
157
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
159
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, 0, invalid_flag));
tools/testing/selftests/landlock/base_test.c
160
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
162
ASSERT_EQ(-1, landlock_create_ruleset(NULL, sizeof(ruleset_attr),
tools/testing/selftests/landlock/base_test.c
164
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
166
ASSERT_EQ(-1,
tools/testing/selftests/landlock/base_test.c
169
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
172
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, -1, 0));
tools/testing/selftests/landlock/base_test.c
173
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/landlock/base_test.c
176
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, 0, 0));
tools/testing/selftests/landlock/base_test.c
177
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
178
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, 1, 0));
tools/testing/selftests/landlock/base_test.c
179
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
185
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/base_test.c
204
ASSERT_EQ(-1, landlock_add_rule(-1, 0, NULL, 1));
tools/testing/selftests/landlock/base_test.c
205
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
208
ASSERT_EQ(-1, landlock_add_rule(-1, 0, NULL, 0));
tools/testing/selftests/landlock/base_test.c
209
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/landlock/base_test.c
212
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, 0, NULL, 0));
tools/testing/selftests/landlock/base_test.c
213
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
216
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/base_test.c
218
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/landlock/base_test.c
221
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/base_test.c
223
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/landlock/base_test.c
229
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/base_test.c
231
ASSERT_EQ(0, close(path_beneath_attr.parent_fd));
tools/testing/selftests/landlock/base_test.c
232
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/base_test.c
252
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/base_test.c
254
ASSERT_EQ(0, close(path_beneath_attr.parent_fd));
tools/testing/selftests/landlock/base_test.c
258
ASSERT_EQ(-1, landlock_restrict_self(-1, -1));
tools/testing/selftests/landlock/base_test.c
259
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/base_test.c
260
ASSERT_EQ(-1, landlock_restrict_self(-1, 0));
tools/testing/selftests/landlock/base_test.c
261
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/base_test.c
262
ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/base_test.c
263
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/base_test.c
265
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/base_test.c
268
ASSERT_EQ(-1, landlock_restrict_self(-1, -1));
tools/testing/selftests/landlock/base_test.c
269
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
272
ASSERT_EQ(-1, landlock_restrict_self(-1, 0));
tools/testing/selftests/landlock/base_test.c
273
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/landlock/base_test.c
276
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/base_test.c
277
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/base_test.c
34
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 0, 0));
tools/testing/selftests/landlock/base_test.c
36
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
37
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 1, 0));
tools/testing/selftests/landlock/base_test.c
375
ASSERT_EQ(-1, write(ruleset_fd, ".", 1));
tools/testing/selftests/landlock/base_test.c
376
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
377
ASSERT_EQ(-1, read(ruleset_fd, &buf, 1));
tools/testing/selftests/landlock/base_test.c
378
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
38
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
380
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/base_test.c
39
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 7, 0));
tools/testing/selftests/landlock/base_test.c
40
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
406
ASSERT_EQ(0,
tools/testing/selftests/landlock/base_test.c
409
ASSERT_EQ(0, close(path_beneath_attr.parent_fd));
tools/testing/selftests/landlock/base_test.c
412
ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0,
tools/testing/selftests/landlock/base_test.c
414
ASSERT_EQ(0, send_fd(socket_fds[0], ruleset_fd_tx));
tools/testing/selftests/landlock/base_test.c
415
ASSERT_EQ(0, close(socket_fds[0]));
tools/testing/selftests/landlock/base_test.c
416
ASSERT_EQ(0, close(ruleset_fd_tx));
tools/testing/selftests/landlock/base_test.c
42
ASSERT_EQ(-1, landlock_create_ruleset(NULL, 1, 0));
tools/testing/selftests/landlock/base_test.c
424
ASSERT_EQ(0, close(socket_fds[1]));
tools/testing/selftests/landlock/base_test.c
427
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/base_test.c
428
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd_rx, 0));
tools/testing/selftests/landlock/base_test.c
429
ASSERT_EQ(0, close(ruleset_fd_rx));
tools/testing/selftests/landlock/base_test.c
432
ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC));
tools/testing/selftests/landlock/base_test.c
433
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/base_test.c
436
ASSERT_EQ(0, close(dir_fd));
tools/testing/selftests/landlock/base_test.c
44
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/landlock/base_test.c
441
ASSERT_EQ(0, close(socket_fds[1]));
tools/testing/selftests/landlock/base_test.c
446
ASSERT_EQ(0, close(dir_fd));
tools/testing/selftests/landlock/base_test.c
449
ASSERT_EQ(0, close(dir_fd));
tools/testing/selftests/landlock/base_test.c
451
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/base_test.c
452
ASSERT_EQ(1, WIFEXITED(status));
tools/testing/selftests/landlock/base_test.c
453
ASSERT_EQ(EXIT_SUCCESS, WEXITSTATUS(status));
tools/testing/selftests/landlock/base_test.c
46
ASSERT_EQ(-1, landlock_create_ruleset(
tools/testing/selftests/landlock/base_test.c
476
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/base_test.c
48
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/landlock/base_test.c
50
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, page_size + 1, 0));
tools/testing/selftests/landlock/base_test.c
51
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/landlock/base_test.c
54
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 8, 0));
tools/testing/selftests/landlock/base_test.c
55
ASSERT_EQ(ENOMSG, errno);
tools/testing/selftests/landlock/base_test.c
56
ASSERT_EQ(-1, landlock_create_ruleset(
tools/testing/selftests/landlock/base_test.c
59
ASSERT_EQ(ENOMSG, errno);
tools/testing/selftests/landlock/base_test.c
60
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, page_size, 0));
tools/testing/selftests/landlock/base_test.c
61
ASSERT_EQ(ENOMSG, errno);
tools/testing/selftests/landlock/base_test.c
65
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, page_size, 0));
tools/testing/selftests/landlock/base_test.c
66
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/landlock/base_test.c
68
ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, page_size + 1, 0));
tools/testing/selftests/landlock/base_test.c
69
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/landlock/base_test.c
79
ASSERT_EQ(8, landlock_create_ruleset(NULL, 0,
tools/testing/selftests/landlock/base_test.c
82
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr, 0,
tools/testing/selftests/landlock/base_test.c
84
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
86
ASSERT_EQ(-1, landlock_create_ruleset(NULL, sizeof(ruleset_attr),
tools/testing/selftests/landlock/base_test.c
88
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
90
ASSERT_EQ(-1,
tools/testing/selftests/landlock/base_test.c
93
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/base_test.c
95
ASSERT_EQ(-1, landlock_create_ruleset(NULL, 0,
tools/testing/selftests/landlock/base_test.c
98
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/common.h
200
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/common.h
201
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0))
tools/testing/selftests/landlock/fs_test.c
1027
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1030
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1031
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1032
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1033
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1036
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1037
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1038
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1039
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1042
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1043
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1045
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1046
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1052
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1055
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1056
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1057
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1058
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1061
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1062
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1063
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1064
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1067
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1068
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1070
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1071
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1077
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1080
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1081
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1082
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1083
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1086
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1087
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1088
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1089
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1092
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1093
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1095
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1096
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1117
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
1118
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
1124
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1126
ASSERT_EQ(-1, mknod(file1_s1d1, S_IFREG | 0700, 0));
tools/testing/selftests/landlock/fs_test.c
1127
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
1128
ASSERT_EQ(0, mknod(file1_s1d2, S_IFREG | 0700, 0));
tools/testing/selftests/landlock/fs_test.c
1129
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
1135
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1138
ASSERT_EQ(-1, mknod(file1_s1d1, S_IFREG | 0700, 0));
tools/testing/selftests/landlock/fs_test.c
1139
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
1140
ASSERT_EQ(0, mknod(file1_s1d2, S_IFREG | 0700, 0));
tools/testing/selftests/landlock/fs_test.c
1143
ASSERT_EQ(-1, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
1144
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
1145
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
1245
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1248
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1249
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1250
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1258
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1261
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1262
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1263
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1269
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1272
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
1273
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1274
ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1283
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1289
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1290
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1291
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1292
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1298
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1301
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1302
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1303
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1304
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1310
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1313
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1314
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1315
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1316
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1324
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1327
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1328
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1329
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1330
ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1348
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1349
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1352
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1354
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1357
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1359
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1382
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1383
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1386
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1388
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1391
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1393
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1403
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1404
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1407
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1409
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1412
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1414
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1424
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1433
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1434
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1437
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1439
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1442
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
1447
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1465
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1467
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1469
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1477
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1480
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1482
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
1484
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1505
ASSERT_EQ(-1, err);
tools/testing/selftests/landlock/fs_test.c
1506
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/landlock/fs_test.c
1508
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1520
ASSERT_EQ(ENOMSG, errno);
tools/testing/selftests/landlock/fs_test.c
1528
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1529
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1537
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1538
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1542
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1563
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1565
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1567
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1569
ASSERT_EQ(EACCES, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1570
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1571
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1592
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1594
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1596
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1598
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1599
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1600
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1620
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1623
ASSERT_EQ(0, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1624
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1630
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1633
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1634
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1650
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1653
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1654
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1669
ASSERT_EQ(0, syscall(__NR_pivot_root, dir_s3d2, dir_s3d3))
tools/testing/selftests/landlock/fs_test.c
1673
ASSERT_EQ(0, chdir("/"));
tools/testing/selftests/landlock/fs_test.c
1679
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1681
ASSERT_EQ(0, test_open("s3d3", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1682
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1698
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1701
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_RDONLY, NULL));
tools/testing/selftests/landlock/fs_test.c
1702
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1703
ASSERT_EQ(-1, syscall(__NR_pivot_root, dir_s3d2, dir_s3d3));
tools/testing/selftests/landlock/fs_test.c
1704
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1722
ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
1728
ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
1733
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1736
ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
1738
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1755
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1759
ASSERT_EQ(0, mount_opt(&mnt_tmp, dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
1760
ASSERT_EQ(0, mount(NULL, dir_s1d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
1761
ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
1763
ASSERT_EQ(0, umount(dir_s2d2));
tools/testing/selftests/landlock/fs_test.c
1764
ASSERT_EQ(0, syscall(__NR_pivot_root, dir_s3d2, dir_s3d3));
tools/testing/selftests/landlock/fs_test.c
1765
ASSERT_EQ(0, chdir("/"));
tools/testing/selftests/landlock/fs_test.c
1783
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1787
ASSERT_EQ(-1, mount_opt(&mnt_tmp, dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
1788
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1789
ASSERT_EQ(-1, mount(NULL, dir_s3d2, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
1790
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1791
ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
1793
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1794
ASSERT_EQ(-1, umount(dir_s3d2));
tools/testing/selftests/landlock/fs_test.c
1795
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1796
ASSERT_EQ(-1, syscall(__NR_pivot_root, dir_s3d2, dir_s3d3));
tools/testing/selftests/landlock/fs_test.c
1797
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
1823
ASSERT_EQ(0, umount(dir_s3d2));
tools/testing/selftests/landlock/fs_test.c
1827
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1829
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1830
ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1832
ASSERT_EQ(ENOENT, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1853
ASSERT_EQ(0, umount(dir_s3d2));
tools/testing/selftests/landlock/fs_test.c
1863
ASSERT_EQ(0, mount_opt(&mnt_tmp, dir_s3d2));
tools/testing/selftests/landlock/fs_test.c
1866
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1869
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1872
ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1912
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
1922
ASSERT_EQ(0, chdir(dir_s2d2));
tools/testing/selftests/landlock/fs_test.c
1925
ASSERT_EQ(0, chdir(dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
1941
ASSERT_EQ(0, chdir(dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
1946
ASSERT_EQ(0, chroot("../../s1d1/s1d2"))
tools/testing/selftests/landlock/fs_test.c
1954
ASSERT_EQ(0, chroot("."))
tools/testing/selftests/landlock/fs_test.c
1962
ASSERT_EQ((rel == REL_CHROOT_CHDIR) ? 0 : EACCES,
tools/testing/selftests/landlock/fs_test.c
1964
ASSERT_EQ(0, test_open_rel(dirfd, ".", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1968
ASSERT_EQ(0, test_open_rel(dirfd, "./s2d3", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1971
ASSERT_EQ(0, test_open_rel(dirfd, "./s1d3", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1976
ASSERT_EQ(0, test_open_rel(dirfd, "/..", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1977
ASSERT_EQ(0, test_open_rel(dirfd, "/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1978
ASSERT_EQ(0, test_open_rel(dirfd, "/f1", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1979
ASSERT_EQ(0, test_open_rel(dirfd, "/s1d3", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1983
ASSERT_EQ(EACCES, test_open_rel(dirfd, "../../s1d1", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1984
ASSERT_EQ(0, test_open_rel(dirfd, "../../s1d1/s1d2", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1985
ASSERT_EQ(0, test_open_rel(dirfd, "../../s1d1/s1d2/s1d3",
tools/testing/selftests/landlock/fs_test.c
1988
ASSERT_EQ(EACCES, test_open_rel(dirfd, "../../s2d1", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1989
ASSERT_EQ(0, test_open_rel(dirfd, "../../s2d1/s2d2", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
1990
ASSERT_EQ(0, test_open_rel(dirfd, "../../s2d1/s2d2/s2d3",
tools/testing/selftests/landlock/fs_test.c
1995
ASSERT_EQ(0, close(dirfd));
tools/testing/selftests/landlock/fs_test.c
1996
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2035
ASSERT_EQ(0, fstat(src_fd, &statbuf));
tools/testing/selftests/landlock/fs_test.c
2036
ASSERT_EQ(statbuf.st_size,
tools/testing/selftests/landlock/fs_test.c
2038
ASSERT_EQ(0, close(src_fd));
tools/testing/selftests/landlock/fs_test.c
2039
ASSERT_EQ(0, close(dst_fd));
tools/testing/selftests/landlock/fs_test.c
2051
ASSERT_EQ(err ? -1 : 0, execve(path, argv, NULL))
tools/testing/selftests/landlock/fs_test.c
2056
ASSERT_EQ(err, errno);
tools/testing/selftests/landlock/fs_test.c
2060
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/fs_test.c
2061
ASSERT_EQ(1, WIFEXITED(status));
tools/testing/selftests/landlock/fs_test.c
2062
ASSERT_EQ(err ? 2 : 0, WEXITSTATUS(status))
tools/testing/selftests/landlock/fs_test.c
2106
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2108
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2109
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2113
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2114
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2118
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2119
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
2132
ASSERT_EQ(0, pipe2(pipe_child, 0));
tools/testing/selftests/landlock/fs_test.c
2133
ASSERT_EQ(0, pipe2(pipe_parent, 0));
tools/testing/selftests/landlock/fs_test.c
2158
ASSERT_EQ(0, execve(argv[0], argv, NULL))
tools/testing/selftests/landlock/fs_test.c
2196
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/fs_test.c
2197
ASSERT_EQ(1, WIFEXITED(status));
tools/testing/selftests/landlock/fs_test.c
2198
ASSERT_EQ(0, WEXITSTATUS(status));
tools/testing/selftests/landlock/fs_test.c
222
ASSERT_EQ(0, mkdir(path, 0700))
tools/testing/selftests/landlock/fs_test.c
2221
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2222
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2223
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2226
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2228
ASSERT_EQ(-1, link(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2229
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2232
ASSERT_EQ(-1, link(file1_s2d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2233
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2234
ASSERT_EQ(-1, link(file2_s1d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2235
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2236
ASSERT_EQ(-1, link(file2_s1d3, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2237
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2239
ASSERT_EQ(0, link(file2_s1d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2240
ASSERT_EQ(0, link(file2_s1d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2243
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
2244
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
2249
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2252
ASSERT_EQ(0, link(file1_s1d2, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
2253
ASSERT_EQ(0, link(file1_s1d3, file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
2304
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2307
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2313
ASSERT_EQ(-1, rename(file1_s2d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2314
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2315
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2317
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2318
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2320
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2326
ASSERT_EQ(-1, rename(file1_s2d1, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2327
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2328
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
233
ASSERT_EQ(0, mknod(path, S_IFREG | 0700, 0))
tools/testing/selftests/landlock/fs_test.c
2330
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2331
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d2, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2333
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2336
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d2, AT_FDCWD, file1_s2d1,
tools/testing/selftests/landlock/fs_test.c
2338
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2340
ASSERT_EQ(-1, rename(dir_s2d2, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
2341
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2342
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, dir_s2d2,
tools/testing/selftests/landlock/fs_test.c
2344
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2346
ASSERT_EQ(-1, rename(file1_s1d1, dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
2347
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2350
ASSERT_EQ(-1, rename(file1_s2d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2351
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2352
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2353
ASSERT_EQ(-1, rename(file1_s2d1, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2354
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2357
ASSERT_EQ(0, renameat2(AT_FDCWD, file2_s2d3, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2359
ASSERT_EQ(0, rename(file2_s2d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2362
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2364
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2387
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2388
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
2391
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2394
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2396
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2397
ASSERT_EQ(-1, rename(dir_s2d3, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2398
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2399
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2401
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2407
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d1, AT_FDCWD, dir_s2d1,
tools/testing/selftests/landlock/fs_test.c
2409
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2411
ASSERT_EQ(-1, rename(dir_s1d2, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2412
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2413
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s1d2,
tools/testing/selftests/landlock/fs_test.c
2415
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2417
ASSERT_EQ(-1, rename(file1_s1d1, dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
2418
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2424
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
2426
ASSERT_EQ(0, unlink(dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2427
ASSERT_EQ(0, mkdir(dir_s1d3, 0700));
tools/testing/selftests/landlock/fs_test.c
2428
ASSERT_EQ(0, rename(file1_s1d2, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2429
ASSERT_EQ(0, rmdir(dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2450
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2452
ASSERT_EQ(-1, rename(dir_s1d2, dir_s2d1));
tools/testing/selftests/landlock/fs_test.c
2453
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2454
ASSERT_EQ(-1, rename(dir_s1d2, dir_s2d2));
tools/testing/selftests/landlock/fs_test.c
2455
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2456
ASSERT_EQ(-1, rename(dir_s1d2, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
2457
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2459
ASSERT_EQ(-1, rename(dir_s1d3, dir_s2d1));
tools/testing/selftests/landlock/fs_test.c
2460
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2461
ASSERT_EQ(-1, rename(dir_s1d3, dir_s2d2));
tools/testing/selftests/landlock/fs_test.c
2462
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2467
ASSERT_EQ(-1, rename(dir_s1d3, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
2468
ASSERT_EQ(ENOTEMPTY, errno);
tools/testing/selftests/landlock/fs_test.c
2469
ASSERT_EQ(0, unlink(file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2470
ASSERT_EQ(0, unlink(file2_s2d3));
tools/testing/selftests/landlock/fs_test.c
2471
ASSERT_EQ(0, rename(dir_s1d3, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
2482
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2487
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2493
ASSERT_EQ(layer1_err, test_rename(file1_s1d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2495
ASSERT_EQ(layer1_err, test_rename(file1_s1d2, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2496
ASSERT_EQ(layer1_err, test_exchange(file2_s1d1, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
2497
ASSERT_EQ(layer1_err, test_exchange(file2_s1d2, file2_s1d1));
tools/testing/selftests/landlock/fs_test.c
2502
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2510
ASSERT_EQ(EXDEV, test_rename(file1_s1d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2511
ASSERT_EQ(EXDEV, test_exchange(file2_s1d1, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
2512
ASSERT_EQ(EXDEV, test_exchange(file2_s1d2, file2_s1d1));
tools/testing/selftests/landlock/fs_test.c
2605
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/fs_test.c
2606
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/fs_test.c
2644
ASSERT_EQ(0, unlink(file1_s3d3));
tools/testing/selftests/landlock/fs_test.c
2653
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2655
ASSERT_EQ(0, rename(file1_s3d4, file1_s3d3));
tools/testing/selftests/landlock/fs_test.c
2685
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2687
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2688
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2689
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2692
ASSERT_EQ(-1, link(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2693
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2695
ASSERT_EQ(-1, link(file1_s2d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2696
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2698
ASSERT_EQ(-1, link(file1_s2d1, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2699
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2702
ASSERT_EQ(-1, link(file1_s2d2, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2703
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2705
ASSERT_EQ(-1, link(file1_s2d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2706
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2709
ASSERT_EQ(0, link(file1_s2d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2710
ASSERT_EQ(0, unlink(file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2712
ASSERT_EQ(-1, link(file1_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2713
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2714
ASSERT_EQ(0, unlink(file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2716
ASSERT_EQ(0, link(file1_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2717
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2723
ASSERT_EQ(0, link(file1_s2d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2724
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2726
ASSERT_EQ(-1, link(file2_s1d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2727
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2728
ASSERT_EQ(-1, link(file2_s1d3, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2729
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2731
ASSERT_EQ(0, link(file2_s1d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2732
ASSERT_EQ(0, link(file2_s1d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2763
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2765
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2766
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2769
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
2771
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2772
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2774
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2775
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2776
ASSERT_EQ(-1, rename(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2777
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2779
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2781
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2784
ASSERT_EQ(-1, rename(file1_s2d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2785
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2790
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2792
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2793
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file1_s2d1,
tools/testing/selftests/landlock/fs_test.c
2795
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2798
ASSERT_EQ(-1, rename(file1_s2d1, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2799
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2801
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file2_s1d3,
tools/testing/selftests/landlock/fs_test.c
2803
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2806
ASSERT_EQ(-1, rename(file1_s2d2, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
2807
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2809
ASSERT_EQ(-1, rename(file1_s2d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2810
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2813
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, file2_s1d3,
tools/testing/selftests/landlock/fs_test.c
2815
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2817
ASSERT_EQ(0, rename(file1_s2d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2820
ASSERT_EQ(-1, rename(file1_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2821
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2822
ASSERT_EQ(0, unlink(file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2823
ASSERT_EQ(0, rename(file1_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2826
ASSERT_EQ(0, rename(file1_s2d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2827
ASSERT_EQ(0, renameat2(AT_FDCWD, file2_s2d3, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2829
ASSERT_EQ(0, rename(file1_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2835
ASSERT_EQ(0, rename(file1_s2d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2836
ASSERT_EQ(0, rename(file1_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2845
ASSERT_EQ(0, rename(dir_s2d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2846
ASSERT_EQ(0, rename(file1_s1d3, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
2851
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2853
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2854
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2856
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2857
ASSERT_EQ(-1, rename(file1_s2d3, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2858
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2860
ASSERT_EQ(-1, rename(file2_s1d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2861
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2862
ASSERT_EQ(-1, rename(file2_s1d3, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2863
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2866
ASSERT_EQ(0, rename(file2_s1d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2867
ASSERT_EQ(0, rename(file2_s1d3, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2869
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2871
ASSERT_EQ(-1, rename(dir_s2d3, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
2872
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2874
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2876
ASSERT_EQ(-1, rename(dir_s2d2, file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
2877
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2909
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2931
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
2936
ASSERT_EQ(0, unlink(file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2937
ASSERT_EQ(0, unlink(file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2945
ASSERT_EQ(0, rename(dir_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2946
ASSERT_EQ(0, rename(file1_s2d2, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2953
ASSERT_EQ(0, rename(dir_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2954
ASSERT_EQ(0, rename(file1_s2d3, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
2961
ASSERT_EQ(0, rename(file1_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2969
ASSERT_EQ(-1, rename(dir_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2970
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2976
ASSERT_EQ(-1, rename(dir_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2977
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2984
ASSERT_EQ(-1, rename(file2_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2985
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
2993
ASSERT_EQ(-1, rename(file1_s1d1, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2994
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2995
ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
2996
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
2997
ASSERT_EQ(-1, rename(file1_s1d1, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
2998
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3000
ASSERT_EQ(0, rename(file1_s1d2, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3003
ASSERT_EQ(-1, rename(dir_s1d1, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3004
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3005
ASSERT_EQ(-1, rename(dir_s1d2, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3006
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3011
ASSERT_EQ(-1, rename(file1_s1d1, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3012
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3014
ASSERT_EQ(-1, rename(file2_s1d2, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3015
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3016
ASSERT_EQ(-1, rename(file1_s1d1, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3017
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3022
ASSERT_EQ(-1, rename(file2_s1d2, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3023
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3026
ASSERT_EQ(-1, rename(dir_s1d1, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3027
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3028
ASSERT_EQ(-1, rename(dir_s1d2, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3029
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3037
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3038
ASSERT_EQ(0, mkdir(file1_s1d2, 0700));
tools/testing/selftests/landlock/fs_test.c
3039
ASSERT_EQ(0, unlink(file2_s2d3));
tools/testing/selftests/landlock/fs_test.c
3040
ASSERT_EQ(0, mkdir(file2_s2d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3045
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
3047
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3048
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
3050
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3056
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
3058
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3059
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
306
ASSERT_EQ(0, unshare(CLONE_NEWNS | CLONE_NEWCGROUP));
tools/testing/selftests/landlock/fs_test.c
3061
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3064
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3066
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
307
ASSERT_EQ(0, mount_opt(mnt, TMP_DIR))
tools/testing/selftests/landlock/fs_test.c
3070
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
3072
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3085
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
3092
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3094
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3095
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
3097
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3102
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
3104
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3105
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
3107
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3110
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
3112
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3113
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
3115
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3118
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3121
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3122
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
3124
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3127
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
3130
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3131
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3133
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3142
ASSERT_EQ(0, unlink(file2_s2d3));
tools/testing/selftests/landlock/fs_test.c
3143
ASSERT_EQ(0, mkdir(file2_s2d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3149
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
3151
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3152
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3154
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3161
ASSERT_EQ(0, unlink(file2_s2d3));
tools/testing/selftests/landlock/fs_test.c
3162
ASSERT_EQ(0, mkdir(file2_s2d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3171
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3173
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
3175
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3176
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3178
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
319
ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL));
tools/testing/selftests/landlock/fs_test.c
3208
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3211
ASSERT_EQ(-1, rename(file1_s1d1, dir_s2d2));
tools/testing/selftests/landlock/fs_test.c
3212
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3213
ASSERT_EQ(-1, rename(dir_s2d2, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3214
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3215
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s2d2,
tools/testing/selftests/landlock/fs_test.c
3217
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3218
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3220
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3223
ASSERT_EQ(-1, rename(file1_s2d1, dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
3224
ASSERT_EQ(EISDIR, errno);
tools/testing/selftests/landlock/fs_test.c
3225
ASSERT_EQ(-1, rename(dir_s1d2, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3226
ASSERT_EQ(ENOTDIR, errno);
tools/testing/selftests/landlock/fs_test.c
3227
ASSERT_EQ(-1, rename(dir_s1d3, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3228
ASSERT_EQ(ENOTDIR, errno);
tools/testing/selftests/landlock/fs_test.c
3229
ASSERT_EQ(0, unlink(file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3230
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3231
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3232
ASSERT_EQ(0, rename(dir_s1d3, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3235
ASSERT_EQ(0, mkdir(dir_s1d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3236
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
3238
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
3240
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3282
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3284
ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3285
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3290
ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3291
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3297
ASSERT_EQ(0, rename(file1_s1d2, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3298
ASSERT_EQ(0, rename(file1_s2d2, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3300
ASSERT_EQ(-1, rename(dir_s1d3, file1_s2d1));
tools/testing/selftests/landlock/fs_test.c
3301
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3306
ASSERT_EQ(-1, rename(dir_s1d3, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3307
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3313
ASSERT_EQ(0, rename(dir_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
3314
ASSERT_EQ(0, rename(file1_s2d2, dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
3322
ASSERT_EQ(0, rename(file1_s2d3, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3323
ASSERT_EQ(-1, rename(file2_s1d2, file1_s2d3));
tools/testing/selftests/landlock/fs_test.c
3324
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3325
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3326
ASSERT_EQ(0, unlink(file2_s2d3));
tools/testing/selftests/landlock/fs_test.c
3331
ASSERT_EQ(0, rename(dir_s2d3, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3332
ASSERT_EQ(-1, rename(file2_s1d2, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
3333
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
3350
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3351
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3352
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3353
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3356
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3358
ASSERT_EQ(0, rmdir(dir_s1d3));
tools/testing/selftests/landlock/fs_test.c
3359
ASSERT_EQ(0, mkdir(dir_s1d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3360
ASSERT_EQ(0, unlinkat(AT_FDCWD, dir_s1d3, AT_REMOVEDIR));
tools/testing/selftests/landlock/fs_test.c
3363
ASSERT_EQ(-1, rmdir(dir_s1d2));
tools/testing/selftests/landlock/fs_test.c
3364
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3365
ASSERT_EQ(-1, unlinkat(AT_FDCWD, dir_s1d2, AT_REMOVEDIR));
tools/testing/selftests/landlock/fs_test.c
3366
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3367
ASSERT_EQ(-1, rmdir(dir_s1d1));
tools/testing/selftests/landlock/fs_test.c
3368
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3369
ASSERT_EQ(-1, unlinkat(AT_FDCWD, dir_s1d1, AT_REMOVEDIR));
tools/testing/selftests/landlock/fs_test.c
3370
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
338
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
3387
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3389
ASSERT_EQ(-1, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3390
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3391
ASSERT_EQ(-1, unlinkat(AT_FDCWD, file1_s1d1, 0));
tools/testing/selftests/landlock/fs_test.c
3392
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3393
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3394
ASSERT_EQ(0, unlinkat(AT_FDCWD, file1_s1d3, 0));
tools/testing/selftests/landlock/fs_test.c
3412
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3413
ASSERT_EQ(0, unlink(file2_s1d1));
tools/testing/selftests/landlock/fs_test.c
3414
ASSERT_EQ(0, mknod(file2_s1d1, mode | 0400, dev))
tools/testing/selftests/landlock/fs_test.c
3420
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3421
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3423
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3424
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3427
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3429
ASSERT_EQ(-1, mknod(file1_s1d1, mode | 0400, dev));
tools/testing/selftests/landlock/fs_test.c
3430
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3431
ASSERT_EQ(-1, link(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3432
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3433
ASSERT_EQ(-1, rename(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3434
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3436
ASSERT_EQ(0, mknod(file1_s1d2, mode | 0400, dev))
tools/testing/selftests/landlock/fs_test.c
3441
ASSERT_EQ(0, link(file1_s1d2, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3442
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3443
ASSERT_EQ(0, rename(file1_s1d2, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3445
ASSERT_EQ(0, mknod(file1_s1d3, mode | 0400, dev));
tools/testing/selftests/landlock/fs_test.c
3446
ASSERT_EQ(0, link(file1_s1d3, file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3447
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3448
ASSERT_EQ(0, rename(file1_s1d3, file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3501
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3502
ASSERT_EQ(0, unlink(file2_s1d1));
tools/testing/selftests/landlock/fs_test.c
3503
ASSERT_EQ(0, symlink("none", file2_s1d1));
tools/testing/selftests/landlock/fs_test.c
3505
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3506
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3508
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3509
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3512
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3514
ASSERT_EQ(-1, symlink("none", file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3515
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3516
ASSERT_EQ(-1, link(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3517
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3518
ASSERT_EQ(-1, rename(file2_s1d1, file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3519
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3521
ASSERT_EQ(0, symlink("none", file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3522
ASSERT_EQ(0, link(file1_s1d2, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3523
ASSERT_EQ(0, unlink(file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3524
ASSERT_EQ(0, rename(file1_s1d2, file2_s1d2));
tools/testing/selftests/landlock/fs_test.c
3526
ASSERT_EQ(0, symlink("none", file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3527
ASSERT_EQ(0, link(file1_s1d3, file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3528
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3529
ASSERT_EQ(0, rename(file1_s1d3, file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
3546
ASSERT_EQ(0, unlink(file1_s1d1));
tools/testing/selftests/landlock/fs_test.c
3547
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3548
ASSERT_EQ(0, unlink(file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
3551
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3554
ASSERT_EQ(-1, mkdir(file1_s1d1, 0700));
tools/testing/selftests/landlock/fs_test.c
3555
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3556
ASSERT_EQ(0, mkdir(file1_s1d2, 0700));
tools/testing/selftests/landlock/fs_test.c
3557
ASSERT_EQ(0, mkdir(file1_s1d3, 0700));
tools/testing/selftests/landlock/fs_test.c
3589
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3591
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3592
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
3595
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
3599
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/landlock/fs_test.c
3602
ASSERT_EQ(-1, proc_fd)
tools/testing/selftests/landlock/fs_test.c
3607
ASSERT_EQ(EACCES, errno);
tools/testing/selftests/landlock/fs_test.c
3609
ASSERT_EQ(0, close(reg_fd));
tools/testing/selftests/landlock/fs_test.c
3631
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3634
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3635
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
3638
ASSERT_EQ(0, pipe2(pipe_fds, O_CLOEXEC));
tools/testing/selftests/landlock/fs_test.c
3639
ASSERT_EQ(1, write(pipe_fds[1], ".", 1))
tools/testing/selftests/landlock/fs_test.c
3643
ASSERT_EQ(1, read(pipe_fds[0], &buf, 1));
tools/testing/selftests/landlock/fs_test.c
3644
ASSERT_EQ('.', buf);
tools/testing/selftests/landlock/fs_test.c
3649
ASSERT_EQ(1, write(proc_fd, ".", 1))
tools/testing/selftests/landlock/fs_test.c
3654
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/landlock/fs_test.c
3660
ASSERT_EQ(1, read(proc_fd, &buf, 1))
tools/testing/selftests/landlock/fs_test.c
3665
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/landlock/fs_test.c
3667
ASSERT_EQ(0, close(pipe_fds[0]));
tools/testing/selftests/landlock/fs_test.c
3668
ASSERT_EQ(0, close(pipe_fds[1]));
tools/testing/selftests/landlock/fs_test.c
3730
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
375
ASSERT_EQ(0, mount_opt(&mnt_tmp, dir_s3d2));
tools/testing/selftests/landlock/fs_test.c
3813
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3859
ASSERT_EQ(0, unlink(file_in_dir_w));
tools/testing/selftests/landlock/fs_test.c
3921
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3930
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3940
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
3948
ASSERT_EQ(0, close(fd_layer0));
tools/testing/selftests/landlock/fs_test.c
3949
ASSERT_EQ(0, close(fd_layer1));
tools/testing/selftests/landlock/fs_test.c
3950
ASSERT_EQ(0, close(fd_layer2));
tools/testing/selftests/landlock/fs_test.c
3951
ASSERT_EQ(0, close(fd_layer3));
tools/testing/selftests/landlock/fs_test.c
4038
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4045
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4054
ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0,
tools/testing/selftests/landlock/fs_test.c
4078
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4081
ASSERT_EQ(variant->expected_open_result, (fd < 0 ? errno : 0));
tools/testing/selftests/landlock/fs_test.c
4084
ASSERT_EQ(0, send_fd(socket_fds[0], fd));
tools/testing/selftests/landlock/fs_test.c
4085
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4088
ASSERT_EQ(0, close(socket_fds[0]));
tools/testing/selftests/landlock/fs_test.c
4100
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4103
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/fs_test.c
4104
ASSERT_EQ(1, WIFEXITED(status));
tools/testing/selftests/landlock/fs_test.c
4105
ASSERT_EQ(EXIT_SUCCESS, WEXITSTATUS(status));
tools/testing/selftests/landlock/fs_test.c
4107
ASSERT_EQ(0, close(socket_fds[0]));
tools/testing/selftests/landlock/fs_test.c
4108
ASSERT_EQ(0, close(socket_fds[1]));
tools/testing/selftests/landlock/fs_test.c
4145
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4151
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4182
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4188
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4201
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4224
ASSERT_EQ(0, close(0));
tools/testing/selftests/landlock/fs_test.c
4231
ASSERT_EQ(0, dup2(stdinbak_fd, 0));
tools/testing/selftests/landlock/fs_test.c
4232
ASSERT_EQ(0, close(stdinbak_fd));
tools/testing/selftests/landlock/fs_test.c
4271
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4314
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4330
ASSERT_EQ(0, unlink(path));
tools/testing/selftests/landlock/fs_test.c
4331
ASSERT_EQ(0, mkfifo(path, 0600));
tools/testing/selftests/landlock/fs_test.c
4337
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4354
ASSERT_EQ(0, close(fd));
tools/testing/selftests/landlock/fs_test.c
4355
ASSERT_EQ(0, unlink(path));
tools/testing/selftests/landlock/fs_test.c
4357
ASSERT_EQ(child_pid, waitpid(child_pid, NULL, 0));
tools/testing/selftests/landlock/fs_test.c
4376
ASSERT_EQ(0, unlink(path));
tools/testing/selftests/landlock/fs_test.c
4381
ASSERT_EQ(0, bind(srv_fd, (struct sockaddr *)&srv_un, sizeof(srv_un)));
tools/testing/selftests/landlock/fs_test.c
4383
ASSERT_EQ(0, listen(srv_fd, 10 /* qlen */));
tools/testing/selftests/landlock/fs_test.c
4389
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4396
ASSERT_EQ(0,
tools/testing/selftests/landlock/fs_test.c
4470
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4486
ASSERT_EQ(0, close(file_fd));
tools/testing/selftests/landlock/fs_test.c
4505
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4531
ASSERT_EQ(0, close(dir_fd));
tools/testing/selftests/landlock/fs_test.c
454
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
455
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4550
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
456
ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4569
ASSERT_EQ(0, close(file_fd));
tools/testing/selftests/landlock/fs_test.c
457
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
458
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
459
ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4595
ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL));
tools/testing/selftests/landlock/fs_test.c
460
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
461
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
463
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
464
ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4644
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4645
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4646
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4647
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4648
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4649
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
465
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4651
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4652
ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4653
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4654
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4655
ASSERT_EQ(ENOENT, test_open(dir_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4656
ASSERT_EQ(ENOENT, test_open(file1_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4658
ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4659
ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
466
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4661
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
467
ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
468
ASSERT_EQ(0, test_open(file1_s2d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
470
ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
471
ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4719
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
472
ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4722
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4723
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4724
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4726
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4727
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4728
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4731
ASSERT_EQ(0, test_open(file1_s2d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4732
ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4734
ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4735
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4741
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4744
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4745
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4746
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4748
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4749
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4750
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4753
ASSERT_EQ(EACCES, test_open(file1_s2d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4754
ASSERT_EQ(EACCES, test_open(file1_s2d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4755
ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4757
ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
4758
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4759
ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4765
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4768
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4769
ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4770
ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4772
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4773
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4774
ASSERT_EQ(EACCES, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4777
ASSERT_EQ(EACCES, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4778
ASSERT_EQ(EACCES, test_open(file1_s2d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4779
ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4781
ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4782
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4783
ASSERT_EQ(EACCES, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
4789
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4792
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4793
ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4796
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
4797
ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
4820
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4823
ASSERT_EQ(-1, rename(file1_s1d1, file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
4824
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
4827
ASSERT_EQ(-1, rename(file1_s2d1, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
4828
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
4831
ASSERT_EQ(-1, rename(file1_s2d2, bind_file1_s1d3));
tools/testing/selftests/landlock/fs_test.c
4832
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
4835
ASSERT_EQ(0, rename(bind_file1_s1d3, file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
4893
ASSERT_EQ(0, rename(dir_s1d3, dir_s4d1))
tools/testing/selftests/landlock/fs_test.c
494
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
497
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/landlock/fs_test.c
4977
ASSERT_EQ(0, mkdir(dir_s4d1, 0755))
tools/testing/selftests/landlock/fs_test.c
498
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
4996
ASSERT_EQ(0, rename(dir_s1d3, dir_s4d2))
tools/testing/selftests/landlock/fs_test.c
502
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
5039
ASSERT_EQ(0, rename(dir_s4d2, dir_s1d3))
tools/testing/selftests/landlock/fs_test.c
505
ASSERT_EQ(EBADFD, errno);
tools/testing/selftests/landlock/fs_test.c
506
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
5066
ASSERT_EQ(0, rename(dir_s1d3, dir_s4d2))
tools/testing/selftests/landlock/fs_test.c
5071
ASSERT_EQ(0,
tools/testing/selftests/landlock/fs_test.c
5078
ASSERT_EQ(0, renameat(bind_s1d3_fd, file2_name, AT_FDCWD, file1_s2d2))
tools/testing/selftests/landlock/fs_test.c
5087
ASSERT_EQ(0, renameat(AT_FDCWD, file1_s2d2, bind_s1d3_fd, file1_name))
tools/testing/selftests/landlock/fs_test.c
5094
ASSERT_EQ(0, rename(dir_s4d2, dir_s1d3))
tools/testing/selftests/landlock/fs_test.c
512
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
5134
ASSERT_EQ(0, unlink(file1_s1d2));
tools/testing/selftests/landlock/fs_test.c
5135
ASSERT_EQ(0, unlink(file2_s1d3));
tools/testing/selftests/landlock/fs_test.c
514
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
5142
ASSERT_EQ(0, rename(dir_s1d3, dir_s4d1))
tools/testing/selftests/landlock/fs_test.c
5149
ASSERT_EQ(0, mkdir(dir_s4d2, 0755))
tools/testing/selftests/landlock/fs_test.c
5160
ASSERT_EQ(0, linkat(bind_s1d3_fd, file1_name, AT_FDCWD, file1_s2d2, 0))
tools/testing/selftests/landlock/fs_test.c
5181
ASSERT_EQ(0, unlink(file1_s4d1));
tools/testing/selftests/landlock/fs_test.c
5182
ASSERT_EQ(0, linkat(AT_FDCWD, file1_s2d2, bind_s1d3_fd, file2_name, 0))
tools/testing/selftests/landlock/fs_test.c
5188
ASSERT_EQ(0, unlink(file1_s2d2));
tools/testing/selftests/landlock/fs_test.c
519
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
5191
ASSERT_EQ(0,
tools/testing/selftests/landlock/fs_test.c
5207
ASSERT_EQ(0, unlink(file2_s4d1));
tools/testing/selftests/landlock/fs_test.c
521
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
5210
ASSERT_EQ(0,
tools/testing/selftests/landlock/fs_test.c
525
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
527
ASSERT_EQ(EBADFD, errno);
tools/testing/selftests/landlock/fs_test.c
5284
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2", NULL,
tools/testing/selftests/landlock/fs_test.c
536
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
538
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
543
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
545
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
550
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
552
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
557
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
559
ASSERT_EQ(ENOMSG, errno);
tools/testing/selftests/landlock/fs_test.c
562
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
565
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/fs_test.c
566
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/fs_test.c
568
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
5699
ASSERT_EQ(0, landlock_add_rule(
tools/testing/selftests/landlock/fs_test.c
5721
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s1d1/s1d2/s1d31/s1d41",
tools/testing/selftests/landlock/fs_test.c
5724
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s1d1/s1d2/s1d32/s1d42",
tools/testing/selftests/landlock/fs_test.c
5846
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2/s2d3/s2d4",
tools/testing/selftests/landlock/fs_test.c
5848
ASSERT_EQ(0, mount(TMP_DIR "/s2d1/s2d2", TMP_DIR "/s3d1/s3d2", NULL,
tools/testing/selftests/landlock/fs_test.c
6209
ASSERT_EQ(0, landlock_add_rule(
tools/testing/selftests/landlock/fs_test.c
6221
ASSERT_EQ(0, landlock_add_rule(
tools/testing/selftests/landlock/fs_test.c
623
ASSERT_EQ(0, landlock_add_rule(ruleset_fd,
tools/testing/selftests/landlock/fs_test.c
6240
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s2d1/s2d2/s2d3",
tools/testing/selftests/landlock/fs_test.c
631
ASSERT_EQ(0, err);
tools/testing/selftests/landlock/fs_test.c
633
ASSERT_EQ(-1, err);
tools/testing/selftests/landlock/fs_test.c
634
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
637
ASSERT_EQ(0, close(path_beneath_file.parent_fd));
tools/testing/selftests/landlock/fs_test.c
638
ASSERT_EQ(0, close(path_beneath_dir.parent_fd));
tools/testing/selftests/landlock/fs_test.c
639
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6405
ASSERT_EQ(0, mount_opt(&mnt_tmp, LOWER_BASE));
tools/testing/selftests/landlock/fs_test.c
6415
ASSERT_EQ(0, mount_opt(&mnt_tmp, UPPER_BASE));
tools/testing/selftests/landlock/fs_test.c
6422
ASSERT_EQ(0, mkdir(UPPER_WORK, 0700));
tools/testing/selftests/landlock/fs_test.c
6427
ASSERT_EQ(0, mount("overlay", MERGE_DATA, "overlay", 0,
tools/testing/selftests/landlock/fs_test.c
6469
ASSERT_EQ(0, test_open(lower_fl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6470
ASSERT_EQ(0, test_open(lower_dl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6471
ASSERT_EQ(0, test_open(lower_dl1_fl2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6472
ASSERT_EQ(0, test_open(lower_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6473
ASSERT_EQ(0, test_open(lower_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6474
ASSERT_EQ(0, test_open(lower_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6475
ASSERT_EQ(0, test_open(lower_do1_fl3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6477
ASSERT_EQ(0, test_open(upper_fu1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6478
ASSERT_EQ(0, test_open(upper_du1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6479
ASSERT_EQ(0, test_open(upper_du1_fu2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6480
ASSERT_EQ(0, test_open(upper_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6481
ASSERT_EQ(0, test_open(upper_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6482
ASSERT_EQ(0, test_open(upper_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6483
ASSERT_EQ(0, test_open(upper_do1_fu3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6485
ASSERT_EQ(0, test_open(merge_fl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6486
ASSERT_EQ(0, test_open(merge_dl1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6487
ASSERT_EQ(0, test_open(merge_dl1_fl2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6488
ASSERT_EQ(0, test_open(merge_fu1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6489
ASSERT_EQ(0, test_open(merge_du1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6490
ASSERT_EQ(0, test_open(merge_du1_fu2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6491
ASSERT_EQ(0, test_open(merge_fo1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6492
ASSERT_EQ(0, test_open(merge_do1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6493
ASSERT_EQ(0, test_open(merge_do1_fo2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6494
ASSERT_EQ(0, test_open(merge_do1_fl3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6495
ASSERT_EQ(0, test_open(merge_do1_fu3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
652
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr,
tools/testing/selftests/landlock/fs_test.c
654
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/fs_test.c
6639
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6643
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6644
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6647
ASSERT_EQ(EACCES,
tools/testing/selftests/landlock/fs_test.c
6651
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6652
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6656
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6657
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6660
ASSERT_EQ(EACCES,
tools/testing/selftests/landlock/fs_test.c
6664
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6665
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6674
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6677
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6680
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6687
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6691
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6694
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6697
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6704
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6708
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6712
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6716
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6719
ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
6722
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6729
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6733
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6734
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6738
ASSERT_EQ(0, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6739
ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
6743
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6746
ASSERT_EQ(EACCES,
tools/testing/selftests/landlock/fs_test.c
6750
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6757
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
6761
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6765
ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
6769
ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
6772
ASSERT_EQ(EACCES,
tools/testing/selftests/landlock/fs_test.c
6776
ASSERT_EQ(0, test_open(path_entry, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
681
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
682
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
7037
ASSERT_EQ(0, umount(TMP_DIR));
tools/testing/selftests/landlock/fs_test.c
7042
ASSERT_EQ(0, mount_opt(&mnt_tmp, TMP_DIR));
tools/testing/selftests/landlock/fs_test.c
7046
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
7049
ASSERT_EQ(EACCES, test_open(TMP_DIR, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
733
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
739
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
7569
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
7571
ASSERT_EQ(-1, rename(dir_s1d2, dir_s2d3));
tools/testing/selftests/landlock/fs_test.c
7572
ASSERT_EQ(EXDEV, errno);
tools/testing/selftests/landlock/fs_test.c
810
ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
814
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
815
ASSERT_EQ(EACCES, test_open("/dev", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
816
ASSERT_EQ(0, test_open("/dev/null", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
817
ASSERT_EQ(EACCES, test_open("/dev/full", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
819
ASSERT_EQ(EACCES, test_open("/proc", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
820
ASSERT_EQ(EACCES, test_open("/proc/self", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
821
ASSERT_EQ(EACCES, test_open("/proc/self/ns", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
827
ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
837
ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/fs_test.c
839
ASSERT_EQ(EBADFD, errno);
tools/testing/selftests/landlock/fs_test.c
840
ASSERT_EQ(0, close(path_beneath.parent_fd));
tools/testing/selftests/landlock/fs_test.c
858
ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0));
tools/testing/selftests/landlock/fs_test.c
859
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/fs_test.c
863
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
886
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
889
ASSERT_EQ(EACCES, test_open("/", O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
890
ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
891
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
892
ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
893
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
894
ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
896
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
897
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
898
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
899
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
902
ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
903
ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_PATH));
tools/testing/selftests/landlock/fs_test.c
905
ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
910
ASSERT_EQ(1, write(reg_fd, ".", 1));
tools/testing/selftests/landlock/fs_test.c
912
ASSERT_EQ(1, read(reg_fd, &buf, 1));
tools/testing/selftests/landlock/fs_test.c
913
ASSERT_EQ('.', buf);
tools/testing/selftests/landlock/fs_test.c
914
ASSERT_EQ(0, close(reg_fd));
tools/testing/selftests/landlock/fs_test.c
919
ASSERT_EQ(-1, write(reg_fd, &buf, 1));
tools/testing/selftests/landlock/fs_test.c
920
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/landlock/fs_test.c
921
ASSERT_EQ(0, close(reg_fd));
tools/testing/selftests/landlock/fs_test.c
938
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
944
ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
945
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
947
ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
948
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
971
ASSERT_EQ(0, close(ruleset_fd));
tools/testing/selftests/landlock/fs_test.c
974
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
975
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
976
ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
977
ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
980
ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
981
ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
982
ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
983
ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/fs_test.c
986
ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY));
tools/testing/selftests/landlock/fs_test.c
987
ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY));
tools/testing/selftests/landlock/fs_test.c
988
ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR));
tools/testing/selftests/landlock/fs_test.c
989
ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY));
tools/testing/selftests/landlock/net_test.c
1033
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1087
ASSERT_EQ(0, set_service(&self->srv0, prot, 0));
tools/testing/selftests/landlock/net_test.c
1088
ASSERT_EQ(0, set_service(&self->srv1, prot, 1));
tools/testing/selftests/landlock/net_test.c
1177
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1181
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1197
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1213
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1244
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1273
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1276
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1298
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1474
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1515
ASSERT_EQ(0, set_service(&srv_denied, ipv4_tcp, 0));
tools/testing/selftests/landlock/net_test.c
1526
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1542
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1569
ASSERT_EQ(0, set_service(&self->srv0, ipv4_tcp, 0));
tools/testing/selftests/landlock/net_test.c
1570
ASSERT_EQ(0, set_service(&self->srv1, ipv4_tcp, 1));
tools/testing/selftests/landlock/net_test.c
1608
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1610
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1612
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1647
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
tools/testing/selftests/landlock/net_test.c
1652
ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_NET_PORT,
tools/testing/selftests/landlock/net_test.c
1733
ASSERT_EQ(0, set_service(&self->srv0, variant->prot, 0));
tools/testing/selftests/landlock/net_test.c
1839
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1842
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
1957
ASSERT_EQ(0, set_service(&self->srv0, variant->prot, 0));
tools/testing/selftests/landlock/net_test.c
281
ASSERT_EQ(0, set_service(&self->srv0, variant->prot, 0));
tools/testing/selftests/landlock/net_test.c
282
ASSERT_EQ(0, set_service(&self->srv1, variant->prot, 1));
tools/testing/selftests/landlock/net_test.c
283
ASSERT_EQ(0, set_service(&self->srv2, variant->prot, 2));
tools/testing/selftests/landlock/net_test.c
285
ASSERT_EQ(0, set_service(&self->unspec_srv0, prot_unspec, 0));
tools/testing/selftests/landlock/net_test.c
287
ASSERT_EQ(0, set_service(&self->unspec_any0, prot_unspec, 0));
tools/testing/selftests/landlock/net_test.c
665
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
670
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
715
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
720
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
755
ASSERT_EQ(0,
tools/testing/selftests/landlock/net_test.c
81
ASSERT_EQ(0, unshare(CLONE_NEWNET));
tools/testing/selftests/landlock/net_test.c
85
ASSERT_EQ(0, system("ip link set dev lo up"));
tools/testing/selftests/landlock/net_test.c
874
ASSERT_EQ(0, landlock_add_rule(ruleset_fd,
tools/testing/selftests/landlock/ptrace_test.c
169
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/ptrace_test.c
170
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/ptrace_test.c
183
ASSERT_EQ(0, close(pipe_parent[1]));
tools/testing/selftests/landlock/ptrace_test.c
184
ASSERT_EQ(0, close(pipe_child[0]));
tools/testing/selftests/landlock/ptrace_test.c
189
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/ptrace_test.c
208
ASSERT_EQ(parent, waitpid(parent, &status, 0));
tools/testing/selftests/landlock/ptrace_test.c
209
ASSERT_EQ(1, WIFSTOPPED(status));
tools/testing/selftests/landlock/ptrace_test.c
210
ASSERT_EQ(0, ptrace(PTRACE_DETACH, parent, NULL, 0));
tools/testing/selftests/landlock/ptrace_test.c
226
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
229
ASSERT_EQ(0, raise(SIGSTOP));
tools/testing/selftests/landlock/ptrace_test.c
233
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/ptrace_test.c
238
ASSERT_EQ(0, close(pipe_child[1]));
tools/testing/selftests/landlock/ptrace_test.c
239
ASSERT_EQ(0, close(pipe_parent[0]));
tools/testing/selftests/landlock/ptrace_test.c
244
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
250
ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1));
tools/testing/selftests/landlock/ptrace_test.c
254
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/ptrace_test.c
255
ASSERT_EQ(1, WIFSTOPPED(status));
tools/testing/selftests/landlock/ptrace_test.c
256
ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0));
tools/testing/selftests/landlock/ptrace_test.c
281
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/ptrace_test.c
282
ASSERT_EQ(1, WIFSTOPPED(status));
tools/testing/selftests/landlock/ptrace_test.c
283
ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0));
tools/testing/selftests/landlock/ptrace_test.c
287
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
288
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/ptrace_test.c
360
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/ptrace_test.c
361
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/ptrace_test.c
368
ASSERT_EQ(0, close(pipe_parent[1]));
tools/testing/selftests/landlock/ptrace_test.c
369
ASSERT_EQ(0, close(pipe_child[0]));
tools/testing/selftests/landlock/ptrace_test.c
372
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/ptrace_test.c
390
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
393
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/ptrace_test.c
398
ASSERT_EQ(0, close(pipe_child[1]));
tools/testing/selftests/landlock/ptrace_test.c
399
ASSERT_EQ(0, close(pipe_parent[0]));
tools/testing/selftests/landlock/ptrace_test.c
403
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
409
ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1));
tools/testing/selftests/landlock/ptrace_test.c
421
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/ptrace_test.c
422
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1014
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1015
ASSERT_EQ(0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1023
ASSERT_EQ(1, send(client_conn_socket, ".", 1, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1024
ASSERT_EQ(1, sendto(client_unconn_socket, ".", 1, 0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1027
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1037
ASSERT_EQ(1, send(client_conn_socket, ".", 1, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1038
ASSERT_EQ(-1, sendto(client_unconn_socket, ".", 1, 0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1041
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1042
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1057
ASSERT_EQ(0, bind(server_conn_socket, &connected_addr.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1059
ASSERT_EQ(0, bind(server_unconn_socket, &non_connected_addr.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1061
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1064
ASSERT_EQ(1, read(pipe_child[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1065
ASSERT_EQ(1, recv(server_conn_socket, &buf, 1, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1066
ASSERT_EQ(1, recv(server_unconn_socket, &buf, 1, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1072
ASSERT_EQ(1, read(pipe_child[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1073
ASSERT_EQ(1, recv(server_conn_socket, &buf, 1, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1076
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1102
ASSERT_EQ(0, bind(connected_socket, &connected_addr.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1104
ASSERT_EQ(0, bind(non_connected_socket, &non_connected_addr.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1118
ASSERT_EQ(-1,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1121
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1123
ASSERT_EQ(-1, sendto(connected_socket, ".", 1, 0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1126
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1128
ASSERT_EQ(-1, sendto(non_connected_socket, ".", 1, 0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1131
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
114
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1140
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
147
ASSERT_EQ(0, bind(stream_server, &self->stream_address.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
149
ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
151
ASSERT_EQ(0, listen(stream_server, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
154
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
156
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
185
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
186
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
206
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
212
ASSERT_EQ(0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
215
ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
217
ASSERT_EQ(0, listen(stream_server, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
220
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
223
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
237
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
245
ASSERT_EQ(1, read(pipe_child[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
261
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
265
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
317
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
318
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
329
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
333
ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
337
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
340
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
351
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
357
ASSERT_EQ(1, read(pipe_child[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
372
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
375
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
427
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
442
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
472
ASSERT_EQ(1, read(pipe_child[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
498
ASSERT_EQ(1, read(pipe_parent[0], &buf, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
536
ASSERT_EQ(0, bind(stream_server_child,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
539
ASSERT_EQ(0, bind(dgram_server_child,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
542
ASSERT_EQ(0, listen(stream_server_child, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
544
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
545
ASSERT_EQ(grand_child, waitpid(grand_child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
562
ASSERT_EQ(0, bind(stream_server_parent,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
565
ASSERT_EQ(0, bind(dgram_server_parent,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
569
ASSERT_EQ(0, listen(stream_server_parent, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
571
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
572
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
646
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
647
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
669
ASSERT_EQ(0, bind(stream_server,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
672
ASSERT_EQ(0, listen(stream_server, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
673
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
676
ASSERT_EQ(0, send_fd(data_socket, passed_socket));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
685
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
705
ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
706
ASSERT_EQ(0, connect(client_child,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
719
ASSERT_EQ(0, bind(server_socket, &self->address.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
722
ASSERT_EQ(0, listen(server_socket, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
725
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
727
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
770
ASSERT_EQ(0, mkdir(TMP_DIR, 0700));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
810
ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_DGRAM, 0, unnamed_sockets));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
812
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
829
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
833
ASSERT_EQ(1, write(unnamed_sockets[0], "a", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
839
ASSERT_EQ(0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
842
ASSERT_EQ(1, write(stream_pathname_socket, "b", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
853
ASSERT_EQ(0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
856
ASSERT_EQ(1, write(dgram_pathname_socket, "d", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
870
ASSERT_EQ(1, write(stream_abstract_socket, "e", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
88
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
896
ASSERT_EQ(1, write(dgram_abstract_socket, "g", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
909
ASSERT_EQ(0, bind(stream_pathname_socket, &stream_pathname_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
911
ASSERT_EQ(0, listen(stream_pathname_socket, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
915
ASSERT_EQ(0, bind(dgram_pathname_socket, &dgram_pathname_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
921
ASSERT_EQ(0,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
927
ASSERT_EQ(0, bind(dgram_abstract_socket, &dgram_abstract_addr.unix_addr,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
929
ASSERT_EQ(0, listen(stream_abstract_socket, backlog));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
931
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
935
ASSERT_EQ(1, read(unnamed_sockets[1], &buf_parent, sizeof(buf_parent)));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
936
ASSERT_EQ('a', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
942
ASSERT_EQ(1, read(data_socket, &buf_parent, sizeof(buf_parent)));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
943
ASSERT_EQ('b', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
947
ASSERT_EQ(1,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
949
ASSERT_EQ('c', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
950
ASSERT_EQ(1,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
952
ASSERT_EQ('d', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
959
ASSERT_EQ(1,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
961
ASSERT_EQ('e', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
964
ASSERT_EQ(1, read(dgram_abstract_socket, &buf_parent,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
966
ASSERT_EQ('f', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
967
ASSERT_EQ(1, read(dgram_abstract_socket, &buf_parent,
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
969
ASSERT_EQ('g', buf_parent);
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
973
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
997
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
998
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
110
ASSERT_EQ(0, err);
tools/testing/selftests/landlock/scoped_signal_test.c
111
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
121
ASSERT_EQ(-1, err);
tools/testing/selftests/landlock/scoped_signal_test.c
122
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_signal_test.c
128
ASSERT_EQ(0, is_signaled);
tools/testing/selftests/landlock/scoped_signal_test.c
129
ASSERT_EQ(0, raise(variant->sig));
tools/testing/selftests/landlock/scoped_signal_test.c
130
ASSERT_EQ(1, is_signaled);
tools/testing/selftests/landlock/scoped_signal_test.c
140
ASSERT_EQ(1, is_signaled);
tools/testing/selftests/landlock/scoped_signal_test.c
141
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
145
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_signal_test.c
188
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
189
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
202
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
206
ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
211
ASSERT_EQ(0, err);
tools/testing/selftests/landlock/scoped_signal_test.c
213
ASSERT_EQ(-1, err);
tools/testing/selftests/landlock/scoped_signal_test.c
214
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_signal_test.c
220
ASSERT_EQ(0, raise(0));
tools/testing/selftests/landlock/scoped_signal_test.c
231
ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
236
ASSERT_EQ(0, err);
tools/testing/selftests/landlock/scoped_signal_test.c
238
ASSERT_EQ(-1, err);
tools/testing/selftests/landlock/scoped_signal_test.c
239
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/landlock/scoped_signal_test.c
241
ASSERT_EQ(0, raise(0));
tools/testing/selftests/landlock/scoped_signal_test.c
243
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
245
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_signal_test.c
277
ASSERT_EQ(0, pipe2(thread_pipe, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
279
ASSERT_EQ(0, pthread_create(&no_sandbox_thread, NULL, thread_sync,
tools/testing/selftests/landlock/scoped_signal_test.c
302
ASSERT_EQ(0, pipe2(thread_pipe, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
307
ASSERT_EQ(0, pthread_create(&scoped_thread, NULL, thread_sync,
tools/testing/selftests/landlock/scoped_signal_test.c
354
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
359
ASSERT_EQ(0, pthread_create(&no_sandbox_thread, NULL, thread_setuid,
tools/testing/selftests/landlock/scoped_signal_test.c
468
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
469
ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_signal_test.c
483
ASSERT_EQ(0, setup_signal_handler(SIGURG));
tools/testing/selftests/landlock/scoped_signal_test.c
488
ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
489
ASSERT_EQ(0, connect(client_socket, &server_address.unix_addr,
tools/testing/selftests/landlock/scoped_signal_test.c
496
ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
498
ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB));
tools/testing/selftests/landlock/scoped_signal_test.c
500
ASSERT_EQ(1, write(pipe_child[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
504
ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
508
ASSERT_EQ(0, signal_received);
tools/testing/selftests/landlock/scoped_signal_test.c
515
ASSERT_EQ(1, signal_received);
tools/testing/selftests/landlock/scoped_signal_test.c
525
ASSERT_EQ(0, bind(server_socket, &server_address.unix_addr,
tools/testing/selftests/landlock/scoped_signal_test.c
527
ASSERT_EQ(0, listen(server_socket, backlog));
tools/testing/selftests/landlock/scoped_signal_test.c
528
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
540
ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));
tools/testing/selftests/landlock/scoped_signal_test.c
545
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
548
ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1));
tools/testing/selftests/landlock/scoped_signal_test.c
550
ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB));
tools/testing/selftests/landlock/scoped_signal_test.c
553
ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
tools/testing/selftests/landlock/scoped_signal_test.c
556
ASSERT_EQ(child, waitpid(child, &status, 0));
tools/testing/selftests/landlock/scoped_signal_test.c
91
ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC));
tools/testing/selftests/landlock/scoped_test.c
27
ASSERT_EQ(-1, landlock_create_ruleset(&ruleset_attr,
tools/testing/selftests/landlock/scoped_test.c
29
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/landlock/tsync_test.c
100
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
102
ASSERT_EQ(0, pthread_create(&t1, NULL, idle, NULL));
tools/testing/selftests/landlock/tsync_test.c
103
ASSERT_EQ(0, pthread_create(&t2, NULL, idle, NULL));
tools/testing/selftests/landlock/tsync_test.c
115
ASSERT_EQ(0, pthread_cancel(t1));
tools/testing/selftests/landlock/tsync_test.c
116
ASSERT_EQ(0, pthread_cancel(t2));
tools/testing/selftests/landlock/tsync_test.c
117
ASSERT_EQ(0, pthread_join(t1, NULL));
tools/testing/selftests/landlock/tsync_test.c
118
ASSERT_EQ(0, pthread_join(t2, NULL));
tools/testing/selftests/landlock/tsync_test.c
147
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
148
ASSERT_EQ(0, pthread_create(&d[0].t, NULL, thread_restrict, &d[0]));
tools/testing/selftests/landlock/tsync_test.c
149
ASSERT_EQ(0, pthread_create(&d[1].t, NULL, thread_restrict, &d[1]));
tools/testing/selftests/landlock/tsync_test.c
152
ASSERT_EQ(0, pthread_join(d[0].t, NULL));
tools/testing/selftests/landlock/tsync_test.c
153
ASSERT_EQ(0, pthread_join(d[1].t, NULL));
tools/testing/selftests/landlock/tsync_test.c
216
ASSERT_EQ(0, sigaction(SIGUSR1, &sa, NULL));
tools/testing/selftests/landlock/tsync_test.c
218
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
221
ASSERT_EQ(0, pthread_create(&threads[i], NULL, idle, NULL));
tools/testing/selftests/landlock/tsync_test.c
230
ASSERT_EQ(0, pthread_create(&signaler, NULL, signaler_thread, &sd));
tools/testing/selftests/landlock/tsync_test.c
240
ASSERT_EQ(0, pthread_join(signaler, NULL));
tools/testing/selftests/landlock/tsync_test.c
243
ASSERT_EQ(0, pthread_cancel(threads[i]));
tools/testing/selftests/landlock/tsync_test.c
244
ASSERT_EQ(0, pthread_join(threads[i], NULL));
tools/testing/selftests/landlock/tsync_test.c
39
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
40
ASSERT_EQ(0, landlock_restrict_self(ruleset_fd,
tools/testing/selftests/landlock/tsync_test.c
73
ASSERT_EQ(0, pthread_create(&t1, NULL, idle, &no_new_privs1));
tools/testing/selftests/landlock/tsync_test.c
74
ASSERT_EQ(0, pthread_create(&t2, NULL, idle, &no_new_privs2));
tools/testing/selftests/landlock/tsync_test.c
76
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
81
ASSERT_EQ(0, pthread_cancel(t1));
tools/testing/selftests/landlock/tsync_test.c
82
ASSERT_EQ(0, pthread_cancel(t2));
tools/testing/selftests/landlock/tsync_test.c
83
ASSERT_EQ(0, pthread_join(t1, NULL));
tools/testing/selftests/landlock/tsync_test.c
84
ASSERT_EQ(0, pthread_join(t2, NULL));
tools/testing/selftests/liveupdate/liveupdate.c
128
ASSERT_EQ(close(session_fd1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
152
ASSERT_EQ(close(session_fd1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
153
ASSERT_EQ(close(session_fd2), 0);
tools/testing/selftests/liveupdate/liveupdate.c
193
ASSERT_EQ(write(mem_fd, test_str, strlen(test_str)), strlen(test_str));
tools/testing/selftests/liveupdate/liveupdate.c
194
ASSERT_EQ(preserve_fd(session_fd, mem_fd, 0x1234), 0);
tools/testing/selftests/liveupdate/liveupdate.c
195
ASSERT_EQ(close(session_fd), 0);
tools/testing/selftests/liveupdate/liveupdate.c
197
ASSERT_EQ(lseek(mem_fd, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
198
ASSERT_EQ(read(mem_fd, read_buf, sizeof(read_buf)), strlen(test_str));
tools/testing/selftests/liveupdate/liveupdate.c
200
ASSERT_EQ(close(mem_fd), 0);
tools/testing/selftests/liveupdate/liveupdate.c
230
ASSERT_EQ(write(mem_fd1, test_str1, strlen(test_str1)), strlen(test_str1));
tools/testing/selftests/liveupdate/liveupdate.c
231
ASSERT_EQ(write(mem_fd2, test_str2, strlen(test_str2)), strlen(test_str2));
tools/testing/selftests/liveupdate/liveupdate.c
233
ASSERT_EQ(preserve_fd(session_fd, mem_fd1, 0xAAAA), 0);
tools/testing/selftests/liveupdate/liveupdate.c
234
ASSERT_EQ(preserve_fd(session_fd, mem_fd2, 0xBBBB), 0);
tools/testing/selftests/liveupdate/liveupdate.c
237
ASSERT_EQ(lseek(mem_fd1, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
238
ASSERT_EQ(read(mem_fd1, read_buf, sizeof(read_buf)), strlen(test_str1));
tools/testing/selftests/liveupdate/liveupdate.c
242
ASSERT_EQ(lseek(mem_fd2, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
243
ASSERT_EQ(read(mem_fd2, read_buf, sizeof(read_buf)), strlen(test_str2));
tools/testing/selftests/liveupdate/liveupdate.c
246
ASSERT_EQ(close(mem_fd1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
247
ASSERT_EQ(close(mem_fd2), 0);
tools/testing/selftests/liveupdate/liveupdate.c
248
ASSERT_EQ(close(session_fd), 0);
tools/testing/selftests/liveupdate/liveupdate.c
277
ASSERT_EQ(write(mem_fd_data1, data1, strlen(data1)), strlen(data1));
tools/testing/selftests/liveupdate/liveupdate.c
284
ASSERT_EQ(write(mem_fd_data2, data2, strlen(data2)), strlen(data2));
tools/testing/selftests/liveupdate/liveupdate.c
289
ASSERT_EQ(preserve_fd(session_fd1, mem_fd_data1, 0x1111), 0);
tools/testing/selftests/liveupdate/liveupdate.c
290
ASSERT_EQ(preserve_fd(session_fd1, mem_fd_empty1, 0x2222), 0);
tools/testing/selftests/liveupdate/liveupdate.c
291
ASSERT_EQ(preserve_fd(session_fd2, mem_fd_data2, 0x3333), 0);
tools/testing/selftests/liveupdate/liveupdate.c
292
ASSERT_EQ(preserve_fd(session_fd2, mem_fd_empty2, 0x4444), 0);
tools/testing/selftests/liveupdate/liveupdate.c
294
ASSERT_EQ(lseek(mem_fd_data1, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
295
ASSERT_EQ(read(mem_fd_data1, read_buf, sizeof(read_buf)), strlen(data1));
tools/testing/selftests/liveupdate/liveupdate.c
299
ASSERT_EQ(lseek(mem_fd_data2, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
300
ASSERT_EQ(read(mem_fd_data2, read_buf, sizeof(read_buf)), strlen(data2));
tools/testing/selftests/liveupdate/liveupdate.c
303
ASSERT_EQ(lseek(mem_fd_empty1, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
304
ASSERT_EQ(read(mem_fd_empty1, read_buf, sizeof(read_buf)), 0);
tools/testing/selftests/liveupdate/liveupdate.c
306
ASSERT_EQ(lseek(mem_fd_empty2, 0, SEEK_SET), 0);
tools/testing/selftests/liveupdate/liveupdate.c
307
ASSERT_EQ(read(mem_fd_empty2, read_buf, sizeof(read_buf)), 0);
tools/testing/selftests/liveupdate/liveupdate.c
309
ASSERT_EQ(close(mem_fd_data1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
310
ASSERT_EQ(close(mem_fd_empty1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
311
ASSERT_EQ(close(mem_fd_data2), 0);
tools/testing/selftests/liveupdate/liveupdate.c
312
ASSERT_EQ(close(mem_fd_empty2), 0);
tools/testing/selftests/liveupdate/liveupdate.c
313
ASSERT_EQ(close(session_fd1), 0);
tools/testing/selftests/liveupdate/liveupdate.c
314
ASSERT_EQ(close(session_fd2), 0);
tools/testing/selftests/liveupdate/liveupdate.c
344
ASSERT_EQ(close(unsupported_fd), 0);
tools/testing/selftests/liveupdate/liveupdate.c
345
ASSERT_EQ(close(session_fd), 0);
tools/testing/selftests/liveupdate/liveupdate.c
67
ASSERT_EQ(close(self->fd1), 0);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
104
ASSERT_EQ(1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx,
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
107
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx,
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
126
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT | LSM_ATTR_PREV, ctx,
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
128
ASSERT_EQ(EOPNOTSUPP, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
132
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size,
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
135
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
190
ASSERT_EQ(cnt_current, count);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
192
ASSERT_EQ(0, read_proc_attr("current", attr, page_size));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
193
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
206
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
220
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
234
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
247
ASSERT_EQ(0, read_proc_attr("prev", attr, page_size));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
248
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
262
ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
34
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, NULL, 0));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
35
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
52
ASSERT_EQ(-1, rc);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
64
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, 0));
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
66
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
68
ASSERT_EQ(EOPNOTSUPP, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
87
ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size,
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
89
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/lsm/lsm_get_self_attr_test.c
90
ASSERT_EQ(page_size, size);
tools/testing/selftests/lsm/lsm_list_modules_test.c
138
ASSERT_EQ(0, strncmp(cp, name, strlen(name)));
tools/testing/selftests/lsm/lsm_list_modules_test.c
25
ASSERT_EQ(-1, lsm_list_modules(syscall_lsms, NULL, 0));
tools/testing/selftests/lsm/lsm_list_modules_test.c
26
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/lsm/lsm_list_modules_test.c
37
ASSERT_EQ(-1, lsm_list_modules(NULL, &size, 0));
tools/testing/selftests/lsm/lsm_list_modules_test.c
38
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/lsm/lsm_list_modules_test.c
50
ASSERT_EQ(-1, lsm_list_modules(syscall_lsms, &size, 0));
tools/testing/selftests/lsm/lsm_list_modules_test.c
51
ASSERT_EQ(E2BIG, errno);
tools/testing/selftests/lsm/lsm_list_modules_test.c
65
ASSERT_EQ(-1, lsm_list_modules(syscall_lsms, &size, 7));
tools/testing/selftests/lsm/lsm_list_modules_test.c
66
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/lsm/lsm_list_modules_test.c
67
ASSERT_EQ(page_size, size);
tools/testing/selftests/lsm/lsm_list_modules_test.c
85
ASSERT_EQ(0, read_sysfs_lsms(sysfs_lsms, page_size));
tools/testing/selftests/lsm/lsm_set_self_attr_test.c
20
ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, NULL,
tools/testing/selftests/lsm/lsm_set_self_attr_test.c
35
ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, ctx, 1, 0));
tools/testing/selftests/lsm/lsm_set_self_attr_test.c
51
ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, ctx, size, 1));
tools/testing/selftests/lsm/lsm_set_self_attr_test.c
67
ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT | LSM_ATTR_PREV, ctx,
tools/testing/selftests/mincore/mincore_selftest.c
100
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
101
ASSERT_EQ(0, vec[0]) {
tools/testing/selftests/mincore/mincore_selftest.c
109
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
110
ASSERT_EQ(1, vec[0]) {
tools/testing/selftests/mincore/mincore_selftest.c
121
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
122
ASSERT_EQ(0, vec[0]) {
tools/testing/selftests/mincore/mincore_selftest.c
159
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
160
ASSERT_EQ(0, vec[0]) {
tools/testing/selftests/mincore/mincore_selftest.c
167
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
168
ASSERT_EQ(1, vec[0]) {
tools/testing/selftests/mincore/mincore_selftest.c
211
ASSERT_EQ(errno, EOPNOTSUPP) {
tools/testing/selftests/mincore/mincore_selftest.c
220
ASSERT_EQ(errno, EOPNOTSUPP) {
tools/testing/selftests/mincore/mincore_selftest.c
237
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
239
ASSERT_EQ(0, vec[i]) {
tools/testing/selftests/mincore/mincore_selftest.c
250
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
251
ASSERT_EQ(1, vec[FILE_SIZE / 2 / page_size]) {
tools/testing/selftests/mincore/mincore_selftest.c
316
ASSERT_EQ(0, retval) {
tools/testing/selftests/mincore/mincore_selftest.c
331
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
333
ASSERT_EQ(0, vec[i]) {
tools/testing/selftests/mincore/mincore_selftest.c
343
ASSERT_EQ(0, retval);
tools/testing/selftests/mincore/mincore_selftest.c
344
ASSERT_EQ(1, vec[FILE_SIZE / 2 / page_size]) {
tools/testing/selftests/mm/guard-regions.c
1006
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1026
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1027
ASSERT_EQ(madvise(&ptr[4 * page_size], page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1039
ASSERT_EQ(mremap(ptr, 5 * page_size, 5 * page_size,
tools/testing/selftests/mm/guard-regions.c
1071
ASSERT_EQ(munmap(&ptr[5 * page_size], 5 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1074
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1075
ASSERT_EQ(madvise(&ptr[4 * page_size], page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1098
ASSERT_EQ(ptr, ptr_new);
tools/testing/selftests/mm/guard-regions.c
1135
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1136
ASSERT_EQ(madvise(&ptr[4 * page_size], page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1200
ASSERT_EQ(madvise(ptr, 5 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1216
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1235
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1274
ASSERT_EQ(actual, expected);
tools/testing/selftests/mm/guard-regions.c
1278
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1280
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1289
ASSERT_EQ(actual, '\0');
tools/testing/selftests/mm/guard-regions.c
1305
ASSERT_EQ(actual, expected);
tools/testing/selftests/mm/guard-regions.c
1309
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1332
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_WIPEONFORK), 0);
tools/testing/selftests/mm/guard-regions.c
1335
ASSERT_EQ(madvise(ptr, 5 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1365
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1384
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1394
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_FREE), 0);
tools/testing/selftests/mm/guard-regions.c
1404
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1419
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1422
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_POPULATE_READ), -1);
tools/testing/selftests/mm/guard-regions.c
1423
ASSERT_EQ(errno, EFAULT);
tools/testing/selftests/mm/guard-regions.c
1426
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_POPULATE_WRITE), -1);
tools/testing/selftests/mm/guard-regions.c
1427
ASSERT_EQ(errno, EFAULT);
tools/testing/selftests/mm/guard-regions.c
1430
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1446
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1456
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_COLD), 0);
tools/testing/selftests/mm/guard-regions.c
1466
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0);
tools/testing/selftests/mm/guard-regions.c
1476
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1515
ASSERT_EQ(ioctl(uffd, UFFDIO_API, &api), 0);
tools/testing/selftests/mm/guard-regions.c
1527
ASSERT_EQ(ioctl(uffd, UFFDIO_REGISTER, ®), 0);
tools/testing/selftests/mm/guard-regions.c
1530
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1540
ASSERT_EQ(ioctl(uffd, UFFDIO_UNREGISTER, &range), 0);
tools/testing/selftests/mm/guard-regions.c
1542
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1571
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_SEQUENTIAL), 0);
tools/testing/selftests/mm/guard-regions.c
1577
ASSERT_EQ(madvise(ptr2, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1581
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0);
tools/testing/selftests/mm/guard-regions.c
1592
ASSERT_EQ(*chrp, 'a' + i);
tools/testing/selftests/mm/guard-regions.c
1597
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1603
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1633
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1638
ASSERT_EQ(try_read_buf(&ptr_shared[i * page_size]), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1647
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1652
ASSERT_EQ(try_read_buf(&ptr_shared[i * page_size]), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1654
ASSERT_EQ(try_read_buf(&ptr_private[i * page_size]), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1658
ASSERT_EQ(madvise(ptr_shared, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1664
ASSERT_EQ(try_read_buf(&ptr_private[i * page_size]), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1668
ASSERT_EQ(madvise(ptr_private, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1698
ASSERT_EQ(madvise(ptr_private, 5 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1711
ASSERT_EQ(try_read_buf(ptr), i >= 5);
tools/testing/selftests/mm/guard-regions.c
1717
ASSERT_EQ(madvise(ptr_private, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1740
ASSERT_EQ(memcmp(ptr, ptr_s, page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1748
ASSERT_EQ(munmap(ptr_shared, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1749
ASSERT_EQ(munmap(ptr_private, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1767
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1769
ASSERT_EQ(close(self->fd), 0);
tools/testing/selftests/mm/guard-regions.c
1782
ASSERT_EQ(madvise(ptr_pg, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1789
ASSERT_EQ(try_read_buf(ptr_pg), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1793
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1798
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1821
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0);
tools/testing/selftests/mm/guard-regions.c
1824
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1833
ASSERT_EQ(madvise(ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1847
ASSERT_EQ(try_read_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1850
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1876
ASSERT_EQ(madvise(ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
1883
ASSERT_EQ(try_read_write_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1887
ASSERT_EQ(ftruncate(self->fd, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1893
ASSERT_EQ(try_read_write_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1897
ASSERT_EQ(ftruncate(self->fd, 5 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1898
ASSERT_EQ(ftruncate(self->fd, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1904
ASSERT_EQ(try_read_write_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
1907
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1926
ASSERT_EQ(madvise(&ptr[3 * page_size], 4 * page_size,
tools/testing/selftests/mm/guard-regions.c
1942
ASSERT_EQ(try_read_buf(ptr_p), i < 3 || i >= 7);
tools/testing/selftests/mm/guard-regions.c
1946
ASSERT_EQ(madvise(&ptr[3 * page_size], 4 * page_size,
tools/testing/selftests/mm/guard-regions.c
1953
ASSERT_EQ(try_read_buf(ptr_p), i < 3 || i >= 7);
tools/testing/selftests/mm/guard-regions.c
1957
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
1966
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1984
ASSERT_EQ(close(self->fd), 0);
tools/testing/selftests/mm/guard-regions.c
1990
ASSERT_EQ(ftruncate(self->fd, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1996
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
1999
ASSERT_EQ(fcntl(self->fd, F_ADD_SEALS, F_SEAL_WRITE), 0);
tools/testing/selftests/mm/guard-regions.c
2012
ASSERT_EQ(madvise(ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2019
ASSERT_EQ(try_read_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
2023
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
2035
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
2062
ASSERT_EQ(madvise(ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2069
ASSERT_EQ(try_read_buf(ptr_p), i % 2 != 0);
tools/testing/selftests/mm/guard-regions.c
2073
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
2085
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
2111
ASSERT_EQ(masked, 0);
tools/testing/selftests/mm/guard-regions.c
2118
ASSERT_EQ(madvise(ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2127
ASSERT_EQ(masked, i % 2 == 0 ? PM_GUARD_REGION : 0);
tools/testing/selftests/mm/guard-regions.c
2130
ASSERT_EQ(close(proc_fd), 0);
tools/testing/selftests/mm/guard-regions.c
2131
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
2160
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 0);
tools/testing/selftests/mm/guard-regions.c
2161
ASSERT_EQ(pm_scan_args.walk_end, (long)ptr + 10 * page_size);
tools/testing/selftests/mm/guard-regions.c
2167
ASSERT_EQ(syscall(__NR_madvise, ptr_p, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2174
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 5);
tools/testing/selftests/mm/guard-regions.c
2175
ASSERT_EQ(pm_scan_args.walk_end, (long)ptr + 10 * page_size);
tools/testing/selftests/mm/guard-regions.c
2181
ASSERT_EQ(pm_regs[i].start, ptr_p);
tools/testing/selftests/mm/guard-regions.c
2182
ASSERT_EQ(pm_regs[i].end, ptr_p + page_size);
tools/testing/selftests/mm/guard-regions.c
2183
ASSERT_EQ(pm_regs[i].categories, PAGE_IS_GUARD);
tools/testing/selftests/mm/guard-regions.c
2186
ASSERT_EQ(close(proc_fd), 0);
tools/testing/selftests/mm/guard-regions.c
2187
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
2200
ASSERT_EQ(ftruncate(self->fd, size), 0);
tools/testing/selftests/mm/guard-regions.c
2207
ASSERT_EQ(close(self->fd), 0);
tools/testing/selftests/mm/guard-regions.c
2217
ASSERT_EQ(madvise(ptr, size, MADV_NOHUGEPAGE), 0);
tools/testing/selftests/mm/guard-regions.c
2219
ASSERT_EQ(madvise(ptr, size, MADV_POPULATE_READ), 0);
tools/testing/selftests/mm/guard-regions.c
2225
ASSERT_EQ(madvise(ptr_page, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2231
ASSERT_EQ(madvise(ptr, size, MADV_HUGEPAGE), 0);
tools/testing/selftests/mm/guard-regions.c
2270
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2280
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
2285
ASSERT_EQ(madvise(&ptr[i * page_size], page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
2291
ASSERT_EQ(munmap(&ptr[4 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
2317
ASSERT_EQ(open_self_procmap(&procmap), 0);
tools/testing/selftests/mm/guard-regions.c
2319
ASSERT_EQ(procmap.query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/guard-regions.c
2320
ASSERT_EQ(procmap.query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/guard-regions.c
2321
ASSERT_EQ(close_procmap(&procmap), 0);
tools/testing/selftests/mm/guard-regions.c
329
ASSERT_EQ(ftruncate(self->fd, 100 * self->page_size), 0);
tools/testing/selftests/mm/guard-regions.c
360
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
373
ASSERT_EQ(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size,
tools/testing/selftests/mm/guard-regions.c
398
ASSERT_EQ(madvise(ptr, 3 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
415
ASSERT_EQ(madvise(ptr, NUM_PAGES * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
428
ASSERT_EQ(madvise(ptr, NUM_PAGES * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
433
ASSERT_EQ(chr, 'x');
tools/testing/selftests/mm/guard-regions.c
436
ASSERT_EQ(munmap(ptr, NUM_PAGES * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
467
ASSERT_EQ(munmap(&ptr_region[10 * page_size], 40 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
468
ASSERT_EQ(munmap(&ptr_region[55 * page_size], 25 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
488
ASSERT_EQ(madvise(ptr_region, 100 * page_size, MADV_GUARD_INSTALL), -1);
tools/testing/selftests/mm/guard-regions.c
489
ASSERT_EQ(errno, ENOMEM);
tools/testing/selftests/mm/guard-regions.c
511
ASSERT_EQ(madvise(ptr_region, 100 * page_size, MADV_GUARD_REMOVE), -1);
tools/testing/selftests/mm/guard-regions.c
512
ASSERT_EQ(errno, ENOMEM);
tools/testing/selftests/mm/guard-regions.c
551
ASSERT_EQ(madvise(ptr_region, 100 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
557
ASSERT_EQ(madvise(ptr_region, 100 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
565
ASSERT_EQ(munmap(ptr_region, 100 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
617
ASSERT_EQ(munmap(ptr_region, page_size), 0);
tools/testing/selftests/mm/guard-regions.c
618
ASSERT_EQ(munmap(&ptr_region[11 * page_size], 39 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
619
ASSERT_EQ(munmap(&ptr_region[55 * page_size], 24 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
620
ASSERT_EQ(munmap(&ptr_region[99 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
630
ASSERT_EQ(count, 6 * page_size);
tools/testing/selftests/mm/guard-regions.c
658
ASSERT_EQ(munmap(ptr1, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
659
ASSERT_EQ(munmap(ptr2, 5 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
660
ASSERT_EQ(munmap(ptr3, 20 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
674
ASSERT_EQ(madvise(ptr, page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
675
ASSERT_EQ(madvise(&ptr[9 * page_size], page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
682
ASSERT_EQ(munmap(ptr, page_size), 0);
tools/testing/selftests/mm/guard-regions.c
683
ASSERT_EQ(munmap(&ptr[9 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
698
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
713
ASSERT_EQ(madvise(&ptr[5 * page_size], 2 * page_size,
tools/testing/selftests/mm/guard-regions.c
721
ASSERT_EQ(mprotect(&ptr[5 * page_size], 2 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/guard-regions.c
728
ASSERT_EQ(madvise(&ptr[5 * page_size], 2 * page_size,
tools/testing/selftests/mm/guard-regions.c
736
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
746
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
761
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
771
ASSERT_EQ(munmap(&ptr[2 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
772
ASSERT_EQ(munmap(&ptr[5 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
773
ASSERT_EQ(munmap(&ptr[8 * page_size], page_size), 0);
tools/testing/selftests/mm/guard-regions.c
818
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
828
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/guard-regions.c
829
ASSERT_EQ(mprotect(&ptr[7 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/guard-regions.c
839
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ | PROT_WRITE), 0);
tools/testing/selftests/mm/guard-regions.c
840
ASSERT_EQ(mprotect(&ptr[7 * page_size], 3 * page_size,
tools/testing/selftests/mm/guard-regions.c
851
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/guard-regions.c
852
ASSERT_EQ(mprotect(&ptr[7 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/guard-regions.c
855
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/guard-regions.c
865
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ | PROT_WRITE), 0);
tools/testing/selftests/mm/guard-regions.c
866
ASSERT_EQ(mprotect(&ptr[7 * page_size], 3 * page_size,
tools/testing/selftests/mm/guard-regions.c
877
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
903
ASSERT_EQ(res, 0);
tools/testing/selftests/mm/guard-regions.c
907
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_DONTNEED), 0);
tools/testing/selftests/mm/guard-regions.c
921
ASSERT_EQ(*curr, '\0');
tools/testing/selftests/mm/guard-regions.c
925
ASSERT_EQ(*curr, 'y');
tools/testing/selftests/mm/guard-regions.c
938
ASSERT_EQ(munmap(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
960
ASSERT_EQ(mlock(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
963
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_INSTALL), -1);
tools/testing/selftests/mm/guard-regions.c
964
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mm/guard-regions.c
967
ASSERT_EQ(munlock(ptr, 10 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
970
ASSERT_EQ(madvise(ptr, 5 * page_size, MADV_GUARD_INSTALL), 0);
tools/testing/selftests/mm/guard-regions.c
981
ASSERT_EQ(*curr, 'x');
tools/testing/selftests/mm/guard-regions.c
990
ASSERT_EQ(mlock(&ptr[5 * page_size], 5 * page_size), 0);
tools/testing/selftests/mm/guard-regions.c
996
ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_GUARD_REMOVE), 0);
tools/testing/selftests/mm/hmm-tests.c
1027
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1028
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1032
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1075
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1076
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1080
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1084
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1088
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1089
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1093
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1129
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1130
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1134
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1138
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1142
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1177
ASSERT_EQ(ret, -ENOENT);
tools/testing/selftests/mm/hmm-tests.c
1216
ASSERT_EQ(ret, -EINVAL);
tools/testing/selftests/mm/hmm-tests.c
1220
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1224
ASSERT_EQ(ret, -EINVAL);
tools/testing/selftests/mm/hmm-tests.c
1229
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1232
ASSERT_EQ(val, 3);
tools/testing/selftests/mm/hmm-tests.c
1237
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1242
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1247
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1256
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1257
ASSERT_EQ(buffer->cpages, 4);
tools/testing/selftests/mm/hmm-tests.c
1262
ASSERT_EQ(ret, -ENOENT);
tools/testing/selftests/mm/hmm-tests.c
1312
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1313
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1317
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1322
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1323
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1327
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1372
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1373
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1374
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
1378
ASSERT_EQ(ptr[i], i + c);
tools/testing/selftests/mm/hmm-tests.c
1436
ASSERT_EQ(rc, 0);
tools/testing/selftests/mm/hmm-tests.c
1442
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1443
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
1449
ASSERT_EQ(ptr[i], i + c);
tools/testing/selftests/mm/hmm-tests.c
1489
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1490
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1494
ASSERT_EQ(m[0], HMM_DMIRROR_PROT_READ);
tools/testing/selftests/mm/hmm-tests.c
1534
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1539
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1542
ASSERT_EQ(val, 3);
tools/testing/selftests/mm/hmm-tests.c
1547
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1552
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1557
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1564
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1565
ASSERT_EQ(buffer->cpages, 1);
tools/testing/selftests/mm/hmm-tests.c
1570
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1571
ASSERT_EQ(buffer->cpages, 1);
tools/testing/selftests/mm/hmm-tests.c
1576
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1577
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1581
ASSERT_EQ(m[0], HMM_DMIRROR_PROT_ERROR);
tools/testing/selftests/mm/hmm-tests.c
1582
ASSERT_EQ(m[1], HMM_DMIRROR_PROT_ERROR);
tools/testing/selftests/mm/hmm-tests.c
1583
ASSERT_EQ(m[2], HMM_DMIRROR_PROT_ZERO | HMM_DMIRROR_PROT_READ);
tools/testing/selftests/mm/hmm-tests.c
1584
ASSERT_EQ(m[3], HMM_DMIRROR_PROT_READ);
tools/testing/selftests/mm/hmm-tests.c
1585
ASSERT_EQ(m[4], HMM_DMIRROR_PROT_WRITE);
tools/testing/selftests/mm/hmm-tests.c
1587
ASSERT_EQ(m[5], HMM_DMIRROR_PROT_DEV_PRIVATE_LOCAL |
tools/testing/selftests/mm/hmm-tests.c
1589
ASSERT_EQ(m[6], HMM_DMIRROR_PROT_NONE);
tools/testing/selftests/mm/hmm-tests.c
1591
ASSERT_EQ(m[5], HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL |
tools/testing/selftests/mm/hmm-tests.c
1593
ASSERT_EQ(m[6], HMM_DMIRROR_PROT_DEV_COHERENT_REMOTE |
tools/testing/selftests/mm/hmm-tests.c
1647
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1648
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
165
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1653
ASSERT_EQ(m[i], HMM_DMIRROR_PROT_WRITE |
tools/testing/selftests/mm/hmm-tests.c
1658
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1662
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1663
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1668
ASSERT_EQ(m[i], HMM_DMIRROR_PROT_READ |
tools/testing/selftests/mm/hmm-tests.c
1712
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1716
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1717
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1718
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
1722
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1726
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1727
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1728
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
173
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1732
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1736
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1737
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1740
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1741
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1742
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
1746
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
177
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1787
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1788
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1792
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1796
ASSERT_EQ(ptr[i]++, i);
tools/testing/selftests/mm/hmm-tests.c
1799
ASSERT_EQ(ptr[i], i+1);
tools/testing/selftests/mm/hmm-tests.c
1803
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1841
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1842
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1846
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1849
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1853
ASSERT_EQ(ret, -EPERM);
tools/testing/selftests/mm/hmm-tests.c
1894
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1895
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1901
ASSERT_EQ(ptr[i]++, i);
tools/testing/selftests/mm/hmm-tests.c
1904
ASSERT_EQ(ptr[i], i+1);
tools/testing/selftests/mm/hmm-tests.c
1972
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1973
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1976
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
1978
ASSERT_EQ(gup_test_exec(gup_fd,
tools/testing/selftests/mm/hmm-tests.c
1981
ASSERT_EQ(gup_test_exec(gup_fd,
tools/testing/selftests/mm/hmm-tests.c
1984
ASSERT_EQ(gup_test_exec(gup_fd,
tools/testing/selftests/mm/hmm-tests.c
1987
ASSERT_EQ(gup_test_exec(gup_fd,
tools/testing/selftests/mm/hmm-tests.c
1993
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
1994
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
1997
ASSERT_EQ(HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL | HMM_DMIRROR_PROT_WRITE, m[0]);
tools/testing/selftests/mm/hmm-tests.c
1998
ASSERT_EQ(HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL | HMM_DMIRROR_PROT_WRITE, m[1]);
tools/testing/selftests/mm/hmm-tests.c
2000
ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[0]);
tools/testing/selftests/mm/hmm-tests.c
2001
ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[1]);
tools/testing/selftests/mm/hmm-tests.c
2003
ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[2]);
tools/testing/selftests/mm/hmm-tests.c
2004
ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[3]);
tools/testing/selftests/mm/hmm-tests.c
2010
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2059
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2060
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2064
ASSERT_EQ(pid, 0);
tools/testing/selftests/mm/hmm-tests.c
2086
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2087
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2090
ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[i]);
tools/testing/selftests/mm/hmm-tests.c
2129
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2135
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2136
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2140
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
2181
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2187
ASSERT_EQ(val, 0);
tools/testing/selftests/mm/hmm-tests.c
2191
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2192
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2196
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
2200
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
2244
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2254
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2255
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2259
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2263
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2303
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2313
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2314
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2318
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2322
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2366
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2376
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2377
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2381
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2389
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2439
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2458
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2459
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2464
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2476
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2519
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2529
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2531
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2532
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2536
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
2543
ASSERT_EQ(ptr[2048], 2048);
tools/testing/selftests/mm/hmm-tests.c
2547
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2553
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2562
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2563
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2571
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2574
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2576
ASSERT_EQ(ptr[2048], 2048);
tools/testing/selftests/mm/hmm-tests.c
2614
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2620
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2622
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2623
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2627
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
2631
ASSERT_EQ(ptr[2048], 0);
tools/testing/selftests/mm/hmm-tests.c
2635
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2641
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2646
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2651
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2653
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
2654
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
2658
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
2843
ASSERT_EQ(run_migration_benchmark(self->fd, 1, test_sizes[i],
tools/testing/selftests/mm/hmm-tests.c
2847
ASSERT_EQ(run_migration_benchmark(self->fd, 0, test_sizes[i],
tools/testing/selftests/mm/hmm-tests.c
335
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
339
ASSERT_EQ(val, 0);
tools/testing/selftests/mm/hmm-tests.c
343
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
344
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
345
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
350
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
352
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
398
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
402
ASSERT_EQ(ret, -EFAULT);
tools/testing/selftests/mm/hmm-tests.c
406
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
408
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
412
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
453
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
454
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
455
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
459
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
497
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
498
ASSERT_EQ(buffer->cpages, 1);
tools/testing/selftests/mm/hmm-tests.c
499
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
507
ASSERT_EQ(ret, -EPERM);
tools/testing/selftests/mm/hmm-tests.c
511
ASSERT_EQ(ptr[i], 0);
tools/testing/selftests/mm/hmm-tests.c
515
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
519
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
520
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
521
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
525
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
574
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
588
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
589
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
595
ASSERT_EQ(pid, 0);
tools/testing/selftests/mm/hmm-tests.c
598
ASSERT_EQ(WIFEXITED(ret), 1);
tools/testing/selftests/mm/hmm-tests.c
602
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
611
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
614
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
623
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
624
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
625
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
630
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
682
ASSERT_EQ(pid, 0);
tools/testing/selftests/mm/hmm-tests.c
685
ASSERT_EQ(WIFEXITED(ret), 1);
tools/testing/selftests/mm/hmm-tests.c
689
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
695
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
697
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
705
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
706
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
707
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
711
ASSERT_EQ(ptr[i], -i);
tools/testing/selftests/mm/hmm-tests.c
751
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
761
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
762
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
763
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
767
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
865
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
866
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
867
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
871
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
911
ASSERT_EQ(len, size);
tools/testing/selftests/mm/hmm-tests.c
922
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
923
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
924
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
928
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
974
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/hmm-tests.c
975
ASSERT_EQ(buffer->cpages, npages);
tools/testing/selftests/mm/hmm-tests.c
976
ASSERT_EQ(buffer->faults, 1);
tools/testing/selftests/mm/hmm-tests.c
980
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/hmm-tests.c
984
ASSERT_EQ(len, size);
tools/testing/selftests/mm/hmm-tests.c
986
ASSERT_EQ(ptr[i], i);
tools/testing/selftests/mm/mdwe_test.c
118
ASSERT_EQ(ret, variant->second_flags);
tools/testing/selftests/mm/mdwe_test.c
121
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/mm/mdwe_test.c
190
ASSERT_EQ(ret, 0) {
tools/testing/selftests/mm/mdwe_test.c
195
ASSERT_EQ(ret, mdwe_flags);
tools/testing/selftests/mm/memory-failure.c
139
ASSERT_EQ(get_hardware_corrupted_size(&self->corrupted_size), 0);
tools/testing/selftests/mm/memory-failure.c
169
ASSERT_EQ(setjmp, 0);
tools/testing/selftests/mm/memory-failure.c
180
ASSERT_EQ(setjmp, 1);
tools/testing/selftests/mm/memory-failure.c
183
ASSERT_EQ(siginfo.si_signo, SIGBUS);
tools/testing/selftests/mm/memory-failure.c
184
ASSERT_EQ(siginfo.si_code, BUS_MCEERR_AR);
tools/testing/selftests/mm/memory-failure.c
185
ASSERT_EQ(1UL << siginfo.si_addr_lsb, self->page_size);
tools/testing/selftests/mm/memory-failure.c
186
ASSERT_EQ(siginfo.si_addr, vaddr);
tools/testing/selftests/mm/memory-failure.c
196
ASSERT_EQ(get_hardware_corrupted_size(&size), 0);
tools/testing/selftests/mm/memory-failure.c
197
ASSERT_EQ(size, self->corrupted_size + self->page_size / 1024);
tools/testing/selftests/mm/memory-failure.c
200
ASSERT_EQ(pageflags_get(self->pfn, self->kpageflags_fd, &pfn_flags), 0);
tools/testing/selftests/mm/memory-failure.c
201
ASSERT_EQ(pfn_flags & KPF_HWPOISON, KPF_HWPOISON);
tools/testing/selftests/mm/memory-failure.c
210
ASSERT_EQ(unpoison_memory(self->pfn), 0);
tools/testing/selftests/mm/memory-failure.c
213
ASSERT_EQ(pageflags_get(self->pfn, self->kpageflags_fd, &pfn_flags), 0);
tools/testing/selftests/mm/memory-failure.c
217
ASSERT_EQ(get_hardware_corrupted_size(&size), 0);
tools/testing/selftests/mm/memory-failure.c
218
ASSERT_EQ(size, self->corrupted_size);
tools/testing/selftests/mm/memory-failure.c
237
ASSERT_EQ(variant->inject(self, addr), 0);
tools/testing/selftests/mm/memory-failure.c
248
ASSERT_EQ(munmap(addr, self->page_size), 0);
tools/testing/selftests/mm/memory-failure.c
302
ASSERT_EQ(variant->inject(self, addr), 0);
tools/testing/selftests/mm/memory-failure.c
313
ASSERT_EQ(munmap(addr, self->page_size), 0);
tools/testing/selftests/mm/memory-failure.c
315
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/mm/memory-failure.c
343
ASSERT_EQ(variant->inject(self, addr), 0);
tools/testing/selftests/mm/memory-failure.c
354
ASSERT_EQ(munmap(addr, self->page_size), 0);
tools/testing/selftests/mm/memory-failure.c
356
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/mm/merge.c
100
ASSERT_EQ(open_self_procmap(&self->procmap), 0);
tools/testing/selftests/mm/merge.c
105
ASSERT_EQ(munmap(self->carveout, 30 * self->page_size), 0);
tools/testing/selftests/mm/merge.c
1053
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
1054
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
106
ASSERT_EQ(close_procmap(&self->procmap), 0);
tools/testing/selftests/mm/merge.c
1088
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
1089
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
1123
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr2);
tools/testing/selftests/mm/merge.c
1124
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr2 + 10 * page_size);
tools/testing/selftests/mm/merge.c
1146
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
1147
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 15 * page_size);
tools/testing/selftests/mm/merge.c
1181
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
1182
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 15 * page_size);
tools/testing/selftests/mm/merge.c
1216
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
1217
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 15 * page_size);
tools/testing/selftests/mm/merge.c
1280
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_b);
tools/testing/selftests/mm/merge.c
1283
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_b + offset);
tools/testing/selftests/mm/merge.c
1347
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_a);
tools/testing/selftests/mm/merge.c
1349
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_a + offset);
tools/testing/selftests/mm/merge.c
137
ASSERT_EQ(mprotect(ptr, 5 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
1418
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_a);
tools/testing/selftests/mm/merge.c
1420
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_a + offset);
tools/testing/selftests/mm/merge.c
1425
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_b);
tools/testing/selftests/mm/merge.c
1426
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_b + 3 * page_size);
tools/testing/selftests/mm/merge.c
1495
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_b);
tools/testing/selftests/mm/merge.c
1496
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_b + 6 * page_size);
tools/testing/selftests/mm/merge.c
1499
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr_a);
tools/testing/selftests/mm/merge.c
1500
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr_a + 9 * page_size);
tools/testing/selftests/mm/merge.c
157
ASSERT_EQ(mprotect(&ptr[5 * page_size], 5 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
161
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
162
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
188
ASSERT_EQ(mprotect(&ptr[5 * page_size], 5 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
207
ASSERT_EQ(mprotect(ptr, 5 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
211
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
212
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
238
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
239
ASSERT_EQ(mprotect(&ptr[6 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
258
ASSERT_EQ(mprotect(&ptr[3 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
262
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
263
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size);
tools/testing/selftests/mm/merge.c
289
ASSERT_EQ(mprotect(&ptr[6 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
308
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
317
ASSERT_EQ(mprotect(&ptr[3 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
321
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
322
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size);
tools/testing/selftests/mm/merge.c
348
ASSERT_EQ(mprotect(ptr, 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
367
ASSERT_EQ(mprotect(&ptr[6 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
376
ASSERT_EQ(mprotect(&ptr[3 * page_size], 3 * page_size, PROT_READ), 0);
tools/testing/selftests/mm/merge.c
380
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
381
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size);
tools/testing/selftests/mm/merge.c
435
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
436
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 5 * page_size);
tools/testing/selftests/mm/merge.c
490
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr2);
tools/testing/selftests/mm/merge.c
491
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr2 + 5 * page_size);
tools/testing/selftests/mm/merge.c
505
ASSERT_EQ(mprotect(ptr, 5 * page_size, PROT_READ | PROT_WRITE | PROT_EXEC), 0);
tools/testing/selftests/mm/merge.c
508
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr2);
tools/testing/selftests/mm/merge.c
509
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr2 + 5 * page_size);
tools/testing/selftests/mm/merge.c
526
ASSERT_EQ(ftruncate(fd, page_size), 0);
tools/testing/selftests/mm/merge.c
58
ASSERT_EQ(open_self_procmap(&self->procmap), 0);
tools/testing/selftests/mm/merge.c
581
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
582
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 2 * page_size);
tools/testing/selftests/mm/merge.c
585
ASSERT_EQ(munmap(ptr2, page_size), 0);
tools/testing/selftests/mm/merge.c
593
ASSERT_EQ(errnum, EINVAL);
tools/testing/selftests/mm/merge.c
607
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
608
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 2 * page_size);
tools/testing/selftests/mm/merge.c
611
ASSERT_EQ(munmap(ptr, 2 * page_size), 0);
tools/testing/selftests/mm/merge.c
622
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
623
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 2 * page_size);
tools/testing/selftests/mm/merge.c
63
ASSERT_EQ(munmap(self->carveout, 30 * self->page_size), 0);
tools/testing/selftests/mm/merge.c
683
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
684
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
744
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr2);
tools/testing/selftests/mm/merge.c
745
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr2 + 10 * page_size);
tools/testing/selftests/mm/merge.c
825
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
826
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size);
tools/testing/selftests/mm/merge.c
829
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr3);
tools/testing/selftests/mm/merge.c
830
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr3 + 5 * page_size);
tools/testing/selftests/mm/merge.c
910
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
911
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 15 * page_size);
tools/testing/selftests/mm/merge.c
951
ASSERT_EQ(munmap(&ptr[5 * page_size], 5 * page_size), 0);
tools/testing/selftests/mm/merge.c
984
ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr);
tools/testing/selftests/mm/merge.c
985
ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 15 * page_size);
tools/testing/selftests/mm/migration.c
141
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
143
ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
tools/testing/selftests/mm/migration.c
176
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
178
ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
tools/testing/selftests/mm/migration.c
200
ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0);
tools/testing/selftests/mm/migration.c
206
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
208
ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
tools/testing/selftests/mm/migration.c
232
ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0);
tools/testing/selftests/mm/migration.c
248
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
250
ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
tools/testing/selftests/mm/migration.c
273
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
275
ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
tools/testing/selftests/mm/migration.c
308
ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
tools/testing/selftests/mm/migration.c
310
ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
tools/testing/selftests/mm/migration.c
39
ASSERT_EQ(numa_available(), 0);
tools/testing/selftests/mm/pfnmap.c
200
ASSERT_EQ(munmap(self->addr1, self->pagesize), 0);
tools/testing/selftests/mm/pfnmap.c
248
ASSERT_EQ(self->addr2, MAP_FAILED);
tools/testing/selftests/mm/pfnmap.c
271
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/prctl_thp_disable.c
102
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_COLLAPSE, pmdsize), 1);
tools/testing/selftests/mm/prctl_thp_disable.c
179
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/prctl_thp_disable.c
186
ASSERT_EQ(prctl(PR_GET_THP_DISABLE, NULL, NULL, NULL, NULL), 3);
tools/testing/selftests/mm/prctl_thp_disable.c
189
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_NONE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
191
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_NOHUGEPAGE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
193
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_HUGEPAGE, pmdsize),
tools/testing/selftests/mm/prctl_thp_disable.c
196
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_COLLAPSE, pmdsize), 1);
tools/testing/selftests/mm/prctl_thp_disable.c
199
ASSERT_EQ(prctl(PR_SET_THP_DISABLE, 0, NULL, NULL, NULL), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
202
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_NONE, pmdsize),
tools/testing/selftests/mm/prctl_thp_disable.c
205
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_NOHUGEPAGE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
207
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_HUGEPAGE, pmdsize),
tools/testing/selftests/mm/prctl_thp_disable.c
210
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_COLLAPSE, pmdsize), 1);
tools/testing/selftests/mm/prctl_thp_disable.c
288
ASSERT_EQ(ret, 0);
tools/testing/selftests/mm/prctl_thp_disable.c
79
ASSERT_EQ(prctl(PR_GET_THP_DISABLE, NULL, NULL, NULL, NULL), 1);
tools/testing/selftests/mm/prctl_thp_disable.c
82
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_NONE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
84
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_NOHUGEPAGE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
86
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_HUGEPAGE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
88
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_COLLAPSE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
91
ASSERT_EQ(prctl(PR_SET_THP_DISABLE, 0, NULL, NULL, NULL), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
94
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_NONE, pmdsize),
tools/testing/selftests/mm/prctl_thp_disable.c
97
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_NOHUGEPAGE, pmdsize), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
99
ASSERT_EQ(test_mmap_thp(THP_COLLAPSE_MADV_HUGEPAGE, pmdsize),
tools/testing/selftests/mm/process_madv.c
103
ASSERT_EQ(ret, madvise_pages * pagesize);
tools/testing/selftests/mm/process_madv.c
110
ASSERT_EQ(*advised_page, '\0');
tools/testing/selftests/mm/process_madv.c
117
ASSERT_EQ(unadvised_page[i], 'A');
tools/testing/selftests/mm/process_madv.c
120
ASSERT_EQ(munmap(map, pagesize * 10), 0);
tools/testing/selftests/mm/process_madv.c
148
ASSERT_EQ(pipe(pipe_info), 0);
tools/testing/selftests/mm/process_madv.c
171
ASSERT_EQ(ret, sizeof(info));
tools/testing/selftests/mm/process_madv.c
186
ASSERT_EQ(ret, sizeof(info));
tools/testing/selftests/mm/process_madv.c
207
ASSERT_EQ(ret, huge_page_size);
tools/testing/selftests/mm/process_madv.c
247
ASSERT_EQ(ret, -1);
tools/testing/selftests/mm/process_madv.c
248
ASSERT_EQ(errno, ESRCH);
tools/testing/selftests/mm/process_madv.c
272
ASSERT_EQ(ret, -1);
tools/testing/selftests/mm/process_madv.c
273
ASSERT_EQ(errno, EBADF);
tools/testing/selftests/mm/process_madv.c
280
ASSERT_EQ(ret, -1);
tools/testing/selftests/mm/process_madv.c
281
ASSERT_EQ(errno, EBADF);
tools/testing/selftests/mm/process_madv.c
305
ASSERT_EQ(ret, -1);
tools/testing/selftests/mm/process_madv.c
306
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mm/process_madv.c
309
ASSERT_EQ(munmap(map, pagesize), 0);
tools/testing/selftests/mm/process_madv.c
337
ASSERT_EQ(ret, -1);
tools/testing/selftests/mm/process_madv.c
338
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mm/process_madv.c
341
ASSERT_EQ(munmap(map, pagesize), 0);
tools/testing/selftests/mm/rmap.c
148
ASSERT_EQ(ret, 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1000
ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1005
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1008
ASSERT_EQ(mkdir("/tmp/B", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1009
ASSERT_EQ(mknodat(-EBADF, "/tmp/B/b", S_IFREG | 0644, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1010
ASSERT_EQ(chown("/tmp/B/b", 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1012
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1015
ASSERT_EQ(mkdir("/tmp/B/BB", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1016
ASSERT_EQ(mknodat(-EBADF, "/tmp/B/BB/b", S_IFREG | 0644, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1017
ASSERT_EQ(chown("/tmp/B/BB/b", 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1019
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1022
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1025
ASSERT_EQ(mkdir("/mnt/A", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1027
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1030
ASSERT_EQ(mkdir("/mnt/A/AA", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1032
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1034
ASSERT_EQ(mkdir("/mnt/B", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1036
ASSERT_EQ(mount("testing", "/mnt/B", "ramfs",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1039
ASSERT_EQ(mkdir("/mnt/B/BB", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1041
ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1044
ASSERT_EQ(mkdir("/mnt/C", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1045
ASSERT_EQ(mkdir("/mnt/D", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1048
ASSERT_EQ(ftruncate(img_fd, 2147483648 /* 2 GB */), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1049
ASSERT_EQ(system("mkfs.ext4 -q /mnt/C/ext4.img"), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1050
ASSERT_EQ(system("mount -o loop -t ext4 /mnt/C/ext4.img /mnt/D/"), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1051
ASSERT_EQ(close(img_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1141
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1142
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1143
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1257
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1258
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1284
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1296
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1297
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1324
ASSERT_EQ(sys_mount_setattr(open_tree_fd, "",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1326
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1327
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1351
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1356
ASSERT_EQ(sys_mount_setattr(open_tree_fd, "",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1358
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1359
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1400
ASSERT_EQ(sys_mount_setattr(open_tree_fd, "",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1402
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1419
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1420
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1433
ASSERT_EQ(expected_uid_gid(-EBADF, "/tmp/B/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1434
ASSERT_EQ(expected_uid_gid(-EBADF, "/tmp/B/BB/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1436
ASSERT_EQ(mount("testing", "/mnt/A", "ramfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1439
ASSERT_EQ(mkdir("/mnt/A/AA", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1441
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1455
ASSERT_EQ(close(attr.userns_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1456
ASSERT_EQ(close(open_tree_fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1458
ASSERT_EQ(expected_uid_gid(-EBADF, "/tmp/B/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1459
ASSERT_EQ(expected_uid_gid(-EBADF, "/tmp/B/BB/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1460
ASSERT_EQ(expected_uid_gid(open_tree_fd, "B/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1461
ASSERT_EQ(expected_uid_gid(open_tree_fd, "B/BB/b", 0, 0, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1479
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1484
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1490
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1493
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1496
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1499
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1503
ASSERT_EQ(errno, ELOOP);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1508
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1512
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1515
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1518
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1521
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1525
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1546
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1548
ASSERT_EQ(statx(fd_tree_base, "A/AA", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1550
ASSERT_EQ(statx(fd_tree_base, "A/AA/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1552
ASSERT_EQ(statx(fd_tree_base, "A/AA/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1565
ASSERT_EQ(statx(fd_tree_subdir, "B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1567
ASSERT_EQ(statx(fd_tree_subdir, "B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1570
ASSERT_EQ(move_mount(fd_tree_subdir, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1576
ASSERT_EQ(statx(-EBADF, "/tmp/target1", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1578
ASSERT_EQ(statx(-EBADF, "/tmp/target1/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1580
ASSERT_EQ(statx(-EBADF, "/tmp/target1/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1583
ASSERT_EQ(move_mount(fd_tree_base, "", -EBADF, "/tmp/target2", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1592
ASSERT_EQ(statx(-EBADF, "/tmp/target2", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1594
ASSERT_EQ(statx(-EBADF, "/tmp/target2/A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1596
ASSERT_EQ(statx(-EBADF, "/tmp/target2/A/AA", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1598
ASSERT_EQ(statx(-EBADF, "/tmp/target2/A/AA/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1600
ASSERT_EQ(statx(-EBADF, "/tmp/target2/A/AA/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1602
ASSERT_EQ(statx(-EBADF, "/tmp/target2/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1627
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1629
ASSERT_EQ(statx(fd_tree_base, "A/AA", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1631
ASSERT_EQ(statx(fd_tree_base, "A/AA/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1633
ASSERT_EQ(statx(fd_tree_base, "A/AA/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1636
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1648
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1669
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1671
ASSERT_EQ(statx(fd_tree_base, "A/AA", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1673
ASSERT_EQ(statx(fd_tree_base, "A/AA/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1675
ASSERT_EQ(statx(fd_tree_base, "A/AA/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1692
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1713
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1715
ASSERT_EQ(statx(fd_tree_base, "A/AA", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1717
ASSERT_EQ(statx(fd_tree_base, "A/AA/B", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1719
ASSERT_EQ(statx(fd_tree_base, "A/AA/B/BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1739
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1749
ASSERT_EQ(sys_fsconfig(fd_context, FSCONFIG_CMD_CREATE, NULL, NULL, 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1756
ASSERT_EQ(mkdirat(fd_tmpfs, "subdir", 0755), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1766
ASSERT_EQ(mkdirat(-EBADF, "/mnt/open_tree_subfolder", 0755), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1768
ASSERT_EQ(sys_move_mount(fd_tree, "", -EBADF, "/mnt/open_tree_subfolder", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1772
ASSERT_EQ(umount2("/mnt/open_tree_subfolder", 0), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1789
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1800
ASSERT_EQ(statx(fd_tree_subdir, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1807
ASSERT_EQ(move_mount(fd_tree_subdir, "", fd_tree_base, "", MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1808
ASSERT_EQ(statx(fd_tree_subdir, "", AT_EMPTY_PATH, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1830
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1841
ASSERT_EQ(statx(fd_tree_subdir, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1848
ASSERT_EQ(move_mount(fd_tree_subdir, "", fd_tree_base, "", MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1849
ASSERT_EQ(statx(fd_tree_subdir, "", AT_EMPTY_PATH, STATX_MNT_ID_UNIQUE, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1856
ASSERT_EQ(move_mount(fd_tree_base, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1857
ASSERT_EQ(statx(-EBADF, "/tmp/target1", 0, STATX_MNT_ID_UNIQUE, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1860
ASSERT_EQ(stx.stx_mnt_id, mnt_id);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1877
ASSERT_EQ(move_mount(fd_tree_base, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1879
ASSERT_EQ(statx(fd_tree_base, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1886
ASSERT_EQ(statx(fd_tree_subdir, "BB", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1891
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1908
ASSERT_EQ(statx(fd_tree, "A", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1913
ASSERT_EQ(move_mount(fd_tree, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1915
ASSERT_EQ(statx(-EBADF, "/tmp/target1", 0, 0, &stx), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1918
ASSERT_EQ(umount2("/tmp/target1", MNT_DETACH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1967
ASSERT_EQ(move_mount(fd_tree1, "", fd_tree2, "", MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2001
ASSERT_EQ(move_mount(fd_tree2, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2040
ASSERT_EQ(move_mount(fd_tree2, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2082
ASSERT_EQ(move_mount(fd_tree1, "", -EBADF, "/tmp/target1", MOVE_MOUNT_F_EMPTY_PATH), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2090
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2091
ASSERT_EQ(mount(NULL, "/mnt", NULL, MS_REC | MS_SHARED, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2109
ASSERT_EQ(statx(-EBADF, "/mnt/A", 0, 0, &stx1), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2110
ASSERT_EQ(statx(fd_tree, "A", 0, 0, &stx2), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2119
ASSERT_EQ(stx1.stx_dev_minor, stx2.stx_dev_minor);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2122
ASSERT_EQ(mount(NULL, "/mnt/A", "tmpfs", 0, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2125
ASSERT_EQ(statx(-EBADF, "/mnt/A", 0, 0, &stx3), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2126
ASSERT_EQ(statx(fd_tree, "A", 0, 0, &stx4), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
2135
ASSERT_EQ(stx1.stx_dev_minor, stx4.stx_dev_minor);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
375
ASSERT_EQ(prepare_unpriv_mountns(), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
380
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
383
ASSERT_EQ(mkdir("/tmp/B", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
385
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
388
ASSERT_EQ(mkdir("/tmp/B/BB", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
390
ASSERT_EQ(mkdir("/tmp/target1", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
392
ASSERT_EQ(mkdir("/tmp/target2", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
394
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
397
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
400
ASSERT_EQ(mkdir("/mnt/A", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
402
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
405
ASSERT_EQ(mkdir("/mnt/A/AA", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
407
ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
409
ASSERT_EQ(mkdir("/mnt/B", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
411
ASSERT_EQ(mount("testing", "/mnt/B", "ramfs",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
414
ASSERT_EQ(mkdir("/mnt/B/BB", 0777), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
416
ASSERT_EQ(mount("testing", "/tmp/B/BB", "devpts",
tools/testing/selftests/mount_setattr/mount_setattr_test.c
421
ASSERT_EQ(symlink(NOSYMFOLLOW_TARGET, NOSYMFOLLOW_SYMLINK), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
422
ASSERT_EQ(close(fd), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
485
ASSERT_EQ(errno, EFAULT);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
489
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
492
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
496
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
500
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
502
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
511
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE,
tools/testing/selftests/mount_setattr/mount_setattr_test.c
518
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
521
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
524
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
527
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
544
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", 0, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
553
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
556
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
559
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
562
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
580
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
589
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
592
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
595
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
598
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
603
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
607
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
609
ASSERT_EQ(is_shared_mount("/mnt/A"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
612
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
614
ASSERT_EQ(is_shared_mount("/mnt/A/AA"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
617
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
619
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
622
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
624
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B/BB"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
637
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
639
ASSERT_EQ(is_shared_mount("/mnt/A"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
642
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
644
ASSERT_EQ(is_shared_mount("/mnt/A/AA"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
647
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
649
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
652
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
654
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B/BB"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
686
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
688
ASSERT_EQ(is_shared_mount("/mnt/A"), false);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
691
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
693
ASSERT_EQ(is_shared_mount("/mnt/A/AA"), false);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
696
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
698
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B"), false);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
701
ASSERT_EQ(new_flags, old_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
703
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B/BB"), false);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
714
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
734
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/B", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
741
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
748
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
785
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
792
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
795
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
798
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
801
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
807
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
813
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
816
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
819
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
822
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
828
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
833
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
836
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
839
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
842
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
848
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
852
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
855
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
858
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
861
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
864
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
867
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
870
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
873
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
876
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
880
ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
885
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
888
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
891
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
894
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
917
ASSERT_EQ(pthread_create(&threads[i], &pattr, mount_setattr_thread, NULL), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
929
ASSERT_EQ(ret, 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
935
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
937
ASSERT_EQ(is_shared_mount("/mnt/A"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
940
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
942
ASSERT_EQ(is_shared_mount("/mnt/A/AA"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
945
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
947
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
950
ASSERT_EQ(new_flags, expected_flags);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
952
ASSERT_EQ(is_shared_mount("/mnt/A/AA/B/BB"), true);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
968
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
984
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
988
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
998
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
237
ASSERT_EQ(prepare_unpriv_mountns(), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
246
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
249
ASSERT_EQ(mkdir(SET_GROUP_A, 0777), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
251
ASSERT_EQ(mount("testing", SET_GROUP_A, "tmpfs", MS_NOATIME | MS_NODEV,
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
360
ASSERT_EQ(wait_for_pid(pid), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
364
ASSERT_EQ(wait_for_pid(pid), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
366
ASSERT_EQ(syscall(__NR_move_mount, ca_from.mntfd, "",
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
371
ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0);
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
372
ASSERT_EQ(is_shared_mount(SET_GROUP_A), 1);
tools/testing/selftests/namespaces/cred_change_test.c
147
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/cred_change_test.c
187
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
259
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/cred_change_test.c
303
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
378
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/cred_change_test.c
422
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
50
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
549
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/cred_change_test.c
592
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
682
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/cred_change_test.c
726
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/cred_change_test.c
793
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
105
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
1054
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
1058
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
1074
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
1096
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
1109
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
118
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
119
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
120
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
1200
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
1204
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
121
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
1220
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
1242
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
1258
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
1349
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
1353
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
1369
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
138
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
139
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
1397
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
1403
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/namespaces/file_handle_test.c
1407
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/namespaces/file_handle_test.c
1411
ASSERT_EQ(errno, EPERM);
tools/testing/selftests/namespaces/file_handle_test.c
1415
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/namespaces/file_handle_test.c
1419
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/namespaces/file_handle_test.c
1423
ASSERT_EQ(errno, ENOTDIR);
tools/testing/selftests/namespaces/file_handle_test.c
155
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
168
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
169
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
170
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
171
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
188
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
189
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
205
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
218
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
219
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
220
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
221
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
238
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
239
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
255
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
268
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
269
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
270
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
271
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
288
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
289
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
305
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
318
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
319
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
320
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
321
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
33
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
338
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
339
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
34
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
357
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
370
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
371
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
372
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
373
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
390
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
391
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
409
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
422
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
423
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
424
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
425
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
448
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
461
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
50
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
535
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
539
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
555
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
577
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
590
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
664
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
668
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
68
ASSERT_EQ(fstat(ns_fd, &st1), 0);
tools/testing/selftests/namespaces/file_handle_test.c
684
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
69
ASSERT_EQ(fstat(fd, &st2), 0);
tools/testing/selftests/namespaces/file_handle_test.c
70
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/file_handle_test.c
706
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
71
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/file_handle_test.c
719
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
793
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
797
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
813
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
835
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
848
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/file_handle_test.c
88
ASSERT_EQ(setresgid(65534, 65534, 65534), 0); /* nogroup */
tools/testing/selftests/namespaces/file_handle_test.c
89
ASSERT_EQ(setresuid(65534, 65534, 65534), 0); /* nobody */
tools/testing/selftests/namespaces/file_handle_test.c
922
ASSERT_EQ(read(pipefd[0], &result, 1), 1);
tools/testing/selftests/namespaces/file_handle_test.c
926
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/file_handle_test.c
942
ASSERT_EQ(result, 'P');
tools/testing/selftests/namespaces/file_handle_test.c
964
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/file_handle_test.c
980
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/init_ino_test.c
52
ASSERT_EQ(st.st_ino, namespaces[i].expected_ino)
tools/testing/selftests/namespaces/listns_efault_test.c
114
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv[i]), 0);
tools/testing/selftests/namespaces/listns_efault_test.c
154
ASSERT_EQ(ret, 1);
tools/testing/selftests/namespaces/listns_efault_test.c
155
ASSERT_EQ(c, 'R');
tools/testing/selftests/namespaces/listns_efault_test.c
176
ASSERT_EQ(ret, iter_pid);
tools/testing/selftests/namespaces/listns_efault_test.c
181
ASSERT_EQ(WTERMSIG(status), SIGKILL);
tools/testing/selftests/namespaces/listns_efault_test.c
213
ASSERT_EQ(ret, -1);
tools/testing/selftests/namespaces/listns_efault_test.c
214
ASSERT_EQ(errno, EFAULT);
tools/testing/selftests/namespaces/listns_efault_test.c
239
ASSERT_EQ(ret, -1);
tools/testing/selftests/namespaces/listns_efault_test.c
240
ASSERT_EQ(errno, EFAULT);
tools/testing/selftests/namespaces/listns_efault_test.c
271
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/listns_efault_test.c
320
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv[i]), 0);
tools/testing/selftests/namespaces/listns_efault_test.c
360
ASSERT_EQ(ret, 1);
tools/testing/selftests/namespaces/listns_efault_test.c
361
ASSERT_EQ(c, 'R');
tools/testing/selftests/namespaces/listns_efault_test.c
385
ASSERT_EQ(ret, iter_pid);
tools/testing/selftests/namespaces/listns_efault_test.c
390
ASSERT_EQ(WTERMSIG(status), SIGKILL);
tools/testing/selftests/namespaces/listns_efault_test.c
422
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/listns_efault_test.c
462
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv[i]), 0);
tools/testing/selftests/namespaces/listns_efault_test.c
502
ASSERT_EQ(ret, 1);
tools/testing/selftests/namespaces/listns_efault_test.c
503
ASSERT_EQ(c, 'R');
tools/testing/selftests/namespaces/listns_efault_test.c
520
ASSERT_EQ(ret, iter_pid);
tools/testing/selftests/namespaces/listns_efault_test.c
525
ASSERT_EQ(WTERMSIG(status), SIGKILL);
tools/testing/selftests/namespaces/listns_efault_test.c
63
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/listns_pagination_bug.c
41
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
122
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
152
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
224
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
245
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
302
ASSERT_EQ(pipe(pipefd2), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
381
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
439
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
45
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
457
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
557
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
575
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
645
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
683
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
752
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/listns_test.c
112
ASSERT_EQ(ns_type, CLONE_NEWNET);
tools/testing/selftests/namespaces/listns_test.c
239
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/listns_test.c
350
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/listns_test.c
503
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/listns_test.c
652
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/namespaces/listns_test.c
666
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1092
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1128
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1261
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1298
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1429
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1471
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
151
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1596
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1647
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1648
ASSERT_EQ(pipe(syncpipe), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1802
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
181
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
182
ASSERT_EQ(pipe(syncpipe), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1839
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1932
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
1971
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2098
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2187
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2188
ASSERT_EQ(pipe(syncpipe), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2197
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2233
ASSERT_EQ(write(syncpipe[1], &sync_byte, 1), 1);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2237
ASSERT_EQ(pthread_join(thread, NULL), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2271
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2272
ASSERT_EQ(pipe(syncpipe), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2281
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2338
ASSERT_EQ(fstat(nsfd, &st1), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2339
ASSERT_EQ(fstat(nsfd2, &st2), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2340
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2389
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2390
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2610
ASSERT_EQ(write(sv[0], &sync_byte, 1), 1);
tools/testing/selftests/namespaces/ns_active_ref_test.c
2611
ASSERT_EQ(write(sv[0], &sync_byte, 1), 1);
tools/testing/selftests/namespaces/ns_active_ref_test.c
301
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
366
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
391
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
448
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
478
ASSERT_EQ(pipe(pipe_child_ready), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
479
ASSERT_EQ(pipe(pipe_parent_ready), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
57
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
579
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
595
ASSERT_EQ(fstat(nsfd, &st1), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
596
ASSERT_EQ(fstat(fd2, &st2), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
598
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/ns_active_ref_test.c
632
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
73
ASSERT_EQ(fstat(fd1, &st1), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
74
ASSERT_EQ(fstat(fd2, &st2), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
75
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/ns_active_ref_test.c
771
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
802
ASSERT_EQ(fstat(parent_fd, &st1), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
803
ASSERT_EQ(fstat(parent_fd2, &st2), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
805
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/ns_active_ref_test.c
855
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
928
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
965
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/ns_active_ref_test.c
99
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
119
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
128
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
138
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
160
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
166
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
167
ASSERT_EQ(cgroup_ns_id, cgroup_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
185
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
189
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
225
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
234
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
244
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
266
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
272
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
273
ASSERT_EQ(ipc_ns_id, ipc_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
291
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
295
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
331
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
340
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
350
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
372
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
378
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
379
ASSERT_EQ(uts_ns_id, uts_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
397
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
401
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
437
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
446
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
456
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
478
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
484
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
485
ASSERT_EQ(user_ns_id, user_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
503
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
507
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
54
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
543
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
552
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
562
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
586
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
592
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
593
ASSERT_EQ(time_ns_id, time_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
60
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
61
ASSERT_EQ(mnt_ns_id, mnt_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
615
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
619
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
666
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
675
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
678
ASSERT_EQ(read(pipefd[0], &grandchild_pid, sizeof(grandchild_pid)), sizeof(grandchild_pid));
tools/testing/selftests/namespaces/nsid_test.c
689
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
711
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
717
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
718
ASSERT_EQ(pid_ns_id, pid_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
736
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
740
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
787
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
79
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
796
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
799
ASSERT_EQ(read(pipefd[0], &grandchild_pid, sizeof(grandchild_pid)), sizeof(grandchild_pid));
tools/testing/selftests/namespaces/nsid_test.c
810
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
83
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
835
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
845
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
846
ASSERT_EQ(optlen, sizeof(netns_cookie));
tools/testing/selftests/namespaces/nsid_test.c
849
ASSERT_EQ(net_ns_id, netns_cookie);
tools/testing/selftests/namespaces/nsid_test.c
854
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
855
ASSERT_EQ(net_ns_id, net_ns_id2);
tools/testing/selftests/namespaces/nsid_test.c
878
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
886
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
889
ASSERT_EQ(parent_net_ns_id, parent_netns_cookie);
tools/testing/selftests/namespaces/nsid_test.c
892
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/nsid_test.c
928
ASSERT_EQ(read(pipefd[0], &buf, 1), 1);
tools/testing/selftests/namespaces/nsid_test.c
938
ASSERT_EQ(buf, 'Y');
tools/testing/selftests/namespaces/nsid_test.c
948
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
959
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/nsid_test.c
962
ASSERT_EQ(child_net_ns_id, child_netns_cookie);
tools/testing/selftests/namespaces/regression_pidfd_setns_test.c
43
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/regression_pidfd_setns_test.c
70
ASSERT_EQ(ret, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
1083
ASSERT_EQ(n, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
1092
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1104
ASSERT_EQ(fstat(netns_fd, &st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1115
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1136
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1183
ASSERT_EQ(fstat(reopened_fd, &reopened_st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1184
ASSERT_EQ(reopened_st.st_ino, netns_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
155
ASSERT_EQ(n, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
159
ASSERT_EQ(cmsg->cmsg_type, SCM_RIGHTS);
tools/testing/selftests/namespaces/siocgskns_test.c
1607
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1633
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1648
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1653
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
1658
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
166
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
177
ASSERT_EQ(fstat(netns_fd, &st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
242
ASSERT_EQ(fstat(netns_tcp, &st_tcp), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
243
ASSERT_EQ(fstat(netns_udp, &st_udp), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
244
ASSERT_EQ(st_tcp.st_ino, st_udp.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
247
ASSERT_EQ(fstat(netns_raw, &st_raw), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
248
ASSERT_EQ(st_tcp.st_ino, st_raw.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
272
ASSERT_EQ(fstat(netns_a_fd, &st_a), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
279
ASSERT_EQ(unshare(CLONE_NEWNET), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
298
ASSERT_EQ(fstat(result_fd, &st_result_stat), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
299
ASSERT_EQ(st_a.st_ino, st_result_stat.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
306
ASSERT_EQ(setns(netns_a_fd, CLONE_NEWNET), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
327
ASSERT_EQ(pipe(pipefd), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
349
ASSERT_EQ(unshare(CLONE_NEWNET), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
374
ASSERT_EQ(fstat(netns_fds[0], &st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
378
ASSERT_EQ(fstat(netns_fds[i], &st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
379
ASSERT_EQ(st.st_ino, netns_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
421
ASSERT_EQ(pipe(syncpipe), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
498
ASSERT_EQ(n, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
516
ASSERT_EQ(fstat(netns_fd, &st), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
535
ASSERT_EQ(fstat(test_fd, &st_test), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
536
ASSERT_EQ(st_test.st_ino, netns_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
570
ASSERT_EQ(fstat(netns_fd, &st1), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
571
ASSERT_EQ(fstat(current_netns_fd, &st2), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
572
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
63
ASSERT_EQ(fstat(netns_fd, &st1), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
64
ASSERT_EQ(fstat(current_netns_fd, &st2), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
65
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
671
ASSERT_EQ(n, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
680
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
698
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
717
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
873
ASSERT_EQ(n, 1);
tools/testing/selftests/namespaces/siocgskns_test.c
882
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
894
ASSERT_EQ(fstat(netns_fd, &st1), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
905
ASSERT_EQ(ret, 0);
tools/testing/selftests/namespaces/siocgskns_test.c
928
ASSERT_EQ(fstat(reopened_fd, &st2), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
929
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
930
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/siocgskns_test.c
966
ASSERT_EQ(fstat(reopened_fd, &st2), 0);
tools/testing/selftests/namespaces/siocgskns_test.c
967
ASSERT_EQ(st1.st_ino, st2.st_ino);
tools/testing/selftests/namespaces/siocgskns_test.c
968
ASSERT_EQ(st1.st_dev, st2.st_dev);
tools/testing/selftests/namespaces/stress_test.c
118
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/stress_test.c
206
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/namespaces/stress_test.c
269
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/namespaces/stress_test.c
337
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/namespaces/stress_test.c
361
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sv), 0);
tools/testing/selftests/namespaces/stress_test.c
547
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/stress_test.c
555
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/namespaces/stress_test.c
623
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/namespaces/stress_test.c
75
ASSERT_EQ(WEXITSTATUS(status), 0);
tools/testing/selftests/namespaces/stress_test.c
83
ASSERT_EQ(ret_before, ret_after);
tools/testing/selftests/nci/nci_dev.c
429
ASSERT_EQ(rc, 0);
tools/testing/selftests/nci/nci_dev.c
432
ASSERT_EQ(rc, 0);
tools/testing/selftests/nci/nci_dev.c
448
ASSERT_EQ(status, 0);
tools/testing/selftests/nci/nci_dev.c
518
ASSERT_EQ(status, 0);
tools/testing/selftests/nci/nci_dev.c
533
ASSERT_EQ(rc, 0);
tools/testing/selftests/nci/nci_dev.c
853
ASSERT_EQ(status, 0);
tools/testing/selftests/nci/nci_dev.c
868
ASSERT_EQ(rc, 0);
tools/testing/selftests/nci/nci_dev.c
885
ASSERT_EQ(status, 0);
tools/testing/selftests/nci/nci_dev.c
889
ASSERT_EQ(rc, 0);
tools/testing/selftests/net/af_unix/diag_uid.c
124
ASSERT_EQ(udr->sdiag_family, AF_UNIX);
tools/testing/selftests/net/af_unix/diag_uid.c
128
ASSERT_EQ(attr->rta_type, UNIX_DIAG_UID);
tools/testing/selftests/net/af_unix/diag_uid.c
131
ASSERT_EQ(uid, getuid());
tools/testing/selftests/net/af_unix/diag_uid.c
159
ASSERT_EQ(nlh->nlmsg_type, SOCK_DIAG_BY_FAMILY);
tools/testing/selftests/net/af_unix/diag_uid.c
164
ASSERT_EQ(NLMSG_OK(nlh, ret), 0);
tools/testing/selftests/net/af_unix/diag_uid.c
52
ASSERT_EQ(unshare(variant->unshare), 0);
tools/testing/selftests/net/af_unix/diag_uid.c
61
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/diag_uid.c
67
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
101
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
104
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
107
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
113
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/af_unix/msg_oob.c
131
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
169
ASSERT_EQ(ret[0], oob_remaining);
tools/testing/selftests/net/af_unix/msg_oob.c
172
ASSERT_EQ(ret[0], ret[1]);
tools/testing/selftests/net/af_unix/msg_oob.c
175
ASSERT_EQ(event[0].events, EPOLLPRI);
tools/testing/selftests/net/af_unix/msg_oob.c
178
ASSERT_EQ(event[0].events, event[1].events);
tools/testing/selftests/net/af_unix/msg_oob.c
197
ASSERT_EQ(bytes, sizeof(siginfo));
tools/testing/selftests/net/af_unix/msg_oob.c
198
ASSERT_EQ(siginfo.ssi_signo, SIGURG);
tools/testing/selftests/net/af_unix/msg_oob.c
203
ASSERT_EQ(bytes, -1);
tools/testing/selftests/net/af_unix/msg_oob.c
206
ASSERT_EQ(ret[0], len);
tools/testing/selftests/net/af_unix/msg_oob.c
207
ASSERT_EQ(ret[0], ret[1]);
tools/testing/selftests/net/af_unix/msg_oob.c
239
ASSERT_EQ(ret[0], expected_len);
tools/testing/selftests/net/af_unix/msg_oob.c
240
ASSERT_EQ(recv_errno[0], expected_errno);
tools/testing/selftests/net/af_unix/msg_oob.c
250
ASSERT_EQ(ret[0], ret[1]);
tools/testing/selftests/net/af_unix/msg_oob.c
251
ASSERT_EQ(recv_errno[0], recv_errno[1]);
tools/testing/selftests/net/af_unix/msg_oob.c
263
ASSERT_EQ(cmp, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
274
ASSERT_EQ(cmp, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
289
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
304
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
307
ASSERT_EQ(answ[0], oob_head);
tools/testing/selftests/net/af_unix/msg_oob.c
310
ASSERT_EQ(answ[0], answ[1]);
tools/testing/selftests/net/af_unix/msg_oob.c
53
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
68
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
72
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
78
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
84
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/msg_oob.c
97
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/af_unix/scm_inq.c
109
ASSERT_EQ(-ENOPROTOOPT, -errno);
tools/testing/selftests/net/af_unix/scm_inq.c
113
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_inq.c
116
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_inq.c
117
ASSERT_EQ(0, inq);
tools/testing/selftests/net/af_unix/scm_inq.c
44
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_inq.c
61
ASSERT_EQ(sizeof(buf), ret);
tools/testing/selftests/net/af_unix/scm_inq.c
89
ASSERT_EQ(MSG_LEN, ret);
tools/testing/selftests/net/af_unix/scm_inq.c
93
ASSERT_EQ(CMSG_LEN(sizeof(int)), cmsg->cmsg_len);
tools/testing/selftests/net/af_unix/scm_inq.c
94
ASSERT_EQ(SOL_SOCKET, cmsg->cmsg_level);
tools/testing/selftests/net/af_unix/scm_inq.c
95
ASSERT_EQ(SCM_INQ, cmsg->cmsg_type);
tools/testing/selftests/net/af_unix/scm_inq.c
98
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_inq.c
99
ASSERT_EQ(*(int *)CMSG_DATA(cmsg), inq);
tools/testing/selftests/net/af_unix/scm_pidfd.c
498
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_pidfd.c
502
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_pidfd.c
545
ASSERT_EQ(CHILD_EXIT_CODE_OK, WIFEXITED(child_status) ? WEXITSTATUS(child_status) : 1);
tools/testing/selftests/net/af_unix/scm_pidfd.c
548
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_pidfd.c
551
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/scm_rights.c
139
ASSERT_EQ(2, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
147
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
157
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
163
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
176
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
196
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
199
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
204
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
209
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
215
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
230
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
235
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
263
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
303
ASSERT_EQ(-1, ret);
tools/testing/selftests/net/af_unix/scm_rights.c
304
ASSERT_EQ(-EPERM, -errno);
tools/testing/selftests/net/af_unix/scm_rights.c
306
ASSERT_EQ(MSGLEN, ret);
tools/testing/selftests/net/af_unix/so_peek_off.c
45
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/so_peek_off.c
49
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/so_peek_off.c
53
ASSERT_EQ(0, ret);
tools/testing/selftests/net/af_unix/so_peek_off.c
66
ASSERT_EQ(len, bytes); \
tools/testing/selftests/net/af_unix/unix_connect.c
131
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/unix_connect.c
135
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/unix_connect.c
139
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/unix_connect.c
145
ASSERT_EQ(variant->err, err == -1 ? errno : 0);
tools/testing/selftests/net/af_unix/unix_connreset.c
119
ASSERT_EQ(0, n);
tools/testing/selftests/net/af_unix/unix_connreset.c
121
ASSERT_EQ(-1, n);
tools/testing/selftests/net/af_unix/unix_connreset.c
122
ASSERT_EQ(EAGAIN, errno);
tools/testing/selftests/net/af_unix/unix_connreset.c
147
ASSERT_EQ(-1, n);
tools/testing/selftests/net/af_unix/unix_connreset.c
151
ASSERT_EQ(ECONNRESET, errno);
tools/testing/selftests/net/af_unix/unix_connreset.c
153
ASSERT_EQ(EAGAIN, errno);
tools/testing/selftests/net/af_unix/unix_connreset.c
175
ASSERT_EQ(-1, n);
tools/testing/selftests/net/af_unix/unix_connreset.c
176
ASSERT_EQ(ECONNRESET, errno);
tools/testing/selftests/net/af_unix/unix_connreset.c
73
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/unix_connreset.c
78
ASSERT_EQ(0, err);
tools/testing/selftests/net/af_unix/unix_connreset.c
85
ASSERT_EQ(0, err);
tools/testing/selftests/net/bind_timewait.c
53
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_timewait.c
56
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_timewait.c
59
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_timewait.c
65
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_timewait.c
86
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/bind_timewait.c
87
ASSERT_EQ(errno, EADDRINUSE);
tools/testing/selftests/net/bind_wildcard.c
751
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_wildcard.c
756
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_wildcard.c
765
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/bind_wildcard.c
766
ASSERT_EQ(errno, variant->expected_reuse_errno[i]);
tools/testing/selftests/net/bind_wildcard.c
768
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_wildcard.c
772
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/bind_wildcard.c
773
ASSERT_EQ(errno, variant->expected_errno[i]);
tools/testing/selftests/net/bind_wildcard.c
775
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/bind_wildcard.c
781
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/can/test_raw_filter.c
349
ASSERT_EQ(ret, 0)
tools/testing/selftests/net/can/test_raw_filter.c
369
ASSERT_EQ(ret, 0)
tools/testing/selftests/net/can/test_raw_filter.c
381
ASSERT_EQ(ID, frame.can_id & CAN_SFF_MASK)
tools/testing/selftests/net/can/test_raw_filter.c
383
ASSERT_EQ(variant->testcase, frame.data[0])
tools/testing/selftests/net/can/test_raw_filter.c
386
ASSERT_EQ(frame.can_id & ~CAN_ERR_MASK,
tools/testing/selftests/net/can/test_raw_filter.c
85
ASSERT_EQ(ret, 0)
tools/testing/selftests/net/icmp_rfc4884.c
322
ASSERT_EQ(ret, 0) {
tools/testing/selftests/net/icmp_rfc4884.c
327
ASSERT_EQ(ret, 0) TH_LOG("Failed to bring up loopback interface");
tools/testing/selftests/net/icmp_rfc4884.c
609
ASSERT_EQ(poll_err(sock), 0);
tools/testing/selftests/net/icmp_rfc4884.c
631
ASSERT_EQ(is_invalid, expected_invalid) {
tools/testing/selftests/net/icmp_rfc4884.c
639
ASSERT_EQ(off, expected_off) {
tools/testing/selftests/net/icmp_rfc4884.c
660
ASSERT_EQ(err, 0) TH_LOG("Bind failed");
tools/testing/selftests/net/icmp_rfc4884.c
671
ASSERT_EQ(len, sent) TH_LOG("Sending packet failed");
tools/testing/selftests/net/ip_local_port_range.c
297
ASSERT_EQ(port, t->expected) TH_LOG("unexpected local port");
tools/testing/selftests/net/ip_local_port_range.c
332
ASSERT_EQ(port_set, 0xff) TH_LOG("expected all ports to be busy");
tools/testing/selftests/net/ip_local_port_range.c
344
ASSERT_EQ(errno, EADDRINUSE);
tools/testing/selftests/net/ip_local_port_range.c
382
ASSERT_EQ(port, 0) TH_LOG("getsockname failed");
tools/testing/selftests/net/ip_local_port_range.c
431
ASSERT_EQ(lo, 0) TH_LOG("unexpected low port");
tools/testing/selftests/net/ip_local_port_range.c
432
ASSERT_EQ(hi, 0) TH_LOG("unexpected high port");
tools/testing/selftests/net/ip_local_port_range.c
443
ASSERT_EQ(lo, 12345) TH_LOG("unexpected low port");
tools/testing/selftests/net/ip_local_port_range.c
444
ASSERT_EQ(hi, 54321) TH_LOG("unexpected high port");
tools/testing/selftests/net/ip_local_port_range.c
456
ASSERT_EQ(lo, 0) TH_LOG("unexpected low port");
tools/testing/selftests/net/ip_local_port_range.c
457
ASSERT_EQ(hi, 0) TH_LOG("unexpected high port");
tools/testing/selftests/net/netlink-dumps.c
125
ASSERT_EQ(n, 0);
tools/testing/selftests/net/netlink-dumps.c
128
ASSERT_EQ(n, 0);
tools/testing/selftests/net/netlink-dumps.c
131
ASSERT_EQ(n, 0);
tools/testing/selftests/net/netlink-dumps.c
138
ASSERT_EQ(n, sizeof(dump_neigh_bad));
tools/testing/selftests/net/netlink-dumps.c
209
ASSERT_EQ(n, sizeof(dump_policies));
tools/testing/selftests/net/netlink-dumps.c
229
ASSERT_EQ(n, sizeof(dump_policies));
tools/testing/selftests/net/netlink-dumps.c
245
ASSERT_EQ(n, sizeof(dump_policies));
tools/testing/selftests/net/proc_net_pktgen.c
119
ASSERT_EQ(r, 0) TH_LOG("CONFIG_NET_PKTGEN not enabled, module pktgen not loaded?");
tools/testing/selftests/net/proc_net_pktgen.c
128
ASSERT_EQ(len, sizeof(thr_cmd_add_loopback_0)) TH_LOG("device lo@0 already registered?");
tools/testing/selftests/net/reuseaddr_ports_exhausted.c
137
ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: %d.", euid[j]);
tools/testing/selftests/net/reuseaddr_ports_exhausted.c
142
ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: 0.");
tools/testing/selftests/net/reuseaddr_ports_exhausted.c
150
ASSERT_EQ(0, ret) TH_LOG("failed to listen.");
tools/testing/selftests/net/reuseaddr_ports_exhausted.c
64
ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEADDR.");
tools/testing/selftests/net/reuseaddr_ports_exhausted.c
67
ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEPORT.");
tools/testing/selftests/net/so_incoming_cpu.c
120
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
137
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
140
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
149
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
168
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
188
ASSERT_EQ(CPU_COUNT(&cpu_set), 1);
tools/testing/selftests/net/so_incoming_cpu.c
195
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
202
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
222
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/so_incoming_cpu.c
223
ASSERT_EQ(cpu, i);
tools/testing/selftests/net/so_incoming_cpu.c
230
ASSERT_EQ(total, nr_client);
tools/testing/selftests/net/so_incoming_cpu.c
269
ASSERT_EQ(client, -1);
tools/testing/selftests/net/so_incoming_cpu.c
66
ASSERT_EQ(ret, len);
tools/testing/selftests/net/so_incoming_cpu.c
71
ASSERT_EQ(unshare(CLONE_NEWNET), 0);
tools/testing/selftests/net/so_incoming_cpu.c
72
ASSERT_EQ(system("ip link set lo up"), 0);
tools/testing/selftests/net/tap.c
400
ASSERT_EQ(ret, off);
tools/testing/selftests/net/tap.c
412
ASSERT_EQ(ret, off);
tools/testing/selftests/net/tap.c
424
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/tap.c
425
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/net/tcp_port_share.c
118
ASSERT_EQ(unshare(CLONE_NEWNET), 0);
tools/testing/selftests/net/tcp_port_share.c
119
ASSERT_EQ(system("ip link set dev lo up"), 0);
tools/testing/selftests/net/tcp_port_share.c
120
ASSERT_EQ(system("ip addr add dev lo 2001:db8::1/32 nodad"), 0);
tools/testing/selftests/net/tcp_port_share.c
121
ASSERT_EQ(system("ip addr add dev lo 2001:db8::2/32 nodad"), 0);
tools/testing/selftests/net/tcp_port_share.c
122
ASSERT_EQ(system("ip addr add dev lo 2001:db8::3/32 nodad"), 0);
tools/testing/selftests/net/tcp_port_share.c
127
ASSERT_EQ(close(sc), 0);
tools/testing/selftests/net/tcp_port_share.c
144
ASSERT_EQ(setsockopt(ln, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
147
ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
148
ASSERT_EQ(listen(ln, 2), 0);
tools/testing/selftests/net/tcp_port_share.c
153
ASSERT_EQ(setsockopt(c1, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
156
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
159
ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
160
ASSERT_EQ(getsockname_port(c1), SRC_PORT);
tools/testing/selftests/net/tcp_port_share.c
165
ASSERT_EQ(setsockopt(pb, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
168
ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
173
ASSERT_EQ(setsockopt(c2, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
176
ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
179
ASSERT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str);
tools/testing/selftests/net/tcp_port_share.c
180
ASSERT_EQ(errno, EADDRNOTAVAIL) TH_LOG("%m");
tools/testing/selftests/net/tcp_port_share.c
183
ASSERT_EQ(close(pb), 0);
tools/testing/selftests/net/tcp_port_share.c
189
ASSERT_EQ(close(c2), 0);
tools/testing/selftests/net/tcp_port_share.c
190
ASSERT_EQ(close(c1), 0);
tools/testing/selftests/net/tcp_port_share.c
191
ASSERT_EQ(close(ln), 0);
tools/testing/selftests/net/tcp_port_share.c
206
ASSERT_EQ(setsockopt(ln, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
209
ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
210
ASSERT_EQ(listen(ln, 2), 0);
tools/testing/selftests/net/tcp_port_share.c
215
ASSERT_EQ(setsockopt(c1, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
218
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
221
ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
222
ASSERT_EQ(getsockname_port(c1), SRC_PORT);
tools/testing/selftests/net/tcp_port_share.c
225
ASSERT_EQ(disconnect(c1), 0) TH_LOG("disconnect: %m");
tools/testing/selftests/net/tcp_port_share.c
226
ASSERT_EQ(setsockopt(c1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
229
ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
234
ASSERT_EQ(setsockopt(pb, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
237
ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
239
ASSERT_EQ(close(pb), 0);
tools/testing/selftests/net/tcp_port_share.c
244
ASSERT_EQ(setsockopt(c2, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0);
tools/testing/selftests/net/tcp_port_share.c
247
ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str);
tools/testing/selftests/net/tcp_port_share.c
253
ASSERT_EQ(close(c2), 0);
tools/testing/selftests/net/tcp_port_share.c
254
ASSERT_EQ(close(c1), 0);
tools/testing/selftests/net/tcp_port_share.c
255
ASSERT_EQ(close(ln), 0);
tools/testing/selftests/net/tls.c
1266
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1270
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1273
ASSERT_EQ(strlen(test_str) + 1, send_len);
tools/testing/selftests/net/tls.c
129
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
131
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
134
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
137
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
146
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/net/tls.c
1467
ASSERT_EQ(!(n_readers % n_writers) || !(n_writers % n_readers), true);
tools/testing/selftests/net/tls.c
1476
ASSERT_EQ(write(fd, buf, file_sz), file_sz);
tools/testing/selftests/net/tls.c
1518
ASSERT_EQ(lseek(fd, 0, SEEK_SET), 0);
tools/testing/selftests/net/tls.c
153
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1642
ASSERT_EQ(strlen(test_str) + 1, send_len);
tools/testing/selftests/net/tls.c
1794
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1797
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1825
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1828
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1854
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
1862
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2482
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
251
ASSERT_EQ(strlen(test_str) + 1, send_len);
tools/testing/selftests/net/tls.c
2563
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2566
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2691
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2876
ASSERT_EQ(rec[0], 23);
tools/testing/selftests/net/tls.c
2877
ASSERT_EQ(rec[1], 0x3);
tools/testing/selftests/net/tls.c
2878
ASSERT_EQ(rec[2], 0x3);
tools/testing/selftests/net/tls.c
2916
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2920
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2928
ASSERT_EQ(send(cfd, tx, sizeof(tx), 0), sizeof(tx));
tools/testing/selftests/net/tls.c
2941
ASSERT_EQ(total_plaintext_rx, sizeof(tx));
tools/testing/selftests/net/tls.c
295
ASSERT_EQ(setsockopt(self->fd, SOL_TLS, TLS_TX, &tls12, tls12.len), 0);
tools/testing/selftests/net/tls.c
296
ASSERT_EQ(setsockopt(self->cfd, SOL_TLS, TLS_RX, &tls12, tls12.len), 0);
tools/testing/selftests/net/tls.c
2965
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2969
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
2972
ASSERT_EQ(send(cfd, tx, tx_partial, MSG_MORE), tx_partial);
tools/testing/selftests/net/tls.c
2980
ASSERT_EQ(ret, -1);
tools/testing/selftests/net/tls.c
2981
ASSERT_EQ(errno, EBUSY);
tools/testing/selftests/net/tls.c
2983
ASSERT_EQ(send(cfd, tx + tx_partial, sizeof(tx) - tx_partial, MSG_EOR),
tools/testing/selftests/net/tls.c
2996
ASSERT_EQ(total_plaintext_rx, sizeof(tx));
tools/testing/selftests/net/tls.c
3020
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3022
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3036
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3039
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3042
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3144
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3146
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3150
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3153
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3157
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3161
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/net/tls.c
3164
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3167
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3170
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3174
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
3202
ASSERT_EQ(bind(sfd, &addr, sizeof(addr)), 0);
tools/testing/selftests/net/tls.c
3203
ASSERT_EQ(listen(sfd, 10), 0);
tools/testing/selftests/net/tls.c
3204
ASSERT_EQ(getsockname(sfd, &addr, &len), 0);
tools/testing/selftests/net/tls.c
3205
ASSERT_EQ(connect(fd, &addr, sizeof(addr)), 0);
tools/testing/selftests/net/tls.c
3211
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/net/tls.c
3215
ASSERT_EQ(setsockopt(fd, SOL_TLS, TLS_TX, &tls12, tls12.len), 0);
tools/testing/selftests/net/tls.c
3218
ASSERT_EQ(setsockopt(cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")), 0);
tools/testing/selftests/net/tls.c
3219
ASSERT_EQ(setsockopt(cfd, SOL_TLS, TLS_RX, &tls12, tls12.len), 0);
tools/testing/selftests/net/tls.c
3248
ASSERT_EQ(bind(sfd, &addr, sizeof(addr)), 0);
tools/testing/selftests/net/tls.c
3249
ASSERT_EQ(listen(sfd, 10), 0);
tools/testing/selftests/net/tls.c
3250
ASSERT_EQ(getsockname(sfd, &addr, &len), 0);
tools/testing/selftests/net/tls.c
3251
ASSERT_EQ(connect(fd, &addr, sizeof(addr)), 0);
tools/testing/selftests/net/tls.c
3257
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/net/tls.c
3260
ASSERT_EQ(setsockopt(cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")), 0);
tools/testing/selftests/net/tls.c
3276
ASSERT_EQ(send(fd, buf, 1, 0), 1);
tools/testing/selftests/net/tls.c
3282
ASSERT_EQ(setsockopt(fd, SOL_TLS, TLS_TX, &tls, tls.len), 0);
tools/testing/selftests/net/tls.c
3283
ASSERT_EQ(setsockopt(cfd, SOL_TLS, TLS_RX, &tls, tls.len), 0);
tools/testing/selftests/net/tls.c
416
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
419
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
424
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tls.c
970
ASSERT_EQ(write(pipefds[1], sendbuf, sizeof(sendbuf)), sizeof(sendbuf));
tools/testing/selftests/net/tun.c
748
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
750
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
752
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
756
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
763
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
765
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
767
ASSERT_EQ(ret, 0);
tools/testing/selftests/net/tun.c
944
ASSERT_EQ(ret, off);
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
120
ASSERT_EQ(0, ret) TH_LOG("Can't set Legacy IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
123
ASSERT_EQ(PCITEST_IRQ_TYPE_INTX, ret) TH_LOG("Can't get Legacy IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
134
ASSERT_EQ(0, ret) TH_LOG("Can't set MSI IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
137
ASSERT_EQ(PCITEST_IRQ_TYPE_MSI, ret) TH_LOG("Can't get MSI IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
152
ASSERT_EQ(0, ret) TH_LOG("Can't set MSI-X IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
155
ASSERT_EQ(PCITEST_IRQ_TYPE_MSIX, ret) TH_LOG("Can't get MSI-X IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
206
ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
225
ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
244
ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
276
ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type");
tools/testing/selftests/pci_endpoint/pci_endpoint_test.c
78
ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type");
tools/testing/selftests/perf_events/mmap.c
182
ASSERT_EQ(munmap(self->region, REGION_SIZE), 0);
tools/testing/selftests/perf_events/mmap.c
184
ASSERT_EQ(close(self->fd), 0);
tools/testing/selftests/perf_events/mmap.c
193
ASSERT_EQ(mremap(ptr, size, HOLE_SIZE, MREMAP_MAYMOVE), MAP_FAILED);
tools/testing/selftests/perf_events/mmap.c
194
ASSERT_EQ(mremap(ptr + HOLE_SIZE, size, HOLE_SIZE, MREMAP_MAYMOVE), MAP_FAILED);
tools/testing/selftests/perf_events/mmap.c
195
ASSERT_EQ(mremap(ptr + size - HOLE_SIZE, HOLE_SIZE, size, MREMAP_MAYMOVE), MAP_FAILED);
tools/testing/selftests/perf_events/mmap.c
205
ASSERT_EQ(mremap(ptr + HOLE_SIZE, size - HOLE_SIZE, size - HOLE_SIZE,
tools/testing/selftests/perf_events/mmap.c
209
ASSERT_EQ(ptr, tmp);
tools/testing/selftests/perf_events/mmap.c
210
ASSERT_EQ(munmap(tmp, size), 0);
tools/testing/selftests/perf_events/mmap.c
228
ASSERT_EQ(mmap(self->ptr, HOLE_SIZE, PROT_READ | PROT_WRITE,
tools/testing/selftests/perf_events/mmap.c
230
ASSERT_EQ(mmap(self->ptr + HOLE_SIZE, HOLE_SIZE, PROT_READ | PROT_WRITE,
tools/testing/selftests/perf_events/mmap.c
232
ASSERT_EQ(mmap(self->ptr + size - HOLE_SIZE, HOLE_SIZE, PROT_READ | PROT_WRITE,
tools/testing/selftests/perf_events/remove_on_exec.c
106
ASSERT_EQ(signal_count, 0);
tools/testing/selftests/perf_events/remove_on_exec.c
107
ASSERT_EQ(ioctl(self->fd, PERF_EVENT_IOC_ENABLE, 0), 0);
tools/testing/selftests/perf_events/remove_on_exec.c
148
ASSERT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Child is running. */
tools/testing/selftests/perf_events/remove_on_exec.c
86
ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
130
ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
139
ASSERT_EQ(pthread_create(&self->threads[i], NULL, test_thread, &self->barrier), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
156
ASSERT_EQ(pthread_join(self->threads[i], NULL), 0);
tools/testing/selftests/perf_events/sigtrap_threads.c
232
ASSERT_EQ(pthread_join(self->threads[i], NULL), 0);
tools/testing/selftests/pid_namespace/pid_max.c
338
ASSERT_EQ(0, wait_for_pid(pid));
tools/testing/selftests/pid_namespace/pid_max.c
347
ASSERT_EQ(0, wait_for_pid(pid));
tools/testing/selftests/pid_namespace/pid_max.c
356
ASSERT_EQ(0, wait_for_pid(pid));
tools/testing/selftests/pid_namespace/regression_enomem.c
41
ASSERT_EQ(errno, ENOMEM);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
100
ASSERT_EQ(move_mount(fd_tree, "", self->fd_tmp, "", MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
107
ASSERT_EQ(ioctl(fd_pidfd_mnt, FS_IOC_GETVERSION, &self->gen2), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
112
ASSERT_EQ(close(fd_tree), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
113
ASSERT_EQ(close(fd_pidfd_mnt), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
35
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
42
ASSERT_EQ(ioctl(self->pidfd, FS_IOC_GETVERSION, &self->gen1), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
47
ASSERT_EQ(close(self->fd_tmp), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
49
ASSERT_EQ(umount2(self->template, 0), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
50
ASSERT_EQ(unlink(self->template), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
64
ASSERT_EQ(move_mount(fd_tree, "", self->fd_tmp, "", MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
67
ASSERT_EQ(close(fd_tree), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
81
ASSERT_EQ(ioctl(self->pidfd, FS_IOC_GETVERSION, &self->gen2), 0);
tools/testing/selftests/pidfd/pidfd_bind_mount.c
86
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
113
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
156
ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
158
ASSERT_EQ(fstat(self->child_pidfd1, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
163
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
166
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
171
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
174
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
179
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
182
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
203
ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
205
ASSERT_EQ(fstat(self->child_pidfd2, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
210
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
213
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
218
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
221
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
226
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
229
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
249
ASSERT_EQ(name_to_handle_at(self->pidfd, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
251
ASSERT_EQ(setns(self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
265
ASSERT_EQ(wait_for_pid(pid), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
285
ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
287
ASSERT_EQ(fstat(self->child_pidfd3, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
292
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
295
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
324
ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
326
ASSERT_EQ(fstat(self->child_pidfd3, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
331
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
334
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
363
ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
365
ASSERT_EQ(fstat(self->child_pidfd2, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
377
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
380
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
421
ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
443
ASSERT_EQ(errno, ENOTDIR);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
445
ASSERT_EQ(errno, ENOTDIR);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
490
ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH | AT_HANDLE_FID), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
492
ASSERT_EQ(fstat(self->child_pidfd2, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
497
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
500
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
518
ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
520
ASSERT_EQ(fstat(self->child_pidfd1, &st1), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
525
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
528
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
533
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
536
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
541
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
544
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
549
ASSERT_EQ(fstat(pidfd, &st2), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
552
ASSERT_EQ(close(pidfd), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
69
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
91
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_getfd_test.c
140
ASSERT_EQ(0, socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair)) {
tools/testing/selftests/pidfd/pidfd_getfd_test.c
165
ASSERT_EQ(sizeof(self->remote_fd), ret);
tools/testing/selftests/pidfd/pidfd_getfd_test.c
193
ASSERT_EQ(0, seteuid(UID_NOBODY));
tools/testing/selftests/pidfd/pidfd_getfd_test.c
195
ASSERT_EQ(1, send(self->sk, "P", 1, 0));
tools/testing/selftests/pidfd/pidfd_getfd_test.c
196
ASSERT_EQ(1, recv(self->sk, &c, 1, 0));
tools/testing/selftests/pidfd/pidfd_getfd_test.c
203
ASSERT_EQ(0, seteuid(0));
tools/testing/selftests/pidfd/pidfd_getfd_test.c
240
ASSERT_EQ(-1, sys_pidfd_getfd(0, 0, 1));
tools/testing/selftests/pidfd/pidfd_getfd_test.c
253
ASSERT_EQ(kill(self->pid, SIGKILL), 0);
tools/testing/selftests/pidfd/pidfd_getfd_test.c
254
ASSERT_EQ(poll(&fds, 1, 5000), 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
137
ASSERT_EQ(ioctl(self->child_pidfd1, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
140
ASSERT_EQ(ioctl(self->child_pidfd1, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
154
ASSERT_EQ(errno, ESRCH);
tools/testing/selftests/pidfd/pidfd_info_test.c
157
ASSERT_EQ(ioctl(self->child_pidfd2, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
161
ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL);
tools/testing/selftests/pidfd/pidfd_info_test.c
171
ASSERT_EQ(ioctl(self->child_pidfd3, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
174
ASSERT_EQ(ioctl(self->child_pidfd3, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
188
ASSERT_EQ(errno, ESRCH);
tools/testing/selftests/pidfd/pidfd_info_test.c
191
ASSERT_EQ(ioctl(self->child_pidfd4, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
195
ASSERT_EQ(WEXITSTATUS(info.exit_code), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
210
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
214
ASSERT_EQ(ioctl(self->child_pidfd2, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
218
ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL);
tools/testing/selftests/pidfd/pidfd_info_test.c
296
ASSERT_EQ(read_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread));
tools/testing/selftests/pidfd/pidfd_info_test.c
302
ASSERT_EQ(errno, ENOENT);
tools/testing/selftests/pidfd/pidfd_info_test.c
308
ASSERT_EQ(wait_for_pid(pid_poller), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
318
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
322
ASSERT_EQ(info.pid, pid_leader);
tools/testing/selftests/pidfd/pidfd_info_test.c
329
ASSERT_EQ(ioctl(pidfd_leader_thread, PIDFD_GET_INFO, &info2), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
333
ASSERT_EQ(info2.pid, pid_leader);
tools/testing/selftests/pidfd/pidfd_info_test.c
336
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
340
ASSERT_EQ(info.pid, pid_thread);
tools/testing/selftests/pidfd/pidfd_info_test.c
353
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
363
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
368
ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL);
tools/testing/selftests/pidfd/pidfd_info_test.c
375
ASSERT_EQ(ioctl(pidfd_leader_thread, PIDFD_GET_INFO, &info2), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
381
ASSERT_EQ(WTERMSIG(info2.exit_code), SIGKILL);
tools/testing/selftests/pidfd/pidfd_info_test.c
385
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
391
ASSERT_EQ(WTERMSIG(info.exit_code), SIGKILL);
tools/testing/selftests/pidfd/pidfd_info_test.c
476
ASSERT_EQ(read_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread));
tools/testing/selftests/pidfd/pidfd_info_test.c
483
ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread));
tools/testing/selftests/pidfd/pidfd_info_test.c
486
ASSERT_EQ(wait_for_pid(pid_poller), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
492
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
497
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
506
ASSERT_EQ(WEXITSTATUS(info.exit_code), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
513
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
516
ASSERT_EQ(info.pid, pid_leader);
tools/testing/selftests/pidfd/pidfd_info_test.c
530
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
538
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
598
ASSERT_EQ(read_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread));
tools/testing/selftests/pidfd/pidfd_info_test.c
631
ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread));
tools/testing/selftests/pidfd/pidfd_info_test.c
633
ASSERT_EQ(wait_for_pid(pid_poller), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
639
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
644
ASSERT_EQ(ioctl(pidfd_thread, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
653
ASSERT_EQ(WEXITSTATUS(info.exit_code), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
66
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
660
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
663
ASSERT_EQ(info.pid, pid_leader);
tools/testing/selftests/pidfd/pidfd_info_test.c
677
ASSERT_EQ(nevents, 1);
tools/testing/selftests/pidfd/pidfd_info_test.c
685
ASSERT_EQ(ioctl(pidfd_leader, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
714
ASSERT_EQ(ioctl(pidfd, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
753
ASSERT_EQ(ioctl(pidfd, PIDFD_GET_INFO, &info), 0);
tools/testing/selftests/pidfd/pidfd_info_test.c
91
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_setattr_test.c
51
ASSERT_EQ(errno, EOPNOTSUPP);
tools/testing/selftests/pidfd/pidfd_setattr_test.c
57
ASSERT_EQ(errno, EOPNOTSUPP);
tools/testing/selftests/pidfd/pidfd_setattr_test.c
66
ASSERT_EQ(errno, EACCES);
tools/testing/selftests/pidfd/pidfd_setns_test.c
148
ASSERT_EQ(sys_waitid(P_PID, self->child_pid_exited, NULL, WEXITED | WNOWAIT), 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
207
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_setns_test.c
261
ASSERT_EQ(read_nointr(ipc_sockets[0], &c, 1), 1);
tools/testing/selftests/pidfd/pidfd_setns_test.c
327
ASSERT_EQ(sys_pidfd_send_signal(self->child_pidfd1,
tools/testing/selftests/pidfd/pidfd_setns_test.c
329
ASSERT_EQ(sys_pidfd_send_signal(self->child_pidfd2,
tools/testing/selftests/pidfd/pidfd_setns_test.c
351
ASSERT_EQ(sys_waitid(P_PID, self->child_pid_exited, NULL, WEXITED), 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
352
ASSERT_EQ(sys_waitid(P_PID, self->child_pid1, NULL, WEXITED), 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
353
ASSERT_EQ(sys_waitid(P_PID, self->child_pid2, NULL, WEXITED), 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
427
ASSERT_EQ(in_same_namespace(self->nsfds[i], pid, info->name), 1);
tools/testing/selftests/pidfd/pidfd_setns_test.c
445
ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
457
ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
481
ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
493
ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
517
ASSERT_EQ(setns(self->child_pidfd_derived_nsfds1[i], info->flag), 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
529
ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
556
ASSERT_EQ(setns(self->child_pidfd1, flags), 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
574
ASSERT_EQ(in_same_namespace(nsfd, pid, info->name), 1) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
600
ASSERT_EQ(setns(self->child_pidfd1, flags), 0) {
tools/testing/selftests/pidfd/pidfd_wait.c
102
ASSERT_EQ(read(pfd[0], buf, 1), 1);
tools/testing/selftests/pidfd/pidfd_wait.c
109
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
110
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
111
ASSERT_EQ(info.si_code, CLD_STOPPED);
tools/testing/selftests/pidfd/pidfd_wait.c
112
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
114
ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGCONT, NULL, 0), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
116
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WCONTINUED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
117
ASSERT_EQ(write(pfd[1], "C", 1), 1);
tools/testing/selftests/pidfd/pidfd_wait.c
119
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
120
ASSERT_EQ(info.si_code, CLD_CONTINUED);
tools/testing/selftests/pidfd/pidfd_wait.c
121
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
123
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WUNTRACED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
124
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
125
ASSERT_EQ(info.si_code, CLD_STOPPED);
tools/testing/selftests/pidfd/pidfd_wait.c
126
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
128
ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGKILL, NULL, 0), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
130
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WEXITED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
131
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
132
ASSERT_EQ(info.si_code, CLD_KILLED);
tools/testing/selftests/pidfd/pidfd_wait.c
133
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
161
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/pidfd/pidfd_wait.c
167
ASSERT_EQ(errno, ECHILD);
tools/testing/selftests/pidfd/pidfd_wait.c
181
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/pidfd/pidfd_wait.c
195
ASSERT_EQ(errno, EAGAIN);
tools/testing/selftests/pidfd/pidfd_wait.c
203
ASSERT_EQ(ret, 0);
tools/testing/selftests/pidfd/pidfd_wait.c
205
ASSERT_EQ(fcntl(pidfd, F_SETFL, (flags & ~O_NONBLOCK)), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
207
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
208
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
209
ASSERT_EQ(info.si_code, CLD_STOPPED);
tools/testing/selftests/pidfd/pidfd_wait.c
210
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
212
ASSERT_EQ(sys_pidfd_send_signal(pidfd, SIGCONT, NULL, 0), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
214
ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WEXITED), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
215
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
216
ASSERT_EQ(info.si_code, CLD_EXITED);
tools/testing/selftests/pidfd/pidfd_wait.c
217
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
68
ASSERT_EQ(WIFEXITED(info.si_status), true);
tools/testing/selftests/pidfd/pidfd_wait.c
69
ASSERT_EQ(WEXITSTATUS(info.si_status), 0);
tools/testing/selftests/pidfd/pidfd_wait.c
72
ASSERT_EQ(info.si_signo, SIGCHLD);
tools/testing/selftests/pidfd/pidfd_wait.c
73
ASSERT_EQ(info.si_code, CLD_EXITED);
tools/testing/selftests/pidfd/pidfd_wait.c
74
ASSERT_EQ(info.si_pid, parent_tid);
tools/testing/selftests/pidfd/pidfd_wait.c
93
ASSERT_EQ(pipe(pfd), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
104
ASSERT_EQ(ret, 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
108
ASSERT_EQ(ret, strlen("persistent value"));
tools/testing/selftests/pidfd/pidfd_xattr_test.c
109
ASSERT_EQ(strcmp(buf, "persistent value"), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
113
ASSERT_EQ(strcmp(list, "trusted.persistent"), 0)
tools/testing/selftests/pidfd/pidfd_xattr_test.c
115
ASSERT_EQ(close(self->child_pidfd), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
124
ASSERT_EQ(ret, strlen("persistent value"));
tools/testing/selftests/pidfd/pidfd_xattr_test.c
125
ASSERT_EQ(strcmp(buf, "persistent value"), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
129
ASSERT_EQ(strcmp(list, "trusted.persistent"), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
60
ASSERT_EQ(ret, 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
68
ASSERT_EQ(ret, strlen(xattr_value));
tools/testing/selftests/pidfd/pidfd_xattr_test.c
69
ASSERT_EQ(strcmp(buf, xattr_value), 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
89
ASSERT_EQ(ret, 0);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
92
ASSERT_EQ(ret, -1);
tools/testing/selftests/pidfd/pidfd_xattr_test.c
93
ASSERT_EQ(errno, ENODATA);
tools/testing/selftests/proc/proc-maps-race.c
445
ASSERT_EQ(pthread_mutex_init(&mod_info->sync_lock, &mutex_attr), 0);
tools/testing/selftests/proc/proc-maps-race.c
448
ASSERT_EQ(pthread_cond_init(&mod_info->sync_cond, &cond_attr), 0);
tools/testing/selftests/proc/proc-maps-race.c
619
ASSERT_EQ(last_line_changed, first_line_changed);
tools/testing/selftests/proc/proc-pidns.c
84
ASSERT_EQ(waitpid(pid, &wstatus, 0), pid);
tools/testing/selftests/proc/proc-pidns.c
86
ASSERT_EQ(WEXITSTATUS(wstatus), 0);
tools/testing/selftests/ptrace/get_set_sud.c
28
ASSERT_EQ(0, sys_ptrace(PTRACE_TRACEME, 0, 0, 0)) {
tools/testing/selftests/ptrace/get_set_sud.c
43
ASSERT_EQ(ret, 0);
tools/testing/selftests/ptrace/get_set_sud.c
44
ASSERT_EQ(config.mode, PR_SYS_DISPATCH_OFF);
tools/testing/selftests/ptrace/get_set_sud.c
45
ASSERT_EQ(config.selector, 0);
tools/testing/selftests/ptrace/get_set_sud.c
46
ASSERT_EQ(config.offset, 0);
tools/testing/selftests/ptrace/get_set_sud.c
47
ASSERT_EQ(config.len, 0);
tools/testing/selftests/ptrace/get_set_sud.c
57
ASSERT_EQ(ret, 0);
tools/testing/selftests/ptrace/get_set_sud.c
63
ASSERT_EQ(ret, 0);
tools/testing/selftests/ptrace/get_set_sud.c
64
ASSERT_EQ(config.mode, PR_SYS_DISPATCH_ON);
tools/testing/selftests/ptrace/get_set_sud.c
65
ASSERT_EQ(config.selector, 0);
tools/testing/selftests/ptrace/get_set_sud.c
66
ASSERT_EQ(config.offset, 0x400000);
tools/testing/selftests/ptrace/get_set_sud.c
67
ASSERT_EQ(config.len, 0x1000);
tools/testing/selftests/ptrace/get_syscall_info.c
127
ASSERT_EQ(pid, wait(&status)) {
tools/testing/selftests/ptrace/get_syscall_info.c
133
ASSERT_EQ(0, WEXITSTATUS(status));
tools/testing/selftests/ptrace/get_syscall_info.c
148
ASSERT_EQ(0, ptrace_stop) {
tools/testing/selftests/ptrace/get_syscall_info.c
151
ASSERT_EQ(0, sys_ptrace(PTRACE_SETOPTIONS, pid, 0,
tools/testing/selftests/ptrace/get_syscall_info.c
160
ASSERT_EQ(expected_none_size, rc) {
tools/testing/selftests/ptrace/get_syscall_info.c
163
ASSERT_EQ(PTRACE_SYSCALL_INFO_NONE, info.op) {
tools/testing/selftests/ptrace/get_syscall_info.c
188
ASSERT_EQ(expected_entry_size, rc) {
tools/testing/selftests/ptrace/get_syscall_info.c
191
ASSERT_EQ(PTRACE_SYSCALL_INFO_ENTRY, info.op) {
tools/testing/selftests/ptrace/get_syscall_info.c
203
ASSERT_EQ(exp_args[0], info.entry.nr) {
tools/testing/selftests/ptrace/get_syscall_info.c
206
ASSERT_EQ(exp_args[1], info.entry.args[0]) {
tools/testing/selftests/ptrace/get_syscall_info.c
209
ASSERT_EQ(exp_args[2], info.entry.args[1]) {
tools/testing/selftests/ptrace/get_syscall_info.c
212
ASSERT_EQ(exp_args[3], info.entry.args[2]) {
tools/testing/selftests/ptrace/get_syscall_info.c
215
ASSERT_EQ(exp_args[4], info.entry.args[3]) {
tools/testing/selftests/ptrace/get_syscall_info.c
218
ASSERT_EQ(exp_args[5], info.entry.args[4]) {
tools/testing/selftests/ptrace/get_syscall_info.c
221
ASSERT_EQ(exp_args[6], info.entry.args[5]) {
tools/testing/selftests/ptrace/get_syscall_info.c
228
ASSERT_EQ(expected_exit_size, rc) {
tools/testing/selftests/ptrace/get_syscall_info.c
231
ASSERT_EQ(PTRACE_SYSCALL_INFO_EXIT, info.op) {
tools/testing/selftests/ptrace/get_syscall_info.c
243
ASSERT_EQ(exp_param->is_error,
tools/testing/selftests/ptrace/get_syscall_info.c
247
ASSERT_EQ(exp_param->rval, info.exit.rval) {
tools/testing/selftests/ptrace/get_syscall_info.c
263
ASSERT_EQ(0, sys_ptrace(PTRACE_SYSCALL, pid, 0, 0)) {
tools/testing/selftests/ptrace/get_syscall_info.c
268
ASSERT_EQ(ARRAY_SIZE(args) * 2, ptrace_stop);
tools/testing/selftests/ptrace/get_syscall_info.c
86
ASSERT_EQ(0, sys_ptrace(PTRACE_TRACEME, 0, 0, 0)) {
tools/testing/selftests/ptrace/get_syscall_info.c
89
ASSERT_EQ(0, kill(pid, SIGSTOP)) {
tools/testing/selftests/ptrace/set_syscall_info.c
109
ASSERT_EQ(PTRACE_SYSCALL_INFO_EXIT, info->op) {
tools/testing/selftests/ptrace/set_syscall_info.c
121
ASSERT_EQ(exp_exit->is_error, info->exit.is_error) {
tools/testing/selftests/ptrace/set_syscall_info.c
124
ASSERT_EQ(exp_exit->rval, info->exit.rval) {
tools/testing/selftests/ptrace/set_syscall_info.c
142
ASSERT_EQ(0, pipe(splice_in));
tools/testing/selftests/ptrace/set_syscall_info.c
143
ASSERT_EQ(0, pipe(splice_out));
tools/testing/selftests/ptrace/set_syscall_info.c
144
ASSERT_EQ(sizeof(dummy), write(splice_in[1], dummy, sizeof(dummy)));
tools/testing/selftests/ptrace/set_syscall_info.c
335
ASSERT_EQ(0, sys_ptrace(PTRACE_TRACEME, 0, 0, 0)) {
tools/testing/selftests/ptrace/set_syscall_info.c
338
ASSERT_EQ(0, kill(tracee_pid, SIGSTOP)) {
tools/testing/selftests/ptrace/set_syscall_info.c
379
ASSERT_EQ(tracee_pid, wait(&status)) {
tools/testing/selftests/ptrace/set_syscall_info.c
385
ASSERT_EQ(0, WEXITSTATUS(status)) {
tools/testing/selftests/ptrace/set_syscall_info.c
407
ASSERT_EQ(0, ptrace_stop) {
tools/testing/selftests/ptrace/set_syscall_info.c
410
ASSERT_EQ(0, sys_ptrace(PTRACE_SETOPTIONS, tracee_pid,
tools/testing/selftests/ptrace/set_syscall_info.c
433
ASSERT_EQ(expected_entry_size, rc) {
tools/testing/selftests/ptrace/set_syscall_info.c
444
ASSERT_EQ(0, sys_ptrace(PTRACE_SET_SYSCALL_INFO,
tools/testing/selftests/ptrace/set_syscall_info.c
458
ASSERT_EQ(expected_entry_size, rc) {
tools/testing/selftests/ptrace/set_syscall_info.c
472
ASSERT_EQ(expected_exit_size, rc) {
tools/testing/selftests/ptrace/set_syscall_info.c
482
ASSERT_EQ(0, sys_ptrace(PTRACE_SET_SYSCALL_INFO,
tools/testing/selftests/ptrace/set_syscall_info.c
496
ASSERT_EQ(expected_exit_size, rc) {
tools/testing/selftests/ptrace/set_syscall_info.c
511
ASSERT_EQ(0, sys_ptrace(PTRACE_SYSCALL, tracee_pid, 0, 0)) {
tools/testing/selftests/ptrace/set_syscall_info.c
516
ASSERT_EQ(ptrace_stop, ARRAY_SIZE(si) * 2);
tools/testing/selftests/ptrace/set_syscall_info.c
80
ASSERT_EQ(PTRACE_SYSCALL_INFO_ENTRY, info->op) {
tools/testing/selftests/ptrace/set_syscall_info.c
92
ASSERT_EQ(exp_nr, info->entry.nr) {
tools/testing/selftests/ptrace/set_syscall_info.c
96
ASSERT_EQ(exp_entry->args[i], info->entry.args[i]) {
tools/testing/selftests/ptrace/vmaccess.c
43
ASSERT_EQ(f, 0);
tools/testing/selftests/ptrace/vmaccess.c
60
ASSERT_EQ(errno, EAGAIN);
tools/testing/selftests/ptrace/vmaccess.c
61
ASSERT_EQ(k, -1);
tools/testing/selftests/ptrace/vmaccess.c
66
ASSERT_EQ(WIFEXITED(s), 1);
tools/testing/selftests/ptrace/vmaccess.c
67
ASSERT_EQ(WEXITSTATUS(s), 0);
tools/testing/selftests/ptrace/vmaccess.c
70
ASSERT_EQ(k, 0);
tools/testing/selftests/ptrace/vmaccess.c
72
ASSERT_EQ(k, pid);
tools/testing/selftests/ptrace/vmaccess.c
73
ASSERT_EQ(WIFSTOPPED(s), 1);
tools/testing/selftests/ptrace/vmaccess.c
74
ASSERT_EQ(WSTOPSIG(s), SIGSTOP);
tools/testing/selftests/ptrace/vmaccess.c
76
ASSERT_EQ(k, 0);
tools/testing/selftests/ptrace/vmaccess.c
78
ASSERT_EQ(k, pid);
tools/testing/selftests/ptrace/vmaccess.c
79
ASSERT_EQ(WIFEXITED(s), 1);
tools/testing/selftests/ptrace/vmaccess.c
80
ASSERT_EQ(WEXITSTATUS(s), 0);
tools/testing/selftests/ptrace/vmaccess.c
82
ASSERT_EQ(k, -1);
tools/testing/selftests/ptrace/vmaccess.c
83
ASSERT_EQ(errno, ECHILD);
tools/testing/selftests/ring-buffer/map_test.c
159
ASSERT_EQ(tracefs_reset(), 0);
tools/testing/selftests/ring-buffer/map_test.c
163
ASSERT_EQ(tracefs_cpu_map(&self->map_desc, cpu), 0);
tools/testing/selftests/ring-buffer/map_test.c
170
ASSERT_EQ(sched_setaffinity(0, sizeof(cpu_mask), &cpu_mask), 0);
tools/testing/selftests/ring-buffer/map_test.c
188
ASSERT_EQ(desc->meta->entries, 0);
tools/testing/selftests/ring-buffer/map_test.c
189
ASSERT_EQ(desc->meta->overrun, 0);
tools/testing/selftests/ring-buffer/map_test.c
190
ASSERT_EQ(desc->meta->read, 0);
tools/testing/selftests/ring-buffer/map_test.c
192
ASSERT_EQ(desc->meta->reader.id, 0);
tools/testing/selftests/ring-buffer/map_test.c
193
ASSERT_EQ(desc->meta->reader.read, 0);
tools/testing/selftests/ring-buffer/map_test.c
195
ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0);
tools/testing/selftests/ring-buffer/map_test.c
196
ASSERT_EQ(desc->meta->reader.id, 0);
tools/testing/selftests/ring-buffer/map_test.c
202
ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0);
tools/testing/selftests/ring-buffer/map_test.c
204
ASSERT_EQ(desc->meta->entries, 16);
tools/testing/selftests/ring-buffer/map_test.c
205
ASSERT_EQ(desc->meta->overrun, 0);
tools/testing/selftests/ring-buffer/map_test.c
206
ASSERT_EQ(desc->meta->read, 16);
tools/testing/selftests/ring-buffer/map_test.c
208
ASSERT_EQ(desc->meta->reader.id, 1);
tools/testing/selftests/ring-buffer/map_test.c
240
ASSERT_EQ(data, MAP_FAILED);
tools/testing/selftests/ring-buffer/map_test.c
246
ASSERT_EQ(data, MAP_FAILED);
tools/testing/selftests/ring-buffer/map_test.c
257
ASSERT_EQ(*(int *)(data + i), 0);
tools/testing/selftests/ring-buffer/map_test.c
308
ASSERT_EQ(tracefs_cpu_map(&map_desc, cpu), -EBUSY);
tools/testing/selftests/ring-buffer/map_test.c
316
ASSERT_EQ(tracefs_cpu_map(&map_desc, cpu), 0);
tools/testing/selftests/ring-buffer/map_test.c
318
ASSERT_EQ(__tracefs_write(TRACEFS_ROOT"/events/sched/sched_switch/trigger",
tools/testing/selftests/ring-buffer/map_test.c
320
ASSERT_EQ(__tracefs_write(TRACEFS_ROOT"/snapshot",
tools/testing/selftests/ring-buffer/map_test.c
55
ASSERT_EQ(__tracefs_write_int((path), (value)), 0)
tools/testing/selftests/ring-buffer/map_test.c
58
ASSERT_EQ(__tracefs_write((path), (value)), 0)
tools/testing/selftests/riscv/vector/v_initval.c
19
ASSERT_EQ(0, launch_test(NEXT_PROGRAM, 0, xtheadvector));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
154
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
155
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
160
ASSERT_EQ(0, ptrace(PTRACE_POKEDATA, pid, &chld_lock, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
164
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
165
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
198
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
210
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
267
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
268
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
273
ASSERT_EQ(0, ptrace(PTRACE_POKEDATA, pid, &chld_lock, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
277
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
278
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
289
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
309
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
311
ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
313
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
314
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
322
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
334
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
47
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
48
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
53
ASSERT_EQ(0, ptrace(PTRACE_POKEDATA, pid, &chld_lock, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
57
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
58
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
597
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
598
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
603
ASSERT_EQ(0, ptrace(PTRACE_POKEDATA, pid, &chld_lock, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
607
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
608
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
619
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
647
ASSERT_EQ(errno, EINVAL);
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
648
ASSERT_EQ(ret, -1);
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
652
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
73
ASSERT_EQ(ENODATA, errno);
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
74
ASSERT_EQ(-1, ret);
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
78
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
806
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
807
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
812
ASSERT_EQ(0, ptrace(PTRACE_POKEDATA, pid, &chld_lock, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
816
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
817
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
828
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
854
ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
861
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
863
ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
865
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
866
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
874
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
889
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
891
ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
893
ASSERT_EQ(0, ptrace(PTRACE_CONT, pid, NULL, NULL));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
894
ASSERT_EQ(pid, waitpid(pid, &status, 0));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
902
ASSERT_EQ(0, ptrace(PTRACE_GETREGSET, pid, NT_RISCV_VECTOR, &iov));
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
914
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/rseq/slice_test.c
127
ASSERT_EQ(sched_getaffinity(0, sizeof(affinity), &affinity), 0);
tools/testing/selftests/rseq/slice_test.c
136
ASSERT_EQ(sched_setaffinity(0, sizeof(affinity), &affinity), 0);
tools/testing/selftests/rseq/slice_test.c
140
ASSERT_EQ(rseq_register_current_thread(), 0);
tools/testing/selftests/rseq/slice_test.c
142
ASSERT_EQ(prctl(PR_RSEQ_SLICE_EXTENSION, PR_RSEQ_SLICE_EXTENSION_SET,
tools/testing/selftests/rseq/slice_test.c
149
ASSERT_EQ(pthread_create(&self->noise_thread, NULL, noise_thread, &self->noise_params), 0);
tools/testing/selftests/rtc/rtctest.c
165
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
194
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
253
ASSERT_EQ(RTC_ALARM_UNKNOWN, alarm_state);
tools/testing/selftests/rtc/rtctest.c
254
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
288
ASSERT_EQ(new, secs);
tools/testing/selftests/rtc/rtctest.c
325
ASSERT_EQ(RTC_ALARM_UNKNOWN, alarm_state);
tools/testing/selftests/rtc/rtctest.c
326
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
353
ASSERT_EQ(new, secs);
tools/testing/selftests/rtc/rtctest.c
385
ASSERT_EQ(RTC_ALARM_UNKNOWN, alarm_state);
tools/testing/selftests/rtc/rtctest.c
386
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
420
ASSERT_EQ(new, secs);
tools/testing/selftests/rtc/rtctest.c
455
ASSERT_EQ(RTC_ALARM_UNKNOWN, alarm_state);
tools/testing/selftests/rtc/rtctest.c
456
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/rtc/rtctest.c
483
ASSERT_EQ(new, secs);
tools/testing/selftests/seccomp/seccomp_bpf.c
1005
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1008
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1027
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1030
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1052
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1055
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1058
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1061
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1100
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1103
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1113
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1118
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1143
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1147
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1152
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1154
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1261
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1264
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1266
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1268
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1270
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1272
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1274
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1287
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1290
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1292
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1294
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1296
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1298
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1300
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1316
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1319
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1321
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1323
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1325
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1327
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1329
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1343
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1346
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1348
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1350
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1352
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1354
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1368
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1371
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1373
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1375
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1377
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1379
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1393
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1396
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1398
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1400
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1402
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1415
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1418
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1420
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1422
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1424
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1437
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1440
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1442
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1444
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1458
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1461
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1463
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1465
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1480
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1483
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1485
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1500
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1503
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1505
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1545
ASSERT_EQ(0, sigaction(SIGUSR1, &action, NULL));
tools/testing/selftests/seccomp/seccomp_bpf.c
1550
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1559
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1565
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1568
ASSERT_EQ(1, write(fd, "A", 1));
tools/testing/selftests/seccomp/seccomp_bpf.c
1569
ASSERT_EQ(0, close(fd));
tools/testing/selftests/seccomp/seccomp_bpf.c
1588
ASSERT_EQ(WIFCONTINUED(status), false);
tools/testing/selftests/seccomp/seccomp_bpf.c
1589
ASSERT_EQ(WIFSTOPPED(status), true);
tools/testing/selftests/seccomp/seccomp_bpf.c
1590
ASSERT_EQ(WSTOPSIG(status) & SIGTRAP, SIGTRAP) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1598
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1616
ASSERT_EQ(0, pipe(pipefd));
tools/testing/selftests/seccomp/seccomp_bpf.c
1641
ASSERT_EQ(0, kill(tracer, SIGUSR1));
tools/testing/selftests/seccomp/seccomp_bpf.c
1642
ASSERT_EQ(tracer, waitpid(tracer, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
1661
ASSERT_EQ(0x1001, msg) {
tools/testing/selftests/seccomp/seccomp_bpf.c
1717
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1720
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1733
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
1736
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2173
ASSERT_EQ(self->mytid, self->mypid);
tools/testing/selftests/seccomp/seccomp_bpf.c
2186
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2193
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2267
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2290
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2315
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
2333
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2385
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2441
ASSERT_EQ(1, bits);
tools/testing/selftests/seccomp/seccomp_bpf.c
2512
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2691
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2700
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2715
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2732
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2740
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2753
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2758
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2783
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2808
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2817
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2823
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2840
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2848
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2862
ASSERT_EQ(self->sibling[0].system_tid, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2868
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2885
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2893
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2908
ASSERT_EQ(ESRCH, errno) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2911
ASSERT_EQ(-1, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2917
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2935
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2958
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2964
ASSERT_EQ(ret, self->sibling[0].system_tid) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2979
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2993
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3004
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3016
ASSERT_EQ(0, ret); /* just us chickens */
tools/testing/selftests/seccomp/seccomp_bpf.c
3059
ASSERT_EQ(0, pipe(pipefd));
tools/testing/selftests/seccomp/seccomp_bpf.c
3112
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3113
ASSERT_EQ(true, WIFSTOPPED(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3114
ASSERT_EQ(0, ptrace(PTRACE_SETOPTIONS, child_pid, NULL,
tools/testing/selftests/seccomp/seccomp_bpf.c
3116
ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3117
ASSERT_EQ(1, write(pipefd[1], ".", 1));
tools/testing/selftests/seccomp/seccomp_bpf.c
3120
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3121
ASSERT_EQ(true, WIFSTOPPED(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3122
ASSERT_EQ(SIGTRAP, WSTOPSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3123
ASSERT_EQ(PTRACE_EVENT_SECCOMP, (status >> 16));
tools/testing/selftests/seccomp/seccomp_bpf.c
3124
ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg));
tools/testing/selftests/seccomp/seccomp_bpf.c
3125
ASSERT_EQ(0x100, msg);
tools/testing/selftests/seccomp/seccomp_bpf.c
3130
ASSERT_EQ(0, ptrace(PTRACE_GETSIGINFO, child_pid, NULL, &info));
tools/testing/selftests/seccomp/seccomp_bpf.c
3131
ASSERT_EQ(SIGTRAP, info.si_signo);
tools/testing/selftests/seccomp/seccomp_bpf.c
3132
ASSERT_EQ(SIGTRAP | (PTRACE_EVENT_SECCOMP << 8), info.si_code);
tools/testing/selftests/seccomp/seccomp_bpf.c
3139
ASSERT_EQ(0, kill(child_pid, SIGSTOP));
tools/testing/selftests/seccomp/seccomp_bpf.c
3140
ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3141
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3142
ASSERT_EQ(true, WIFSTOPPED(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3143
ASSERT_EQ(SIGSTOP, WSTOPSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3144
ASSERT_EQ(0, ptrace(PTRACE_GETSIGINFO, child_pid, NULL, &info));
tools/testing/selftests/seccomp/seccomp_bpf.c
3154
ASSERT_EQ(0, kill(child_pid, SIGCONT));
tools/testing/selftests/seccomp/seccomp_bpf.c
3155
ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3156
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3157
ASSERT_EQ(true, WIFSTOPPED(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3158
ASSERT_EQ(SIGCONT, WSTOPSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3159
ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3162
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3163
ASSERT_EQ(true, WIFSTOPPED(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3164
ASSERT_EQ(SIGTRAP, WSTOPSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
3165
ASSERT_EQ(PTRACE_EVENT_SECCOMP, (status >> 16));
tools/testing/selftests/seccomp/seccomp_bpf.c
3166
ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg));
tools/testing/selftests/seccomp/seccomp_bpf.c
3168
ASSERT_EQ(0x200, msg);
tools/testing/selftests/seccomp/seccomp_bpf.c
3177
ASSERT_EQ(0, uname(&utsbuf));
tools/testing/selftests/seccomp/seccomp_bpf.c
3189
ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3190
ASSERT_EQ(1, write(pipefd[1], "!", 1));
tools/testing/selftests/seccomp/seccomp_bpf.c
3193
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3222
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
3305
ASSERT_EQ(0, pipe(pipefd));
tools/testing/selftests/seccomp/seccomp_bpf.c
3324
ASSERT_EQ(1, write(pipefd[1], "1", 1));
tools/testing/selftests/seccomp/seccomp_bpf.c
3325
ASSERT_EQ(0, close(pipefd[1]));
tools/testing/selftests/seccomp/seccomp_bpf.c
3331
ASSERT_EQ(0, close(pipefd[1]));
tools/testing/selftests/seccomp/seccomp_bpf.c
3332
ASSERT_EQ(1, read(pipefd[0], &buf, 1));
tools/testing/selftests/seccomp/seccomp_bpf.c
3334
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid));
tools/testing/selftests/seccomp/seccomp_bpf.c
3335
ASSERT_EQ(pid, waitpid(pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
3357
ASSERT_EQ(0, kill(pid, SIGKILL));
tools/testing/selftests/seccomp/seccomp_bpf.c
3397
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3491
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3498
ASSERT_EQ(-1, user_notif_syscall(__NR_getppid, flags));
tools/testing/selftests/seccomp/seccomp_bpf.c
3499
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/seccomp/seccomp_bpf.c
3517
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3573
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3577
ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
363
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3645
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3681
ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3722
ASSERT_EQ(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3734
ASSERT_EQ(unshare(CLONE_NEWPID), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
374
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3754
ASSERT_EQ(unshare(CLONE_NEWPID), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3760
ASSERT_EQ(errno, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3766
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3777
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3799
ASSERT_EQ(unshare(CLONE_NEWUSER), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3837
ASSERT_EQ(seccomp(SECCOMP_GET_NOTIF_SIZES, 0, &sizes), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3852
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3873
ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3940
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3992
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3999
ASSERT_EQ(0, pipe(p));
tools/testing/selftests/seccomp/seccomp_bpf.c
401
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4051
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4152
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4160
ASSERT_EQ(listener, nextfd);
tools/testing/selftests/seccomp/seccomp_bpf.c
4178
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4252
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4253
ASSERT_EQ(addfd.id, req.id);
tools/testing/selftests/seccomp/seccomp_bpf.c
4265
ASSERT_EQ(filecmp(getpid(), pid, memfd, fd), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4279
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4280
ASSERT_EQ(addfd.id, req.id);
tools/testing/selftests/seccomp/seccomp_bpf.c
4312
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4328
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4330
ASSERT_EQ(prlimit(pid, RLIMIT_NOFILE, &lim, NULL), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4379
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4391
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SET_FLAGS,
tools/testing/selftests/seccomp/seccomp_bpf.c
4398
ASSERT_EQ(ret, USER_NOTIF_MAGIC) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4405
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4407
ASSERT_EQ(req.data.nr, __NR_getppid);
tools/testing/selftests/seccomp/seccomp_bpf.c
4413
ASSERT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4415
ASSERT_EQ(waitpid(pid, &status, 0), pid);
tools/testing/selftests/seccomp/seccomp_bpf.c
4416
ASSERT_EQ(status, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4436
ASSERT_EQ(0, cap_set_flag(caps, CAP_EFFECTIVE, 1, cap_list, CAP_CLEAR));
tools/testing/selftests/seccomp/seccomp_bpf.c
4437
ASSERT_EQ(0, cap_set_proc(caps));
tools/testing/selftests/seccomp/seccomp_bpf.c
4440
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
4441
ASSERT_EQ(0, prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_block_read));
tools/testing/selftests/seccomp/seccomp_bpf.c
4463
ASSERT_EQ(0, ptrace(PTRACE_ATTACH, self->pid, NULL, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
4464
ASSERT_EQ(self->pid, wait(&wstatus));
tools/testing/selftests/seccomp/seccomp_bpf.c
4465
ASSERT_EQ(-1, ptrace(PTRACE_SETOPTIONS, self->pid, NULL, PTRACE_O_SUSPEND_SECCOMP));
tools/testing/selftests/seccomp/seccomp_bpf.c
4468
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/seccomp/seccomp_bpf.c
4476
ASSERT_EQ(-1, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
4479
ASSERT_EQ(EPERM, errno);
tools/testing/selftests/seccomp/seccomp_bpf.c
4526
ASSERT_EQ(get_nth(_metadata, proc_path, 3, &line), 1);
tools/testing/selftests/seccomp/seccomp_bpf.c
4546
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
460
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
4649
ASSERT_EQ(sigemptyset(&new_action.sa_mask), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4652
ASSERT_EQ(0, ret)
tools/testing/selftests/seccomp/seccomp_bpf.c
4657
ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4721
ASSERT_EQ(sigemptyset(&new_action.sa_mask), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4724
ASSERT_EQ(0, ret)
tools/testing/selftests/seccomp/seccomp_bpf.c
4729
ASSERT_EQ(socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, sk_pair), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
474
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
4796
ASSERT_EQ(0, ret)
tools/testing/selftests/seccomp/seccomp_bpf.c
4845
ASSERT_EQ(0, ret)
tools/testing/selftests/seccomp/seccomp_bpf.c
4862
ASSERT_EQ(pipe(pipe_fds), 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4928
ASSERT_EQ(poll(&pfd, 1, 1000), 1)
tools/testing/selftests/seccomp/seccomp_bpf.c
4931
ASSERT_EQ(read(pipe_fds[0], &c, sizeof(c)), 1)
tools/testing/selftests/seccomp/seccomp_bpf.c
4942
ASSERT_EQ(ret, 0)
tools/testing/selftests/seccomp/seccomp_bpf.c
497
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
5001
ASSERT_EQ(0, ret) {
tools/testing/selftests/seccomp/seccomp_bpf.c
5025
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
5029
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
503
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
5224
ASSERT_EQ(0, run_probed_with_filter(&prog));
tools/testing/selftests/seccomp/seccomp_bpf.c
5241
ASSERT_EQ(0, run_probed_with_filter(&prog));
tools/testing/selftests/seccomp/seccomp_bpf.c
5263
ASSERT_EQ(0, run_probed_with_filter(&prog));
tools/testing/selftests/seccomp/seccomp_bpf.c
5286
ASSERT_EQ(0, run_probed_with_filter(&prog));
tools/testing/selftests/seccomp/seccomp_bpf.c
531
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
534
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
554
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
560
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
579
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
582
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
596
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
616
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
619
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
637
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
640
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
659
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
662
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
680
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
683
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
703
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
706
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
738
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
741
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
780
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
783
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
853
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
857
ASSERT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0,
tools/testing/selftests/seccomp/seccomp_bpf.c
866
ASSERT_EQ(0, seccomp(SECCOMP_SET_MODE_FILTER, 0, &prog_thread));
tools/testing/selftests/seccomp/seccomp_bpf.c
869
ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)false));
tools/testing/selftests/seccomp/seccomp_bpf.c
870
ASSERT_EQ(0, pthread_join(thread, &status));
tools/testing/selftests/seccomp/seccomp_bpf.c
871
ASSERT_EQ(SIBLING_EXIT_UNKILLED, (unsigned long)status);
tools/testing/selftests/seccomp/seccomp_bpf.c
874
ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)true));
tools/testing/selftests/seccomp/seccomp_bpf.c
875
ASSERT_EQ(0, pthread_join(thread, &status));
tools/testing/selftests/seccomp/seccomp_bpf.c
898
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
902
ASSERT_EQ(42, WEXITSTATUS(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
917
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
921
ASSERT_EQ(SIGSYS, WTERMSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
936
ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
942
ASSERT_EQ(SIGSYS, WTERMSIG(status));
tools/testing/selftests/seccomp/seccomp_bpf.c
959
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
987
ASSERT_EQ(0, ret);
tools/testing/selftests/seccomp/seccomp_bpf.c
990
ASSERT_EQ(0, ret);
tools/testing/selftests/sgx/main.c
484
ASSERT_EQ(eaccept_op.ret, 0);
tools/testing/selftests/sgx/main.c
485
ASSERT_EQ(self->run.function, EEXIT);
tools/testing/selftests/sgx/main.c
744
ASSERT_EQ(ret, -1);
tools/testing/selftests/sgx/main.c
807
ASSERT_EQ(ret, -1);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
219
ASSERT_EQ(0, setup_sigsys_handler());
tools/testing/selftests/syscall_user_dispatch/sud_test.c
225
ASSERT_EQ(0, ret) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
247
ASSERT_EQ(SYS_USER_DISPATCH, si_code) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
250
ASSERT_EQ(0, si_errno) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
275
ASSERT_EQ(0, ret);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
281
ASSERT_EQ(0, ret) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
305
ASSERT_EQ(0, ret) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
337
ASSERT_EQ(0, ret) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
344
ASSERT_EQ(0, ret) {
tools/testing/selftests/syscall_user_dispatch/sud_test.c
368
ASSERT_EQ(0, setup_sigsys_handler());
tools/testing/selftests/syscall_user_dispatch/sud_test.c
72
ASSERT_EQ(0, ret);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
75
ASSERT_EQ(0, ret) {
tools/testing/selftests/tdx/tdx_guest_test.c
145
ASSERT_EQ(0, ioctl(devfd, TDX_CMD_GET_REPORT0, &req));
tools/testing/selftests/tdx/tdx_guest_test.c
157
ASSERT_EQ(0, memcmp(&tdreport->reportmac.reportdata[0],
tools/testing/selftests/tdx/tdx_guest_test.c
160
ASSERT_EQ(0, close(devfd));
tools/testing/selftests/tty/tty_tiocsti_test.c
323
ASSERT_EQ(setgroups(0, NULL), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
326
ASSERT_EQ(setgid(1000), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
327
ASSERT_EQ(setuid(1000), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
333
ASSERT_EQ(cap_set_proc(empty), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
337
ASSERT_EQ(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
428
ASSERT_EQ(ioctl(self->pty_slave_fd, TIOCSCTTY, 0), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
437
ASSERT_EQ(has_cap_sys_admin(), variant->requires_cap);
tools/testing/selftests/tty/tty_tiocsti_test.c
463
ASSERT_EQ(openpty(&child_master_fd, &child_slave_fd, NULL, NULL, NULL),
tools/testing/selftests/tty/tty_tiocsti_test.c
470
ASSERT_EQ(ioctl(child_slave_fd, TIOCSCTTY, 0), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
479
ASSERT_EQ(send_fd_via_socket(sockfd, child_slave_fd), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
485
ASSERT_EQ(bytes_read, 1);
tools/testing/selftests/tty/tty_tiocsti_test.c
584
ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sockpair), 0);
tools/testing/selftests/tty/tty_tiocsti_test.c
630
ASSERT_EQ(bytes_written, 1);
tools/testing/selftests/tty/tty_tiocsti_test.c
637
ASSERT_EQ(waitpid(child_pid, &status, 0), child_pid);
tools/testing/selftests/uevent/uevent_filtering.c
375
ASSERT_EQ(0, ret);
tools/testing/selftests/uevent/uevent_filtering.c
390
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
404
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
419
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
433
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
448
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
463
ASSERT_EQ(0, ret) {
tools/testing/selftests/uevent/uevent_filtering.c
479
ASSERT_EQ(0, ret) {
tools/testing/selftests/user_events/abi_test.c
236
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
237
ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 0));
tools/testing/selftests/user_events/abi_test.c
238
ASSERT_EQ(0, change_event(true));
tools/testing/selftests/user_events/abi_test.c
239
ASSERT_EQ(1, self->check);
tools/testing/selftests/user_events/abi_test.c
240
ASSERT_EQ(0, change_event(false));
tools/testing/selftests/user_events/abi_test.c
241
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
244
ASSERT_EQ(0, change_event(true));
tools/testing/selftests/user_events/abi_test.c
245
ASSERT_EQ(1, self->check);
tools/testing/selftests/user_events/abi_test.c
246
ASSERT_EQ(0, reg_disable(&self->check, 0));
tools/testing/selftests/user_events/abi_test.c
247
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
250
ASSERT_EQ(0, change_event(true));
tools/testing/selftests/user_events/abi_test.c
251
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
252
ASSERT_EQ(0, change_event(false));
tools/testing/selftests/user_events/abi_test.c
257
ASSERT_EQ(0, reg_enable_flags(&self->check, sizeof(int), 0,
tools/testing/selftests/user_events/abi_test.c
259
ASSERT_EQ(0, reg_disable(&self->check, 0));
tools/testing/selftests/user_events/abi_test.c
265
ASSERT_EQ(0, event_delete());
tools/testing/selftests/user_events/abi_test.c
268
ASSERT_EQ(-1, reg_enable_flags(&self->check, sizeof(int), 0,
tools/testing/selftests/user_events/abi_test.c
277
ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 0));
tools/testing/selftests/user_events/abi_test.c
278
ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 31));
tools/testing/selftests/user_events/abi_test.c
280
ASSERT_EQ(0, reg_disable(&self->check, 0));
tools/testing/selftests/user_events/abi_test.c
281
ASSERT_EQ(0, reg_disable(&self->check, 31));
tools/testing/selftests/user_events/abi_test.c
285
ASSERT_EQ(0, reg_enable(&self->check_long, sizeof(long), 63));
tools/testing/selftests/user_events/abi_test.c
287
ASSERT_EQ(0, reg_disable(&self->check_long, 63));
tools/testing/selftests/user_events/abi_test.c
307
ASSERT_EQ(0, reg_enable_multi(&self->check, sizeof(int), 0,
tools/testing/selftests/user_events/abi_test.c
310
ASSERT_EQ(0, reg_enable_multi(&self->check, sizeof(int), 1,
tools/testing/selftests/user_events/abi_test.c
314
ASSERT_EQ(0, reg_enable_multi(&self->check, sizeof(int), 2,
tools/testing/selftests/user_events/abi_test.c
317
ASSERT_EQ(0, find_multi_event_dir("multi_first",
tools/testing/selftests/user_events/abi_test.c
320
ASSERT_EQ(0, find_multi_event_dir("multi_second",
tools/testing/selftests/user_events/abi_test.c
327
ASSERT_EQ(0, stat(first_dir, &buf));
tools/testing/selftests/user_events/abi_test.c
330
ASSERT_EQ(0, reg_disable(&self->check, 0));
tools/testing/selftests/user_events/abi_test.c
331
ASSERT_EQ(0, wait_for_delete(first_dir));
tools/testing/selftests/user_events/abi_test.c
334
ASSERT_EQ(0, stat(second_dir, &buf));
tools/testing/selftests/user_events/abi_test.c
337
ASSERT_EQ(0, reg_disable(&self->check, 1));
tools/testing/selftests/user_events/abi_test.c
339
ASSERT_EQ(0, stat(second_dir, &buf));
tools/testing/selftests/user_events/abi_test.c
340
ASSERT_EQ(0, reg_disable(&self->check, 2));
tools/testing/selftests/user_events/abi_test.c
341
ASSERT_EQ(0, wait_for_delete(second_dir));
tools/testing/selftests/user_events/abi_test.c
348
ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 0));
tools/testing/selftests/user_events/abi_test.c
349
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
368
ASSERT_EQ(0, change_event(true));
tools/testing/selftests/user_events/abi_test.c
371
ASSERT_EQ(0, WEXITSTATUS(i));
tools/testing/selftests/user_events/abi_test.c
378
ASSERT_EQ(0, WEXITSTATUS(i));
tools/testing/selftests/user_events/abi_test.c
379
ASSERT_EQ(1, self->check);
tools/testing/selftests/user_events/abi_test.c
380
ASSERT_EQ(0, change_event(false));
tools/testing/selftests/user_events/abi_test.c
381
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
406
ASSERT_EQ(0, reg_enable(&self->check, sizeof(int), 0));
tools/testing/selftests/user_events/abi_test.c
407
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/abi_test.c
413
ASSERT_EQ(0, change_event(true));
tools/testing/selftests/user_events/abi_test.c
415
ASSERT_EQ(0, WEXITSTATUS(i));
tools/testing/selftests/user_events/abi_test.c
417
ASSERT_EQ(0, change_event(false));
tools/testing/selftests/user_events/dyn_test.c
185
ASSERT_EQ(true, match); \
tools/testing/selftests/user_events/dyn_test.c
192
ASSERT_EQ(false, match); \
tools/testing/selftests/user_events/dyn_test.c
197
#define TEST_NPARSE(x) ASSERT_EQ(-1, parse(&self->check, x))
tools/testing/selftests/user_events/ftrace_test.c
252
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
253
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
256
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
257
ASSERT_EQ(EADDRINUSE, errno);
tools/testing/selftests/user_events/ftrace_test.c
261
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
262
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
267
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
268
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
273
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
274
ASSERT_EQ(EADDRINUSE, errno);
tools/testing/selftests/user_events/ftrace_test.c
283
ASSERT_EQ(1 << reg.enable_bit, self->check);
tools/testing/selftests/user_events/ftrace_test.c
287
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/ftrace_test.c
290
ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event"));
tools/testing/selftests/user_events/ftrace_test.c
291
ASSERT_EQ(EBUSY, errno);
tools/testing/selftests/user_events/ftrace_test.c
294
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
296
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
298
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg));
tools/testing/selftests/user_events/ftrace_test.c
303
ASSERT_EQ(true, wait_for_delete());
tools/testing/selftests/user_events/ftrace_test.c
329
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
330
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
331
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/ftrace_test.c
336
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
337
ASSERT_EQ(ENOENT, errno);
tools/testing/selftests/user_events/ftrace_test.c
342
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
343
ASSERT_EQ(EBADF, errno);
tools/testing/selftests/user_events/ftrace_test.c
360
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
361
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/user_events/ftrace_test.c
379
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
380
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
381
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/ftrace_test.c
388
ASSERT_EQ(1 << reg.enable_bit, self->check);
tools/testing/selftests/user_events/ftrace_test.c
418
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
419
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
429
ASSERT_EQ(0, madvise(anon, l, MADV_DONTNEED));
tools/testing/selftests/user_events/ftrace_test.c
431
ASSERT_EQ(0, munmap(anon, l));
tools/testing/selftests/user_events/ftrace_test.c
448
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/ftrace_test.c
449
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/ftrace_test.c
450
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/ftrace_test.c
461
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 1));
tools/testing/selftests/user_events/ftrace_test.c
462
ASSERT_EQ(EINVAL, errno);
tools/testing/selftests/user_events/ftrace_test.c
469
ASSERT_EQ(1 << reg.enable_bit, self->check);
tools/testing/selftests/user_events/ftrace_test.c
480
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
481
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/user_events/ftrace_test.c
485
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
486
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/user_events/ftrace_test.c
490
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
491
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/user_events/ftrace_test.c
495
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
496
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/user_events/ftrace_test.c
501
ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3));
tools/testing/selftests/user_events/ftrace_test.c
502
ASSERT_EQ(EFAULT, errno);
tools/testing/selftests/user_events/ftrace_test.c
511
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
516
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
521
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
526
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
531
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
536
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
541
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
546
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
551
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
556
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
561
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
566
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
571
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
576
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
581
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
586
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/ftrace_test.c
591
ASSERT_EQ(0, ret);
tools/testing/selftests/user_events/perf_test.c
149
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/perf_test.c
150
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/perf_test.c
151
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/perf_test.c
174
ASSERT_EQ(1 << reg.enable_bit, self->check);
tools/testing/selftests/user_events/perf_test.c
183
ASSERT_EQ(PERF_RECORD_SAMPLE, *val);
tools/testing/selftests/user_events/perf_test.c
188
ASSERT_EQ(event.field1, *val++);
tools/testing/selftests/user_events/perf_test.c
189
ASSERT_EQ(event.field2, *val++);
tools/testing/selftests/user_events/perf_test.c
195
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/perf_test.c
213
ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®));
tools/testing/selftests/user_events/perf_test.c
214
ASSERT_EQ(0, reg.write_index);
tools/testing/selftests/user_events/perf_test.c
215
ASSERT_EQ(0, self->check);
tools/testing/selftests/user_events/perf_test.c
236
ASSERT_EQ(1 << reg.enable_bit, self->check);
tools/testing/selftests/user_events/perf_test.c
242
ASSERT_EQ(PERF_RECORD_SAMPLE, *val);
tools/testing/selftests/user_events/perf_test.c
248
ASSERT_EQ(0, self->check);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
158
ASSERT_EQ(region.iova, to_iova(self->device, region.vaddr));
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
167
ASSERT_EQ(0, rc);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
180
ASSERT_EQ(0, mapping.pte);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
184
ASSERT_EQ(0, mapping.pte);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
185
ASSERT_EQ(0, mapping.pmd);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
194
ASSERT_EQ(rc, 0);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
195
ASSERT_EQ(unmapped, region.size);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
257
ASSERT_EQ(munmap(self->region.vaddr, self->mmap_size), 0);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
267
ASSERT_EQ(region->iova, to_iova(self->device, region->vaddr));
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
270
ASSERT_EQ(rc, 0);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
271
ASSERT_EQ(unmapped, region->size);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
281
ASSERT_EQ(region->iova, to_iova(self->device, region->vaddr));
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
284
ASSERT_EQ(rc, 0);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
285
ASSERT_EQ(unmapped, region->size);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
297
ASSERT_EQ(rc, -EOVERFLOW);
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
300
ASSERT_EQ(rc, -EOVERFLOW);
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
106
ASSERT_EQ(0, vfio_device_bind_iommufd_ioctl(self->cdev_fd, self->iommufd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
107
ASSERT_EQ(0, vfio_device_ioas_alloc_ioctl(self->iommufd, &alloc_args));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
108
ASSERT_EQ(0, vfio_device_attach_iommufd_pt_ioctl(self->cdev_fd, alloc_args.out_ioas_id));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
109
ASSERT_EQ(0, vfio_device_detach_iommufd_pt_ioctl(self->cdev_fd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
114
ASSERT_EQ(0, vfio_device_bind_iommufd_ioctl(self->cdev_fd, self->iommufd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
76
ASSERT_EQ(0, close(self->cdev_fd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
77
ASSERT_EQ(0, close(self->iommufd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
82
ASSERT_EQ(0, vfio_device_bind_iommufd_ioctl(self->cdev_fd, self->iommufd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
83
ASSERT_EQ(0, vfio_device_get_info_ioctl(self->cdev_fd));
tools/testing/selftests/vfio/vfio_iommufd_setup_test.c
98
ASSERT_EQ(0, vfio_device_bind_iommufd_ioctl(self->cdev_fd, self->iommufd));
tools/testing/selftests/vfio/vfio_pci_device_test.c
158
ASSERT_EQ(-1, read(msi_eventfd, &value, 8));
tools/testing/selftests/vfio/vfio_pci_device_test.c
159
ASSERT_EQ(EAGAIN, errno);
tools/testing/selftests/vfio/vfio_pci_device_test.c
163
ASSERT_EQ(8, read(msi_eventfd, &value, 8));
tools/testing/selftests/vfio/vfio_pci_device_test.c
164
ASSERT_EQ(1, value);
tools/testing/selftests/vfio/vfio_pci_device_test.c
50
ASSERT_EQ(0, close(__fd)); \
tools/testing/selftests/vfio/vfio_pci_device_test.c
90
ASSERT_EQ(NULL, bar->vaddr);
tools/testing/selftests/vfio/vfio_pci_driver_test.c
137
ASSERT_EQ(0, vfio_pci_driver_memcpy(self->device,
tools/testing/selftests/vfio/vfio_pci_driver_test.c
142
ASSERT_EQ(0, memcmp(self->src, self->dst, self->size));
tools/testing/selftests/vfio/vfio_pci_driver_test.c
17
ASSERT_EQ(-1, read(_eventfd, &__value, 8)); \
tools/testing/selftests/vfio/vfio_pci_driver_test.c
179
ASSERT_EQ(8, read(self->msi_fd, &value, 8));
tools/testing/selftests/vfio/vfio_pci_driver_test.c
18
ASSERT_EQ(EAGAIN, errno); \
tools/testing/selftests/vfio/vfio_pci_driver_test.c
180
ASSERT_EQ(1, value);
tools/testing/selftests/vfio/vfio_pci_driver_test.c
192
ASSERT_EQ(0, vfio_pci_driver_memcpy(self->device,
tools/testing/selftests/vfio/vfio_pci_driver_test.c
197
ASSERT_EQ(0, memcmp(self->src, self->dst, self->size));
tools/testing/selftests/vfio/vfio_pci_driver_test.c
205
ASSERT_EQ(8, read(self->msi_fd, &value, 8));
tools/testing/selftests/vfio/vfio_pci_driver_test.c
206
ASSERT_EQ(1, value);
tools/testing/selftests/vfio/vfio_pci_driver_test.c
232
ASSERT_EQ(0, vfio_pci_driver_memcpy_wait(self->device));
tools/testing/vma/tests/merge.c
1017
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1018
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1023
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1024
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1029
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1030
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1035
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1036
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1041
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1042
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1047
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1048
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
1050
ASSERT_EQ(cleanup_mm(&mm, &vmi), 3);
tools/testing/vma/tests/merge.c
1110
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
1111
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1112
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
1113
ASSERT_EQ(vma_prev->vm_end, 0x7000);
tools/testing/vma/tests/merge.c
1114
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
1119
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
1141
ASSERT_EQ(merge_new(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
1142
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1143
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
1144
ASSERT_EQ(vma_prev->vm_end, 0x7000);
tools/testing/vma/tests/merge.c
1145
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
1150
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
118
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
1186
ASSERT_EQ(expand_existing(&vmg), 0);
tools/testing/vma/tests/merge.c
1189
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
119
ASSERT_EQ(vma->vm_end, 0x3000);
tools/testing/vma/tests/merge.c
120
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
121
ASSERT_EQ(vma->vm_flags, vm_flags);
tools/testing/vma/tests/merge.c
1217
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
1218
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1220
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
1221
ASSERT_EQ(vma_prev->vm_end, 0x8000);
tools/testing/vma/tests/merge.c
1223
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1246
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
1247
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1249
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
1250
ASSERT_EQ(vma_prev->vm_end, 0x8000);
tools/testing/vma/tests/merge.c
1252
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1274
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
1275
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1277
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
1278
ASSERT_EQ(vma_prev->vm_end, 0x5000);
tools/testing/vma/tests/merge.c
1280
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1302
ASSERT_EQ(merge_existing(&vmg), vma_next);
tools/testing/vma/tests/merge.c
1303
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1305
ASSERT_EQ(vma_next->vm_start, 0x3000);
tools/testing/vma/tests/merge.c
1306
ASSERT_EQ(vma_next->vm_end, 0x8000);
tools/testing/vma/tests/merge.c
1308
ASSERT_EQ(vma_next->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1345
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
1346
ASSERT_EQ(vmg.state, VMA_MERGE_ERROR_NOMEM);
tools/testing/vma/tests/merge.c
1348
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1370
ASSERT_EQ(expand_existing(&vmg), -ENOMEM);
tools/testing/vma/tests/merge.c
1371
ASSERT_EQ(vmg.state, VMA_MERGE_ERROR_NOMEM);
tools/testing/vma/tests/merge.c
1373
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
1400
ASSERT_EQ(vma_merge_extend(&vmi, vma, 0x2000), vma);
tools/testing/vma/tests/merge.c
1401
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
1402
ASSERT_EQ(vma->vm_end, 0x4000);
tools/testing/vma/tests/merge.c
1403
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
1405
ASSERT_EQ(mm.map_count, 1);
tools/testing/vma/tests/merge.c
1438
ASSERT_EQ(vma, vma_prev);
tools/testing/vma/tests/merge.c
1439
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
1440
ASSERT_EQ(vma->vm_start, 0x3000);
tools/testing/vma/tests/merge.c
1441
ASSERT_EQ(vma->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
1442
ASSERT_EQ(vma->vm_pgoff, 3);
tools/testing/vma/tests/merge.c
1444
ASSERT_EQ(vma_iter_addr(&vmi), 0x3000);
tools/testing/vma/tests/merge.c
148
ASSERT_EQ(vma, init_vma);
tools/testing/vma/tests/merge.c
150
ASSERT_EQ(vma->vm_start, 0x1000);
tools/testing/vma/tests/merge.c
151
ASSERT_EQ(vma->vm_end, 0x2000);
tools/testing/vma/tests/merge.c
152
ASSERT_EQ(vma->vm_pgoff, 1);
tools/testing/vma/tests/merge.c
162
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
163
ASSERT_EQ(vma->vm_end, 0x1000);
tools/testing/vma/tests/merge.c
164
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
171
ASSERT_EQ(vma->vm_start, 0x1000);
tools/testing/vma/tests/merge.c
172
ASSERT_EQ(vma->vm_end, 0x2000);
tools/testing/vma/tests/merge.c
173
ASSERT_EQ(vma->vm_pgoff, 1);
tools/testing/vma/tests/merge.c
180
ASSERT_EQ(vma->vm_start, 0x2000);
tools/testing/vma/tests/merge.c
181
ASSERT_EQ(vma->vm_end, 0x3000);
tools/testing/vma/tests/merge.c
182
ASSERT_EQ(vma->vm_pgoff, 2);
tools/testing/vma/tests/merge.c
208
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
209
ASSERT_EQ(vma->vm_end, 0x3000);
tools/testing/vma/tests/merge.c
210
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
229
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
230
ASSERT_EQ(vma->vm_end, 0x1000);
tools/testing/vma/tests/merge.c
231
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
307
ASSERT_EQ(mm.map_count, 4);
tools/testing/vma/tests/merge.c
318
ASSERT_EQ(vma, vma_a);
tools/testing/vma/tests/merge.c
321
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
322
ASSERT_EQ(vma->vm_end, 0x4000);
tools/testing/vma/tests/merge.c
323
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
324
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
326
ASSERT_EQ(mm.map_count, 3);
tools/testing/vma/tests/merge.c
337
ASSERT_EQ(vma, vma_a);
tools/testing/vma/tests/merge.c
340
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
341
ASSERT_EQ(vma->vm_end, 0x5000);
tools/testing/vma/tests/merge.c
342
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
343
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
345
ASSERT_EQ(mm.map_count, 3);
tools/testing/vma/tests/merge.c
358
ASSERT_EQ(vma, vma_d);
tools/testing/vma/tests/merge.c
361
ASSERT_EQ(vma->vm_start, 0x6000);
tools/testing/vma/tests/merge.c
362
ASSERT_EQ(vma->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
363
ASSERT_EQ(vma->vm_pgoff, 6);
tools/testing/vma/tests/merge.c
364
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
366
ASSERT_EQ(mm.map_count, 3);
tools/testing/vma/tests/merge.c
378
ASSERT_EQ(vma, vma_a);
tools/testing/vma/tests/merge.c
381
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
382
ASSERT_EQ(vma->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
383
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
384
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
386
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/merge.c
398
ASSERT_EQ(vma, vma_c);
tools/testing/vma/tests/merge.c
401
ASSERT_EQ(vma->vm_start, 0xa000);
tools/testing/vma/tests/merge.c
402
ASSERT_EQ(vma->vm_end, 0xc000);
tools/testing/vma/tests/merge.c
403
ASSERT_EQ(vma->vm_pgoff, 0xa);
tools/testing/vma/tests/merge.c
404
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
406
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/merge.c
417
ASSERT_EQ(vma, vma_a);
tools/testing/vma/tests/merge.c
420
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
421
ASSERT_EQ(vma->vm_end, 0xc000);
tools/testing/vma/tests/merge.c
422
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
423
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
425
ASSERT_EQ(mm.map_count, 1);
tools/testing/vma/tests/merge.c
440
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
441
ASSERT_EQ(vma->vm_end, 0xc000);
tools/testing/vma/tests/merge.c
442
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
443
ASSERT_EQ(vma->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
450
ASSERT_EQ(count, 1);
tools/testing/vma/tests/merge.c
488
ASSERT_EQ(all_special_flags, VM_SPECIAL);
tools/testing/vma/tests/merge.c
512
ASSERT_EQ(vma, NULL);
tools/testing/vma/tests/merge.c
513
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
534
ASSERT_EQ(vma, NULL);
tools/testing/vma/tests/merge.c
535
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
629
ASSERT_EQ(merge_new(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
630
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
631
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
632
ASSERT_EQ(vma_prev->vm_end, 0x5000);
tools/testing/vma/tests/merge.c
633
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
635
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
661
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
662
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
664
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
683
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
689
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
691
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
714
ASSERT_EQ(merge_existing(&vmg), NULL);
tools/testing/vma/tests/merge.c
715
ASSERT_EQ(vmg.state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
717
ASSERT_EQ(cleanup_mm(&mm, &vmi), 3);
tools/testing/vma/tests/merge.c
740
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
741
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
742
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
743
ASSERT_EQ(vma_prev->vm_end, 0x5000);
tools/testing/vma/tests/merge.c
744
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
746
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
794
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
795
ASSERT_EQ(vma->vm_start, 0);
tools/testing/vma/tests/merge.c
796
ASSERT_EQ(vma->vm_end, 0x5000);
tools/testing/vma/tests/merge.c
797
ASSERT_EQ(vma->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
798
ASSERT_EQ(vma->vm_ops, &vm_ops);
tools/testing/vma/tests/merge.c
800
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/merge.c
84
ASSERT_EQ(vmg->state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
848
ASSERT_EQ(merge_existing(&vmg), vma_next);
tools/testing/vma/tests/merge.c
849
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
850
ASSERT_EQ(vma_next->vm_start, 0x3000);
tools/testing/vma/tests/merge.c
851
ASSERT_EQ(vma_next->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
852
ASSERT_EQ(vma_next->vm_pgoff, 3);
tools/testing/vma/tests/merge.c
853
ASSERT_EQ(vma_next->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
854
ASSERT_EQ(vma->vm_start, 0x2000);
tools/testing/vma/tests/merge.c
855
ASSERT_EQ(vma->vm_end, 0x3000);
tools/testing/vma/tests/merge.c
856
ASSERT_EQ(vma->vm_pgoff, 2);
tools/testing/vma/tests/merge.c
859
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/merge.c
864
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
882
ASSERT_EQ(merge_existing(&vmg), vma_next);
tools/testing/vma/tests/merge.c
883
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
884
ASSERT_EQ(vma_next->vm_start, 0x2000);
tools/testing/vma/tests/merge.c
885
ASSERT_EQ(vma_next->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
886
ASSERT_EQ(vma_next->vm_pgoff, 2);
tools/testing/vma/tests/merge.c
887
ASSERT_EQ(vma_next->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
889
ASSERT_EQ(mm.map_count, 1);
tools/testing/vma/tests/merge.c
894
ASSERT_EQ(cleanup_mm(&mm, &vmi), 1);
tools/testing/vma/tests/merge.c
90
ASSERT_EQ(vmg->state, VMA_MERGE_NOMERGE);
tools/testing/vma/tests/merge.c
914
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
915
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
916
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
917
ASSERT_EQ(vma_prev->vm_end, 0x6000);
tools/testing/vma/tests/merge.c
918
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
919
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
920
ASSERT_EQ(vma->vm_start, 0x6000);
tools/testing/vma/tests/merge.c
921
ASSERT_EQ(vma->vm_end, 0x7000);
tools/testing/vma/tests/merge.c
922
ASSERT_EQ(vma->vm_pgoff, 6);
tools/testing/vma/tests/merge.c
925
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/merge.c
930
ASSERT_EQ(cleanup_mm(&mm, &vmi), 2);
tools/testing/vma/tests/merge.c
949
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
950
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
951
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
952
ASSERT_EQ(vma_prev->vm_end, 0x7000);
tools/testing/vma/tests/merge.c
953
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
954
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
956
ASSERT_EQ(mm.map_count, 1);
tools/testing/vma/tests/merge.c
961
ASSERT_EQ(cleanup_mm(&mm, &vmi), 1);
tools/testing/vma/tests/merge.c
981
ASSERT_EQ(merge_existing(&vmg), vma_prev);
tools/testing/vma/tests/merge.c
982
ASSERT_EQ(vmg.state, VMA_MERGE_SUCCESS);
tools/testing/vma/tests/merge.c
983
ASSERT_EQ(vma_prev->vm_start, 0);
tools/testing/vma/tests/merge.c
984
ASSERT_EQ(vma_prev->vm_end, 0x9000);
tools/testing/vma/tests/merge.c
985
ASSERT_EQ(vma_prev->vm_pgoff, 0);
tools/testing/vma/tests/merge.c
986
ASSERT_EQ(vma_prev->anon_vma, &dummy_anon_vma);
tools/testing/vma/tests/merge.c
988
ASSERT_EQ(mm.map_count, 1);
tools/testing/vma/tests/merge.c
993
ASSERT_EQ(cleanup_mm(&mm, &vmi), 1);
tools/testing/vma/tests/mmap.c
16
ASSERT_EQ(addr, 0x300000);
tools/testing/vma/tests/mmap.c
22
ASSERT_EQ(addr, 0x250000);
tools/testing/vma/tests/mmap.c
28
ASSERT_EQ(addr, 0x303000);
tools/testing/vma/tests/mmap.c
34
ASSERT_EQ(addr, 0x24d000);
tools/testing/vma/tests/mmap.c
36
ASSERT_EQ(mm.map_count, 2);
tools/testing/vma/tests/mmap.c
40
ASSERT_EQ(vma->vm_end, 0x306000);
tools/testing/vma/tests/mmap.c
41
ASSERT_EQ(vma->vm_pgoff, 0x300);
tools/testing/vma/tests/mmap.c
43
ASSERT_EQ(vma->vm_end, 0x253000);
tools/testing/vma/tests/mmap.c
44
ASSERT_EQ(vma->vm_pgoff, 0x24d);
tools/testing/vma/tests/vma.c
108
ASSERT_EQ(memcmp(&empty, &flags, sizeof(flags)), 0);
tools/testing/vma/tests/vma.c
113
ASSERT_EQ(val, 0);
tools/testing/vma/tests/vma.c
134
ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0);
tools/testing/vma/tests/vma.c
141
ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0);
tools/testing/vma/tests/vma.c
149
ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0);
tools/testing/vma/tests/vma.c
157
ASSERT_EQ(memcmp(&flags, &comparison, sizeof(flags)), 0);
tools/testing/vma/tests/vma.c
36
ASSERT_EQ(vma_new->vm_start, 0);
tools/testing/vma/tests/vma.c
37
ASSERT_EQ(vma_new->vm_end, 0x2000);
tools/testing/vma/tests/vma.c
38
ASSERT_EQ(vma_new->vm_pgoff, 0);
tools/testing/vma/tests/vma.c
50
ASSERT_EQ(vma_new, vma_next);