Skip to content

collectionSpec.Variables miss static volatile const var #1620

Answered by ti-mo
Ghostbaby asked this question in Q&A
Discussion options

You must be logged in to vote

I understand this may be a breaking change, but this was unavoidable as RewriteConstants didn't take object visibility into account in the past (it allowed rewriting local vars). With VariableSpec in fhe picture, we now follow the same rules as libbpf.

Please see https://ebpf-go.dev/concepts/global-variables/#static-global-variables for more info.

Also, in the future, please create issues for reporting regressions, Discussions are more for Q&A.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ti-mo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants