perf_fuzzer: add log_to_code

This generates a valid perf_event program that does
the syscalls in a specified log.