perf_event_open updates

- add missing PERF_COUNT_HW_REF_CPU_CYCLES
- use get_len for more interesting lengths than rand()