File: cpuinfo.proto

package info (click to toggle)
golang-github-checkpoint-restore-go-criu 7.2.0%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,796 kB
  • sloc: makefile: 231; ansic: 195; python: 137; sh: 110
file content (49 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: MIT

syntax = "proto2";

message cpuinfo_x86_entry {
	enum vendor {
		UNKNOWN		= 0;
		INTEL		= 1;
		AMD		= 2;
	}

	required vendor			vendor_id	= 1;
	required uint32			cpu_family	= 2;
	required uint32			model		= 3;
	required uint32			stepping	= 4;
	required uint32			capability_ver	= 5;
	repeated uint32			capability	= 6;

	optional string			model_id	= 7;

	optional uint64			xfeatures_mask	= 8;
	optional uint32			xsave_size	= 9;
	optional uint32			xsave_size_max	= 10;
}

message cpuinfo_ppc64_entry {
	enum endianness {
		BIGENDIAN	= 0;
		LITTLEENDIAN	= 1;
	}

	required endianness	endian		= 1;
	repeated uint64		hwcap		= 2;
}

message cpuinfo_s390_entry {
	repeated uint64		hwcap		= 2;
}

message cpuinfo_entry {
	/*
	 * Usually on SMP system there should be same CPUs
	 * installed, but it might happen that system carries
	 * various CPUs so @repeated used.
	 */
	repeated cpuinfo_x86_entry	x86_entry	= 1;
	repeated cpuinfo_ppc64_entry	ppc64_entry	= 2;
	repeated cpuinfo_s390_entry	s390_entry	= 3;
}