1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 21:31:15 +02:00

Add JSON output. Fixes #24

This commit is contained in:
Guillaume Chatelet
2018-03-27 15:28:40 +02:00
parent 9b872ce0b2
commit 07fd90d4f5
4 changed files with 229 additions and 110 deletions

View File

@ -121,7 +121,12 @@ family : 6 (0x06)
model : 45 (0x2D)
stepping : 7 (0x07)
uarch : INTEL_SNB
flags : aes, avx, sse4_1, sse4_2, ssse3
flags : aes,avx,cx16,smx,sse4_1,sse4_2,ssse3
```
```shell
% ./build/list_cpu_features --json
{"arch":"x86","brand":" Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz","family":6,"model":45,"stepping":7,"uarch":"INTEL_SNB","flags":["aes","avx","cx16","smx","sse4_1","sse4_2","ssse3"]}
```
<a name="support"></a>