README revision 14895
114895Swollman`perfmon' is a sample program to access the performance-monitoring
214895Swollmancounters on Pentium and Pentium Pro CPUs.  See perfmon(4) for a
314895Swollmandescription of this facility.
414895Swollman
514895SwollmanThe program takes the following options:
614895Swollman
714895Swollman	-u	count events in user mode
814895Swollman	-o	count events in kernel mode
914895Swollman		(these two can be combined)
1014895Swollman
1114895Swollman	-e	count events, not duration
1214895Swollman	-l n	run `n' loops (default 50)
1314895Swollman	-s n	sleep `n' seconds between loop iterations (default 0)
1414895Swollman
1514895SwollmanThe following options are not implemented on Pentium CPUs:
1614895Swollman
1714895Swollman	-m n	use count mask `n'
1814895Swollman	-i	invert sense of count mask comparison
1914895Swollman	-U n	use unit mask `n'
2014895Swollman
2114895SwollmanThere is one mandatory argument, which must be the number of the counter.
2214895SwollmanAll numbers can be specified in any format acceptable to strtol(3).
2314895Swollman
2414895Swollman$Id$
25