restore pmccontrol -L behavior on x86

When I updated counter definition handling for x86 I broke
'pmccontrol -L' listing counter names. This just changes
pmccontrol to call the library function on x86.

PR:	230984
Approved by:	re (kib@)
This commit is contained in:
mmacy 2018-09-24 19:06:09 +00:00
parent 82dcbd5dab
commit 465919069e

View File

@ -282,6 +282,14 @@ pmcc_do_list_state(void)
return 0;
}
#if defined(__i386__) || defined(__amd64__)
static int
pmcc_do_list_events(void)
{
pmc_pmu_print_counters(NULL);
return (0);
}
#else
static int
pmcc_do_list_events(void)
{
@ -311,6 +319,7 @@ pmcc_do_list_events(void)
}
return 0;
}
#endif
static int
pmcc_show_statistics(void)