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: Switch to BTF defined maps #367

Merged
merged 4 commits into from
Sep 7, 2022
Merged

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Aug 29, 2022

Switching to BTF defined maps. This allows to dump map values nicely, like:

# bpftool map dump pinned execve_map | head -10
[{
        "key": 431671,
        "value": {
            "key": {
                "pid": 431671,
                "pad": [0,0,0,0
                ],
                "ktime": 171231811545404
            },
            "pkey": {
...

Signed-off-by: Jiri Olsa [email protected]

@olsajiri olsajiri force-pushed the btf_maps branch 3 times, most recently from d12f47e to 67e4d38 Compare August 29, 2022 11:53
@olsajiri olsajiri marked this pull request as ready for review August 29, 2022 12:44
@olsajiri olsajiri requested a review from a team as a code owner August 29, 2022 12:44
@olsajiri olsajiri requested a review from kevsecurity August 29, 2022 12:44
@kkourt kkourt added the needs-rebase This PR needs to be rebased because it has merge conflicts. label Aug 31, 2022
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.

Checkpatch failures seem to be in bpf_helpers.h, so not much we can do about it.

@kkourt kkourt marked this pull request as draft September 5, 2022 08:51
@kkourt kkourt removed the needs-rebase This PR needs to be rebased because it has merge conflicts. label Sep 5, 2022
@olsajiri olsajiri marked this pull request as ready for review September 5, 2022 13:33
Changing base sensors to use BTF maps defitions.

Signed-off-by: Jiri Olsa <[email protected]>
Changing kprobe sensor to use BTF maps defitions.

Signed-off-by: Jiri Olsa <[email protected]>
Changing tracepoint sensor to use BTF maps defitions.

Signed-off-by: Jiri Olsa <[email protected]>
Changing retkprobe sensor to use BTF maps defitions.

Signed-off-by: Jiri Olsa <[email protected]>
@kkourt kkourt merged commit 314fc59 into cilium:main Sep 7, 2022
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