Skip to content

Refactor RewriteConstants, remove deprecated btf flush cache - #6

Open
vishnukumarkvs wants to merge 1 commit into
coroot:mainfrom
vishnukumarkvs:fix-btf-flush-spec-rewriteconstants-1
Open

Refactor RewriteConstants, remove deprecated btf flush cache#6
vishnukumarkvs wants to merge 1 commit into
coroot:mainfrom
vishnukumarkvs:fix-btf-flush-spec-rewriteconstants-1

Conversation

@vishnukumarkvs

Copy link
Copy Markdown

When bumping cilium to v1.20.0 version in coroot-node-agent, it also bumps cilium/ebpf package to v0.22.0. With the bumps, the build fails because coroot pyroscope uses same packages underneath and it breaks due to incompatible code

This MR introduces cilium/ebpf v0.22.0 complaint changes

Two changes are made

  1. btf cache flush
    This is related to ebpf_python profiling. btf.FlushKernelSpec() calls are removed now because Cache became explicit in latest versions.

  2. RewriteConstants refactor
    RewriteConstants → Variables[...].Set() — Cilium's eBPF library removed the old helper method for writing config values into the BPF program before loading it. Same underlying mechanism, just called directly.

@vishnukumarkvs

Copy link
Copy Markdown
Author

Need it for coroot/coroot-node-agent#364

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.

1 participant