Prototype code for quickly reading the values of all CPU Performance Monitoring Counters from Lua.
Uses dynasm to generate the routine at runtime based on the capabilities of the running CPU.
dynasm: https://github.com/luapower/dynasm/blob/master/dynasm.md