-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/g…
…it/lenb/linux Pull powertool update from Len Brown: "This updates the tree w/ the latest version of turbostat, which reports temperature and - on SNB and later - Watts." Fix up semantic merge conflict as per Len. * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: tools: Allow tools to be installed in a user specified location tools/power: turbostat: make Makefile a bit more capable tools/power x86_energy_perf_policy: close /proc/stat in for_every_cpu() tools/power turbostat: v3.0: monitor Watts and Temperature tools/power turbostat: fix output buffering issue tools/power turbostat: prevent infinite loop on migration error path x86 power: define RAPL MSRs tools/power/x86/turbostat: share kernel MSR #defines
- Loading branch information
Showing
6 changed files
with
765 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
CC = $(CROSS_COMPILE)gcc | ||
BUILD_OUTPUT := $(PWD) | ||
PREFIX := /usr | ||
DESTDIR := | ||
|
||
turbostat : turbostat.c | ||
CFLAGS += -Wall | ||
CFLAGS += -I../../../../arch/x86/include/uapi/ | ||
|
||
%: %.c | ||
@mkdir -p $(BUILD_OUTPUT) | ||
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ | ||
|
||
.PHONY : clean | ||
clean : | ||
rm -f turbostat | ||
@rm -f $(BUILD_OUTPUT)/turbostat | ||
|
||
install : | ||
install turbostat /usr/bin/turbostat | ||
install turbostat.8 /usr/share/man/man8 | ||
install : turbostat | ||
install -d $(DESTDIR)$(PREFIX)/bin | ||
install $(BUILD_OUTPUT)/turbostat $(DESTDIR)$(PREFIX)/bin/turbostat | ||
install -d $(DESTDIR)$(PREFIX)/share/man/man8 | ||
install turbostat.8 $(DESTDIR)$(PREFIX)/share/man/man8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.