[PATCH openEuler-22.03-LTS-SP1 17/23] perf bpf_counter: Move common functions to bpf_counter.h