Open Godones opened 1 month ago
only read from bpf_array is supported
You are trying to access a static item, which is not supported in BPF. You will need to maintain state in a BPF map:
The eBPF Virtual Machine, where our eBPF programs will be run, is a constrained runtime environment:
When I used a variable initialized to 0 in the program, an error occurred while loading the ebpf program. The test code is as follows:
The error message is as follows: