On Tue, 2024-10-08 at 15:11 +0800, Hou Tao wrote: > From: Hou Tao <houtao1@xxxxxxxxxx> > > Add three success test cases to test the flattening of array of nested > struct. For these three tests, the number of special fields in map is > BTF_FIELDS_MAX, but the array is defined in structs with different > nested level. > > Add one failure test case for the flattening as well. In the test case, > the number of special fields in map is BTF_FIELDS_MAX + 1. It will make > btf_parse_fields() in map_create() return -E2BIG, the creation of map > will succeed, but the load of program will fail because the btf_record > is invalid for the map. > > Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...]