Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info: expose ksym info and func info by ProgramInfo #1576

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Asphaltt
Copy link
Contributor

@Asphaltt Asphaltt commented Oct 3, 2024

In pwru, I'm planning to improve the tracing info of bpf prog by mapping ksym addresses to bpf prog info, i.e. the function name of subprograms.

Therefore, it requires more prog info exposed from ProgramInfo, including ksym info and func info.

bpf_prog_info supports ksym info since commit torvalds/linux@dbecd73, and supports func info since commit torvalds/linux@838e969.

@Asphaltt Asphaltt requested a review from a team as a code owner October 3, 2024 14:08
@Asphaltt Asphaltt force-pushed the feature/prog_info branch 2 times, most recently from 0860e8a to 03e5d62 Compare October 4, 2024 12:44
Exposes additional metadata fields from `bpf_prog_info` to `ProgramInfo`:
- nr_jited_ksyms
- jited_ksyms

Meanwhile, expose ksym addresses from ProgramInfo.

`bpf_prog_info` supports ksym info since commit
[bpf: get kernel symbol addresses via syscall](torvalds/linux@dbecd73).

Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
`bpf_prog_info` supports func info since commit
[bpf: Introduce bpf_func_info](torvalds/linux@838e969).

Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant