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
  • tools
  • include
  • uapi
  • linux
  • bpf.h
Find file BlameHistoryPermalink
  • Jiri Olsa's avatar
    bpf: Add cookie support to programs attached with kprobe multi link · ca74823c
    Jiri Olsa authored Mar 16, 2022
    
    
    Adding support to call bpf_get_attach_cookie helper from
    kprobe programs attached with kprobe multi link.
    
    The cookie is provided by array of u64 values, where each
    value is paired with provided function address or symbol
    with the same array index.
    
    When cookie array is provided it's sorted together with
    addresses (check bpf_kprobe_multi_cookie_swap). This way
    we can find cookie based on the address in
    bpf_get_attach_cookie helper.
    
    Suggested-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20220316122419.933957-7-jolsa@kernel.org
    ca74823c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7