CPU: adds NUMA node detection

This commit is contained in:
李通洲
2025-11-17 20:15:56 +08:00
committed by Carter Li
parent da3a9be7c6
commit a94f0efb5b
5 changed files with 29 additions and 1 deletions
+6 -1
View File
@@ -217,6 +217,11 @@ bool ffGenerateCPUJsonResult(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_
else
yyjson_mut_obj_add_null(doc, obj, "march");
if (cpu.numaNodes > 0)
yyjson_mut_obj_add_uint(doc, obj, "numaNodes", cpu.numaNodes);
else
yyjson_mut_obj_add_null(doc, obj, "numaNodes");
success = true;
}
@@ -259,6 +264,6 @@ FFModuleBaseInfo ffCPUModuleInfo = {
{"Temperature (formatted)", "temperature"},
{"Logical core count grouped by frequency", "core-types"},
{"Processor package count", "packages"},
{"X86-64 CPU microarchitecture", "march"},
{"CPU microarchitecture", "march"},
}))
};