OSDN Git Service

tools/power turbostat: add --enable Time_Of_Day_Seconds
authorLen Brown <len.brown@intel.com>
Tue, 17 Oct 2017 19:42:56 +0000 (15:42 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 16:13:04 +0000 (12:13 -0400)
commit3f44a5c62be2f2b15317942fa7bc4a810d2420aa
treeea15f23a71ba45dc7c6618f2958a5d42930cb64f
parent2085e12441dc90a126a5f279b3ef03daade901cf
tools/power turbostat: add --enable Time_Of_Day_Seconds

Add a Time_Of_Day_Seconds column showing when measurement
for each row was completed.  Units are [sec.subsec] since Epoch,
as reported by gettimeofday(2).

While useful to correlate turbostat output with other tools,
this built-in column is disabled, by default.

Add the "--enable" option to enable such disabled-by-default
built-in columns:

"--enable Time_Of_Day_Seconds"
"--enable usec"

"--enable all", will enable all disabled-by-defauilt built-in counters.

When "--debug" is used, all disabled-by-default columns are enabled,
unless explicitly skipped using "--hide"

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