test/syscalls/proc: Update comment about required_fields on x86

The previous comment has been no longer correct at least since
f84a013407, as conditional cpuinfo fields
are now checked too.
This commit is contained in:
Povilas Kanapickas
2024-08-04 17:17:19 +03:00
parent 4298980325
commit 2b57ea1692
+4 -3
View File
@@ -120,9 +120,10 @@ namespace {
#endif /* SUID_DUMP_ROOT */
#if defined(__x86_64__) || defined(__i386__)
// This list of "required" fields is taken from reading the file
// arch/x86/kernel/cpu/proc.c and seeing which fields will be unconditionally
// printed by the kernel.
// This list of "required" fields consists of the set of fields that are printed
// unconditionally by the kernel (see arch/x86/kernel/cpu/proc.c) and a set of fields
// that are printed conditionally, but are present on common configurations
// (e.g. when CONFIG_SMP is set).
static const char* required_fields[] = {
"processor",
"vendor_id",