Skip to content

Support for BTF_KIND_DECL_TAG and BTF_KIND_TYPE_TAG #713

@lmb

Description

@lmb

Linux 5.18 added a two new BTF kinds DECL_TAG and TYPE_TAG. TYPE_TAG seems fine, the encoding for DECL_TAG looks like a headache.

Most relevant Linux commit: torvalds/linux@7472d5a

pahole only generates these kinds from v1.23 onwards:

clang-14 is also required: https://reviews.llvm.org/D111199

  • Parse / skip the new types
  • Omit encoding new types in Spec.marshal if the kernel doesn't understand them
  • Export types from btf

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions