]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: on SIGUSR1: sample, print and continue
authorLen Brown <len.brown@intel.com>
Sat, 15 Jul 2017 19:51:26 +0000 (15:51 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 16:13:04 +0000 (12:13 -0400)
commit8a85339527a466be715c3083cca0736b159c533e
treed970ce934120a23f0848de3a5e4c2fd24ec5c133
parent6c6a25e5da4a5c1fc6c3bebc309e542156e1356b
tools/power turbostat: on SIGUSR1: sample, print and continue

Interval-mode turbostat now catches and discards SIGUSR1.

Thus, SIGUSR1 can be used to tell turbostat to cut short
the current measurement interval.  Turbostat will then start
the next measurement interval using the regular interval length.

This can be used to give turbostat variable intervals.
Invoke turbostat with --interval LARGE_NUMBER_SEC
and have a program that has permission to send it a SIGUSR1
always before LARGE_NUMBER_SEC expires.

It may also be useful to use "--enable Time_Of_Day_Seconds"
to observe the actual interval length.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c