int EventSet = PAPI_NULL;
if (PAPI_create_eventset(&EventSet) != PAPI_OK)
handle_error(1);
/* Bind our EventSet to the cpu component */
if (PAPI_assign_eventset_component(EventSet, 0) != PAPI_OK)
handle_error(1);
/* Convert our EventSet to multiplexing */
if (PAPI_set_multiplex(EventSet) != PAPI_OK)
handle_error(1);