On Mon, Jan 23, 2023 at 6:52 AM Eduard Zingerman <eddyz87@xxxxxxxxx> wrote: > > From: Andrii Nakryiko <andrii@xxxxxxxxxx> > > Extend __flag attribute by allowing to specify one of the following: > * BPF_F_STRICT_ALIGNMENT > * BPF_F_ANY_ALIGNMENT > * BPF_F_TEST_RND_HI32 > * BPF_F_TEST_STATE_FREQ > * BPF_F_SLEEPABLE > * BPF_F_XDP_HAS_FRAGS > * Some numeric value > > Extend __msg attribute by allowing to specify multiple exepcted messages. > All messages are expected to be present in the verifier log in the > order of application. > > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > [ Eduard: added commit message, formatting ] > Signed-off-by: Eduard Zingerman <eddyz87@xxxxxxxxx> > --- hey Eduard, When you get a chance, can you please send this patch separately from the rest of the test_verifier rework patch set (it probably makes sense to also add #define __flags in this patch as well, given you are parsing its definition in this patch). This would great help me with my work that uses all this assembly-level test facilities. Thanks! > tools/testing/selftests/bpf/test_loader.c | 69 ++++++++++++++++++++--- > tools/testing/selftests/bpf/test_progs.h | 1 + > 2 files changed, 61 insertions(+), 9 deletions(-) > > diff --git a/tools/testing/selftests/bpf/test_loader.c b/tools/testing/selftests/bpf/test_loader.c > index 679efb3aa785..bf41390157bf 100644 > --- a/tools/testing/selftests/bpf/test_loader.c > +++ b/tools/testing/selftests/bpf/test_loader.c > @@ -13,12 +13,15 @@ > #define TEST_TAG_EXPECT_SUCCESS "comment:test_expect_success" > #define TEST_TAG_EXPECT_MSG_PFX "comment:test_expect_msg=" > #define TEST_TAG_LOG_LEVEL_PFX "comment:test_log_level=" > +#define TEST_TAG_PROG_FLAGS_PFX "comment:test_prog_flags=" > [...]