43.2.2. Setting Events to Monitor
Table 43.2. OProfile Processors and Counters
|Processor|| ||Number of Counters|
|Pentium 4 (non-hyper-threaded)||i386/p4||8|
|Pentium 4 (hyper-threaded)||i386/p4-ht||4|
|IBM eServer iSeries and pSeries||timer||1|
|IBM eServer S/390 and S/390x||timer||1|
|IBM eServer zSeries||timer||1|
timeris used as the processor type if the processor does not have supported performance monitoring hardware.
timeris used, events cannot be set for any processor because the hardware does not have support for hardware performance counters. Instead, the timer interrupt is used for profiling.
timeris not used as the processor type, the events monitored can be changed, and counter 0 for the processor is set to a time-based event by default. If more than one counter exists on the processor, the counters other than counter 0 are not set to an event by default. The default events monitored are shown in Table 43.3, “Default Events”.
Table 43.3. Default Events
|Processor||Default Event for Counter||Description|
|Pentium Pro, Pentium II, Pentium III, Athlon, AMD64||CPU_CLK_UNHALTED||The processor's clock is not halted|
|Pentium 4 (HT and non-HT)||GLOBAL_POWER_EVENTS||The time during which the processor is not stopped|
|Itanium 2||CPU_CYCLES||CPU Cycles|
|TIMER_INT||(none)||Sample for each timer interrupt|
ls -d /dev/oprofile/[0-9]*
ophelp, and replace <sample-rate> with the number of events between samples.
188.8.131.52. Sampling Rate
timer, each event can have a sampling rate set for it. The sampling rate is the number of events between each sample snapshot.