On Mon, Feb 5, 2024 at 10:21 AM Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > 3) btf__dedup() will deduplicate everything, so that only unique type > definitions remain. > Since minimization only keeps used struct and union members, couldn't you have two internal types from different modules which conflict and end up using the wrong offset? Example: in module M: struct S { ... // other unused members int x; // offset 12 (for example) } in module N: struct S { ... // other unused members int x; // offset 20 (something different from S.x in module M) }