The following options can be used to configure how cpupcstat works:
This allows the user to specify where the appropriate vmlinux file is for their kernel. If this is not specified, /boot/vmlinux-`uname -r` will be used.
This allows the user to specify the reporting interval. The default is 10 seconds.
Gather statistics for all processes and the kernel running in the system.
This allows the user to specify the pid of a process already that is already running. If this option is specified, target will be ignored.
Use this to specify the real name of the program to monitor if the target is a launcher script. When this is specified, target is executed but the report will be for real-target.
This option sets the time limit for monitoring. If this is specified the target or pid will only be monitored for sec seconds. The default continues monitoring while target or pid are still alive.
This allows the user to request DTLB miss rate data be collected for the kernel as well as the target.
This option requests that the ratio of instructions retired per TLB miss.
This option requests that the ratio of CPU cycles per TLB miss.
This option requests that the percentage of CPU cycles spent servicing TLB misses is displayed when cpupcstat exits. To use this option the cost in CPU cycles for a single TLB miss must be specified using either the --cost-config option or the tlbmiss_cost.sh script.
This option tells cpupcstat that the cost in CPU cycles of a TLB miss can be found in the specified file, it should be specified as:
Where XX is the cost in cycles. This option is only used with the --time-servicing option.
cpupcstat prefers the perf tool for data collection, only using oprofile if perf is not present or supported. This option will force cpupcstat to use oprofile for data collection.