Lines Matching refs:cpu_info
96 json::Value toJSON(const pt_cpu &cpu_info) { in toJSON() argument
98 {"vendor", cpu_info.vendor == pcv_intel ? "GenuineIntel" : "Unknown"}, in toJSON()
99 {"family", cpu_info.family}, in toJSON()
100 {"model", cpu_info.model}, in toJSON()
101 {"stepping", cpu_info.stepping}, in toJSON()
105 bool fromJSON(const json::Value &value, pt_cpu &cpu_info, Path path) { in fromJSON() argument
112 cpu_info.vendor = vendor == "GenuineIntel" ? pcv_intel : pcv_unknown; in fromJSON()
113 cpu_info.family = family; in fromJSON()
114 cpu_info.model = model; in fromJSON()
115 cpu_info.stepping = stepping; in fromJSON()
124 {"cpuInfo", toJSON(bundle_description.cpu_info)}, in toJSON()
142 if (!fromJSON(*value.getAsObject()->get("cpuInfo"), bundle_description.cpu_info, in fromJSON()