Add api to manipulate global varaible
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Add api to manipulate global variabletools/ tools/ tools/ | +819 | 2 replies | |
| 2/2 | mini test case.tools/ tools/ | +132 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Add api to manipulate global varaible
From: Yang Bo <[email protected]>
We (the antgroup) has a requirement to manipulate global variables. The platform to manage bpf bytecode has no idea about varaibles' type/size/address. It only has some strings (like key = value) passed from admin. We find a way to parse BTF and then query/update the variables. There may be better ways to do it. This approach is what we can find for now.
Yang Bo (2):
Add api to manipulate global variable
mini test case.
tools/lib/bpf/bpf.c | 808 ++++++++++++++++++++++++++++++++++++ tools/lib/bpf/bpf.h | 9 + tools/lib/bpf/libbpf.map | 2 + tools/lib/bpf/mini/Makefile | 2 + tools/lib/bpf/mini/main.c | 130 ++++++ 5 files changed, 951 insertions(+) create mode 100644 tools/lib/bpf/mini/Makefile create mode 100644 tools/lib/bpf/mini/main.c
Signature · 1 line
2.40.0