[x86] linux-cpupower: Add turbostat and x86_energy_perf_policy commands

Closes: #778249
This commit is contained in:
Ben Hutchings 2017-01-24 03:03:17 +00:00
parent faed0c04c6
commit 1b1a09ae42
9 changed files with 49 additions and 7 deletions

2
debian/changelog vendored
View File

@ -350,6 +350,8 @@ linux (4.9.5-1) UNRELEASED; urgency=medium
* cfg80211,memcg,power: Avoid ABI changes
* cpuhp,orinoco,xhci: Ignore ABI changes
* linux-image: Increase minimum version of initramfs-tools (Closes: #808038)
* [x86] linux-cpupower: Add turbostat and x86_energy_perf_policy commands
(Closes: #778249)
[ Salvatore Bonaccorso ]
* tmpfs: clear S_ISGID when setting posix ACLs (CVE-2017-5551)

View File

@ -1,2 +1,3 @@
usr/bin
usr/sbin
usr/share/

View File

@ -1,7 +1,7 @@
SUBDIRS = \
hv \
perf \
power/cpupower \
power \
usb/usbip
#SUBDIRS += lib/lockdep

8
debian/rules.d/tools/power/Makefile vendored Normal file
View File

@ -0,0 +1,8 @@
SUBDIRS = \
cpupower
ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),)
SUBDIRS += x86
endif
include $(top_rulesdir)/Makefile.inc

View File

@ -0,0 +1,5 @@
SUBDIRS = \
turbostat \
x86_energy_perf_policy
include $(top_rulesdir)/Makefile.inc

View File

@ -0,0 +1,7 @@
PROGS = turbostat
installdir = /usr/sbin
include $(top_rulesdir)/Makefile.inc
CPPFLAGS += -DMSRHEADER='<asm/msr-index.h>'

View File

@ -0,0 +1,5 @@
PROGS = x86_energy_perf_policy
installdir = /usr/sbin
include $(top_rulesdir)/Makefile.inc

15
debian/rules.real vendored
View File

@ -564,10 +564,25 @@ install-cpupower: $(STAMPS_DIR)/build-tools
dh_testroot
dh_prep
$(call make-tools,tools/power/cpupower) install DESTDIR=$(DIR)
ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),)
$(call make-tools,tools/power/x86) install DESTDIR=$(DIR)
echo >> debian/linux-cpupower.substvars 'cpupower:Arch-Description='\
'The turbostat command reports topology, frequency, idle power-state$${Newline}'\
'statistics, temperature and power consumption information as provided$${Newline}'\
'by the CPU.$${Newline}'\
'$${Newline}'\
'The x86_energy_perf_policy command sets a general policy on some Intel$${Newline}'\
'CPU models for the relative importance of performance versus energy$${Newline}'\
'savings.'
endif
dh_install --sourcedir=$(DIR)
dh_installchangelogs
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
dh_installdocs
ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),)
dh_installman tools/power/x86/turbostat/turbostat.8 \
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.8
endif
endif
dh_strip
dh_compress

View File

@ -11,13 +11,12 @@ Build-Profiles: <!stage1 !pkg.linux.notools>
Section: admin
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: CPU frequency and voltage scaling tools for Linux
This package contains the 'power/cpupower' tools for Linux.
Description: CPU power management tools for Linux
The cpupower command allows inspection and control of cpufreq and
cpuidle tunables for hardware that support these features. It
replaces "cpufreq-info" and "cpufreq-set" in cpufrequtils.
.
This set of userspace tools allow inspection and control of cpufreq and
cpuidle tunables for hardware that support these features.
The "cpupower" command replaces "cpufreq-info" and "cpufreq-set" in
cpufrequtils.
${cpupower:Arch-Description}
Package: libcpupower1
Build-Profiles: <!stage1 !pkg.linux.notools>