diff options
author | mafetter@fleming.research <mafetter@fleming.research> | 2005-05-10 12:41:09 +0000 |
---|---|---|
committer | mafetter@fleming.research <mafetter@fleming.research> | 2005-05-10 12:41:09 +0000 |
commit | 46d5b271ad939669420098821b4b38e5b8d858b6 (patch) | |
tree | 0a8ec27f1aa17c8168aa0038711fcdf2121aed57 /xen/common/perfc.c | |
parent | de17f86b3ba78f3e69a88501de448fbfbbaeedf1 (diff) | |
download | xen-46d5b271ad939669420098821b4b38e5b8d858b6.tar.gz xen-46d5b271ad939669420098821b4b38e5b8d858b6.tar.bz2 xen-46d5b271ad939669420098821b4b38e5b8d858b6.zip |
bitkeeper revision 1.1389.5.49 (4280abe5EW2fJtuPr5_E283AlKrziQ)
Added back the printing of perfc arrays & histograms, under compile-time
control in xen/Rules.mk
Diffstat (limited to 'xen/common/perfc.c')
-rw-r--r-- | xen/common/perfc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c index f98910c91c..157d49ffc8 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -67,6 +67,14 @@ void perfc_printall(unsigned char key) for ( j = sum = 0; j < perfc_info[i].nr_elements; j++ ) sum += atomic_read(&counters[j]); printk("TOTAL[%10d] ", sum); +#ifdef PERF_ARRAYS + for ( j = 0; j < perfc_info[i].nr_elements; j++ ) + { + if ( (j != 0) && ((j % 4) == 0) ) + printk("\n "); + printk("ARR%02d[%10d] ", j, atomic_read(&counters[j])); + } +#endif counters += j; break; } |