/freebsd/sys/contrib/device-tree/Bindings/ |
H A D | writing-schema.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Writing Devicetree Bindings in json-schema 6 Devicetree bindings are written using json-schema vocabulary. Schema files are 7 written in a JSON-compatible subset of YAML. YAML is used instead of JSON as it 11 Also see :ref:`example-schema`. 13 Schema Contents 14 --------------- 16 Each schema doc is a structured json-schema which is defined by a set of 17 top-level properties. Generally, there is one binding defined per file. The 18 top-level json-schema properties used are: [all …]
|
H A D | example-schema.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 # All the top-level keys are standard json-schema keywords except for 10 $id: http://devicetree.org/schemas/example-schema.yaml# 11 # $schema is the meta-schema this schema should be validated with. 12 $schema: http://devicetree.org/meta-schemas/core.yaml# 17 - Rob Herring <robh@kernel.org> 20 A more detailed multi-line description of the binding. 29 # 'select' is a schema applied to a DT node to determine if this binding 30 # schema should be applied to the node. It is optional and by default the [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 DT_DOC_CHECKER ?= dt-doc-validate 3 DT_EXTRACT_EX ?= dt-extract-example 4 DT_MK_SCHEMA ?= dt-mk-schema 19 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \ 28 find_all_cmd = find $(src) \( -name '*.yaml' ! \ 29 -name 'processed-schema*' \) 33 grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \ 39 xargs -n200 -P$$(nproc) \ 40 $(DT_SCHEMA_LINT) -f parsable -c $(src)/.yamllint >&2) \ [all …]
|
H A D | .gitignore | 1 # SPDX-License-Identifier: GPL-2.0-only 3 /processed-schema*.yaml 4 /processed-schema*.json 7 # We don't want to ignore the following even if they are dot-files
|
H A D | submitting-patches.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 Documentation/process/submitting-patches.rst applies. 13 1) The Documentation/ and include/dt-bindings/ portion of the patch should 16 "dt-bindings: <binding dir>: ..." 21 "<binding dir>: dt-bindings: ..." 27 2) DT binding files are written in DT schema format using json-schema 33 See Documentation/devicetree/bindings/writing-schema.rst for more details 34 about schema and tools setup. 37 (GPL-2.0-only OR BSD-2-Clause). 73 binding, and it hasn't received an Acked-by from the devicetree
|
/freebsd/contrib/libucl/tests/schema/ |
H A D | refRemote.json | 4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"}, object 20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"}, object 36 "schema": { object 37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger" 55 "schema": { 56 "id": "http://highsecure.ru/ucl-schema/remotes/", 59 "items": {"$ref": "folderInteger.json"}
|
H A D | refRemote.json.disabled | 4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"}, 20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"}, 36 "schema": { 37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger" 55 "schema": { 56 "id": "http://highsecure.ru/ucl-schema/remotes/", 59 "items": {"$ref": "folderInteger.json"}
|
/freebsd/contrib/libucl/ |
H A D | README.md | 9 - [Introduction](#introduction) 10 - [Basic structure](#basic-structure) 11 - [Improvements to the json notation](#improvements-to-the-json-notation) 12 - [General syntax sugar](#general-syntax-sugar) 13 - [Automatic arrays creation](#automatic-arrays-creation) 14 - [Named keys hierarchy](#named-keys-hierarchy) 15 - [Convenient numbers and booleans](#convenient-numbers-and-booleans) 16 - [General improvements](#general-improvements) 17 - [Comments](#comments) 18 - [Macros support](#macros-support) [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
H A D | TraceIntelPTBundleLoader.h | 1 //===-- TraceIntelPTBundleLoader.h ----------------------------*- C++ //-*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 32 /// The JSON description of a trace bundle that follows the schema of the 33 /// intel pt trace plug-in. 38 const llvm::json::Value &bundle_description, in TraceIntelPTBundleLoader() 44 /// The JSON schema for the bundle description. 56 /// Resolve non-absolute paths relative to the bundle folder. 59 /// Create a post-mortem thread associated with the given \p process 74 /// Create the corresponding Threads and Process objects given the JSON [all …]
|
H A D | TraceIntelPTBundleLoader.cpp | 1 //===-- TraceIntelPTBundleLoader.cpp -------- 228 static std::string schema; GetSchema() local [all...] |
/freebsd/contrib/libucl/doc/ |
H A D | libucl.3 | 9 \f[B]ucl_parser_set_filevars\f[] \- universal configuration library 13 UCL library (libucl, \-lucl) 35 \f[C]JSON\f[] \- valid json format (can possibly lose some original 38 \f[C]Config\f[] \- human\-readable configuration format (lossless) 40 \f[C]YAML\f[] \- embedded yaml format (has the same limitations as 41 \f[C]json\f[] output) 60 json\-schema compatible object \f[C]schema\f[]. 61 Both input and schema must be UCL objects to perform validation. 79 \f[C]UCL_PARSER_KEY_LOWERCASE\f[] \- lowercase keys parsed 81 \f[C]UCL_PARSER_ZEROCOPY\f[] \- try to use zero\-copy mode when reading [all …]
|
H A D | api.md | 5 - [Synopsis](#synopsis) 6 - [Description](#description) 7 - [Parser functions](#parser-functions) 8 - [Emitting functions](#emitting-functions) 9 - [Conversion functions](#conversion-functions) 10 - [Generation functions](#generation-functions) 11 - [Iteration functions](#iteration-functions) 12 - [Validation functions](#validation-functions) 13 - [Utility functions](#utility-functions) 14 - [Parser functions](#parser-functions-1) [all …]
|
/freebsd/contrib/libucl/lua/ |
H A D | lua_ucl.c | 47 local got = ucl.to_format(obj, 'json') 60 -- Output: 61 --[[ 66 --]] 104 lua_settable (L, -3); in ucl_object_lua_push_element() 112 luaL_unref (fd->L, LUA_REGISTRYINDEX, fd->idx); in lua_ucl_userdata_dtor() 113 if (fd->ret != NULL) { in lua_ucl_userdata_dtor() 114 free (fd->ret); in lua_ucl_userdata_dtor() 125 lua_rawgeti (fd->L, LUA_REGISTRYINDEX, fd->idx); in lua_ucl_userdata_emitter() 127 lua_pcall (fd->L, 0, 1, 0); in lua_ucl_userdata_emitter() [all …]
|
/freebsd/sys/contrib/openzfs/scripts/ |
H A D | convert_wycheproof.pl | 3 # SPDX-License-Identifier: MIT 27 # format that can be consumed more easily by tests/zfs-tests/cmd/crypto_test. 28 # See tests/zfs-tests/tests/functional/crypto/README for more info. 34 use JSON qw(decode_json); 46 my $json = do { local $/; <$infh> }; 49 my $data = decode_json $json; 54 my $version = $data->{generatorVersion} // "[unknown]"; 55 if ("$version" !~ m/^0\.9[^0-9]/) { 63 my $schema = $data->{schema} // "[unknown]"; 64 if ("$schema" ne 'aead_test_schema.json') { [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectTrace.cpp | 1 //===-- CommandObjectTrace.cpp --------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 #include "llvm/Support/JSON.h" 84 "trace.json. This file can be used by the \"trace load\" command " in CommandObjectTraceSave() 88 "trace save [<cmd-options>] <bundle_directory>", in CommandObjectTraceSave() 117 TraceSP trace_sp = process_sp->GetTarget().GetTrace(); in DoExecute() 120 trace_sp->SaveToDisk(bundle_dir, m_options.m_compact)) { in DoExecute() 176 "Load a post-mortem processor trace session from a trace bundle.", in CommandObjectTraceLoad() 195 result.AppendError("a single path to a JSON file containing a the " in DoExecute() [all …]
|
/freebsd/contrib/libucl/include/ |
H A D | ucl.h | 1 /* Copyright (c) 2013-2015, Vsevolod Stakhov 47 * - @ref structures 48 * - @ref utils 49 * - @ref parser 50 * - @ref emitter 58 * JSON with less strict rules that make it more comfortable for 66 * UCL_ALLOC(size) - allocate memory for UCL 67 * UCL_FREE(size, ptr) - free memory of specified size at ptr 122 UCL_OBJECT = 0, /**< UCL object - key/value pairs */ 137 UCL_EMIT_JSON = 0, /**< Emit fine formatted JSON */ [all …]
|
/freebsd/contrib/libucl/utils/ |
H A D | ucl-tool.c | 26 fprintf(out, "Usage: %s [--help] [-i|--in file] [-o|--out file]\n", name); in usage() 27 fprintf(out, " [-s|--schema file] [-f|--format format]\n\n"); in usage() 28 fprintf(out, " --help - print this message and exit\n"); in usage() 29 fprintf(out, " --in - specify input filename " in usage() 31 fprintf(out, " --out - specify output filename " in usage() 33 fprintf(out, " --schema - specify schema file for validation\n"); in usage() 34 fprintf(out, " --format - output format. Options: ucl (default), " in usage() 35 "json, compact_json, yaml, msgpack\n"); in usage() 42 const char *schema = NULL, *parm, *val; in main() local 53 if ((strcmp(parm, "--help") == 0) || (strcmp(parm, "-h") == 0)) { in main() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Trace.cpp | 1 //===-- Trace.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 28 // Helper structs used to extract the type of a JSON trace bundle description 36 namespace json { namespace 40 json::ObjectMapper o(value, path); in fromJSON() 44 } // namespace json 57 return it->second; in Lookup() 65 return &it->second; in LookupAsPtr() 75 return Lookup(it->second, k2); in Lookup() [all …]
|
/freebsd/contrib/libucl/tests/ |
H A D | schema.test | 7 for i in ${TEST_DIR}/schema/*.json ; do 9 printf "running schema test suite $_name... " 11 if [ $? -eq 0 ] ; then 20 if [ $_tests -ne $_succeed ] ; then
|
H A D | Makefile.am | 1 EXTRA_DIST = $(TESTS) basic schema generate.res \ 2 streamline.res rcl_test.json.xz 6 schema.test \ 15 common_test_cflags = -I$(top_srcdir)/include \ 16 -I$(top_srcdir)/src \ 17 -I$(top_srcdir)/uthash
|
H A D | run_tests.sh | 3 if [ $# -lt 1 ] ; then 10 _t=`echo $_tin | sed -e 's/.in$//'` 12 if [ $? -ne 0 ] ; then 18 if [ -f $_t.res ] ; then 19 diff -s $_t.out $_t.res -u 2>/dev/null 20 if [ $? -ne 0 ] ; then 29 if [ $# -gt 2 ] ; then 31 diff -s ${TEST_DIR}/generate.out ${TEST_DIR}/generate.res -u 2>/dev/null 32 if [ $? -ne 0 ] ; then 40 if [ $# -gt 3 ] ; then [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Sarif.cpp | 1 //===-- clang/Basic/Sarif.cpp - SarifDocumentWriter class definition ------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 /// - \ref SarifArtifact 13 /// - \ref SarifArtifactLocation 14 /// - \ref SarifRule 15 /// - \ref SarifResult 16 //===----------------------------------------------------------------------===// 25 #include "llvm/Support/JSON.h" 60 if (llvm::isAlnum(C) || StringRef("-._~:@!$&'()*+,;=").contains(C)) in percentEncodeURICharacter() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | Trace.h | 1 //===-- Trace.h -------- [all...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | StructuredData.h | 1 //===-- StructuredData.h -------- [all...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | PluginManager.h | 1 //===-- PluginManager.h -----------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 #include "lldb/lldb-enumerations.h" 18 #include "lldb/lldb-forward.h" 19 #include "lldb/lldb-private-interfaces.h" 306 /// provided in read-write mode, and may be modified by the 386 llvm::StringRef schema, 398 /// Get the JSON schema for a trace bundle description file corresponding to 406 /// otherwise the actual schema is returned. [all …]
|