This is more of a workaround rather than an actual fix, but my kernel (5.13.0-40-generic #45~20.04.1-Ubuntu SMP) doesn't seem to like it when we supply BTF ids while the actual size of the map keys/values is zero. This seems to be what causes the invalid argument OS error in #327, hence this will fix #327. Couldn't see any obvious negative effects.
This is more of a workaround rather than an actual fix, but my kernel (
5.13.0-40-generic #45~20.04.1-Ubuntu SMP
) doesn't seem to like it when we supply BTF ids while the actual size of the map keys/values is zero. This seems to be what causes the invalid argument OS error in #327, hence this will fix #327. Couldn't see any obvious negative effects.