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

maybe incorrect docstring for BPF.attach_raw_tracepoint method?? #5110

Open
zahash opened this issue Sep 16, 2024 · 0 comments
Open

maybe incorrect docstring for BPF.attach_raw_tracepoint method?? #5110

zahash opened this issue Sep 16, 2024 · 0 comments

Comments

@zahash
Copy link

zahash commented Sep 16, 2024

Run the bpf function denoted by fn_name every time the kernel tracepoint
specified by 'tp' is hit. The bpf function should be loaded as a
RAW_TRACEPOINT type. The fn_name is the kernel tracepoint name,
e.g., sched_switch, sys_enter_bind, etc.

it says that The fn_name is the kernel tracepoint name but shouldn't it be tp.
but even then it is already mentioned that tp is the tracepoint name in the previous sentence. ... every time the kernel tracepoint specified by 'tp' is hit

i'm a little confused.

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

No branches or pull requests

1 participant