Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • Makefile.modfinal
Find file BlameHistoryPermalink
  • Alan Maguire's avatar
    kbuild,bpf: Add module-specific pahole flags for distilled base BTF · 46fb0b62
    Alan Maguire authored Jun 20, 2024
    
    
    Support creation of module BTF along with distilled base BTF;
    the latter is stored in a .BTF.base ELF section and supplements
    split BTF references to base BTF with information about base types,
    allowing for later relocation of split BTF with a (possibly
    changed) base.  resolve_btfids detects the presence of a .BTF.base
    section and will use it instead of the base BTF it is passed in
    BTF id resolution.
    
    Modules will be built with a distilled .BTF.base section for external
    module build, i.e.
    
    make -C. -M=path2/module
    
    ...while in-tree module build as part of a normal kernel build will
    not generate distilled base BTF; this is because in-tree modules
    change with the kernel and do not require BTF relocation for the
    running vmlinux.
    
    Signed-off-by: default avatarAlan Maguire <alan.maguire@oracle.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Reviewed-by: default avatarEduard Zingerman <eddyz87@gmail.com>
    Link: https://lore.kernel.org/bpf/20240620091733.1967885-6-alan.maguire@oracle.com
    46fb0b62
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7