Home
last modified time | relevance | path

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

123456

/spdk/test/external_code/
H A Dtest_make.sh44 --json $test_root/accel/module.json
51 --json $test_root/accel/driver.json
58 --json $test_root/hello_world/bdev_external.json -b TestPT
65 --json $test_root/hello_world/bdev.json -b Malloc0
72 --json $test_root/hello_world/bdev_external.json -b TestPT
79 --json $test_root/hello_world/bdev.json -b Malloc0
96 --json $test_root/accel/module.json
103 --json $test_root/accel/driver.json
110 --json $test_root/hello_world/bdev_external.json -b TestPT
117 --json $test_root/hello_world/bdev.json -b Malloc0
/spdk/go/rpc/client/
H A Dclient.go82 encoder *json.Encoder
83 decoder *json.Decoder
93 encoder: json.NewEncoder(conn),
94 decoder: json.NewDecoder(conn),
191 Version string `json:"jsonrpc"`
192 Method string `json:"method"`
193 Params any `json:"params,omitempty"`
194 ID uint64 `json:"id,omitempty"`
198 jsonReq, err := json.Marshal(req)
210 Version string `json:"jsonrpc"`
[all …]
/spdk/test/ftl/
H A Drestore.sh30 rm -f $testdir/config/ftl.json
64 ) > $testdir/config/ftl.json
73 "$SPDK_BIN_DIR/spdk_dd" --if=$testdir/testfile --ob=ftl0 --json=$testdir/config/ftl.json
74 "$SPDK_BIN_DIR/spdk_dd" --ib=ftl0 --of=$testdir/testfile --json=$testdir/config/ftl.json --count=262144
79 "$SPDK_BIN_DIR/spdk_dd" --if=$testdir/testfile --ob=ftl0 --json=$testdir/config/ftl.json --seek=131072
80 "$SPDK_BIN_DIR/spdk_dd" --ib=ftl0 --of=$testdir/testfile --json=$testdir/config/ftl.json
[all...]
H A Ddirty_shutdown.sh31 rm -f $testdir/config/ftl.json
67 ) > $testdir/config/ftl.json
88 …=$testdir/testfile2 --ob=ftl0 --count=$chunk_size --seek=$data_size --json=$testdir/config/ftl.json
93 $spdk_dd --ib=ftl0 --of=$testdir/testfile --count=$data_size --json=$testdir/config/ftl.json
95 …=ftl0 --of=$testdir/testfile2 --count=$chunk_size --skip=$data_size --json=$testdir/config/ftl.json
H A Dtrim.sh16 rm -f $testdir/config/ftl.json
35 export FTL_JSON_CONF=$testdir/config/ftl.json
69 "$SPDK_BIN_DIR/spdk_dd" --if=$testdir/random_pattern --ob=ftl0 --json=$FTL_JSON_CONF
85 "$SPDK_BIN_DIR/spdk_dd" --ib=ftl0 --of=$file --count=$data_size_in_blocks --json=$FTL_JSON_CONF
90 …_dd" --if=$testdir/random_pattern --ob=ftl0 --count=$((unmap_size_in_blocks)) --json=$FTL_JSON_CONF
105 "$SPDK_BIN_DIR/spdk_dd" --ib=ftl0 --of=$file --count=$data_size_in_blocks --json=$FTL_JSON_CONF
H A Dwrite_after_write.sh16 rm -f $testdir/config/ftl.json
33 export FTL_JSON_CONF=$testdir/config/ftl.json
72 $rpc_py save_config > $testdir/config/ftl.json
86 $rpc_py load_config < $testdir/config/ftl.json
/spdk/test/blobstore/blob_io_wait/
H A Dblob_io_wait.sh26 $rpc_py save_config > $testdir/bdevperf.json
30 $rootdir/build/examples/bdevperf --json $testdir/bdevperf.json -q 128 -o 4096 -w write -t 5 -r /var…
39 $rootdir/build/examples/bdevperf --json $testdir/bdevperf.json -q 128 -o 4096 -w read -t 5 -r /var/…
48 $rootdir/build/examples/bdevperf --json $testdir/bdevperf.json -q 128 -o 4096 -w unmap -t 1
51 rm -f $testdir/bdevperf.json
/spdk/test/iscsi_tgt/rpc_config/
H A Drpc_config.py12 import json
80 jsonvalue = json.loads(output)
85 jsonvalue = json.loads(output)
90 jsonvalue = json.loads(output)
100 jsonvalue = json.loads(output)
114 name = json.loads(rpc.iscsi_get_target_nodes())[0]['name']
116 jsonvalues = json.loads(output)
130 jsonvalues = json.loads(output)
140 jsonvalue = json.loads(output)
154 name = json
[all...]
/spdk/scripts/
H A Dhistogram.py8 import json
13 json = json.loads(" ".join(buf)) variable
14 histogram = base64.b64decode(json["histogram"])
15 bucket_shift = json["bucket_shift"]
16 tsc_rate = json["tsc_rate"]
/spdk/test/bdev/bdevperf/
H A Dtest_config.sh12 jsonconf=$testdir/conf.json
22 bdevperf_output=$($bdevperf -t 2 --json $jsonconf -j $testconf 2>&1)
25 bdevperf_output=$($bdevperf -C -t 2 --json $jsonconf -j $testconf)
32 bdevperf_output=$($bdevperf -t 2 --json $jsonconf -j $testconf 2>&1)
42 bdevperf_output=$($bdevperf -t 2 --json $jsonconf -j $testconf 2>&1)
/spdk/test/json_config/
H A Dconfig_filter.py8 import json
55 data = json.loads(sys.stdin.read())
72 print(json.dumps(out, indent=2))
76 data = json.loads(sys.stdin.read())
111 o = json.loads('{ "the_object": ' + sys.stdin.read() + ' }')
112 print(json.dumps(sort_json_object(o)['the_object'], indent=2))
/spdk/test/dd/
H A During.sh56 --json <(gen_conf)
62 --json <(gen_conf)
77 --json <(gen_conf)
89 --json <(gen_conf)
97 --json <(gen_conf)
H A Dbasic_rw.sh34 --json <(gen_conf)
42 --json <(gen_conf)
62 --json <(gen_conf)
69 --json <(gen_conf)
101 --json <(gen_conf)
/spdk/python/spdk/rpc/
H A Dclient.py5 import json
15 print(json.dumps(d, indent=2))
19 print(json.dumps(s, indent=2).strip('"'))
131 self._logger.debug("append request:\n%s\n", json.dumps(req))
138 reqstr = "\n".join(json.dumps(req, indent=2) for req in self._reqs)
152 obj, idx = json.JSONDecoder().raw_decode(buf)
181 self._logger.info("response:\n%s\n", json.dumps(response, indent=2))
203 msg = "\n".join(["request:", "%s" % json.dumps(params, indent=2),
206 json.dumps(response['error'], indent=2)])
249 resp = lib.spdk_gorpc_call(json.dumps(command_info).encode('utf-8'),
[all …]
H A D__init__.py5 import json
88 json.dump(config, fd, indent=indent)
94 json_conf = json.load(j)
97 json_conf = json.load(j)
99 json_conf = json.loads(j)
/spdk/mk/
H A Dspdk.lib_deps.mk14 JSON_LIBS := json jsonrpc rpc
37 DEPDIRS-json := log util
56 DEPDIRS-accel := log util thread json rpc jsonrpc dma
57 DEPDIRS-jsonrpc := log util json
58 DEPDIRS-virtio := log util json thread vfio_user
61 DEPDIRS-rpc := log util json jsonrpc
70 DEPDIRS-init := jsonrpc json log rpc thread util
71 DEPDIRS-ftl := log util thread bdev json jsonrpc
132 DEPDIRS-scheduler_dynamic := event log thread util json
134 DEPDIRS-scheduler_dpdk_governor := event json lo
[all...]
/spdk/test/iscsi_tgt/initiator/
H A Dinitiator.sh40 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w verify -t 5 -s…
41 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w unmap -t 5 -s …
42 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w flush -t 5 -s …
43 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w reset -t 10 -s…
/spdk/test/iscsi_tgt/bdev_io_wait/
H A Dbdev_io_wait.sh42 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w write -t 1
43 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w read -t 1
44 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w flush -t 1
45 "$rootdir/build/examples/bdevperf" --json <(initiator_json_config) -q 128 -o 4096 -w unmap -t 1
/spdk/test/nvmf/target/
H A Dbdev_io_wait.sh27 "$rootdir/build/examples/bdevperf" -m 0x10 -i 1 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w wr…
29 "$rootdir/build/examples/bdevperf" -m 0x20 -i 2 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w re…
31 "$rootdir/build/examples/bdevperf" -m 0x40 -i 3 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w fl…
33 "$rootdir/build/examples/bdevperf" -m 0x80 -i 4 --json <(gen_nvmf_target_json) -q 128 -o 4096 -w un…
/spdk/test/ocf/integrity/
H A Dbdevperf-iotypes.sh13 $bdevperf --json <(gen_malloc_ocf_json) -q 128 -o 4096 -t 4 -w flush
14 $bdevperf --json <(gen_malloc_ocf_json) -q 128 -o 4096 -t 4 -w unmap
15 $bdevperf --json <(gen_malloc_ocf_json) -q 128 -o 4096 -t 4 -w write
/spdk/test/nvmf/host/
H A Ddma.sh104 "$rootdir/test/dma/test_dma/test_dma" -q 16 -o 4096 -w randrw -M 70 -t 5 -m 0xc --json <(gen_nvmf_t…
107 "$rootdir/test/dma/test_dma/test_dma" -q 16 -o 4096 -w randrw -M 70 -t 5 -m 0xc --json <(gen_malloc…
110 "$rootdir/test/dma/test_dma/test_dma" -q 16 -o 4096 -w randread -M 70 -t 5 -m 0xc --json <(gen_lvol…
116 "$rootdir/test/dma/test_dma/test_dma" -q 16 -o 4096 -w randrw -M 70 -t 5 -m 0xc --json <(gen_lvol_n…
/spdk/test/vhost/initiator/
H A Dblockdev.sh16 rm -f $testdir/bdev.json
70 cat <<- CONF > $testdir/bdev.json
79 …dk_fio $testdir/bdev.fio --filename='*' --section=job_randwrite --spdk_json_conf=$testdir/bdev.json
83 …_fio $testdir/bdev.fio --filename="VirtioScsi1t0:VirtioScsi2t0" --spdk_json_conf=$testdir/bdev.json
89 rm -f $testdir/bdev.json
/spdk/test/blobstore/
H A Dblobstore.sh17 "$rootdir/scripts/gen_nvme.sh" --json-with-subsystems -n 1 > "$testdir/blobcli.json"
23 …&& $SPDK_EXAMPLE_DIR/blobcli -j $testdir/blobcli.json -b Nvme0n1 -T $testdir/test.bs > $testdir/bt…
31 rm -rf $testdir/blobcli.json
/spdk/lib/init/
H A Djson_config.c529 parse_json(void *json, ssize_t json_size, struct load_json_config_ctx *ctx) in parse_json() argument
534 if (!json || json_size <= 0) { in parse_json()
543 memcpy(ctx->json_data, json, json_size); in parse_json()
575 json_config_prepare_ctx(spdk_subsystem_init_fn cb_fn, void *cb_arg, bool stop_on_error, void *json, in json_config_prepare_ctx() argument
592 rc = parse_json(json, json_size, ctx); in json_config_prepare_ctx()
649 spdk_subsystem_load_config(void *json, ssize_t json_size, spdk_subsystem_init_fn cb_fn,
653 json_config_prepare_ctx(cb_fn, cb_arg, stop_on_error, json, json_size, false); in spdk_subsystem_init_from_json_config()
656 char *json = NULL; spdk_subsystem_init_from_json_config() local
675 spdk_subsystem_load_config(void * json,ssize_t json_size,spdk_subsystem_init_fn cb_fn,void * cb_arg,bool stop_on_error) spdk_subsystem_load_config() argument
/spdk/test/iscsi_tgt/fio/
H A Dfio.sh14 rm -f $testdir/iscsi2.json
21 $rpc_py save_config > $testdir/iscsi2.json
38 $rpc_py load_config < $testdir/iscsi2.json
73 $rpc_py load_config < $testdir/iscsi.json

123456