[PATCH OLK-5.10 17/36] perf bpf_counter: Move common functions to bpf_counter.h