Current implementation of meter use bpf helper BPF_FUNC_ktime_get_ns which can be quite slow.
To get rid of the helper, daemon process can be added which regularly updates array map with current time. Such daemon would be implemented using bpf prog type BPF_PROG_TYPE_PERF_EVENT .
Current implementation of meter use bpf helper
BPF_FUNC_ktime_get_ns
which can be quite slow.To get rid of the helper, daemon process can be added which regularly updates array map with current time. Such daemon would be implemented using bpf prog type
BPF_PROG_TYPE_PERF_EVENT
.Question is if we need such optimization?