Skip to content

tetragon: Header file and other cleanups #1184

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

Merged
merged 5 commits into from
Jul 6, 2023
Merged

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Jul 4, 2023

Pushing cleanups in extra PR to make the following PR small.

olsajiri added 5 commits July 4, 2023 09:04
They are not used anymore.

Signed-off-by: Jiri Olsa <[email protected]>
Current helpers in bpf_events.h contain task related
helpers, so let's move them to bpf_task.h header.

This way we can use bpf_event.h header for event related
helpers in following changes.

Signed-off-by: Jiri Olsa <[email protected]>
Renaming hubble_msg.h header to bpf_event.h , so we get rid
of the hubble name and have tcpmon_map map definition in
bpf_event.h header.

Signed-off-by: Jiri Olsa <[email protected]>
Keep just one BPF_F_CURRENT_CPU definition to prevent severe
headaches for tetragon developers.

Signed-off-by: Jiri Olsa <[email protected]>
@olsajiri olsajiri marked this pull request as ready for review July 4, 2023 11:37
@olsajiri olsajiri requested a review from a team as a code owner July 4, 2023 11:37
@olsajiri olsajiri requested review from a user and kkourt July 4, 2023 11:37
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

looks good to me, but I'm not familiar with this code, so will leave to someone else to approve

Copy link
Member

@tpapagian tpapagian 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!

BPF_F_INDEX_MASK = -1,
BPF_F_CURRENT_CPU = -1,
BPF_F_INDEX_MASK = 0xffffffffULL,
BPF_F_CURRENT_CPU = BPF_F_INDEX_MASK,
Copy link
Contributor

Choose a reason for hiding this comment

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

Preventing severe headaches is appreciated! 🚀

@kkourt kkourt merged commit dd9233d into cilium:main Jul 6, 2023
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