Re: [PATCH v2 1/3] perf tool: fix reading new topology attribute "core_cpus"

2020-04-29 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 29, 2020 at 07:19:47PM +0300, Konstantin Khlebnikov escreveu: > Check access("devices/system/cpu/cpu%d/topology/core_cpus", F_OK) fails, > unless current directory is "/sys". Simply try read this file first. > > Signed-off-by: Konstantin Khlebnikov > Fixes: 0ccdb8407a46 ("perf tools:

[PATCH v2 1/3] perf tool: fix reading new topology attribute "core_cpus"

2020-04-29 Thread Konstantin Khlebnikov
Check access("devices/system/cpu/cpu%d/topology/core_cpus", F_OK) fails, unless current directory is "/sys". Simply try read this file first. Signed-off-by: Konstantin Khlebnikov Fixes: 0ccdb8407a46 ("perf tools: Apply new CPU topology sysfs attributes") --- tools/perf/util/smt.c |6 +++---