From: Andrii Nakryiko
Using %ld for printing out value of ptrdiff_t type is not portable
between 32-bit and 64-bit archs. This is causing compilation errors for
libbpf on 32-bit platform (discovered as part of an effort to integrate
libbpf into systemd ([0])). Proper formatter is %td, which is us
From: Andrii Nakryiko
Using %ld for printing out value of ptrdiff_t type is not portable
between 32-bit and 64-bit archs. This is causing compilation errors for
libbpf on 32-bit platform. Proper formatter is %td, which is used in
this patch.
Cc: Daniel Borkmann
Cc: Alexei Starovoitov
Cc: Yongh
From: Andrii Nakryiko
Add test case verifying that dedup happens (INTs are deduped in this
case) and VAR/DATASEC types are not deduped, but have their referenced
type IDs adjusted correctly.
Cc: Daniel Borkmann
Cc: Yonghong Song
Cc: Alexei Starovoitov
Signed-off-by: Andrii Nakryiko
---
tool
From: Andrii Nakryiko
This patchset adds support for new BTF_KIND_VAR and BTF_KIND_DATASEC BTF types
in btf_dedup() algorithm. VAR and DATASEC are not deduplicated and are always
considered to be unique, but they require referenced type IDs adjustment.
Patch #1 adds VAR/DATASEC pass-through supp
From: Andrii Nakryiko
This patch adds support for VAR and DATASEC in btf_dedup(). VAR/DATASEC
are never deduplicated, but they need to be processed anyway as types
they refer to might need to be remapped due to deduplication and
compaction.
Cc: Daniel Borkmann
Cc: Yonghong Song
Cc: Alexei Star
From: Andrii Nakryiko
When CONFIG_DEBUG_INFO_BTF is enabled but available version of pahole is too
old to support BTF generation, build script is supposed to emit warning and
proceed with the build. Due to using exit instead of return from BASH function,
existing handling code prematurely exits e
From: Andrii Nakryiko
This patch adds new config option to trigger generation of BTF type
information from DWARF debuginfo for vmlinux and kernel modules through
pahole, which in turn relies on libbpf for btf_dedup() algorithm.
The intent is to record compact type information of all types used
i
From: Andrii Nakryiko
btf_dedup_is_equiv() used to compare btf_type->info fields, before doing
kind-specific equivalence check. This comparsion implicitly verified
that candidate and canonical types are of the same kind. With enum fwd
resolution logic this check couldn't be done generically anymo
From: Andrii Nakryiko
This patch adds specific test exposing bug in btf_dedup_is_equiv() when
comparing candidate VOID type to a non-VOID canonical type. It's
important for canonical type to be anonymous, otherwise name equality
check will do the right thing and will exit early.
Signed-off-by: A
From: Andrii Nakryiko
This patch set fixes bug in btf_dedup_is_equiv() check mishandling equivalence
comparison between VOID kind in candidate type graph versus anonymous non-VOID
kind in canonical type graph.
Patch #1 fixes bug, by comparing candidate and canonical kinds for equality,
before pr
10 matches
Mail list logo