For picking the buffer length, https://github.com/isovalent/ebpf-docs/blob/master/docs/linux/map-type/BPF_MAP_TYPE_PERF_EVENT_ARRAY.md states
length can be picked and tuned depending on the use case but should always be 1+2^n memory pages and n should not be 0. So Assuming a 4k page size, valid values would be 12288, 20480, 28672 and so on.
But 28672 can not be achieved through that formula. I'm wondering which is correct here. Should the formula be 1+2*n? Or is 28672 invalid?