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:
parent
82dcbd5dab
commit
465919069e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user