iovisor / iovisor/bcc

Using get_pid_task in general.

Open
#2,348 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

I have extracted a pid from a file and would like to find the task associated with it by calling something akin to get_pid_task.

I know that bpf calls get_pid_task in a restricted way in bpf_task_fd_query, but I can't find a more generalized method.

What's the most bcc like way of doing this?

If it does not exist id be happy to add the functionality.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the existing bpf_task_fd_query path and the get_pid_task usage described in the issue. Determine whether BCC already exposes a generalized pid-to-task operation and identify the appropriate interface; done means a clear, usable answer or a narrowly scoped implementation for the requested lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.