perf_pmus__have_event
if (perf_pmus__have_event("trace_imc", "trace_cycles")) {
bool perf_pmus__have_event(const char *pname, const char *name);