Using get_pid_task in general.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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