(QENG-1033) Don't modify constants and properly support all Linux platforms in Perf