Skip to content

tetragon: Remove unused cgo code for reading perf events#1061

Merged
kkourt merged 1 commit into
cilium:mainfrom
olsajiri:bpf/remove_cgo
Jun 14, 2023
Merged

tetragon: Remove unused cgo code for reading perf events#1061
kkourt merged 1 commit into
cilium:mainfrom
olsajiri:bpf/remove_cgo

Conversation

@olsajiri

@olsajiri olsajiri commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

We switched to cilium/ebpf for reading perf ring buffer some
time ago [1], but we did not remove the old ring buffer code,
removing it now.

Keeping just PerfEventConfig type used by observer, attr objects
used by map_linux.go and few helper functions used by other code.

[1] 6dd4ee1 ("pkg/observer: remove old runEvents code")
Signed-off-by: Jiri Olsa jolsa@kernel.org

@olsajiri
olsajiri force-pushed the bpf/remove_cgo branch 2 times, most recently from 57a4e72 to f54eff1 Compare June 8, 2023 16:20
@olsajiri olsajiri changed the title fix tetragon: Remove unused cgo code for readign perf events Jun 8, 2023
@olsajiri olsajiri changed the title tetragon: Remove unused cgo code for readign perf events tetragon: Remove unused cgo code for reading perf events Jun 8, 2023
@olsajiri
olsajiri marked this pull request as ready for review June 8, 2023 17:02
@olsajiri
olsajiri requested a review from a team as a code owner June 8, 2023 17:02
@olsajiri
olsajiri requested review from jrfastab, kkourt, mtardy and tixxdz June 8, 2023 17:02
@mtardy

mtardy commented Jun 8, 2023

Copy link
Copy Markdown
Member

we might need to remove https://tetragon.cilium.io/docs/faq/#go-compiler-is-complaining-about-missing-symbols-in-pkgbpf, we can leave it here for now but remove it in the future, and also simplify tetra compilation on Linux.

@kevsecurity kevsecurity left a comment

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.

If it passes all the tests, LGTM!

We switched to cilium/ebpf for reading perf ring buffer some
time ago [1], but we did not remove the old ring buffer code,
removing it now.

Keeping just PerfEventConfig type used by observer, attr objects
used by map_linux.go and few helper functions used by other code.

[1] 6dd4ee1 ("pkg/observer: remove old runEvents code")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>

@mtardy mtardy 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.

Nice to remove that! Thanks!

we might need to remove https://tetragon.cilium.io/docs/faq/#go-compiler-is-complaining-about-missing-symbols-in-pkgbpf, we can leave it here for now but remove it in the future, and also simplify tetra compilation on Linux.

If you can just open an issue when this merges so that we don't forget about these items. 😇

@olsajiri

Copy link
Copy Markdown
Contributor Author

If you can just open an issue when this merges so that we don't forget about these items. innocent

sure ;-) #1077

@kkourt kkourt left a comment

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.

🚀

@kkourt
kkourt merged commit eb69bdc into cilium:main Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants