Module Name: src Committed By: maxv Date: Fri Mar 10 13:09:11 UTC 2017
Modified Files: src/sys/arch/i386/i386: pmc.c src/sys/arch/x86/include: sysarch.h src/usr.bin/pmc: pmc.1 pmc.c Log Message: Switch to per-CPU PMC results, and completely rewrite the pmc(1) tool. Now the PMCs are system-wide, fine-grained and more tunable by the user. We don't do application tracking, since it would require to store the PMC values in mdproc and starting/stopping the counters on each context switch. While this doesn't seem to be particularly difficult to achieve, I don't think it is really interesting; and if someone really wants to measure the performance of an application, they can simply schedctl it to a cpu and look at the PMC results for this cpu. Note that several options are implemented but not yet used. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/i386/i386/pmc.c cvs rdiff -u -r1.10 -r1.11 src/sys/arch/x86/include/sysarch.h cvs rdiff -u -r1.9 -r1.10 src/usr.bin/pmc/pmc.1 cvs rdiff -u -r1.19 -r1.20 src/usr.bin/pmc/pmc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.