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

tetragon: Factor loader tailcall setup #2719

Merged
merged 7 commits into from
Aug 1, 2024
Merged

tetragon: Factor loader tailcall setup #2719

merged 7 commits into from
Aug 1, 2024

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Jul 23, 2024

move tail call setup to the program layer and get rid of the tail call maps name checking

Copy link

netlify bot commented Jul 23, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 9beadfc
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/66aa071aec3f4b000809b29a
😎 Deploy Preview https://deploy-preview-2719--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 Jul 24, 2024
@olsajiri olsajiri force-pushed the pr/olsajiri/tc branch 2 times, most recently from fe8b41b to 9beadfc Compare July 31, 2024 09:42
Passing tail call map directly instead of the name, so we can use
directly some of its fields in future instead of its name.

Signed-off-by: Jiri Olsa <[email protected]>
Tail call setup is property of the program, so let's move it in there.
This will make the tail call setup much easier in following changes.

Signed-off-by: Jiri Olsa <[email protected]>
Using program.SetTailCall for tracepoints and getting rid of
the map name check for tail call setup.

Signed-off-by: Jiri Olsa <[email protected]>
Using program.SetTailCall for kprobes and getting rid of
the map name check for tail call setup.

Signed-off-by: Jiri Olsa <[email protected]>
Using program.SetTailCall for uprobes and getting rid of
the map name check for tail call setup.

Signed-off-by: Jiri Olsa <[email protected]>
Using program.SetTailCall for lsm probes and getting rid of
the map name check for tail call setup.

Signed-off-by: Jiri Olsa <[email protected]>
Now when we have TcMap/Prefix in program.Program we can
use it directly and remove it from program.LoadOpts.

Signed-off-by: Jiri Olsa <[email protected]>
@olsajiri olsajiri marked this pull request as ready for review July 31, 2024 12:03
@olsajiri olsajiri requested a review from a team as a code owner July 31, 2024 12:03
@jrfastab jrfastab merged commit 07e5208 into main Aug 1, 2024
42 checks passed
@jrfastab jrfastab deleted the pr/olsajiri/tc branch August 1, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

3 participants