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

Redesign setting .rodata map values (still broken state) #2

Conversation

grantseltzer
Copy link

@grantseltzer grantseltzer commented Oct 13, 2022

This is a POC of being able to set variables in .rodata, an internal bpf map to set global variables.

In this example it works (can be proven with sudo bpftool map dump name main.rodata) but it fails intermittently if the data types of the variables are different (i.e. not all longs or all ints). Still have to get to the bottom of that.

[*] sudo bpftool map dump name main.rodata
[{
        "value": {
            ".rodata": [{
                    "foo": 6
                },{
                    "bar": 443
                },{
                    "baz": 333
                }
            ]
        }
    }
]

Signed-off-by: grantseltzer grantseltzer@gmail.com

Signed-off-by: grantseltzer <grantseltzer@gmail.com>

Signed-off-by: grantseltzer <grantseltzer@gmail.com>
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