Commit e1e1d69
committed
bpf, arm32: Simplify tailcall handling
- treat tailcall count as 32-bit for access and update
- change out_offset scope from file to function
- minor format/structure changes for consistency
Testing: (skipping fentry, fexit, freplace)
========
root@qemu-armhf:/usr/libexec/kselftests-bpf# modprobe test_bpf test_suite=test_tail_calls
test_bpf: #0 Tail call leaf jited:1 967 PASS
test_bpf: #1 Tail call 2 jited:1 1427 PASS
test_bpf: #2 Tail call 3 jited:1 2373 PASS
test_bpf: #3 Tail call 4 jited:1 2304 PASS
test_bpf: #4 Tail call load/store leaf jited:1 1684 PASS
test_bpf: #5 Tail call load/store jited:1 2249 PASS
test_bpf: torvalds#6 Tail call error path, max count reached jited:1 22538 PASS
test_bpf: torvalds#7 Tail call count preserved across function calls jited:1 1055668 PASS
test_bpf: torvalds#8 Tail call error path, NULL target jited:1 513 PASS
test_bpf: torvalds#9 Tail call error path, index out of range jited:1 392 PASS
test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
root@qemu-armhf:/usr/libexec/kselftests-bpf# ./test_progs -n 397/1-12,17-18,23-24,27-31
397/1 tailcalls/tailcall_1:OK
397/2 tailcalls/tailcall_2:OK
397/3 tailcalls/tailcall_3:OK
397/4 tailcalls/tailcall_4:OK
397/5 tailcalls/tailcall_5:OK
397/6 tailcalls/tailcall_6:OK
397/7 tailcalls/tailcall_bpf2bpf_1:OK
397/8 tailcalls/tailcall_bpf2bpf_2:OK
397/9 tailcalls/tailcall_bpf2bpf_3:OK
397/10 tailcalls/tailcall_bpf2bpf_4:OK
397/11 tailcalls/tailcall_bpf2bpf_5:OK
397/12 tailcalls/tailcall_bpf2bpf_6:OK
397/17 tailcalls/tailcall_poke:OK
397/18 tailcalls/tailcall_bpf2bpf_hierarchy_1:OK
397/23 tailcalls/tailcall_bpf2bpf_hierarchy_2:OK
397/24 tailcalls/tailcall_bpf2bpf_hierarchy_3:OK
397/27 tailcalls/tailcall_failure:OK
397/28 tailcalls/reject_tail_call_spin_lock:OK
397/29 tailcalls/reject_tail_call_rcu_lock:OK
397/30 tailcalls/reject_tail_call_preempt_lock:OK
397/31 tailcalls/reject_tail_call_ref:OK
397 tailcalls:OK
Summary: 1/21 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Tony Ambardar <[email protected]>1 parent 4ac7849 commit e1e1d69
1 file changed
+12
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
1406 | | - | |
1407 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
1408 | 1410 | | |
1409 | 1411 | | |
1410 | | - | |
1411 | | - | |
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
| 1417 | + | |
1418 | 1418 | | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
| 1419 | + | |
| 1420 | + | |
1423 | 1421 | | |
1424 | 1422 | | |
1425 | 1423 | | |
| |||
1444 | 1442 | | |
1445 | 1443 | | |
1446 | 1444 | | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1452 | 1448 | | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
| 1449 | + | |
| 1450 | + | |
1456 | 1451 | | |
1457 | 1452 | | |
1458 | 1453 | | |
| |||
1485 | 1480 | | |
1486 | 1481 | | |
1487 | 1482 | | |
| 1483 | + | |
1488 | 1484 | | |
1489 | 1485 | | |
1490 | | - | |
1491 | 1486 | | |
1492 | 1487 | | |
1493 | 1488 | | |
| |||
0 commit comments