mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05: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
1 changed files with 9 additions and 0 deletions
|
|
@ -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 a new issue