Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftests/bpf: Add IRQ save/restore tests
Include tests that check for rejection in erroneous cases, like unbalanced IRQ-disabled counts, within and across subprogs, invalid IRQ flag state or input to kfuncs, behavior upon overwriting IRQ saved state on stack, interaction with sleepable kfuncs/helpers, global functions, and out of order restore. Include some success scenarios as well to demonstrate usage. kernel-patches#128/1 irq/irq_save_bad_arg:OK kernel-patches#128/2 irq/irq_restore_bad_arg:OK kernel-patches#128/3 irq/irq_restore_missing_2:OK kernel-patches#128/4 irq/irq_restore_missing_3:OK kernel-patches#128/5 irq/irq_restore_missing_3_minus_2:OK kernel-patches#128/6 irq/irq_restore_missing_1_subprog:OK kernel-patches#128/7 irq/irq_restore_missing_2_subprog:OK kernel-patches#128/8 irq/irq_restore_missing_3_subprog:OK kernel-patches#128/9 irq/irq_restore_missing_3_minus_2_subprog:OK kernel-patches#128/10 irq/irq_balance:OK kernel-patches#128/11 irq/irq_balance_n:OK kernel-patches#128/12 irq/irq_balance_subprog:OK kernel-patches#128/13 irq/irq_global_subprog:OK kernel-patches#128/14 irq/irq_restore_ooo:OK kernel-patches#128/15 irq/irq_restore_ooo_3:OK kernel-patches#128/16 irq/irq_restore_3_subprog:OK kernel-patches#128/17 irq/irq_restore_4_subprog:OK kernel-patches#128/18 irq/irq_restore_ooo_3_subprog:OK kernel-patches#128/19 irq/irq_restore_invalid:OK kernel-patches#128/20 irq/irq_save_invalid:OK kernel-patches#128/21 irq/irq_restore_iter:OK kernel-patches#128/22 irq/irq_save_iter:OK kernel-patches#128/23 irq/irq_flag_overwrite:OK kernel-patches#128/24 irq/irq_flag_overwrite_partial:OK kernel-patches#128/25 irq/irq_ooo_refs_array:OK kernel-patches#128/26 irq/irq_sleepable_helper:OK kernel-patches#128/27 irq/irq_sleepable_kfunc:OK kernel-patches#128 irq:OK Summary: 1/27 PASSED, 0 SKIPPED, 0 FAILED Acked-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
- Loading branch information