• Zhang Rui's avatar
    tools/power/turbostat: Handle cgroup v2 cpu limitation · f638858d
    Zhang Rui authored
    
    
    CPUs can be isolated via cgroup settings and turbostat should avoid
    migrating to these CPUs, just like it does for the '-c' cpus.
    
    Introduce cpu_effective_set to save the cgroup cpu limitation info from
    /sys/fs/cgroup/cpuset.cpus.effective. And use cpu_allowed_set as the
    intersection of cpu_present_set, cpu_effective_set and cpu_subset.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    f638858d
turbostat.c 178 KB