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
  • task_iter.c
Find file BlameHistoryPermalink
  • Kui-Feng Lee's avatar
    bpf: Handle show_fdinfo for the parameterized task BPF iterators · 2c4fe44f
    Kui-Feng Lee authored Sep 26, 2022
    
    
    Show information of iterators in the respective files under
    /proc/<pid>/fdinfo/.
    
    For example, for a task file iterator with 1723 as the value of tid
    parameter, its fdinfo would look like the following lines.
    
        pos:    0
        flags:  02000000
        mnt_id: 14
        ino:    38
        link_type:      iter
        link_id:        51
        prog_tag:       a590ac96db22b825
        prog_id:        299
        target_name:    task_file
        task_type:      TID
        tid: 1723
    
    This patch add the last three fields.  task_type is the type of the
    task parameter.  TID means the iterator visit only the thread
    specified by tid.  The value of tid in the above example is 1723.  For
    the case of PID task_type, it means the iterator visits only threads
    of a process and will show the pid value of the process instead of a
    tid.
    
    Signed-off-by: default avatarKui-Feng Lee <kuifeng@fb.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Acked-by: default avatarYonghong Song <yhs@fb.com>
    Acked-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
    Link: https://lore.kernel.org/bpf/20220926184957.208194-4-kuifeng@fb.com
    2c4fe44f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7