src/libpfm4/lib/pfmlib_perf_event.c
/*
 * get OS-specific event attributes
 */
get OS-specific event attributes
get OS - specific event attributes
static int
perf_get_os_nattrs(void *this, pfmlib_event_desc_t *e)
{
	pfmlib_os_t *os = this;
	int i, n = 0;
	for (i = 0; os->atdesc[i].name; i++)
		if (!is_empty_attr(os->atdesc+i))
			n++;
	return n;
}
static int perf_get_os_nattrs ( void * this , pfmlib_event_desc_t * e ) { pfmlib_os_t * os = this ; int i , n = 0 ; for ( i = 0 ; os -> atdesc [ i ] . name ; i ++ ) if ( ! is_empty_attr ( os -> atdesc + i ) ) n ++ ; return n ; }
get OS-specific event attributes
get OS - specific event attributes