|
3 | 3 | * turbostat -- show CPU frequency and C-state residency |
4 | 4 | * on modern Intel and AMD processors. |
5 | 5 | * |
6 | | - * Copyright (c) 2022 Intel Corporation. |
| 6 | + * Copyright (c) 2023 Intel Corporation. |
7 | 7 | * Len Brown <len.brown@intel.com> |
8 | 8 | */ |
9 | 9 |
|
@@ -670,8 +670,7 @@ static int perf_instr_count_open(int cpu_num) |
670 | 670 | /* counter for cpu_num, including user + kernel and all processes */ |
671 | 671 | fd = perf_event_open(&pea, -1, cpu_num, -1, 0); |
672 | 672 | 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); |
675 | 674 | BIC_NOT_PRESENT(BIC_IPC); |
676 | 675 | } |
677 | 676 |
|
@@ -3516,8 +3515,7 @@ int set_my_sched_priority(int priority) |
3516 | 3515 |
|
3517 | 3516 | retval = setpriority(PRIO_PROCESS, 0, priority); |
3518 | 3517 | 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); |
3521 | 3519 |
|
3522 | 3520 | errno = 0; |
3523 | 3521 | retval = getpriority(PRIO_PROCESS, 0); |
@@ -5478,8 +5476,7 @@ void print_dev_latency(void) |
5478 | 5476 |
|
5479 | 5477 | fd = open(path, O_RDONLY); |
5480 | 5478 | 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); |
5483 | 5480 | return; |
5484 | 5481 | } |
5485 | 5482 |
|
@@ -6228,7 +6225,7 @@ int get_and_dump_counters(void) |
6228 | 6225 |
|
6229 | 6226 | void print_version() |
6230 | 6227 | { |
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"); |
6232 | 6229 | } |
6233 | 6230 |
|
6234 | 6231 | #define COMMAND_LINE_SIZE 2048 |
|
0 commit comments