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
  • samples
  • bpf
  • net_shared.h
Find file BlameHistoryPermalink
  • Daniel T. Lee's avatar
    samples/bpf: convert to vmlinux.h with tracing programs · e7e6c774
    Daniel T. Lee authored Aug 18, 2023
    
    
    This commit replaces separate headers with a single vmlinux.h to
    tracing programs. Thanks to that, we no longer need to define the
    argument structure for tracing programs directly. For example, argument
    for the sched_switch tracpepoint (sched_switch_args) can be replaced
    with the vmlinux.h provided trace_event_raw_sched_switch.
    
    Additional defines have been added to the BPF program either directly
    or through the inclusion of net_shared.h. Defined values are
    PERF_MAX_STACK_DEPTH, IFNAMSIZ constants and __stringify() macro. This
    change enables the BPF program to access internal structures with BTF
    generated "vmlinux.h" header.
    
    Signed-off-by: default avatarDaniel T. Lee <danieltimlee@gmail.com>
    Link: https://lore.kernel.org/r/20230818090119.477441-3-danieltimlee@gmail.com
    
    
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    e7e6c774
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7