diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2005-08-22 17:51:08 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2005-08-22 17:51:08 +0000 |
commit | 24bcb580cb1c10ea3f7a215861dddea12fccfa13 (patch) | |
tree | f84b51d1523509a40d48a8817f8f96e3aa3a4af6 /sys | |
parent | efa833e8d9137718daf5337ef6f86c2cff8916a8 (diff) | |
download | FreeBSD-src-24bcb580cb1c10ea3f7a215861dddea12fccfa13.zip FreeBSD-src-24bcb580cb1c10ea3f7a215861dddea12fccfa13.tar.gz |
Print PMC capabilities at module load time.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 111eccb..5ba6a44 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -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"); } |