-
Notifications
You must be signed in to change notification settings - Fork 6
Support array presets in veristat #5486
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
base: bpf-next_base
Are you sure you want to change the base?
Support array presets in veristat #5486
Conversation
Upstream branch: cd7312a |
Upstream branch: cd7312a |
672ea96
to
fc3be1c
Compare
Upstream branch: cd7312a |
fc3be1c
to
40f0b24
Compare
45c71f6
to
4516bd2
Compare
Upstream branch: e30329b |
40f0b24
to
7fac121
Compare
Upstream branch: e30329b |
7fac121
to
a97e0f1
Compare
4516bd2
to
983d136
Compare
Upstream branch: 99fe8af |
a97e0f1
to
5225faf
Compare
983d136
to
097b64d
Compare
Upstream branch: c11f34e |
5225faf
to
918991f
Compare
097b64d
to
1daac42
Compare
Upstream branch: 3ce7cdd |
918991f
to
6333f93
Compare
1daac42
to
86c8a5d
Compare
Upstream branch: 3ce7cdd |
Refactor var preset parsing in veristat to simplify implementation. Prepare parsed variable beforehand so that parsing logic is separated from functionality of calculating offsets and searching fields. Introduce rvalue struct, storing either int or enum (string value), will be reused in the next patch, extract parsing rvalue into a separate function. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
Implement support for presetting values for array elements in veristat. For example: ``` sudo ./veristat set_global_vars.bpf.o -G "arr[3] = 1" ``` Arrays of structures and structure of arrays work, but each individual scalar value has to be set separately: `foo[1].bar[2] = value`. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
Modify existing veristat tests to verify that array presets are applied as expected. Introduce few negative tests as well to check that common error modes are handled. Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]>
6333f93
to
4de8e36
Compare
Pull request for series with
subject: Support array presets in veristat
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=973580