Commit 675d149
committed
selftests/bpf: Factor out arena test from compute_live_registers
Prior commit [0] bundled multiple tests for compute_live_registers(), with
only one being arena-specific. Since kernel arena code is compiled-in only
if supported, this results in run-time failure of *all* otherwise portable
tests, e.g. on armhf 32-bit:
run_subtest:PASS:obj_open_mem 0 nsec
libbpf: map 'arena': failed to create: -EINVAL
run_subtest:FAIL:unexpected_load_failure unexpected error: -22 (errno 22)
torvalds#68/1 compute_live_registers/assign_chain:FAIL
Previous arena test code was mainly added as separate source files [1],
allowing either their temporary removal as a workaround or, ultimately,
exclusion via Makefile to build successfully. Follow the prior approach
by separating out arena-specific test source.
0: ("selftests/bpf: test cases for compute_live_registers()")
1: arena_spin_lock.c, arena_atomics.c, arena_htab.c, arena_htab_asm.c,
arena_list.c, verifier_arena.c, verifier_arena_large.c
Signed-off-by: Tony Ambardar <[email protected]>1 parent b17d149 commit 675d149
File tree
3 files changed
+58
-40
lines changed- tools/testing/selftests/bpf
- prog_tests
- progs
3 files changed
+58
-40
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 0 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 15 | | |
23 | 16 | | |
24 | 17 | | |
| |||
370 | 363 | | |
371 | 364 | | |
372 | 365 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | 366 | | |
401 | 367 | | |
402 | 368 | | |
| |||
431 | 397 | | |
432 | 398 | | |
433 | 399 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | 400 | | |
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments