Skip to content

Commit 8bff39b

Browse files
committed
Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pull turbostat updates from Len Brown: "Update update to version 20.09.30, one kernel side fix" * 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: tools/power turbostat: update version number powercap: restrict energy meter to root access tools/power turbostat: harden against cpu hotplug tools/power turbostat: adjust for temperature offset tools/power turbostat: Build with _FILE_OFFSET_BITS=64 tools/power turbostat: Support AMD Family 19h tools/power turbostat: Remove empty columns for Jacobsville tools/power turbostat: Add a new GFXAMHz column that exposes gt_act_freq_mhz. tools/power x86_energy_perf_policy: Input/output error in a VM tools/power turbostat: Skip pc8, pc9, pc10 columns, if they are disabled tools/power turbostat: Support additional CPU model numbers tools/power turbostat: Fix output formatting for ACPI CST enumeration tools/power turbostat: Replace HTTP links with HTTPS ones: TURBOSTAT UTILITY tools/power turbostat: Use sched_getcpu() instead of hardcoded cpu 0 tools/power turbostat: Enable accumulate RAPL display tools/power turbostat: Introduce functions to accumulate RAPL consumption tools/power turbostat: Make the energy variable to be 64 bit tools/power turbostat: Always print idle in the system configuration header tools/power turbostat: Print /dev/cpu_dma_latency
2 parents 407ab57 + 3e9fa99 commit 8bff39b

5 files changed

Lines changed: 509 additions & 140 deletions

File tree

drivers/powercap/powercap_sys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ static void create_power_zone_common_attributes(
367367
&dev_attr_max_energy_range_uj.attr;
368368
if (power_zone->ops->get_energy_uj) {
369369
if (power_zone->ops->reset_energy_uj)
370-
dev_attr_energy_uj.attr.mode = S_IWUSR | S_IRUGO;
370+
dev_attr_energy_uj.attr.mode = S_IWUSR | S_IRUSR;
371371
else
372-
dev_attr_energy_uj.attr.mode = S_IRUGO;
372+
dev_attr_energy_uj.attr.mode = S_IRUSR;
373373
power_zone->zone_dev_attrs[count++] =
374374
&dev_attr_energy_uj.attr;
375375
}

tools/power/x86/turbostat/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ turbostat : turbostat.c
1212
override CFLAGS += -O2 -Wall -I../../../include
1313
override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
1414
override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
15+
override CFLAGS += -D_FILE_OFFSET_BITS=64
1516
override CFLAGS += -D_FORTIFY_SOURCE=2
1617

1718
%: %.c
1819
@mkdir -p $(BUILD_OUTPUT)
19-
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) -lcap
20+
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) -lcap -lrt
2021

2122
.PHONY : clean
2223
clean :

tools/power/x86/turbostat/turbostat.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ that they count at TSC rate, which is true on all processors tested to date.
335335

336336
.SH REFERENCES
337337
Volume 3B: System Programming Guide"
338-
http://www.intel.com/products/processor/manuals/
338+
https://www.intel.com/products/processor/manuals/
339339

340340
.SH FILES
341341
.ta

0 commit comments

Comments
 (0)