Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 226) sorted by relevance

12345678910

/freebsd-14-stable/contrib/llvm-project/llvm/tools/llvm-cov/
HDCoverageExporterJson.cpp83 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-14-stable/contrib/llvm-project/lldb/include/lldb/Utility/
HDTraceGDBRemotePackets.h35 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 …]
HDTraceIntelPTGDBRemotePackets.h61 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-14-stable/contrib/llvm-project/lldb/source/Utility/
HDTraceGDBRemotePackets.cpp12 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 …]
HDTraceIntelPTGDBRemotePackets.cpp12 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 …]
HDStructuredData.cpp21 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::Array *A = value.getAsArray()) in ParseJSONValue()
86 static StructuredData::ObjectSP ParseJSONObject(json::Object *object) { in ParseJSONObject()
[all …]
/freebsd-14-stable/contrib/llvm-project/clang/lib/Basic/
HDSarif.cpp144 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-14-stable/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
HDTraceIntelPTJSONStructs.h63 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 …]
HDTraceIntelPTJSONStructs.cpp18 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-14-stable/contrib/wpa/src/utils/
HDjson.h36 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 …]
HDjson.c481 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-14-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/
HDObjectFileJSON.cpp65 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-14-stable/contrib/llvm-project/llvm/lib/TableGen/
HDJSONBackend.cpp31 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-14-stable/contrib/llvm-project/lldb/source/Target/
HDStatistics.cpp25 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-14-stable/contrib/llvm-project/llvm/tools/llvm-mca/
HDPipelinePrinter.cpp32 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()
HDPipelinePrinter.h49 json::Object getJSONReportRegion() const;
50 json::Object getJSONTargetInfo() const;
51 json::Object getJSONSimulationParameters() const;
64 void printReport(json::Object &JO) const;
/freebsd-14-stable/release/scripts/
HDmake-oci-image.sh117 …:[{\"created\":\"${create_time}\",\"created_by\":\"make-oci-image.sh\"}]}" > ${workdir}/config.json
118 local config_hash=$(sha256 -q < ${workdir}/config.json)
119 local config_size=$(stat -f %z ${workdir}/config.json)
121 …t\":\"sha256:${root_hash}\",\"size\":${root_size}}],\"annotations\":{}}" > ${workdir}/manifest.json
122 local manifest_hash=$(sha256 -q < ${workdir}/manifest.json)
123 local manifest_size=$(stat -f %z ${workdir}/manifest.json)
127 …{\"org.opencontainers.image.ref.name\":\"freebsd-${image}:${ver}\"}}]}" > ${workdir}/oci/index.json
129 ln ${workdir}/config.json ${workdir}/oci/blobs/sha256/${config_hash}
130 ln ${workdir}/manifest.json ${workdir}/oci/blobs/sha256/${manifest_hash}
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Support/
HDJSON.cpp22 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-14-stable/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
HDDIPrinter.cpp285 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::Object Json = toJSON(Request); in print()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/tools/llvm-mca/Views/
HDInstructionInfoView.cpp148 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-14-stable/release/
HDMakefile.oracle56 ORACLE_CAPABILITY= ${.CURDIR}/scripts/oracle/image_capability_data.json
57 ORACLE_TEMPLATE= ${.CURDIR}/scripts/oracle/image_metadata.json
58 ORACLE_OUTPUT_${_FS}= ${ORACLE_TMP_${_FS}}/image_metadata.json
60 ORACLE_SHAPES= ${ORACLE_METADATA}/arm64_shape_compatibilities.json
62 ORACLE_SHAPES= ${ORACLE_METADATA}/default_shape_compatibilities.json
83 image_metadata.json output.QCOW2
/freebsd-14-stable/contrib/libucl/
HDREADME.md11 - [Improvements to the json notation](#improvements-to-the-json-notation)
37 system. However, UCL is fully compatible with `JSON` format and is able to parse json files.
66 ```json
92 ## Improvements to the json notation.
94 There are various things that make ucl configuration more convenient for editing than strict json:
100 ```json
104 ```json
117 ```json
128 ```json
138 ```json
[all …]
/freebsd-14-stable/contrib/llvm-project/lldb/source/Plugins/TraceExporter/common/
HDTraceHTR.cpp385 llvm::json::Value lldb_private::toJSON(const TraceHTR &htr) { in toJSON()
386 std::vector<llvm::json::Value> layers_as_json; in toJSON()
423 layers_as_json.emplace_back(llvm::json::Object{ in toJSON()
439 llvm::json::Value block_json = toJSON(block); in toJSON()
461 layers_as_json.emplace_back(llvm::json::Object{ in toJSON()
475 llvm::json::Value lldb_private::toJSON(const HTRBlock &block) { in toJSON()
476 return llvm::json::Value( in toJSON()
477 llvm::json::Object{{"Metadata", block.GetMetadata()}}); in toJSON()
480 llvm::json::Value lldb_private::toJSON(const HTRBlockMetadata &metadata) { in toJSON()
481 std::vector<llvm::json::Value> function_calls; in toJSON()
[all …]
/freebsd-14-stable/usr.sbin/pmc/
HDcmd_pmc_filter.cc179 pmc_log_event(int fd, struct pmclog_ev *ev, bool json) in pmc_log_event() argument
185 if (json) { in pmc_log_event()
199 char *events, char *processes, char *threads, bool exclusive, bool json, int infd, in pmc_filter_handler() argument
254 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
294 pmc_log_event(outfd, &ev, json); in pmc_filter_handler()
306 bool exclusive, json; in cmd_pmc_filter() local
310 json = exclusive = false; in cmd_pmc_filter()
317 json = true; in cmd_pmc_filter()
358 processes, threads, exclusive, json, prelogfd, postlogfd); in cmd_pmc_filter()
/freebsd-14-stable/contrib/llvm-project/lldb/include/lldb/Target/
HDStatistics.h92 llvm::json::Value ToJSON() const;
100 llvm::json::Value ToJSON() const;
112 llvm::StringMap<llvm::json::Value> type_system_stats;
129 llvm::json::Value ToJSON() const;
180 llvm::json::Value ToJSON(Target &target,
225 static llvm::json::Value

12345678910