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: Add inline function macro #2452

Merged
merged 26 commits into from
May 22, 2024
Merged

tetragon: Add inline function macro #2452

merged 26 commits into from
May 22, 2024

Conversation

olsajiri
Copy link
Contributor

we have all functions inline at the moment, unify the inline macro
as a preparation for using static programs in following changes

plus few other cleanups

olsajiri added 4 commits May 20, 2024 20:07
It's not used anymore.

Signed-off-by: Jiri Olsa <[email protected]>
It's not used anymore.

Signed-off-by: Jiri Olsa <[email protected]>
It's not used anymore.

Signed-off-by: Jiri Olsa <[email protected]>
Use proper __V61_BPF_PROG macro.

Signed-off-by: Jiri Olsa <[email protected]>
@olsajiri olsajiri added the release-note/minor This PR introduces a minor user-visible change label May 20, 2024
@olsajiri olsajiri marked this pull request as ready for review May 21, 2024 07:23
@olsajiri olsajiri requested a review from a team as a code owner May 21, 2024 07:23
@olsajiri olsajiri requested review from tixxdz and kkourt May 21, 2024 07:23
Copy link
Member

@tixxdz tixxdz left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@@ -2,6 +2,7 @@

#include "include/vmlinux.h"
#include "include/api.h"
#include "func.h"
Copy link
Member

Choose a reason for hiding this comment

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

maybe rename this to tg-compiler.h or compiler.h if it passes?

@olsajiri olsajiri force-pushed the pr/olsajiri/func_h branch from eede772 to 027f8a0 Compare May 22, 2024 12:21
olsajiri added 18 commits May 22, 2024 13:20
At the moment it has only FUNC_INLINE, but following
changes will add more macros.

Signed-off-by: Jiri Olsa <[email protected]>
@olsajiri olsajiri force-pushed the pr/olsajiri/func_h branch from 027f8a0 to 1ab9095 Compare May 22, 2024 13:20
@olsajiri olsajiri merged commit 4f4d24d into main May 22, 2024
41 of 42 checks passed
@olsajiri olsajiri deleted the pr/olsajiri/func_h branch May 22, 2024 14:06
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