[PATCH 5.4 90/90] perf bench: Share some global variables to fix build with gcc 10