BPF List
 help / color / mirror / Atom feed
* [PATCH 0/2] Add api to manipulate global varaible
@ 2023-06-05  8:57 Yang Bo
  2023-06-05  8:57 ` [PATCH 1/2] Add api to manipulate global variable Yang Bo
  2023-06-05  8:57 ` [PATCH 2/2] mini test case Yang Bo
  0 siblings, 2 replies; 5+ messages in thread
From: Yang Bo @ 2023-06-05  8:57 UTC (permalink / raw)
  To: bpf; +Cc: ast, Yang Bo

From: Yang Bo <bo@hyper.sh>

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

-- 
2.40.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-05 21:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-05  8:57 [PATCH 0/2] Add api to manipulate global varaible Yang Bo
2023-06-05  8:57 ` [PATCH 1/2] Add api to manipulate global variable Yang Bo
2023-06-05 10:12   ` Greg KH
2023-06-05 21:28   ` Andrii Nakryiko
2023-06-05  8:57 ` [PATCH 2/2] mini test case Yang Bo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox