Re: [PATCH bpf-next v2 3/3] selftests/bpf: Add tests for extending sleepable global subprogs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 1 Mar 2025 at 04:02, Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> wrote:
>
> Add tests for freplace behavior with the combination of sleepable
> and non-sleepable global subprogs. The changes_pkt_data selftest
> did all the hardwork, so simply rename it and include new support
> for more summarization tests for might_sleep bit.
>
> Sleepable extensions don't work yet, so add support but disable it for
> now, allow support to be tested once it's enabled (and ensure we will
> complain then).
>
> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>
> ---
> [...]
>
> +void test_summarization_freplace(void)
> +{
> +       struct {
> +               const char *main;
> +               const char *to_be_replaced;
> +               bool has_side_effect;
> +       } mains[2][4] = {
> +               {
> +                       { "main_changes_with_subprogs",         "changes_pkt_data",         true },
> +                       { "main_changes_with_subprogs",         "does_not_change_pkt_data", false },
> +                       { "main_changes",                       "main_changes",             true },
> +                       { "main_does_not_change",               "main_does_not_change",     false },
> +               },
> +               {
> +                       { "main_might_sleep_with_subprogs",     "might_sleep",              true },
> +                       { "main_might_sleep_with_subprogs",     "does_not_sleep",           false },
> +                       { "main_might_sleep",                   "might_sleep",              true },
> +                       { "main_does_not_sleep",                "does_not_sleep",           false },
> +               },

Sigh, I forgot to regen with git format-patch with the hunks fixing
this, it is obviously incorrect.
Let me resend again.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux