mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Print PMC capabilities at module load time.
MFC after: 3 days
This commit is contained in:
parent
5090c7544f
commit
a8eb16c5ea
1 changed files with 9 additions and 3 deletions
|
|
@ -4033,10 +4033,16 @@ pmc_initialize(void)
|
|||
|
||||
if (error == 0) {
|
||||
printf(PMC_MODULE_NAME ":");
|
||||
for (n = 0; n < (int) md->pmd_nclass; n++)
|
||||
printf(" %s(%d)",
|
||||
for (n = 0; n < (int) md->pmd_nclass; n++) {
|
||||
printf(" %s/%d/0x%b",
|
||||
pmc_name_of_pmcclass[md->pmd_classes[n].pm_class],
|
||||
md->pmd_nclasspmcs[n]);
|
||||
md->pmd_nclasspmcs[n],
|
||||
md->pmd_classes[n].pm_caps,
|
||||
"\20"
|
||||
"\1INT\2USR\3SYS\4EDG\5THR"
|
||||
"\6REA\7WRI\10INV\11QUA\12PRC"
|
||||
"\13TAG\14CSC");
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue