Re: [PATCH bpf-next v1 3/3] selftests/bpf: Test stack depth stats without BTF subprog names

Eduard Zingerman <[email protected]> Sun, 02 Aug 2026 14:54:13 -0700
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
On Sun, 2026-08-02 at 01:03 +0200, Kumar Kartikeya Dwivedi wrote:

...

> @@ -1559,7 +1560,9 @@ static void do_test_single(struct bpf_test *test, bool unpriv,
>  		       test->errstr_unpriv : test->errstr;
>  
>  	opts.expected_attach_type = test->expected_attach_type;
> -	if (expected_ret == VERBOSE_ACCEPT)
> +	if (test->log_level)
> +		opts.log_level = test->log_level;
> +	else if (expected_ret == VERBOSE_ACCEPT)
>  		opts.log_level = 2;

I did this:

          else if (expected_ret == VERBOSE_ACCEPT)
  -               opts.log_level = 2;
  +               opts.log_level = 2 | 4;

And all test_verifier tests passed.
There is no need to a new option.

>  	else if (verbose)
>  		opts.log_level = verif_log_level | 4; /* force stats */

...