3 ms·
Could you allocate a memory dynamically inside your BPF program?
by dbancajas 7y ago
Could you allocate a memory dynamically inside your BPF program?
- base0x10 7y agono* BPF programs are written in a very small subset of C (or rust or C++), which does not include dynamic memory allocation or unbounded loops. * you can use maps which are persistent key-value stores provided by the eBPF runtime, and you can call out to approved C functions provided by the kernel, but those won't allocate memory for you.