Skip to content

Commit 164d7a9

Browse files
committed
tools/power turbostat: be more useful as non-root
Don't exit if used this way: sudo setcap cap_sys_nice,cap_sys_rawio=+ep ./turbostat sudo chmod +r /dev/cpu/*/msr ./turbostat note: cap_sys_admin is now also needed for the perf IPC counter: sudo setcap cap_sys_admin,cap_sys_nice,cap_sys_rawio=+ep ./turbostat Reported-by: Artem S. Tashkinov <[email protected]> Reported-by: Toby Broom <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 6397b64 commit 164d7a9

File tree

2 files changed

+179
-173
lines changed

2 files changed

+179
-173
lines changed

tools/power/x86/turbostat/turbostat.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ starts a new interval.
292292
must be run as root.
293293
Alternatively, non-root users can be enabled to run turbostat this way:
294294

295-
# setcap cap_sys_rawio=ep ./turbostat
295+
# setcap cap_sys_admin,cap_sys_rawio,cap_sys_nice=+ep ./turbostat
296296

297297
# chmod +r /dev/cpu/*/msr
298298

0 commit comments

Comments
 (0)