/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageExporterJson.cpp | 83 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment() 84 return json::Array({Segment.Line, Segment.Col, in renderSegment() 89 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion() 90 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion() 96 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch() 97 return json::Array( in renderBranch() 104 json::Array gatherConditions(const coverage::MCDCRecord &Record) { in gatherConditions() 105 json::Array Conditions; in gatherConditions() 111 json::Array renderMCDCRecord(const coverage::MCDCRecord &Record) { in renderMCDCRecord() 113 return json::Array({CMR.LineStart, CMR.ColumnStart, CMR.LineEnd, in renderMCDCRecord() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | TraceGDBRemotePackets.h | 35 bool fromJSON(const llvm::json::Value &value, TraceSupportedResponse &info, 36 llvm::json::Path path); 38 llvm::json::Value toJSON(const TraceSupportedResponse &packet); 56 bool fromJSON(const llvm::json::Value &value, TraceStartRequest &packet, 57 llvm::json::Path path); 59 llvm::json::Value toJSON(const TraceStartRequest &packet); 80 bool fromJSON(const llvm::json::Value &value, TraceStopRequest &packet, 81 llvm::json::Path path); 83 llvm::json::Value toJSON(const TraceStopRequest &packet); 93 bool fromJSON(const llvm::json::Value &value, TraceGetStateRequest &packet, [all …]
|
H A D | TraceIntelPTGDBRemotePackets.h | 61 bool fromJSON(const llvm::json::Value &value, TraceIntelPTStartRequest &packet, 62 llvm::json::Path path); 64 llvm::json::Value toJSON(const TraceIntelPTStartRequest &packet); 76 llvm::json::Value toJSON(const JSONUINT64 &uint64, bool hex); 78 bool fromJSON(const llvm::json::Value &value, JSONUINT64 &uint64, 79 llvm::json::Path path); 118 bool fromJSON(const llvm::json::Value &value, 119 LinuxPerfZeroTscConversion &packet, llvm::json::Path path); 121 llvm::json::Value toJSON(const LinuxPerfZeroTscConversion &packet); 123 bool fromJSON(const llvm::json::Value &value, [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | TraceGDBRemotePackets.cpp | 12 using namespace llvm::json; 17 bool fromJSON(const json::Value &value, TraceSupportedResponse &packet, in fromJSON() 24 json::Value toJSON(const TraceSupportedResponse &packet) { in toJSON() 25 return json::Value( in toJSON() 34 bool fromJSON(const json::Value &value, TraceStartRequest &packet, Path path) { in fromJSON() 39 json::Value toJSON(const TraceStartRequest &packet) { in toJSON() 40 return json::Value(Object{{"tids", packet.tids}, {"type", packet.type}}); in toJSON() 56 bool fromJSON(const json::Value &value, TraceStopRequest &packet, Path path) { in fromJSON() 61 json::Value toJSON(const TraceStopRequest &packet) { in toJSON() 62 return json::Value(Object{{"type", packet.type}, {"tids", packet.tids}}); in toJSON() [all …]
|
H A D | TraceIntelPTGDBRemotePackets.cpp | 12 using namespace llvm::json; 25 json::Value toJSON(const JSONUINT64 &uint64, bool hex) { in toJSON() 27 return json::Value(formatv("{0:x+}", uint64.value)); in toJSON() 29 return json::Value(formatv("{0}", uint64.value)); in toJSON() 32 bool fromJSON(const json::Value &value, JSONUINT64 &uint64, Path path) { in fromJSON() 45 bool fromJSON(const json::Value &value, TraceIntelPTStartRequest &packet, in fromJSON() 63 json::Value toJSON(const TraceIntelPTStartRequest &packet) { in toJSON() 64 json::Value base = toJSON((const TraceStartRequest &)packet); in toJSON() 65 json::Object &obj = *base.getAsObject(); in toJSON() 89 json::Value toJSON(const LinuxPerfZeroTscConversion &packet) { in toJSON() [all …]
|
H A D | StructuredData.cpp | 21 static StructuredData::ObjectSP ParseJSONValue(json::Value &value); 22 static StructuredData::ObjectSP ParseJSONObject(json::Object *object); 23 static StructuredData::ObjectSP ParseJSONArray(json::Array *array); 26 llvm::Expected<json::Value> value = json::parse(json_text); in ParseJSON() 45 llvm::Expected<json::Value> value = in ParseJSONFromFile() 46 json::parse(buffer_or_error.get()->getBuffer().str()); in ParseJSONFromFile() 58 static StructuredData::ObjectSP ParseJSONValue(json::Value &value) { in ParseJSONValue() 59 if (json::Object *O = value.getAsObject()) in ParseJSONValue() 62 if (json in ParseJSONValue() [all...] |
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Sarif.cpp | 144 json::Object createMessage(StringRef Text) { in createMessage() 145 return json::Object{{"text", Text.str()}}; in createMessage() 150 static json::Object createTextRegion(const SourceManager &SM, in createTextRegion() 154 json::Object Region{{"startLine", BeginCharLoc.getExpansionLineNumber()}, in createTextRegion() 166 static json::Object createLocation(json::Object &&PhysicalLocation, in createLocation() 168 json::Object Ret{{"physicalLocation", std::move(PhysicalLocation)}}; in createLocation() 201 static json::Object 202 createThreadFlowLocation(json::Object &&Location, in createThreadFlowLocation() 204 return json::Object{{"location", std::move(Location)}, in createThreadFlowLocation() 209 json::Object [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
H A D | TraceIntelPTJSONStructs.h | 63 llvm::json::Value toJSON(const JSONModule &module); 65 llvm::json::Value toJSON(const JSONThread &thread); 67 llvm::json::Value toJSON(const JSONProcess &process); 69 llvm::json::Value toJSON(const JSONCpu &cpu); 71 llvm::json::Value toJSON(const pt_cpu &cpu_info); 73 llvm::json::Value toJSON(const JSONKernel &kernel); 75 llvm::json::Value toJSON(const JSONTraceBundleDescription &bundle_description); 77 bool fromJSON(const llvm::json::Value &value, JSONModule &module, 78 llvm::json::Path path); 80 bool fromJSON(const llvm::json::Value &value, JSONThread &thread, [all …]
|
H A D | TraceIntelPTJSONStructs.cpp | 18 using namespace llvm::json; 33 json::Value toJSON(const JSONModule &module) { in toJSON() 34 json::Object json_module; in toJSON() 44 bool fromJSON(const json::Value &value, JSONModule &module, Path path) { in fromJSON() 52 json::Value toJSON(const JSONThread &thread) { in toJSON() 53 json::Object obj{{"tid", thread.tid}}; in toJSON() 59 bool fromJSON(const json::Value &value, JSONThread &thread, Path path) { in fromJSON() 64 json::Value toJSON(const JSONProcess &process) { in toJSON() 73 bool fromJSON(const json::Value &value, JSONProcess &process, Path path) { in fromJSON() 79 json::Value toJSON(const JSONCpu &cpu) { in toJSON() [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A D | json.h | 36 void json_free(struct json_token *json); 37 struct json_token * json_get_member(struct json_token *json, const char *name); 38 struct wpabuf * json_get_member_base64url(struct json_token *json, 40 struct wpabuf * json_get_member_base64(struct json_token *json, 43 void json_add_int(struct wpabuf *json, const char *name, int val); 44 void json_add_string(struct wpabuf *json, const char *name, const char *val); 45 int json_add_string_escape(struct wpabuf *json, const char *name, 47 int json_add_base64url(struct wpabuf *json, const char *name, const void *val, 49 int json_add_base64(struct wpabuf *json, const char *name, const void *val, 51 void json_start_object(struct wpabuf *json, const char *name); [all …]
|
H A D | json.c | 481 void json_free(struct json_token *json) in json_free() argument 483 if (!json) in json_free() 485 json_free(json->child); in json_free() 486 json_free(json->sibling); in json_free() 487 os_free(json->name); in json_free() 488 os_free(json->string); in json_free() 489 os_free(json); in json_free() 493 struct json_token * json_get_member(struct json_token *json, const char *name) in json_get_member() argument 497 if (!json || json->type != JSON_OBJECT) in json_get_member() 500 for (token = json->child; token; token = token->sibling) { in json_get_member() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/ |
H A D | ObjectFileJSON.cpp | 65 Expected<json::Value> json = json::parse(text); in CreateInstance() local 66 if (!json) { in CreateInstance() 67 LLDB_LOG_ERROR(log, json.takeError(), in CreateInstance() 72 json::Path::Root root; in CreateInstance() 74 if (!fromJSON(*json, header, root)) { in CreateInstance() 86 if (!fromJSON(*json, body, root)) { in CreateInstance() 123 Expected<json::Value> json = json::parse(text); in GetModuleSpecifications() local 124 if (!json) { in GetModuleSpecifications() 125 LLDB_LOG_ERROR(log, json.takeError(), in GetModuleSpecifications() 130 json::Path::Root root; in GetModuleSpecifications() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | JSONBackend.cpp | 31 json::Value translateInit(const Init &I); 43 json::Value JSONEmitter::translateInit(const Init &I) { in translateInit() 53 json::Array array; in translateInit() 62 json::Array array; in translateInit() 73 json::Object obj; in translateInit() 96 json::Array args; in translateInit() 98 json::Array arg; in translateInit() 120 json::Object root; in run() 130 std::map<std::string, json::Array> instance_lists; in run() 141 json::Object obj; in run() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Statistics.cpp | 25 static void EmplaceSafeString(llvm::json::Object &obj, llvm::StringRef key, in EmplaceSafeString() 29 if (LLVM_LIKELY(llvm::json::isUTF8(str))) in EmplaceSafeString() 32 obj.try_emplace(key, llvm::json::fixUTF8(str)); in EmplaceSafeString() 35 json::Value StatsSuccessFail::ToJSON() const { in ToJSON() 36 return json::Object{{"successes", successes}, {"failures", failures}}; in ToJSON() 51 json::Value ModuleStats::ToJSON() const { in ToJSON() 52 json::Object module; in ToJSON() 78 json::Array symfile_ids; in ToJSON() 85 json::Array type_systems; in ToJSON() 87 json::Object obj; in ToJSON() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
H A D | PipelinePrinter.cpp | 32 json::Object PipelinePrinter::getJSONReportRegion() const { in getJSONReportRegion() 33 json::Object JO; in getJSONReportRegion() 47 json::Object PipelinePrinter::getJSONSimulationParameters() const { in getJSONSimulationParameters() 48 json::Object SimParameters({{"-mcpu", STI.getCPU()}, in getJSONSimulationParameters() 80 json::Object PipelinePrinter::getJSONTargetInfo() const { in getJSONTargetInfo() 81 json::Array Resources; in getJSONTargetInfo() 102 return json::Object({{"CPUName", MCPU}, {"Resources", std::move(Resources)}}); in getJSONTargetInfo() 105 void PipelinePrinter::printReport(json::Object &JO) const { in printReport() 110 JO.try_emplace("CodeRegions", json::Array()); in printReport() 113 json::Array *Regions = JO.getArray("CodeRegions"); in printReport()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/ |
H A D | tst.usdt.d | 39 /json(this->j, "finished") == NULL && json(this->j, "action") != "ignore"/ 41 this->index = strtoll(json(this->j, "index")); 42 this->size = json(this->j, "sizes[2]"); 43 this->odd = json(this->j, "facts.odd"); 44 this->even = json(this->j, "facts.even"); 50 /json(this->j, "finished") != NULL/
|
H A D | tst.usdt.c | 51 char *json; in main() local 58 asprintf(&json, FMT, size, idx, odd, even, action); in main() 59 BUNYAN_FAKE_LOG_DEBUG(json); in main() 60 free(json); in main()
|
H A D | tst.strsize.d | 30 out = json(in, "a"); 34 out = json(in, "a"); 38 out = json(in, "b"); 42 out = json(in, "b");
|
/freebsd/release/scripts/ |
H A D | make-oci-image.sh | 112 …:[{\"created\":\"${create_time}\",\"created_by\":\"make-oci-image.sh\"}]}" > ${workdir}/config.json 113 local config_hash=$(sha256 -q < ${workdir}/config.json) 114 local config_size=$(stat -f %z ${workdir}/config.json) 116 …t\":\"sha256:${root_hash}\",\"size\":${root_size}}],\"annotations\":{}}" > ${workdir}/manifest.json 117 local manifest_hash=$(sha256 -q < ${workdir}/manifest.json) 118 local manifest_size=$(stat -f %z ${workdir}/manifest.json) 122 …{\"org.opencontainers.image.ref.name\":\"freebsd-${image}:${ver}\"}}]}" > ${workdir}/oci/index.json 124 ln ${workdir}/config.json ${workdir}/oci/blobs/sha256/${config_hash} 125 ln ${workdir}/manifest.json ${workdir}/oci/blobs/sha256/${manifest_hash}
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | JSON.cpp | 22 namespace json { namespace 67 const json::Object *Object::getObject(StringRef K) const { in getObject() 72 json::Object *Object::getObject(StringRef K) { in getObject() 77 const json::Array *Object::getArray(StringRef K) const { in getArray() 82 json::Array *Object::getArray(StringRef K) { in getArray() 107 : Value(json::Array(Elements)) {} in Value() 126 create<json::Object>(M.as<json::Object>()); in copyFrom() 129 create<json::Array>(M.as<json::Array>()); in copyFrom() 152 create<json::Object>(std::move(M.as<json::Object>())); in moveFrom() 156 create<json::Array>(std::move(M.as<json::Array>())); in moveFrom() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | DIPrinter.cpp | 285 static json::Object toJSON(const Request &Request, StringRef ErrorMsg = "") { in toJSON() 286 json::Object Json({{"ModuleName", Request.ModuleName.str()}}); in toJSON() 292 Json["Error"] = json::Object({{"Message", ErrorMsg.str()}}); in toJSON() 296 static json::Object toJSON(const DILineInfo &LineInfo) { in toJSON() 297 return json::Object( in toJSON() 321 json::Array Array; in print() 324 json::Object Object = toJSON(LineInfo); in print() 334 json::Object Json = toJSON(Request); in print() 343 json::Object Data( in print() 347 json [all...] |
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
H A D | InstructionInfoView.cpp | 148 json::Object 150 json::Object JO({{"NumMicroOpcodes", IIVD.NumMicroOpcodes}, in toJSON() 159 json::Value InstructionInfoView::toJSON() const { in toJSON() 162 return json::Value(0); in toJSON() 167 json::Array InstInfo; in toJSON() 170 json::Object JO = toJSON(IIVDEntry); in toJSON() 174 return json::Object({{"InstructionList", json::Value(std::move(InstInfo))}}); in toJSON()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/oformat/ |
H A D | tst.ustack.ksh | 42 script json 43 jq . $dtraceout.json 46 echo $bname: failed to produce valid JSON. see $dtraceout.json 58 rm $dtraceout.json
|
H A D | tst.usym.ksh | 38 script json 39 jq . $dtraceout.json 42 echo $bname: failed to produce valid JSON. see $dtraceout.json 54 rm $dtraceout.json
|
H A D | tst.mod.ksh | 38 script json 39 jq . $dtraceout.json 42 echo $bname: failed to produce valid JSON. see $dtraceout.json 54 rm $dtraceout.json
|