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
You need to sign in or sign up before continuing.
  • linux
  • tools
  • testing
  • selftests
  • bpf
  • test_cpp.cpp
Find file BlameHistoryPermalink
  • Kui-Feng Lee's avatar
    bpftool: Cast pointers for shadow types explicitly. · c2a0257c
    Kui-Feng Lee authored Mar 11, 2024
    
    
    According to a report, skeletons fail to assign shadow pointers when being
    compiled with C++ programs. Unlike C doing implicit casting for void
    pointers, C++ requires an explicit casting.
    
    To support C++, we do explicit casting for each shadow pointer.
    
    Also add struct_ops_module.skel.h to test_cpp to validate C++
    compilation as part of BPF selftests.
    
    Signed-off-by: default avatarKui-Feng Lee <thinker.li@gmail.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
    Acked-by: default avatarQuentin Monnet <quentin@isovalent.com>
    Link: https://lore.kernel.org/bpf/20240312013726.1780720-1-thinker.li@gmail.com
    c2a0257c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7