feat(profiles): replace old [0-9]* glob by @{int}

Beware some [0-9]* glob are actually not proper @{int}.
This commit is contained in:
Alexandre Pujol 2023-08-18 17:09:53 +01:00
parent 8ea4491a56
commit 275d6b6e62
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
368 changed files with 637 additions and 636 deletions

View file

@ -10,7 +10,7 @@ include <tunables/global>
profile cpupower @{exec_path} {
include <abstractions/base>
# Needed to read the /dev/cpu/[0-9]*/msr device, and hence remove the following error:
# Needed to read the /dev/cpu/@{int}/msr device, and hence remove the following error:
# Could not read perf-bias value[-1]
capability sys_rawio,
@ -25,19 +25,19 @@ profile cpupower @{exec_path} {
@{sys}/devices/system/cpu/{cpufreq,cpuidle}/ r,
@{sys}/devices/system/cpu/{cpufreq,cpuidle}/** r,
@{sys}/devices/system/cpu/cpu[0-9]*/{cpufreq,cpuidle}/ r,
@{sys}/devices/system/cpu/cpu[0-9]*/{cpufreq,cpuidle}/** r,
@{sys}/devices/system/cpu/cpu@{int}/{cpufreq,cpuidle}/ r,
@{sys}/devices/system/cpu/cpu@{int}/{cpufreq,cpuidle}/** r,
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/scaling_{min,max}_freq rw,
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/scaling_governor rw,
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/scaling_setspeed rw,
@{sys}/devices/system/cpu/cpu[0-9]*/cpuidle/state[0-9]/disable rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_{min,max}_freq rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_governor rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_setspeed rw,
@{sys}/devices/system/cpu/cpu@{int}/cpuidle/state[0-9]/disable rw,
@{sys}/devices/system/cpu/cpu[0-9]*/topology/{physical_package_id,core_id} r,
@{sys}/devices/system/cpu/cpu@{int}/topology/{physical_package_id,core_id} r,
@{sys}/devices/system/cpu/cpu[0-9]*/online r,
@{sys}/devices/system/cpu/cpu@{int}/online r,
/dev/cpu/[0-9]*/msr r,
/dev/cpu/@{int}/msr r,
profile kmod {