2022-06-28 16:01 UTC+0000 ~ Daniel Müller <deso@xxxxxxxxxx> > bpftool needs to know about the newly introduced BPF_CORE_TYPE_MATCHES > relocation for its 'gen min_core_btf' command to work properly in the > present of this relocation. > Specifically, we need to make sure to mark types and fields so that they > are present in the minimized BTF for "type match" checks to work out. > However, contrary to the existing btfgen_record_field_relo, we need to > rely on the BTF -- and not the spec -- to find fields. With this change > we handle this new variant correctly. The functionality will be tested > with follow on changes to BPF selftests, which already run against a > minimized BTF created with bpftool. > > Cc: Quentin Monnet <quentin@xxxxxxxxxxxxx> > Signed-off-by: Daniel Müller <deso@xxxxxxxxxx> Acked-by: Quentin Monnet <quentin@xxxxxxxxxxxxx> Thanks!