CPU: exposes numa node count in custom format

This commit is contained in:
李通洲
2025-12-04 15:21:27 +08:00
parent e99ecacb52
commit f644df481c
+2 -1
View File
@@ -5,7 +5,6 @@
#include "common/frequency.h"
#include "detection/cpu/cpu.h"
#include "modules/cpu/cpu.h"
#include "util/stringUtils.h"
static int sortCores(const FFCPUCore* a, const FFCPUCore* b)
{
@@ -111,6 +110,7 @@ bool ffPrintCPU(FFCPUOptions* options)
FF_FORMAT_ARG(coreTypes, "core-types"),
FF_FORMAT_ARG(cpu.packages, "packages"),
FF_FORMAT_ARG(cpu.march, "march"),
FF_FORMAT_ARG(cpu.numaNodes, "numa-nodes"),
}));
}
success = true;
@@ -265,5 +265,6 @@ FFModuleBaseInfo ffCPUModuleInfo = {
{"Logical core count grouped by frequency", "core-types"},
{"Processor package count", "packages"},
{"CPU microarchitecture", "march"},
{"NUMA node count", "numa-nodes"},
}))
};