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

Add missing program type feature probes #890

Merged
merged 2 commits into from
Dec 23, 2022

Conversation

rgo3
Copy link
Contributor

@rgo3 rgo3 commented Dec 15, 2022

With this PR we support feature probes for all program types the library currently supports.

Copy link
Collaborator

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting!

features/prog.go Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
btf/types.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
features/prog.go Outdated Show resolved Hide resolved
With this commit it is possible to set `btf.funcInfoMeta` on
asm.Instructions from outside the `btf` package.

Signed-off-by: Robin Gögge <[email protected]>
Hardcode bpf_init as the fentry probe target. It's been part of the kernel
since 4.4 (torvalds/linux@b2197755b263), has been completely untouched,
and has a simple signature. For probing a BPF program type, it makes sense
to target a symbol from the BPF subsystem.

Signed-off-by: Robin Gögge <[email protected]>
Signed-off-by: Timo Beckers <[email protected]>
@ti-mo ti-mo merged commit c7ba7f0 into cilium:master Dec 23, 2022
@rgo3 rgo3 deleted the add-missing-prog-probes branch December 23, 2022 11:15
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.

3 participants