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
  • kernel
  • bpf
  • stackmap.c
Find file BlameHistoryPermalink
  • Song Liu's avatar
    bpf: Separate bpf_get_[stack|stackid] for perf events BPF · 7b04d6d6
    Song Liu authored Jul 23, 2020
    
    
    Calling get_perf_callchain() on perf_events from PEBS entries may cause
    unwinder errors. To fix this issue, the callchain is fetched early. Such
    perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY.
    
    Similarly, calling bpf_get_[stack|stackid] on perf_events from PEBS may
    also cause unwinder errors. To fix this, add separate version of these
    two helpers, bpf_get_[stack|stackid]_pe. These two hepers use callchain in
    bpf_perf_event_data_kern->data->callchain.
    
    Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20200723180648.1429892-2-songliubraving@fb.com
    7b04d6d6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7