CPUCache (Linux): skips offline CPUs
This commit is contained in:
1 parent
69435f1e30
commit
216d3b24f3
2 files changed
+3
-1
No files matched your search
@@ -12,6 +12,7 @@ Changes:
|
||||
|
||||
Bugfixes:
|
||||
* Fixed libc version detection on FreeBSD without binutils installed, and on DragonFly BSD. (Libc, FreeBSD / DragonFly)
|
||||
* Fixed CPU cache detection failing entirely when any CPU is offline. (#2736, CPUCache, Linux)
|
||||
|
||||
# 2.71.0
|
||||
|
||||
|
||||
@@ -133,9 +133,10 @@ const char* ffDetectCPUCache(FFCPUCacheResult* result) {
|
||||
}
|
||||
|
||||
ffStrbufAppendS(&path, pathCpuEntry->d_name);
|
||||
// Skip a CPU whose cache can't be read, e.g. an offline one: the kernel removes its `cache/`
|
||||
const char* error = parseCpuCache(&path, result, &buffer, &added);
|
||||
if (error) {
|
||||
return error;
|
||||
FF_DEBUG("Skipping \"%s\": %s", pathCpuEntry->d_name, error);
|
||||
}
|
||||
ffStrbufSubstrBefore(&path, baseLen);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user