This provides a simple Go API to Linux's perf_event_open. It currently supports event counters and a basic set of events.
perf_event_open