On 2/28/24 4:02 PM, Andrii Nakryiko wrote:
Also, what would happen when two tests would set struct_ops for same attachment point?I'm not sure, Martin?
The kernel bpf struct_ops infra can handle it. For example, different userspace processes may register bpf-tcp-cc in parallel also. It is a matter of the subsystem (tcp in the bpf-tcp-cc case) can handle it or not.
In the testmod case, it will be bpf_dummy_reg[2] and nothing in there is stopping parallel run afaict.