-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
508 lines (423 loc) · 43.8 KB
/
README.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
What is iCPUID?
================
iCPUID is a lightweight cross-platform implementation that allows us to obtain the CPUID information. Works on Windows, Mac and Linux
Changes in this version (v1.0.6)
================================
· Fixes
-----
- Fix ACPI property key documentation in Features section of ProcessorInfoAndFeatures leaf.
· Changed
-------
- Library versions for this version
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.8 Base library containing various extensions, helpers, common constants |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.6 Common Hardware Infrastructure |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform.Cpuid 1.0.0.2 Cross-Platform Generic Hardware Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform.Cpuid 1.0.0.2 Generic Cross-Platform Interop Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.Shared 1.0.0.5 Generic Shared Interop Definitions, Data Structures, Constants... |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.3 CPUID Specification Implementation |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.3 Logging library |
----------------------------------------------------------------------------------------------------------------------------------
v1.0.5
======
· Critical
--------
- Important!!!
Fixes an error caused in the previous version, the nuget packages were not updated correctly when creating the version
I'm sorry for the inconveniences..
· Changed
-------
- Library versions for this version
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.5 Base library containing various extensions, helpers, common constants |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.4 Common Hardware Infrastructure |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform.Cpuid 1.0.0.0 Cross-Platform Generic Hardware Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform.Cpuid 1.0.0.0 Generic Cross-Platform Interop Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.Shared 1.0.0.3 Generic Shared Interop Definitions, Data Structures, Constants... |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.2 CPUID Specification Implementation |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.1 Logging library |
----------------------------------------------------------------------------------------------------------------------------------
v1.0.4
======
· Fixed
-----
- Fixes an issue that generates an exception when a property that returns an object of type QueryPropertyDictionaryResult not available.
· Added
-----
- Added support for netstandard2.1
- Add SplitEnumerator ref struct.
- ByteReader class rewritten to work with Span in net core projects.
- Added sample project for net60.
· Changed
-------
- Library versions for this version
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.4 Base library containing various extensions, helpers, common constants |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.3 Common Hardware Infrastructure |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform.Cpuid 1.0.0.0 Cross-Platform Generic Hardware Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform.Cpuid 1.0.0.0 Generic Cross-Platform Interop Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.Shared 1.0.0.2 Generic Shared Interop Definitions, Data Structures, Constants... |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.2 CPUID Specification Implementation |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.1 Logging library |
----------------------------------------------------------------------------------------------------------------------------------
v1.0.3
======
· Added
-----
- New Properties added
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Property Description Comments |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ProcessorInfoAndFeatures.Features.HYPERVISOR Hypervisor present (always zero on physical CPUs) Thanks to @li-zhixin |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_F AVX-512 Foundation https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_DQ AVX-512 Doubleword and Quadword Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_IFMA AVX-512 Integer Fused Multiply-Add Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.PCOMMIT PCOMMIT instruction https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_PF AVX-512 Prefetch Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_ER AVX-512 Exponential and Reciprocal Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_CD AVX-512 Conflict Detection Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_BW AVX-512 Byte and Word Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VL AVX-512 Vector Length Extensions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VBMI AVX-512 Vector Bit Manipulation Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.WAITPKG Timed pause and user-level monitor/wait https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VBMI2 AVX-512 Vector Bit Manipulation Instructions 2 https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.CET_SS Control flow enforcement (CET) shadow stack https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.GFNI Galois Field instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.VAES Vector AES instruction set (VEX-256/EVEX) https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.VPCLMULQDQ CLMUL instruction set (VEX-256/EVEX) https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VNNI AVX-512 Vector Neural Network Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_BITALG AVX-512 BITALG instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VPOPCNTDQ AVX-512 Vector Population Count Double and Quad-word https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.ITL_5_LEVELPG Intel 5-level paging https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.CLDEMOTE Cache line demote https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.MOVDIRI MOVDIRI https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.MOVDIR64B MOVDIR64B https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.ENQCMD Enqueue Stores https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.PKS Protection keys for supervisor-mode pages https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_4VNNIW AVX-512 4-register Neural Network Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_4FMAPS AVX-512 4-register Multiply Accumulation Single precision https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.FSRM Fast Short REP MOVSB https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_VP2INTERSECT AVX-512 VP2INTERSECT Doubleword and Quadword Instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.SRBDS_CTRL Special Register Buffer Data Sampling Mitigations https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.MD_CLEAR VERW instruction clears CPU buffers https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.TSX_FORCE_ABORT TSX_FORCE_ABORT https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.SERIALIZE SERIALIZE https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.HYBRID Hybrid https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.TSXLDTRK TSX suspend load address tracking https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.PCONFIG Platform configuration (Memory Encryption Technologies Instructions) https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.LBR Architectural Last Branch Records https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.CET_IBT Control flow enforcement (CET) indirect branch tracking https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AMX_BF16 Tile computation on bfloat16 numbers https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AMX_TILE Tile architecture https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AMX_INT8 Tile computation on 8-bit integers https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.IBRS_IBPB Speculation Control, part of Indirect Branch Control (IBC) https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.STIBP Single Thread Indirect Branch Predictor, part of IBC https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.L1D_FLUSH IA32_FLUSH_CMD MSR https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.IA32_ARCH_CAPABILITIES Speculative Side Channel Mitigations https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.IA32_CORE_CAPABILITIES Support for a MSR listing model-specific core capabilities https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.SSBD Speculative Store Bypass Disable https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| LeafProperty.ExtendedFeatures.AVX512_BF16 AVX-512 BFLOAT16 instructions https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Library documentation.
- Tools folder in solution root. Contains a script for update help md files.
· Changed
-------
- Changed IResultGeneric interface. Changed Value property name by Result (for code clarify).
· This change may have implications in your final code, it is resolved by changing Value to Result
- Update result classes for support more scenaries.
- Library versions for this version
-----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.3 Base library containing various extensions, helpers, common constants |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.2 Common Hardware Infrastructure |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform.Cpuid 1.0.0.0 Cross-Platform Generic Hardware Calls (CPUID) |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform.Cpuid 1.0.0.0 Generic Cross-Platform Interop Calls (CPUID) |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.Shared 1.0.0.0 Generic Shared Interop Definitions, Data Structures, Constants... |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.2 CPUID Specification Implementation |
-----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.0 Logging library |
-----------------------------------------------------------------------------------------------------------------------------------
v1.0.2
======
· Added
-----
- Library documentation.
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.1 Base library containing various extensions, helpers, common constants |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.1 Common Hardware Infrastructure |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform.Cpuid 1.0.0.0 Cross-Platform Generic Hardware Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform.Cpuid 1.0.0.0 Generic Cross-Platform Interop Calls (CPUID) |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.Shared 1.0.0.0 Generic Shared Interop Definitions, Data Structures, Constants... |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.1 CPUID Specification Implementation |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.0 Logging library |
----------------------------------------------------------------------------------------------------------------------------------
· Removed
-------
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform 1.0.0.0 Hardware Cross-Platform Interop Calls |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform 1.0.0.0 Generic Cross-Platform Interop Calls |
----------------------------------------------------------------------------------------------------------------------------------
v1.0.1
======
Library versions
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core 2.0.0.0 Base library containing various extensions, helpers, common constants |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.Common 1.0.0.0 Common Hardware Infrastructure |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Hardware.CrossPlatform 1.0.0.0 Hardware Cross-Platform Interop Calls |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Core.Interop.CrossPlatform 1.0.0.0 Generic Cross-Platform Interop Calls |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Hardware.Specification.Cpuid 1.0.0.0 CPUID Specification Implementation |
----------------------------------------------------------------------------------------------------------------------------------
| iTin.Logging 1.0.0.0 Logging library |
----------------------------------------------------------------------------------------------------------------------------------
Native library versions
=======================
----------------------------------------------------------------------------------------------------------------------------------
| Library Version Description |
----------------------------------------------------------------------------------------------------------------------------------
| cpuid 0.0.1.0 Native calls (CPUID instruction calls) |
----------------------------------------------------------------------------------------------------------------------------------
The code of the native cpuid library, is available in the github repository at the following link:
https://github.com/iAJTin/iCPUID/tree/master/src/lib/rust/cpuid
The code is developed in the Rust language, to know how to install, edit and use this code please see the cpuid.md file in the following link
https://github.com/iAJTin/iCPUID/blob/master/src/lib/rust/cpuid.md
Install via NuGet
=================
PM> Install-Package iCPUID
For more information, please see https://www.nuget.org/packages/iCPUID/
Usage
=====
Call CPUID.Instance.Leafs for getting all CPUID implemented leafs.
Examples
--------
1. Detection of the availability of the CPUID instruction
CPUID cpuid = CPUID.Instance;
Console.WriteLine($@" Is Available > {cpuid.IsAvailable}");
2. Gets and prints all CPUID implemented leafs.
CPUID cpuid = CPUID.Instance;
ReadOnlyCollection<Leaf> leafs = cpuid.ImplementedLeafs;
foreach (Leaf leaf in leafs)
{
Console.WriteLine($@" {(int)leaf:X8}-{leaf}");
}
3. Gets and prints all CPUID implemented leafs > sub-leafs.
CPUID cpuid = CPUID.Instance;
ReadOnlyCollection<Leaf> leafs = cpuid.ImplementedLeafs;
foreach (var (leaf, subLeafs) in leafs)
{
Console.WriteLine($@" > {leaf} (EAX={(int)leaf:X8})");
foreach (var subLeaf in subLeafs)
{
Console.WriteLine($@" > {subLeaf.SubLeaf} (ECX={(int)subLeaf.SubLeaf:X8})");
}
}
4. Gets and prints all CPUID implemented leafs > sub-leafs (shows description).
CPUID cpuid = CPUID.Instance;
ReadOnlyCollection<Leaf> leafs = cpuid.ImplementedLeafs;
foreach (var (leaf, subLeafs) in leafs)
{
Console.WriteLine($@" > {leaf} (EAX={(int)leaf:X8})");
foreach (var subLeaf in subLeafs)
{
Console.WriteLine($@" > {subLeaf.SubLeaf} (ECX={(int)subLeaf.SubLeaf:X8})");
IEnumerable<IPropertyKey> properties = subLeaf.ImplementedProperties;
foreach (var property in properties)
{
string friendlyName = GetFriendlyName(property);
PropertyUnit unit = property.PropertyUnit;
string description = property.GetPropertyDescription();
Console.WriteLine($@" > {friendlyName} {(unit == PropertyUnit.None ? string.Empty : $"({unit})")}: {description}");
}
}
}
5. Gets and prints all CPUID implemented leafs > sub-leafs (values).
CPUID cpuid = CPUID.Instance;
ReadOnlyCollection<Leaf> leafs = cpuid.ImplementedLeafs;
foreach (var (leaf, subLeafs) in leafs)
{
Console.WriteLine($@" > {leaf} (EAX={(int)leaf:X8})");
foreach (var subLeaf in subLeafs)
{
Console.WriteLine($@" > {subLeaf.SubLeaf} (ECX={(int)subLeaf.SubLeaf:X8})");
IEnumerable<IPropertyKey> properties = subLeaf.ImplementedProperties;
foreach (var property in properties)
{
QueryPropertyResult queryResult = subLeaf.GetProperty(property);
PropertyItem propertyItem = queryResult.Value;
object value = propertyItem.Value;
string friendlyName = GetFriendlyName(property);
PropertyUnit valueUnit = property.PropertyUnit;
string unit = valueUnit == PropertyUnit.None ? string.Empty : valueUnit.ToString();
if (value == null)
{
Console.WriteLine($@" > {friendlyName}: NULL");
continue;
}
if (value is bool)
{
Console.WriteLine($@" > {friendlyName}: {value} [{((bool)value ? 1 : 0)}]");
}
else if (value is string)
{
Console.WriteLine($@" > {friendlyName}: {value} {unit}");
}
else if (value is byte)
{
Console.WriteLine($@" > {friendlyName}: {value} {unit} [{value:X2}h]");
}
else if (value is int)
{
Console.WriteLine($@" > {friendlyName}: {value} {unit} [{value:X4}h]");
}
else if (value is uint)
{
Console.WriteLine($@" > {friendlyName}: {value} {unit} [{value:X4}h]");
}
else if (value is ulong)
{
Console.WriteLine($@" > {friendlyName}: {value} {unit} [{value:X8}h]");
}
else if (value.GetType() == typeof(ReadOnlyCollection<string>))
{
Console.WriteLine($@" > {friendlyName}");
var collection = (ReadOnlyCollection<string>)value;
foreach (var entry in collection)
{
Console.WriteLine($@" > {entry} {unit}");
}
}
else
{
Console.WriteLine($@" > {friendlyName}: {value} {unit}");
}
}
}
}
6. Gets a single property directly.
CPUID cpuid = CPUID.Instance;
QueryPropertyResult manufacturerQueryResult = cpuid.Leafs.GetProperty(LeafProperty.BasicInformation.Manufacturer);
if (manufacturerQueryResult.Success)
{
Console.WriteLine($@" > Manufacturer: {manufacturerQueryResult.Value.Value}");
}
QueryPropertyResult avx2 = cpuid.Leafs.GetProperty(LeafProperty.ExtendedFeatures.AVX2);
if (avx2.Success)
{
Console.WriteLine($@" > AVX2: {avx2.Value.Value}");
}
7. Gets a property in multiple elements directly.
CPUID cpuid = CPUID.Instance;
QuerySubLeafPropertyCollectionResult cacheSizesQueryResult = leafs.GetProperties(LeafProperty.DeterministicCacheParameters.CacheSize);
if (cacheSizesQueryResult.Success)
{
CpuidSubLeafDictionary cacheSizes = cacheSizesQueryResult.Value;
bool hasCacheSizesEntries = cacheSizes.Any();
if (!hasCacheSizesEntries)
{
Console.WriteLine($@" > Sorry, The 'LeafProperty.DeterministicCacheParameters.CacheSize' property has not implementes on this system");
}
else
{
foreach (var (subLeaf, propertyItem) in cacheSizes)
{
Console.WriteLine($@" > Cache Size: ({subLeaf}) > {propertyItem.Value}");
}
}
}
Documentation
==============
- For full code documentation, please see next link https://github.com/iAJTin/iCPUID/blob/master/documentation/iTin.Hardware.Specification.Cpuid.md.