Skip to content
New issue

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

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

Already on GitHub? # to your account

tetragon: Allow multiple symbol instances in kprobe spec #3121

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

olsajiri
Copy link
Contributor

it's ok for non kprobe-multi specs and we retrn error in kprobe-multi mode

Fixes: #2947

Copy link

netlify bot commented Nov 15, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit d2c2461
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/67374ff9140d8b0008b37526
😎 Deploy Preview https://deploy-preview-3121--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@olsajiri olsajiri added the release-note/minor This PR introduces a minor user-visible change label Nov 15, 2024
@olsajiri olsajiri marked this pull request as ready for review November 15, 2024 17:02
@olsajiri olsajiri requested a review from a team as a code owner November 15, 2024 17:02
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Left a minor comment, but otherwise LGTM.
Thanks!

Kornilios reported issue when having same symbol defined inside
tracing policy.

We can address that in NON kprobe-multi mode and add instance sufix
to the program name and hence bpffs program directory, and that
separation resolves the issue.

But this won't work for kprobe-multi, because we have just single
program that can't be attached twice on single function. So allowing
this only for non kprobe-multi mode.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Make sure we fail when having multiple symbol instances in
kprobe multi mode and that we work properly in NON kprobe
multi mode.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@olsajiri olsajiri merged commit 1d48cc4 into main Nov 19, 2024
39 checks passed
@olsajiri olsajiri deleted the pr/olsajiri/fixes branch November 19, 2024 14:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
release-note/minor This PR introduces a minor user-visible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

policies with the same symbols are broken
2 participants