Skip to content

tetragon: we only need to find the BTF file skip creating it#961

Merged
jrfastab merged 1 commit into
mainfrom
pr/jrfastab/btfmem
May 1, 2023
Merged

tetragon: we only need to find the BTF file skip creating it#961
jrfastab merged 1 commit into
mainfrom
pr/jrfastab/btfmem

Conversation

@jrfastab

Copy link
Copy Markdown
Contributor

Creating BTF obj consumes 30MB of data we really only need to find the file to feed to cilium/ebpf.

Creating BTF obj consumes 30MB of data we really only need to find the file
to feed to cilium/ebpf. Because we primarily use cilium/ebpf now for loading
lets only create the actual object when GetCachedBTF is called. This way
we can maintain the lifetime of the object and release it.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
@jrfastab
jrfastab requested a review from a team as a code owner April 29, 2023 01:18
@jrfastab
jrfastab requested a review from tpapagian April 29, 2023 01:18
@netlify

netlify Bot commented Apr 29, 2023

Copy link
Copy Markdown

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit a5d9d3e
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/644c70673910bb00071152bb
😎 Deploy Preview https://deploy-preview-961--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jrfastab
jrfastab force-pushed the pr/jrfastab/btfmem branch from a5d9d3e to 8ebdf66 Compare April 29, 2023 01:26
Comment thread pkg/btf/btf.go Outdated

@michi-covalent michi-covalent 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.

😇

@jrfastab
jrfastab force-pushed the pr/jrfastab/btfmem branch from 8ebdf66 to 4e893bc Compare April 30, 2023 04:51
@jrfastab

Copy link
Copy Markdown
Contributor Author

Updated to remove GetCachedBTF altogether.

@jrfastab
jrfastab merged commit 808b603 into main May 1, 2023
@jrfastab
jrfastab deleted the pr/jrfastab/btfmem branch May 1, 2023 16:27
@jrfastab

jrfastab commented May 1, 2023

Copy link
Copy Markdown
Contributor Author

@kkourt merged this but feel free to add more comments I'll fix anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants