Commit 6c053ee
committed
DEBUG: selftests/bpf: Show lskel attach broken (ringbuf_overwrite)
Attaching BPF kprobe program via lskel fails silently on armhf 32-bit: the
program is never called when triggered and results in many strange test
failures, especially since testcode often neglects unhappy paths.
Before:
root@qemu-armhf: # ./test_progs -a ringbuf/ringbuf_overwrite_mode
Process ./test_progs created; pid = 125
ringbuf_overwrite_mode_subtest:PASS:skel_open 0 nsec
ringbuf_overwrite_mode_subtest:PASS:skel_load 0 nsec
ringbuf_overwrite_mode_subtest:PASS:skel_attach 0 nsec
ringbuf_overwrite_mode_subtest:PASS:reserve 1 0 nsec
ringbuf_overwrite_mode_subtest:PASS:reserve 2 0 nsec
ringbuf_overwrite_mode_subtest:FAIL:reserve 3 unexpected reserve 3: actual 0 != expected 1
ringbuf_overwrite_mode_subtest:PASS:reserve 4 0 nsec
ringbuf_overwrite_mode_subtest:PASS:reserve 5 0 nsec
ringbuf_overwrite_mode_subtest:FAIL:check_ring_size unexpected check_ring_size: actual 0 != expected 4096
ringbuf_overwrite_mode_subtest:FAIL:check_avail_size unexpected check_avail_size: actual 0 != expected 3040
ringbuf_overwrite_mode_subtest:PASS:check_cons_pos 0 nsec
ringbuf_overwrite_mode_subtest:FAIL:check_prod_pos unexpected check_prod_pos: actual 0 != expected 5096
ringbuf_overwrite_mode_subtest:FAIL:check_over_pos unexpected check_over_pos: actual 0 != expected 2056
torvalds#358/5 ringbuf/ringbuf_overwrite_mode:FAIL
torvalds#358 ringbuf:FAIL
After patch switching to use libbpf skel instead of lskel:
root@qemu-armhf: # ./test_progs -a ringbuf/ringbuf_overwrite_mode
torvalds#358/5 ringbuf/ringbuf_overwrite_mode:OK
torvalds#358 ringbuf:OK
Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>1 parent 88d10f8 commit 6c053ee
2 files changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
| 510 | + | |
512 | 511 | | |
513 | 512 | | |
514 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
0 commit comments