mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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
b65a9568f8
commit
7362ac9ca9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338918
@ -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