Debian Codegraph @

testsuite/systemtap.examples/general/cpu_throttle.meta

raw
1 title: Monitor Intel processors for throttling due to power or thermal limits
2 name: cpu_throttle.stp
3 version: 1.0
4 author: William Cohen
5 keywords: prometheus limits
6 subsystem: process
7 status: experimental
8 exit: user-controlled
9 output: on-exit
10 scope: process
11 description: Intel processors have hardware mechanisms that will reduce the effective processors speed to avoid exceeding set thermal or power constraints. The cpu_throttle.stp script monitors when CPU throttling occurs and accumulates the amount of time in milliseconds that each processor is throttled. The script makes the information available via procfs in Prometheus readable format.
12 test_support: stap -l 'kprobe.function("therm_throt_process")'
13 test_check: stap -p4 cpu_throttle.stp
14 test_installcheck: stap cpu_throttle.stp -T 1