Skip to content

Commit de7839e

Browse files
committed
tools/power turbostat: version 2023.03.17
Happy St. Patrick's Day! Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 92c2539 commit de7839e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* turbostat -- show CPU frequency and C-state residency
44
* on modern Intel and AMD processors.
55
*
6-
* Copyright (c) 2022 Intel Corporation.
6+
* Copyright (c) 2023 Intel Corporation.
77
* Len Brown <len.brown@intel.com>
88
*/
99

@@ -670,8 +670,7 @@ static int perf_instr_count_open(int cpu_num)
670670
/* counter for cpu_num, including user + kernel and all processes */
671671
fd = perf_event_open(&pea, -1, cpu_num, -1, 0);
672672
if (fd == -1) {
673-
warnx("capget(CAP_PERFMON) failed, try \"# setcap cap_sys_admin=ep %s\"",
674-
progname);
673+
warnx("capget(CAP_PERFMON) failed, try \"# setcap cap_sys_admin=ep %s\"", progname);
675674
BIC_NOT_PRESENT(BIC_IPC);
676675
}
677676

@@ -3516,8 +3515,7 @@ int set_my_sched_priority(int priority)
35163515

35173516
retval = setpriority(PRIO_PROCESS, 0, priority);
35183517
if (retval)
3519-
errx(retval, "capget(CAP_SYS_NICE) failed,try \"# setcap cap_sys_nice=ep %s\"",
3520-
progname);
3518+
errx(retval, "capget(CAP_SYS_NICE) failed,try \"# setcap cap_sys_nice=ep %s\"", progname);
35213519

35223520
errno = 0;
35233521
retval = getpriority(PRIO_PROCESS, 0);
@@ -5478,8 +5476,7 @@ void print_dev_latency(void)
54785476

54795477
fd = open(path, O_RDONLY);
54805478
if (fd < 0) {
5481-
warnx("capget(CAP_SYS_ADMIN) failed, try \"# setcap cap_sys_admin=ep %s\"",
5482-
progname);
5479+
warnx("capget(CAP_SYS_ADMIN) failed, try \"# setcap cap_sys_admin=ep %s\"", progname);
54835480
return;
54845481
}
54855482

@@ -6228,7 +6225,7 @@ int get_and_dump_counters(void)
62286225

62296226
void print_version()
62306227
{
6231-
fprintf(outf, "turbostat version 2022.10.04 - Len Brown <lenb@kernel.org>\n");
6228+
fprintf(outf, "turbostat version 2023.03.17 - Len Brown <lenb@kernel.org>\n");
62326229
}
62336230

62346231
#define COMMAND_LINE_SIZE 2048

0 commit comments

Comments
 (0)