| /spdk/test/app/fuzz/common/ |
| H A D | fuzz_common.h | 103 read_json_into_buffer(const char *filename, struct spdk_json_val **values, void **file_data) in read_json_into_buffer() argument 116 *values = calloc(num_json_values, sizeof(**values)); in read_json_into_buffer() 117 if (values == NULL) { in read_json_into_buffer() 123 rc = spdk_json_parse(*file_data, file_data_size, *values, num_json_values, NULL, in read_json_into_buffer() 126 free(*values); in read_json_into_buffer() 127 *values = NULL; in read_json_into_buffer() 168 struct spdk_json_val *values = NULL, *values_head = NULL, *obj_start; in fuzz_parse_args_into_array() local 175 values = values_head; in fuzz_parse_args_into_array() 176 if (num_json_values == 0 || values == NULL) { in fuzz_parse_args_into_array() 189 free(values); in fuzz_parse_args_into_array() [all …]
|
| /spdk/test/unit/include/spdk/histogram_data.h/ |
| H A D | histogram_ut.c | 28 uint64_t **values = ctx; in check_values() local 44 CU_ASSERT(**values >= start); in check_values() 49 CU_ASSERT(**values <= end); in check_values() 52 (*values)++; in check_values() 53 if (*values == g_values_end || **values > end) { in check_values() 64 uint64_t *values = g_values; in histogram_test() local 74 spdk_histogram_data_iterate(h, check_values, &values); in histogram_test() 83 uint64_t *values = g_values; in histogram_merge() local 100 spdk_histogram_data_iterate(h1, check_values, &values); in histogram_merge()
|
| /spdk/test/unit/lib/json/json_util.c/ |
| H A D | json_util_ut.c | 203 /* Failing Test: duplicated names for json values */ in test_decode_object() 260 struct spdk_json_val values[4]; in test_decode_array() local 266 values[0].type = SPDK_JSON_VAL_ARRAY_BEGIN; in test_decode_array() 267 values[0].len = 2; in test_decode_array() 268 values[1].type = SPDK_JSON_VAL_NUMBER; in test_decode_array() 269 values[1].len = 4; in test_decode_array() 270 values[1].start = "1234"; in test_decode_array() 271 values[2].type = SPDK_JSON_VAL_NUMBER; in test_decode_array() 272 values[2].len = 4; in test_decode_array() 273 values[ in test_decode_array() 828 struct spdk_json_val *values, *key, *val, *key2, *val2; test_find() local 885 struct spdk_json_val *values, *key; test_find_array() local 912 struct spdk_json_val *values; test_iterating() local [all...] |
| /spdk/test/app/jsoncat/ |
| H A D | jsoncat.c | 57 struct spdk_json_val *values; in process_file() local 75 values = calloc(num_values, sizeof(*values)); in process_file() 76 if (values == NULL) { in process_file() 82 rc = spdk_json_parse(buf, size, values, num_values, &end, in process_file() 86 free(values); in process_file() 94 free(values); in process_file() 99 spdk_json_write_val(w, values); in process_file() 105 free(values); in process_file() 110 free(values); in process_file()
|
| /spdk/lib/json/ |
| H A D | json_util.c | 296 _json_decode_object(const struct spdk_json_val *values, in _json_decode_object() argument 304 if (values == NULL || values->type != SPDK_JSON_VAL_OBJECT_BEGIN) { in _json_decode_object() 313 for (i = 0; i < values->len;) { in _json_decode_object() 314 const struct spdk_json_val *name = &values[i + 1]; in _json_decode_object() 315 const struct spdk_json_val *v = &values[i + 2]; in _json_decode_object() 385 spdk_json_decode_object(const struct spdk_json_val *values, in spdk_json_decode_object() argument 388 return _json_decode_object(values, decoders, num_decoders, out, false); in spdk_json_decode_object() 392 spdk_json_decode_object_relaxed(const struct spdk_json_val *values, in spdk_json_decode_object_relaxed() argument 395 return _json_decode_object(values, decoders, num_decoders, out, true); in spdk_json_decode_object_relaxed() 399 spdk_json_decode_array(const struct spdk_json_val *values, spdk_json_decode_fn decode_func, in spdk_json_decode_array() argument [all …]
|
| H A D | json_parse.c | 415 spdk_json_parse(void *json, size_t size, struct spdk_json_val *values, size_t num_values, in spdk_json_parse() argument 439 if (values && cur_value < num_values) { \ in spdk_json_parse() 440 values[cur_value].type = t; \ in spdk_json_parse() 441 values[cur_value].start = val_start_ptr; \ in spdk_json_parse() 442 values[cur_value].len = val_end_ptr - val_start_ptr; \ in spdk_json_parse() 542 if (values && con_start_value < num_values) { in spdk_json_parse() 543 values[con_start_value].len = cur_value - con_start_value - 1; in spdk_json_parse()
|
| /spdk/lib/jsonrpc/ |
| H A D | jsonrpc_server.c | 85 parse_single_request(struct spdk_jsonrpc_request *request, struct spdk_json_val *values) in parse_single_request() argument 90 if (spdk_json_decode_object(values, jsonrpc_request_decoders, in parse_single_request() 213 request->values = malloc(request->values_cnt * sizeof(request->values[0])); in jsonrpc_parse_request() 214 if (request->values == NULL) { in jsonrpc_parse_request() 216 request->values_cnt * sizeof(request->values[0])); in jsonrpc_parse_request() 252 rc = spdk_json_parse(request->recv_buffer, size, request->values, request->values_cnt, &end, in jsonrpc_parse_request() 262 if (request->values[0].type == SPDK_JSON_VAL_OBJECT_BEGIN) { in jsonrpc_parse_request() 263 parse_single_request(request, request->values); in jsonrpc_parse_request() 264 } else if (request->values[0].type == SPDK_JSON_VAL_ARRAY_BEGIN) { in jsonrpc_parse_request() 347 free(request->values); in jsonrpc_free_request()
|
| H A D | jsonrpc_client.c | 100 rc = spdk_json_parse(r->buf, buf_len, r->values, values_cnt, &end, in jsonrpc_parse_response() 109 if (r->values[0].type != SPDK_JSON_VAL_OBJECT_BEGIN) { in jsonrpc_parse_response() 114 if (spdk_json_decode_object(r->values, jsonrpc_response_decoders, in jsonrpc_parse_response()
|
| H A D | jsonrpc_internal.h | 38 struct spdk_json_val *values; member 98 struct spdk_json_val values[]; member
|
| /spdk/module/bdev/rbd/ |
| H A D | bdev_rbd_rpc.c | 35 bdev_rbd_decode_config(const struct spdk_json_val *values, void *out) in bdev_rbd_decode_config() argument 41 if (values->type == SPDK_JSON_VAL_NULL) { in bdev_rbd_decode_config() 50 if (values->type != SPDK_JSON_VAL_OBJECT_BEGIN) { in bdev_rbd_decode_config() 54 *map = calloc(values->len + 1, sizeof(**map)); in bdev_rbd_decode_config() 59 for (i = 0, entry = *map; i < values->len;) { in bdev_rbd_decode_config() 60 const struct spdk_json_val *name = &values[i + 1]; in bdev_rbd_decode_config() 61 const struct spdk_json_val *v = &values[i + 2]; in bdev_rbd_decode_config()
|
| /spdk/python/spdk/rpc/ |
| H A D | cmd_parser.py | 30 def group_as(kwargs, name, values): argument 32 for arg in values:
|
| /spdk/include/spdk/ |
| H A D | json.h | 109 ssize_t spdk_json_parse(void *json, size_t size, struct spdk_json_val *values, size_t num_values, 121 int spdk_json_decode_object(const struct spdk_json_val *values, 123 int spdk_json_decode_object_relaxed(const struct spdk_json_val *values, 139 int spdk_json_decode_array(const struct spdk_json_val *values, spdk_json_decode_fn decode_func,
|
| /spdk/lib/init/ |
| H A D | json_config.c | 86 struct spdk_json_val *values; member 118 free(ctx->values); in app_json_config_load_done() 554 ctx->values = calloc(ctx->values_cnt, sizeof(struct spdk_json_val)); in parse_json() 555 if (ctx->values == NULL) { in parse_json() 560 rc = spdk_json_parse(ctx->json_data, ctx->json_data_size, ctx->values, in parse_json() 570 free(ctx->values); in parse_json() 598 rc = spdk_json_find_array(ctx->values, "subsystems", NULL, &ctx->subsystems); in json_config_prepare_ctx()
|
| /spdk/go/rpc/ |
| H A D | clientIntegration.go | 75 values := reflect.ValueOf(resp).Elem() 84 jsonMap[strings.ToLower(fieldName)] = values.Field(i).Interface()
|
| /spdk/test/app/fuzz/vhost_fuzz/ |
| H A D | README.md | 9 when supplying preconstructed values to the fuzzer. 25 memory locations. By default, these values are overwritten by the application even when supplied as… 29 If you want to override these iovec values using a json file, you can specify the -k option.
|
| /spdk/doc/ |
| H A D | bdevperf.md | 48 Jobs `[A]` `[B]` or `[C]`, inherit default values from `[global]` 55 If bdevperf receives CLI argument, it overrides values
|
| H A D | scheduler.md | 75 values are then compared with all the ticks since the last check, which allows 109 Current values of scheduler parameters can be displayed by using
|
| /spdk/test/unit/lib/json/json_write.c/ |
| H A D | json_write_ut.c | 855 struct spdk_json_val values[100]; in test_write_val() local 858 CU_ASSERT(spdk_json_parse(src, strlen(src), values, SPDK_COUNTOF(values), NULL, in test_write_val() 862 VAL(values); in test_write_val()
|
| /spdk/scripts/bpf/ |
| H A D | trace.py | 82 for arg in probe.args.values(): 129 argstr = [f'{a.name}={argtype[a.type]}' for a in args.values()] 130 argval = [f'{argcast[a.type](f"arg{a.pos}")}' for a in args.values()] 138 return '\n'.join([self._gen_usdt(p) for p in self._probes.values()]) 493 tpoint = next((t for t in trace.tpoints.values() if t.name == name), None)
|
| /spdk/test/unit/lib/rpc/rpc.c/ |
| H A D | rpc_ut.c | 41 spdk_json_decode_object(const struct spdk_json_val *values, in spdk_json_decode_object() argument 44 if (values ->type == SPDK_JSON_VAL_INVALID) { in spdk_json_decode_object()
|
| /spdk/ |
| H A D | autorun_post.py | 51 …pivot_by_asan = pd.pivot_table(data_table, index=["Domain", "Test"], values=["With Asan"], aggfunc… 53 …pivot_by_ubsan = pd.pivot_table(data_table, index=["Domain", "Test"], values=["With UBsan"], aggfu…
|
| /spdk/test/nvme/perf/ |
| H A D | README.md | 43 When running test with the Kernel driver, NVMe devices use the Kernel driver. The 5 valid values fo… 73 Type of I/O pattern. Accepted values are: randrw, rw
|
| /spdk/python/spdk/sma/ |
| H A D | sma.py | 49 for device in self._devices.values():
|
| /spdk/test/app/fuzz/nvme_fuzz/ |
| H A D | README.md | 42 Please note that you can also craft your own custom command values by using the output
|
| /spdk/python/spdk/sma/device/ |
| H A D | vhost_blk.py | 28 if len(self._buses) != len(list({v['name']: v for v in self._buses}.values())):
|