Skip to content

tetragon: Header file and other cleanups#1184

Merged
kkourt merged 5 commits into
cilium:mainfrom
olsajiri:cleanups
Jul 6, 2023
Merged

tetragon: Header file and other cleanups#1184
kkourt merged 5 commits into
cilium:mainfrom
olsajiri:cleanups

Conversation

@olsajiri

@olsajiri olsajiri commented Jul 4, 2023

Copy link
Copy Markdown
Contributor

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 <jolsa@kernel.org>
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 <jolsa@kernel.org>
It's not used anywhere.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
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 <jolsa@kernel.org>
Keep just one BPF_F_CURRENT_CPU definition to prevent severe
headaches for tetragon developers.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@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

@ghost ghost left a comment

Copy link
Copy Markdown

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

@tpapagian tpapagian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

Comment thread bpf/include/vmlinux.h
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
Copy Markdown
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

3 participants