| 1 |
// SPDX-License-Identifier: MIT |
| 2 |
|
| 3 |
syntax = "proto2"; |
| 4 |
|
| 5 |
message cpuinfo_x86_entry { |
| 6 |
enum vendor { |
| 7 |
UNKNOWN = 0; |
| 8 |
INTEL = 1; |
| 9 |
AMD = 2; |
| 10 |
} |
| 11 |
|
| 12 |
required vendor vendor_id = 1; |
| 13 |
required uint32 cpu_family = 2; |
| 14 |
required uint32 model = 3; |
| 15 |
required uint32 stepping = 4; |
| 16 |
required uint32 capability_ver = 5; |
| 17 |
repeated uint32 capability = 6; |
| 18 |
|
| 19 |
optional string model_id = 7; |
| 20 |
|
| 21 |
optional uint64 xfeatures_mask = 8; |
| 22 |
optional uint32 xsave_size = 9; |
| 23 |
optional uint32 xsave_size_max = 10; |
| 24 |
} |
| 25 |
|
| 26 |
message cpuinfo_ppc64_entry { |
| 27 |
enum endianness { |
| 28 |
BIGENDIAN = 0; |
| 29 |
LITTLEENDIAN = 1; |
| 30 |
} |
| 31 |
|
| 32 |
required endianness endian = 1; |
| 33 |
repeated uint64 hwcap = 2; |
| 34 |
} |
| 35 |
|
| 36 |
message cpuinfo_s390_entry { |
| 37 |
repeated uint64 hwcap = 2; |
| 38 |
} |
| 39 |
|
| 40 |
message cpuinfo_entry { |
| 41 |
/* |
| 42 |
* Usually on SMP system there should be same CPUs |
| 43 |
* installed, but it might happen that system carries |
| 44 |
* various CPUs so @repeated used. |
| 45 |
*/ |
| 46 |
repeated cpuinfo_x86_entry x86_entry = 1; |
| 47 |
repeated cpuinfo_ppc64_entry ppc64_entry = 2; |
| 48 |
repeated cpuinfo_s390_entry s390_entry = 3; |
| 49 |
} |