[PATCH openEuler-5.10-LTS 030/141] bpf: Consolidate shared test timing code