Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DCoverageExporterJson.cpp97 return json::Array( in renderBranch()
105 json::Array Conditions; in gatherConditions()
165 return json::Object( in renderExpansion()
177 return json::Object( in renderSummary()
183 json::Object( in renderSummary()
188 json::Object( in renderSummary()
194 json::Object( in renderSummary()
201 json::Object( in renderSummary()
208 json::Object( in renderSummary()
281 json::Array FileArray; in renderFiles()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DTraceGDBRemotePackets.h36 llvm::json::Path path);
57 llvm::json::Path path);
81 llvm::json::Path path);
94 llvm::json::Path path);
106 llvm::json::Path path);
117 llvm::json::Path path);
128 llvm::json::Path path);
130 llvm::json::Value toJSON(const TraceCpuState &packet);
142 llvm::json::Path path);
160 bool fromJSON(const llvm::json::Value &value,
[all …]
H A DTraceIntelPTGDBRemotePackets.h62 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,
124 TraceIntelPTGetStateResponse &packet, llvm::json::Path path);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DTraceGDBRemotePackets.cpp12 using namespace llvm::json;
25 return json::Value( in toJSON()
39 json::Value toJSON(const TraceStartRequest &packet) { in toJSON()
61 json::Value toJSON(const TraceStopRequest &packet) { in toJSON()
75 return json::Value(Object{{"type", packet.type}}); in toJSON()
83 json::Value toJSON(const TraceBinaryData &packet) { in toJSON()
94 return json::Value( in toJSON()
120 json::Path path) { in fromJSON()
129 json::Value toJSON(const TraceCpuState &packet) { in toJSON()
130 return json::Value( in toJSON()
[all …]
H A DTraceIntelPTGDBRemotePackets.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()
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()
90 return json::Value(json::Object{ in toJSON()
98 json::Path path) { in fromJSON()
110 json::Path path) { in fromJSON()
[all …]
H A DStructuredData.cpp21 static StructuredData::ObjectSP ParseJSONValue(json::Value &value);
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()
59 if (json::Object *O = value.getAsObject()) in ParseJSONValue()
62 if (json::Array *A = value.getAsArray()) in ParseJSONValue()
90 json::Value value = KV.second; in ParseJSONObject()
99 for (json::Value &value : *array) { in ParseJSONArray()
139 json::OStream stream(llvm::outs(), pretty_print ? 2 : 0); in DumpToStdout()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSarif.cpp167 static json::Object createLocation(json::Object &&PhysicalLocation, in createLocation()
202 static json::Object
210 json::Object
275 json::Array Rules; in endRun()
325 json::Array
327 json::Object Ret{{"locations", json::Array{}}}; in createThreadFlows()
328 json::Array Locs; in createThreadFlows()
339 json::Object
353 json::Object Tool{ in createRun()
397 json::Array Locs; in appendResult()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTJSONStructs.h63 llvm::json::Value toJSON(const JSONModule &module);
69 llvm::json::Value toJSON(const JSONCpu &cpu);
71 llvm::json::Value toJSON(const pt_cpu &cpu_info);
78 llvm::json::Path path);
81 llvm::json::Path path);
84 llvm::json::Path path);
87 llvm::json::Path path);
90 llvm::json::Path path);
93 llvm::json::Path path);
95 bool fromJSON(const llvm::json::Value &value,
[all …]
H A DTraceIntelPTJSONStructs.cpp18 using namespace llvm::json;
33 json::Value toJSON(const JSONModule &module) { in toJSON()
34 json::Object json_module; in toJSON()
52 json::Value toJSON(const JSONThread &thread) { in toJSON()
53 json::Object obj{{"tid", thread.tid}}; in toJSON()
64 json::Value toJSON(const JSONProcess &process) { in toJSON()
79 json::Value toJSON(const JSONCpu &cpu) { in toJSON()
97 json::Value toJSON(const pt_cpu &cpu_info) { in toJSON()
120 json::Value toJSON(const JSONKernel &kernel) { in toJSON()
121 json::Object json_module; in toJSON()
[all …]
/freebsd/contrib/wpa/src/utils/
H A Djson.h36 void json_free(struct json_token *json);
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);
45 int json_add_string_escape(struct wpabuf *json, const char *name,
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);
52 void json_end_object(struct wpabuf *json);
53 void json_start_array(struct wpabuf *json, const char *name);
54 void json_end_array(struct wpabuf *json);
[all …]
H A Djson.c483 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()
497 if (!json || json->type != JSON_OBJECT) in json_get_member()
663 wpabuf_put_u8(json, '{'); in json_start_object()
669 wpabuf_put_u8(json, '}'); in json_end_object()
677 wpabuf_put_u8(json, '['); in json_start_array()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/
H A DObjectFileJSON.cpp65 Expected<json::Value> json = json::parse(text); in CreateInstance() local
66 if (!json) { in CreateInstance()
72 json::Path::Root 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()
130 json::Path::Root root; in GetModuleSpecifications()
206 json::Path path) { in fromJSON()
207 json::ObjectMapper o(value, path); in fromJSON()
213 json::Path path) { in fromJSON()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DJSONBackend.cpp30 json::Value translateInit(const Init &I);
52 json::Array array; in translateInit()
61 json::Array array; in translateInit()
72 json::Object obj; in translateInit()
95 json::Array args; in translateInit()
97 json::Array arg; in translateInit()
119 json::Object root; in run()
140 json::Object obj; in run()
141 json::Array fields; in run()
154 json::Array superclasses; in run()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DStatistics.cpp49 json::Object module; in ToJSON()
75 json::Array symfile_ids; in ToJSON()
82 json::Array type_systems; in ToJSON()
84 json::Object obj; in ToJSON()
95 json::Object obj; in ToJSON()
109 json::Object target_metrics_json{ in ToJSON()
127 json::Array breakpoints_array; in ToJSON()
188 json::Array json_targets; in ReportStatistics()
189 json::Array json_modules; in ReportStatistics()
290 json::Object json_memory{ in ReportStatistics()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp53 using llvm::json::toJSON; in toJSON()
55 llvm::json::Object JsonObj; in toJSON()
63 using llvm::json::toJSON; in toJSON()
65 llvm::json::Object JsonObj; in toJSON()
72 llvm::json::Object toJSON(ClassData const &Obj) { in toJSON()
73 llvm::json::Object JsonObj; in toJSON()
93 using llvm::json::toJSON; in toJSON()
95 llvm::json::Object JsonObj; in toJSON()
104 llvm::json::Object JsonObj; in WriteJSON()
106 using llvm::json::toJSON; in WriteJSON()
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/
H A Dtst.usdt.d39 /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 Dtst.usdt.c51 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 Dtst.strsize.d30 out = json(in, "a");
34 out = json(in, "a");
38 out = json(in, "b");
42 out = json(in, "b");
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A DPipelinePrinter.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()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DJSON.cpp22 namespace json { namespace
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()
177 as<json::Object>().~Object(); in destroy()
180 as<json::Array>().~Array(); in destroy()
837 void llvm::json::OStream::newline() { in newline()
852 void llvm::json::OStream::arrayEnd() { in arrayEnd()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DDIPrinter.cpp297 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()
357 json::Array Frame; in print()
359 json::Object FrameObject( in print()
370 json::Object Json = toJSON(Request); in print()
380 json::Array Definitions; in print()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/
H A DInstructionInfoView.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/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/oformat/
H A Dtst.mod.ksh38 script json
39 jq . $dtraceout.json
42 echo $bname: failed to produce valid JSON. see $dtraceout.json
54 rm $dtraceout.json
H A Dtst.printf.ksh38 script json
39 jq . $dtraceout.json
42 echo $bname: failed to produce valid JSON. see $dtraceout.json
54 rm $dtraceout.json
H A Dtst.printm.ksh38 script json
39 jq . $dtraceout.json
42 echo $bname: failed to produce valid JSON. see $dtraceout.json
54 rm $dtraceout.json

1234567891011