tools/power turbostat: Add "snapshot:" Makefile target
authorLen Brown <len.brown@intel.com>
Sun, 21 Apr 2024 16:53:53 +0000 (12:53 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 21 Apr 2024 21:05:55 +0000 (17:05 -0400)
commit231ce08b662a58d4392da998699b3d4a7e2e87cf
tree5541c6c8084f9113c5dc538573d863591b3252aa
parenta6189a7407795b3f5167ea532ac85931cd26083a
tools/power turbostat: Add "snapshot:" Makefile target

Kernel developers often need to diagnose remote customer systems
with the latest turbostat, yet customers are running binary distros
with out-dated turbostat and the customer has no experience
cloning linux kernel trees.

Add a turbostat "snapshot" makefile target to create a standalone
source snapshot from the developer's git tree, appropriately hacked
so that the customer can build turbostat without a kernel tree.

Include the turbostat binary in the snapshot, for convenience in
those situations where the source and destination are trusted,
(and have new enough glibc to execute).

The snapshot is named with the date it was taken rather than
the turbostat VERSION, as it could occur between VERSIONS...

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