Re: [PATCH bpf-next v1 3/3] selftests/bpf: Test stack depth stats without BTF subprog names
"Kumar Kartikeya Dwivedi" <[email protected]> Mon, 03 Aug 2026 00:00:14 +0200
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Sun Aug 2, 2026 at 11:54 PM CEST, Eduard Zingerman wrote: > 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. > Ack. >> else if (verbose) >> opts.log_level = verif_log_level | 4; /* force stats */ > > ...